Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration/react paypal js #496

Closed
wants to merge 434 commits into from
Closed
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
434 commits
Select commit Hold shift + click to select a range
a2b4cf6
chore(storybook): fix marks code snippet
gregjopa Jul 6, 2021
d1ac1d2
fix: increase opacity for disabled button
gregjopa Jul 6, 2021
2eefb9a
chore(deps): upgrade dependencies
gregjopa Jul 9, 2021
df23935
chore(docs): update example to use createOrder and onApprove
gregjopa Jul 9, 2021
e5caf02
feat: more robust package publishing (#130)
Jul 10, 2021
76a3b9f
fix: type declarations don’t depend on internal typings (#129)
Jul 11, 2021
6534d59
fix(release): do not publish types from storybook (#131)
gregjopa Jul 11, 2021
0661e18
chore(storybook): do not use an alert for the onApprove example
gregjopa Jul 11, 2021
0d9dd27
chore(storybook): add donation example (#132)
gregjopa Jul 11, 2021
9eca2f4
chore(release): 7.2.0
gregjopa Jul 11, 2021
5915eef
chore(storybook): use a table for the Dynamic Amount example
gregjopa Jul 12, 2021
0765e16
fix: avoid reloading the script when options have not changed (#135)
gregjopa Jul 28, 2021
e5593b8
chore(deps): upgrade dependencies
gregjopa Jul 28, 2021
7668ced
chore(release): 7.2.1
gregjopa Jul 28, 2021
002059d
refactor: split script provider component into multiple files
borodovisin Aug 2, 2021
9914f60
fix: prevent numeric overflow with hashStr function (#141)
borodovisin Aug 17, 2021
a2c7741
feat(braintree): add new <BraintreePayPalButtons /> component (#140)
borodovisin Aug 24, 2021
d664679
chore(release): 7.3.0
gregjopa Aug 25, 2021
9e8c39b
fix(types): export all public types (#147)
gregjopa Aug 26, 2021
1d69ce7
chore(release): 7.3.1
gregjopa Aug 26, 2021
f60176e
fix(buttons): catch errors thrown during button initialization
borodovisin Aug 26, 2021
a407cb8
chore: add the data-integration-source param to track usage (#149)
jsierrav14 Aug 27, 2021
ecaf084
fix: remove async/await usage to avoid babel polyfill (#150)
gregjopa Aug 27, 2021
5df53a3
chore: use data-integration-source when first loading script (#152)
gregjopa Aug 27, 2021
eb586b0
chore(release): 7.3.2
gregjopa Aug 27, 2021
1a1c73d
fix: update error handling logic for BraintreePayPalButtons
borodovisin Aug 31, 2021
d73fe72
fix: remove babel polyfill for typeof symbol
gregjopa Aug 31, 2021
a0e5f28
chore(release): 7.3.3
gregjopa Aug 31, 2021
400f699
chore(storybook): support multiple different namespaces on the same page
gregjopa Aug 31, 2021
90e8348
chore(storybook): fix namespace support with venmo button demo
gregjopa Aug 31, 2021
9df4e88
chore(storybook): fix braintree and subscription demos
gregjopa Sep 1, 2021
f7b4a25
fix: update Marks to rerender when fundingSource changes (#154)
borodovisin Sep 13, 2021
6aebf98
feat: update Marks to support the children prop (#155)
borodovisin Sep 14, 2021
cc956be
fix(types): standardize types for children (#157)
borodovisin Sep 14, 2021
8b34157
chore(deps): update dependencies (#165)
gregjopa Sep 29, 2021
b78c995
chore: use constants for sdk attributes (#166)
borodovisin Oct 1, 2021
e025d9a
feat(hosted-fields): add support for hosted-fields (#160)
borodovisin Oct 1, 2021
dbeecd9
chore: add types for jest
gregjopa Oct 2, 2021
63f2d10
refactor: convert contextValidator.test.js to typescript file
sagarchoudhary96 Oct 5, 2021
cdbfaa3
refactor(types): braintree paypal buttons tests to typescript (#174)
davidalpert Oct 5, 2021
25a2771
refactor(types): paypalscriptprovider tests to typescript
RonLek Oct 6, 2021
ae64021
Merge pull request #182 from RonLek/chore/paypal_script_typescript
westeezy Oct 6, 2021
fea2957
Merge pull request #178 from sagarchoudhary96/convert-contextValidato…
westeezy Oct 6, 2021
1d17eee
refactor(tests): cleanup context provider test types
westeezy Oct 6, 2021
9c4247e
Merge pull request #183 from westeezy/test-cleanup-context-provider
westeezy Oct 6, 2021
171fb46
chore: add contributing doc
westeezy Oct 6, 2021
67657b6
Merge pull request #184 from westeezy/contributing
westeezy Oct 6, 2021
d9df9f3
chore: pin node version using .nvmrc
wsbrunson Oct 6, 2021
f39e384
chore(docs): add stories for hosted-fields (#164)
borodovisin Oct 6, 2021
727db4e
chore: Shift old issue templates to issue forms (#181)
Hard-Coder05 Oct 7, 2021
39f3ef2
chore: create github action to publish package (#185)
wsbrunson Oct 7, 2021
b71ba1a
chore: remove unused validate.js script
gregjopa Oct 7, 2021
c5759bb
chore: manually format yml files
gregjopa Oct 7, 2021
875d366
chore: update precommit hook to support yml
gregjopa Oct 7, 2021
6147638
chore: standardize node/npm setup for actions
gregjopa Oct 7, 2021
9b42f5e
Merge pull request #187 from paypal/github-actions-cleanup
gregjopa Oct 7, 2021
b42ddf5
refactor(tests): convert utils.test.js to typescript (#173)
pedpess Oct 8, 2021
072ecae
chore: improve stories for hosted-fields (#186)
borodovisin Oct 8, 2021
51e271e
chore(release): 7.4.0
gregjopa Oct 8, 2021
2b8f14a
fix(types): rename back to DISPATCH_ACTION (#192)
gregjopa Oct 9, 2021
0719b6f
chore(release): 7.4.1
gregjopa Oct 9, 2021
556b9b3
chore: minor updates to hosted fields story (#189)
borodovisin Oct 11, 2021
d7b30ad
refactor: :recycle: paypalButton typescript compliant (#194)
Torfab Oct 12, 2021
b4086ab
fix: add `createBillingAgreement` support for BraintreePayPalButtons …
borodovisin Oct 12, 2021
5871016
refactor: create shared `getErrorMessage` function (#190)
borodovisin Oct 15, 2021
0b35c01
chore(release): 7.4.2
gregjopa Oct 15, 2021
6c718ea
chore: fix typos (#196)
amnahkhatun Oct 18, 2021
f8f96e6
chore: fix typos (#200)
chrisbradshaw Oct 26, 2021
acec5d4
refactor: convert PayPalMarks tests to TypeScript (#203)
Devesh21700Kumar Oct 27, 2021
7f9666f
chore: update license link to use https
Aditya-Kapadiya Nov 1, 2021
0dc9018
docs: update storybook with codesandbox examples (#144)
borodovisin Nov 12, 2021
fa5f2c9
chore(docs): improve code snippets (#211)
borodovisin Nov 26, 2021
77973f0
feat: log loading errors for the JS SDK script (#212)
borodovisin Nov 29, 2021
5ff0301
chore(storybook): include all currencies and funding sources (#213)
gregjopa Nov 29, 2021
8df8aab
chore(release): 7.5.0
gregjopa Nov 29, 2021
ee1f2c1
chore: improve PayPalButtons example in readme (#221)
mstuart Dec 20, 2021
1dfc59b
chore(deps): update braintree dependency (#220)
borodovisin Dec 20, 2021
4529c64
chore: update github action deps (#222)
gregjopa Dec 22, 2021
097ce43
chore(deps): update dependencies
gregjopa Jan 5, 2022
f083cf6
chore(deps): remove unused shelljs dependency
gregjopa Jan 5, 2022
8e7222b
chore(deps): update dependencies
gregjopa Jan 5, 2022
b7cfe90
chore: upgrade to Node 16 (#225)
gregjopa Jan 5, 2022
6e3499d
chore(deps): upgrade storybook dependencies (#227)
borodovisin Jan 6, 2022
0af0df5
chore(deps): run npm audit fix (#229)
gregjopa Jan 7, 2022
58fe3c9
chore: resolve eslint warnings (#228)
borodovisin Jan 7, 2022
e31793c
chore: improve eslint rules and remove comments (#230)
borodovisin Jan 11, 2022
5b05a51
chore(deps): update paypal-js and improve type imports (#231)
borodovisin Jan 11, 2022
3985a13
fix(braintree): support Braintree integrations using tokenization key…
borodovisin Jan 14, 2022
ddaced2
fix: add type for Braintree billing agreement option (#234)
jcyamacho Jan 14, 2022
82e1715
docs(braintree): update integration documentation (#217)
borodovisin Jan 14, 2022
2e5b665
chore: improve test coverage for messages component (#232)
borodovisin Jan 14, 2022
7f245cc
chore(storybook): get args from storybook context (#233)
borodovisin Jan 14, 2022
24a7c52
chore(storybook): remove debug flag on stories (#235)
borodovisin Jan 14, 2022
8fc371b
chore(release): 7.5.1
gregjopa Jan 14, 2022
8deab76
feat(braintree): add optional prop for braintree namespace (#238)
borodovisin Jan 20, 2022
f5fa95d
feat(hostedFields): support deeply nested children (#240)
borodovisin Jan 27, 2022
84d382d
chore(tests): update tests to use typescript (#241)
borodovisin Jan 28, 2022
a281cf4
chore: use semver for validating node version (#245)
gregjopa Feb 1, 2022
3743d03
chore(deps): update dependencies (#246)
gregjopa Feb 1, 2022
5dd500d
chore: add prettier check to validate script
gregjopa Feb 1, 2022
56b33d5
chore: add .prettierignore
gregjopa Feb 1, 2022
d7d2f5b
chore: format code
gregjopa Feb 1, 2022
b8a01be
chore(release): 7.6.0
gregjopa Feb 1, 2022
46c3586
chore: standardize use of `import` (#249)
borodovisin Feb 7, 2022
8a34e8c
docs(storybook): use USD currency for hosted fields example (#252)
borodovisin Feb 10, 2022
512b7e5
chore: update husky to use npm 'prepare' script
gregjopa Feb 20, 2022
80530b2
chore: only require a major version match for Node
gregjopa Feb 20, 2022
7619e8a
chore(deps): remove 'chalk' dependency
gregjopa Feb 20, 2022
1551b46
chore(deps): update dependencies
gregjopa Feb 20, 2022
39911ae
chore: update codecov action (#260)
westeezy Mar 30, 2022
1844fd5
fix(braintree): pass merchant-id through to checkout session (#265)
borodovisin May 9, 2022
14af682
chore(deps): update paypal-js dependency (#266)
gregjopa May 9, 2022
5ae9305
chore(release): 7.6.1
gregjopa May 9, 2022
44b56b2
fix: revert "fix(braintree): pass merchant-id through to session (#26…
gregjopa May 9, 2022
fc20b14
chore(release): 7.6.2
gregjopa May 9, 2022
9ee701c
feat(braintree): add merchantAccountId prop (#269)
borodovisin May 10, 2022
b71344c
chore(release): 7.7.0
gregjopa May 10, 2022
5a6a5fe
docs(hostedFields): fix issue with code sandbox template (#270)
borodovisin May 16, 2022
c5e9670
feat(hostedFields): add support for installments (#271)
borodovisin May 17, 2022
904c580
chore(release): 7.8.0
gregjopa May 17, 2022
c4ecba1
docs(storybook): update the hostedFields story (#272)
borodovisin May 23, 2022
8bd8653
chore(deps): upgrade typescript to 4.7.2 (#276)
westeezy May 27, 2022
36cf699
chore(typescript): remove type from import (#277)
borodovisin May 27, 2022
0024263
chore(release): 7.8.1
wsbrunson May 27, 2022
a0db96c
chore(types): use “import type” in test files (#278)
borodovisin May 30, 2022
136dd8f
docs(readme): fix typo in hosted-fields code (#306)
westeezy Sep 15, 2022
ce6c3ea
chore(deps): update dependencies (#313)
gregjopa Nov 30, 2022
f101f11
chore(release): 7.8.2
gregjopa Nov 30, 2022
a945759
chore(docs): update github actions badge url
dtjones404 Dec 20, 2022
a0346e3
Merge pull request #318 from paypal/fix/github-actions-badge
dtjones404 Dec 20, 2022
a2162ee
docs(readme): updated example links (#333)
oscarleonnogales Jan 24, 2023
ccfd391
chore(storybook): update sandbox web server url (#340)
gregjopa Mar 17, 2023
acc1249
chore(storybook): update api url for braintree integration (#341)
gregjopa Mar 20, 2023
971cbb7
chore: always use post for auth token (#342)
gregjopa Mar 20, 2023
43e140f
chore(deps): update paypal-js dependency (#346)
gregjopa Mar 27, 2023
d77028c
chore(release): 7.8.3
gregjopa Mar 27, 2023
168764e
feat: use camelCase for PayPalScriptProvider options (#360)
gregjopa Jun 12, 2023
c1aad9e
chore: update peer dependencies (#361)
gregjopa Jun 12, 2023
eac53c8
chore(release): 8.0.0
gregjopa Jun 12, 2023
e1b9068
feat: add loadingStatusErrorMessage to state (#366)
dtjones404 Jul 3, 2023
e478954
chore(storybook): change client-id for hosted-fields example (#368)
gregjopa Jul 3, 2023
bfb3803
chore(release): 8.1.0
gregjopa Jul 3, 2023
d0ec051
chore: recommend using server-side api calls (#372)
gregjopa Jul 28, 2023
4e17b7f
chore(docs): clarify that dataClientToken comes from the server (#375)
gregjopa Jul 28, 2023
92f87f4
chore(release): 8.1.1
gregjopa Jul 28, 2023
0feef3e
fix: allow users to change data-sdk-integration-source (#378)
dtjones404 Aug 16, 2023
e7f86bd
chore(release): 8.1.2
dtjones404 Aug 16, 2023
575b7cc
chore(deps): update to latest paypal-js (#379)
gregjopa Aug 16, 2023
60c68d2
chore(release): 8.1.3
dtjones404 Aug 16, 2023
21bf270
chore(docs): update stories to include new shipping callbacks (#388)
jshawl Sep 19, 2023
df8f63b
fix: failing typecheck (#408)
jshawl Nov 27, 2023
6fa2ee4
chore(deps): update to [email protected] (#422)
gregjopa Feb 28, 2024
5339384
chore(ci): upgrade to the checkout action v4 (#423)
gregjopa Feb 28, 2024
bd90bcd
chore(ci): fix github permission with publish step (#424)
gregjopa Feb 28, 2024
273e18b
chore(ci): try access token
gregjopa Feb 28, 2024
e365997
chore(release): 8.1.4
gregjopa Feb 28, 2024
8827b18
chore: bump version of paypal-js
nbierdeman Mar 20, 2024
95a29fa
feat: hardcode js library
nbierdeman Mar 20, 2024
1d027b6
feat: rename constant
nbierdeman Mar 20, 2024
0d9b495
fix: alphabetize constants
nbierdeman Mar 20, 2024
aa1b771
feat: add DATA_JS_SDK_LIBRARY to constants
nbierdeman Mar 20, 2024
acc5123
feat: add js library to options
nbierdeman Mar 20, 2024
faa6278
fix: enforce values
nbierdeman Mar 20, 2024
91ecca5
Merge pull request #425 from paypal/feature/DTPPCPSDK-1482v2
nbierdeman Mar 20, 2024
db1dfe4
chore(release): 8.2.0
nbierdeman Mar 20, 2024
7a15f17
chore: fix possibly undefined value
Apr 2, 2024
2476ba4
chore: cleanup implemented
Apr 3, 2024
6e8c989
chore: cleanup
Apr 3, 2024
e31f0ed
chore: separate files
Apr 3, 2024
bf09777
test: rerender issues
Apr 4, 2024
e479ddf
chore: fix render function type to be a promise
Apr 5, 2024
161fea6
fix: rerender error fixed
Apr 5, 2024
c1d4fa6
chore: lift fields state to provider
Apr 5, 2024
d090e04
chore: rename types, further renaming needed
Apr 5, 2024
73e748d
chore: remove type abstractions
Apr 5, 2024
a69d68d
chore: fix callback return types
Apr 8, 2024
d52e798
chore: cleanup comments
Apr 8, 2024
157de41
chore: wip
Apr 9, 2024
fc4b6ea
chore: create card fields types file
Apr 9, 2024
cc7aa22
chore: add card fields types
Apr 9, 2024
c59084b
chore: wip tests
Apr 9, 2024
ae10034
Merge pull request #427 from paypal/feature/add-card-fields-types
sebastianfdz Apr 9, 2024
492038b
chore: context provider testing
Apr 10, 2024
97a4fd3
chore: remove unused utils
Apr 10, 2024
2588f48
chore: add snapshots
Apr 10, 2024
f8e15a5
chore: add tests for individual card fields
Apr 11, 2024
21c641f
chore: add className as field prop
Apr 11, 2024
4b2d112
chore: update README to include new CardFields support integration
Apr 11, 2024
c6bcd6b
chore: remove local file
Apr 11, 2024
81320fd
chore: update readme
Apr 11, 2024
409039b
chore: remove unused dependencies
Apr 11, 2024
6af406b
chore: restore
Apr 11, 2024
3144762
chore: restore package-lock
Apr 11, 2024
ee8e89e
chore: export only external hook
Apr 11, 2024
0e78d1e
chore: add width full to container
Apr 11, 2024
583d601
chore: add shared logic for field component
Apr 11, 2024
f4234a5
chore: use shared component abstraction
Apr 11, 2024
d4db167
chore: change token names
Apr 11, 2024
f817e41
chore: move registered fields state to registry hook
Apr 16, 2024
6bc7260
chore: adjust readme
Apr 16, 2024
ef439ff
chore: adjust readme
Apr 16, 2024
7dfeaf8
chore: remove unused comments
Apr 16, 2024
bd6b07f
chore: remove token validation
Apr 16, 2024
3951ef5
Update README.md
sebastianfdz Apr 16, 2024
dcdebaa
Merge branch 'main' into feature/card-fields-v2-support
sebastianfdz Apr 16, 2024
3e03c3b
fix: prettier format
Apr 16, 2024
b0d9f83
Merge branch 'feature/card-fields-v2-support' of https://github.com/p…
Apr 16, 2024
038bc68
chore: bump paypal-js version
Apr 16, 2024
ce7c713
Merge pull request #428 from paypal/feature/card-fields-v2-support
sebastianfdz Apr 16, 2024
4da0081
chore: export form component
Apr 18, 2024
ba64add
chore: add form options type
Apr 18, 2024
634e6cd
feat: add cardfields form component
Apr 18, 2024
eb68ceb
chore: add ui component folder to future ui related components
Apr 18, 2024
1b9a036
chore: add tests
Apr 18, 2024
adbc658
chore: fix typo
Apr 18, 2024
2eaacf4
chore: update readme
Apr 18, 2024
eb187a8
chore: remove style block and replace with cusotm container
Apr 18, 2024
7eb2b06
chore: update readme
Apr 18, 2024
8b6e7fe
Merge pull request #429 from paypal/feature/add-card-fields-form
sebastianfdz Apr 18, 2024
ceec83f
docs: wip add storybook for form component
Apr 23, 2024
63e60a5
chore: add option to see source code
Apr 24, 2024
55cffa7
chore: remove broken link
Apr 24, 2024
913dd15
fix: wip relative imports not working
mchoun Apr 25, 2024
73676e6
fix: skeleton for individual stories
mchoun Apr 25, 2024
6c942c7
fix: add individual story and cardfieldsprovider
mchoun Apr 26, 2024
bf37f04
chore: add custom hook story
mchoun Apr 26, 2024
f5a861a
chore(release): 8.3.0
mchoun Apr 29, 2024
38ef629
chore: final updates and clean up
mchoun Apr 29, 2024
3306470
fix: remove inputEvents and style for form component
mchoun Apr 29, 2024
557f591
fix: typo correction in readme
mchoun Apr 29, 2024
ffb7af8
fix: remove options from form component
mchoun Apr 29, 2024
1c042da
Merge pull request #433 from paypal/hotfix/form-type-correction
sebastianfdz Apr 29, 2024
35d434d
chore: update src/stories/payPalCardFields/code.ts
sebastianfdz Apr 29, 2024
840a7e3
chore: update src/stories/payPalCardFields/code.ts
sebastianfdz Apr 29, 2024
f334054
chore: update src/stories/payPalCardFields/payPalCardFieldsForm.stori…
sebastianfdz Apr 29, 2024
d77745a
chore: update src/stories/payPalCardFields/payPalCardFieldsIndividual…
sebastianfdz Apr 29, 2024
c2cf470
chore: update src/stories/payPalCardFields/payPalCardFieldsIndividual…
sebastianfdz Apr 29, 2024
953a298
chore: update src/stories/payPalCardFields/code.ts
sebastianfdz Apr 29, 2024
e7830b4
chore: update src/stories/payPalCardFields/payPalCardFieldsForm.stori…
sebastianfdz Apr 29, 2024
8914e67
chore: update src/components/cardFields/PayPalCardFieldsProvider.tsx
sebastianfdz Apr 29, 2024
38cc22f
chore: remove cliet token references and fix lint issues
Apr 29, 2024
8fa2294
fix: prettier
Apr 29, 2024
1a5eeac
chore: reorder stories
Apr 29, 2024
bfc6f83
chore: remove decorator in favor of wrapping each componing in the pr…
Apr 29, 2024
066a63e
Merge pull request #432 from paypal/docs/add-storybook-for-form
mchoun Apr 30, 2024
672a48d
refactor: simplify template literals in types definition (#437)
ukrainer May 29, 2024
99dae1e
move react-paypal-js into packages folder
Jun 6, 2024
58384eb
Merge branch 'merge-in-react' into feature/merge-react
Jun 6, 2024
a324143
chore: migrate react-paypal-js to packages
Jun 6, 2024
889aada
chore: update package-lock
Jun 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/react-paypal-js/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/*
scripts/*
storybook-static/*
57 changes: 57 additions & 0 deletions packages/react-paypal-js/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"env": {
"browser": true,
"es2020": true,
"node": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"globals": {
"page": "readonly"
},
"ignorePatterns": ["dist/*.js"],
"settings": {
"react": {
"version": "16.3"
}
},
"rules": {
"react/prop-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"curly": "warn",
"eqeqeq": "warn",
"import/order": [
1,
{
"groups": [
"external",
"builtin",
["internal", "sibling", "parent"],
"index",
"type",
"object"
],
"newlines-between": "always"
}
]
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": ["error"]
}
}
]
}
2 changes: 2 additions & 0 deletions packages/react-paypal-js/.github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Owner for everything in the repo
* @paypal/checkout-sdk
87 changes: 87 additions & 0 deletions packages/react-paypal-js/.github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: 🐞 Bug report
description: Report a bug with react-paypal-js.
title: "[BUG]: "
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues.
required: true
- type: textarea
attributes:
label: 🐞 Describe the Bug
description: |
A clear and concise description of what the bug is.
validations:
required: false
- type: textarea
attributes:
label: 😕 Current Behavior
description: |
A clear and concise description of what is happening. Please include console logs during the time of the issue, especially error messages.
placeholder: |
When I do <X>, <Y> happens and I see the error message attached below:
```...```
validations:
required: false
- type: textarea
attributes:
label: 🤔 Expected Behavior
description: A clear and concise description of what you expected to happen.
placeholder: When I do <X>, <Z> should happen instead.
validations:
required: false
- type: textarea
attributes:
label: 🔬 Minimal Reproduction
description: Describe steps to reproduce. If possible, please, share a link with a minimal reproduction.
placeholder: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
render: markdown
validations:
required: false
- type: textarea
attributes:
label: 🌍 Environment
description: |
Provide version numbers for the following components:
value: |
| Software | Version(s) |
| ---------------- | ---------- |
| react-paypal-js | |
| Browser | |
| Operating System | |
render: markdown
validations:
required: false
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)
options:
- label: I agree to follow this project's Code of Conduct
validations:
required: true
- type: textarea
attributes:
label: ➕ Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
validations:
required: false
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 📖 Documentation Improvement
description: Suggest improvements to our documentation
title: "[DOCS]:"
labels: [Documentation]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this documentation improvement request!
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue realated to this already exists.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Documentation Link
description: Add a link to the page which needs improvement (if relevant)
validations:
required: false
- type: textarea
attributes:
label: Describe the problem
description: Is the documentation missing? Or is it confusing? Why is it confusing?
validations:
required: false
- type: textarea
attributes:
label: Describe the improvement
description: A clear and concise description of the improvement.
validations:
required: false
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
validations:
required: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 🚀 Feature request
description: Suggest an idea to us!
title: "[FEATURE]: "
labels: [Feature]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to request a feature for us!
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue related to this feature request already exists.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe.
description: A clear and concise description of what the problem is.
placeholder: |
I wish I could use this to do [...]
OR
I'm always frustrated when [...]
validations:
required: false
- type: textarea
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: false
- type: textarea
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: false
- type: textarea
attributes:
label: ➕ Anything else?
description: Add any other context, code examples, or references to existing implementations about the feature request here.
validations:
required: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Close stale issues"
on:
schedule:
- cron: "30 1 * * *"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 45
days-before-close: 5
exempt-issue-labels: "awaiting-approval,work-in-progress"
stale-issue-message: >
This issue has been automatically marked as stale.
**If this issue is still affecting you, please leave any comment** (for example, "bump"), and we'll keep it open.
We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
stale-pr-message: >
This pull request has been automatically marked as stale.
**If this pull request is still relevant, please leave any comment** (for example, "bump"), and we'll keep it open.
We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.
close-issue-message: >
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!
close-pr-message: >
Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you!
37 changes: 37 additions & 0 deletions packages/react-paypal-js/.github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "publish to npm"
on: workflow_dispatch
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
token: ${{ secrets.ACCESS_TOKEN }}
ref: ${{github.event.pull_request.head.sha}}
fetch-depth: 0

- name: 🤝 Set Node version from .nvmrc
run: echo NVMRC=`cat .nvmrc` >> $GITHUB_ENV

- name: ⎔ Setup node
# sets up the .npmrc file to publish to npm
uses: actions/setup-node@v2
with:
node-version: ${{ env.NVMRC }}
registry-url: "https://registry.npmjs.org"

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false

- name: Configure git user
run: |
git config --global user.email ${{ github.actor }}@users.noreply.github.com
git config --global user.name ${{ github.actor }}

- name: ▶️ Run release
run: npm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36 changes: 36 additions & 0 deletions packages/react-paypal-js/.github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Deploy Storybook to Github Pages"

on:
push:
branches:
- main
paths: ["src/**", ".storybook/**", "README.md"]

jobs:
ci:
runs-on: ubuntu-latest

steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.sha}}
fetch-depth: 0

- name: 🤝 Set Node version from .nvmrc
run: echo NVMRC=`cat .nvmrc` >> $GITHUB_ENV

- name: ⎔ Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ env.NVMRC }}

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false

- name: ▶️ Deploy Storybook
run: npm run deploy-storybook -- --ci
env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
39 changes: 39 additions & 0 deletions packages/react-paypal-js/.github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: validate
on:
# run on push but only for the main branch
push:
branches:
- main
# run for every pull request
pull_request: {}
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.sha}}
fetch-depth: 0

- name: 🤝 Set Node version from .nvmrc
run: echo NVMRC=`cat .nvmrc` >> $GITHUB_ENV

- name: ⎔ Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ env.NVMRC }}

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false

- name: ▶️ Run validate script
run: npm run validate

- name: 👕 Lint commit messages
uses: wagoid/commitlint-github-action@v4

- name: ⬆️ Upload coverage report
uses: codecov/codecov-action@v2
7 changes: 7 additions & 0 deletions packages/react-paypal-js/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage
dist
storybook-static

node_modules
.DS_Store
yarn.lock
1 change: 1 addition & 0 deletions packages/react-paypal-js/.husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
Loading
Loading