Krzysztof Wolski
bb3396dde6
Permission check for the protected handler ( #161 )
...
* Permission check for the protected handler
* Add tests
2023-01-25 12:00:22 +01:00
Lukasz Ostrowski
6ffaba2dab
Allow setting initial theme from constructor in AppBridge ( #162 )
...
* Allow passing initial theme value, change initial notifyOnReady
* Update doc
2023-01-24 19:21:05 +01:00
Krzysztof Wolski
51284efa00
Handle missing encryption key for the EncryptedMetadataManager ( #159 )
...
* Handle missing encryption key for the EncryptedMetadataManager
* Fancy up the documentation
* Throw an error instead of process exit
2023-01-23 15:39:42 +01:00
Krzysztof Wolski
b84049246b
Use b64url and fix incoming data validation ( #156 )
2023-01-23 09:35:31 +01:00
Adrian Pilarczyk
db1cd13919
feat: 🏷️ add handle_taxes permission type ( #153 )
2023-01-19 12:02:46 +01:00
Lukasz Ostrowski
67cded2e2a
Add optional URL protection to createRegisterHandler ( #148 )
...
* validateAllowSaleorUrls impl
* Implement in handler and add test
* update codeowners
* Apply suggestions from code review
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* Rename param
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2023-01-13 17:29:38 +01:00
Krzysztof Wolski
8dccb00edd
Fix CloudAPL response parsing ( #149 )
...
* Fix CloudAPL response parsing
* Mock signature fetch
2023-01-13 16:35:16 +01:00
Krzysztof Wolski
bc622dd3e1
Rename api url field in the Cloud APL ( #146 )
2023-01-12 16:13:27 +01:00
Krzysztof Wolski
c4fa6a1c05
Rename apiUrl to saleorApiUrl for consistency ( #144 )
2023-01-12 13:39:49 +01:00
Krzysztof Wolski
62bdb80385
Implement APL 2.0 ( #143 )
...
* Implement APL 2.0
* Rename RestAPL to SaleorCloud APL
* Add mapping helper
* Modify Saleor APL documentation
* Update rest of the docs
* Update the node version in actions
* Update fetch mock
* Remove node-fetch pkg
* Remove console log
* Update test after the rebase
2023-01-11 16:55:10 +01:00
Krzysztof Wolski
58244a465f
Restrict VercelAPL reinstallations to the same domain ( #141 )
2022-12-19 13:44:08 +01:00
Lukasz Ostrowski
f612da9035
Add authenticated fetch ( #138 )
...
* Add authenticated fetch
* Add tests
* Update vitest
* setup node-fetch
* update lockfle
* change to global.fetch
* add mock fetch
* Change window.fetch to global.fetch
2022-12-12 11:47:23 +01:00
Krzysztof Wolski
e73b792496
Check app id during the registration ( #136 )
...
* Check the App ID before saving the auth data
* Update the test
2022-12-06 18:26:14 +01:00
Lukasz Ostrowski
95eac760ca
Add action that informs Dashboard that AppBridge is ready ( #129 )
...
* Add action that informs Dashboard that AppBridge is ready
* Allow AppBridge to disable automated notifyReady event
* Remove unused strategy field from RoutePropagator
* Apply suggestions from code review
Co-authored-by: Dawid <tarasiukdawid@gmail.com>
Co-authored-by: Dawid <tarasiukdawid@gmail.com>
2022-12-05 17:17:17 +01:00
Lukasz Ostrowski
b39081ed9a
Change AppBridge interval to timeout ( #128 )
2022-12-02 16:08:39 +01:00
Lukasz Ostrowski
063e56f345
Update app-bridge.ts ( #127 )
2022-12-01 10:17:02 +01:00
Krzysztof Wolski
a0a19550c2
Add protected handlers for next ( #121 )
...
* Add protected handlers for next
* Remove unneeded awaits
2022-11-28 10:04:26 +01:00
Lukasz Ostrowski
ddd65dabf1
Add saleorApiUrl state param to AppBridge ( #114 )
...
* Add saleorApiUrl state param to AppBridge
* Apply payload verification check based on full api endpoint url
* Remove deprecation info
* Check if either domain or saleorApiUrl is provided
2022-11-23 10:08:04 +01:00
Lukasz Ostrowski
6fbf692a44
Add doc about SaleorAsyncWebhook ( #109 )
...
* Add doc about SaleorAsyncWebhook
* Apply suggestions from code review
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* Update docs/saleor-async-webhook.md
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2022-11-22 11:46:05 +01:00
Lukasz Ostrowski
607fe73569
Update build config ( #118 )
...
* Ensure peer deps are excluded
* Release 0.20.1-0
* Change next router import to fix the build
* Release 0.20.1-1
* Restore releaseit config
2022-11-22 09:52:21 +01:00
Lukasz Ostrowski
b9aa9008e7
Add REST APL ( #115 )
...
* Add RestAPL
* Add docs
2022-11-21 11:32:36 +01:00
Lukasz Ostrowski
b4e0a053cb
Add routing changing actions and RoutePropagator ( #110 )
2022-11-21 11:32:18 +01:00
Krzysztof Wolski
83ed6719d5
subscriptionQueryAst or query argument has to be specified for the event subscription ( #107 )
2022-11-05 10:35:01 +01:00
Krzysztof Wolski
33d7666c7d
Improve debug messages for async webhook handler ( #105 )
2022-11-03 19:44:54 +01:00
Krzysztof Wolski
e439438d8f
Add functions to process the Saleor webhooks ( #100 )
...
* Add functions to process the saleor webhooks
Co-authored-by: Lukasz Ostrowski <lukasz.ostrowski@saleor.io>
2022-11-03 13:05:28 +01:00
Krzysztof Wolski
6e389db9be
Remove variables from the env if are already existing ( #103 )
2022-11-02 14:18:27 +01:00
Lukasz Ostrowski
ff49281123
Change behavior when FileAPL reads file that doesnt exist to fallback value ( #96 )
2022-10-24 16:11:15 +02:00
Krzysztof Wolski
6fb103cb07
Add encrypted metadata manager ( #84 )
2022-10-18 13:38:00 +02:00
Krzysztof Żuraw
d7ccde30ee
feat: add getLayout to return type of withAuthorization ( #82 )
2022-10-13 09:22:49 +02:00
Krzysztof Wolski
bec148e696
Add Upstash APL ( #78 )
2022-10-12 15:13:57 +02:00
Krzysztof Wolski
be79af2d63
Add metadata manager ( #73 )
...
* Add metadata manager
2022-10-12 13:28:00 +02:00
Lukasz Ostrowski
bb0786a544
Fix checking APL configuration state ( #79 )
2022-10-12 10:08:32 +02:00
Lukasz Ostrowski
aa4d55b83d
Disable token iss validation ( #75 )
...
* Disable token iss validation
* Disable VercelApl constructor validation
2022-10-11 16:09:29 +02:00
Lukasz Ostrowski
a839314f08
Add central SaleorApp instance ( #71 )
...
* Add SaleorApp class
* Add middleware and tests
* Move APL validation to APL
* Fix test
* Add prepush hook
* Add better error for missing vercel envs
* Add test
2022-10-11 09:40:08 +02:00
Lukasz Ostrowski
ff0e25f8dd
Fix importing graphQL printer which failed inferWebhooks ( #72 )
2022-10-10 11:56:23 +02:00
Lukasz Ostrowski
1504036698
Fix export. Add async manifest factory ( #67 )
2022-10-05 15:07:07 +02:00
Lukasz Ostrowski
864ca16f78
Auth features ( #64 )
...
* Add useDashboardToken to app bridge module
* Add authorization HOC
* Fixes
2022-10-05 13:12:19 +02:00
Lukasz Ostrowski
0352356fd3
Add Handler factories ( #61 )
...
* Add createManifestHandler
* Add register handler factory
* Add docs to handlers factory
* Improve tsup configuration (select entry points)
* Reexport symbols from index
* Improve tests
2022-09-21 11:25:01 +02:00
Lukasz Ostrowski
126e949366
Detect locale param from URL in AppBridge ( #58 )
...
* Detect locale param from URL in AppBridge
* Add docs
2022-09-14 14:21:53 +02:00
Lukasz Ostrowski
d4670b048c
Fix tests and strong-type locales ( #57 )
...
* Add new event type
* Add state handling for locale change
* Add strongly typed language codes
* fix tests
2022-09-13 15:15:52 +02:00
Lukasz Ostrowski
cc18c3deac
Add AppBridgeProvider and events factory ( #51 )
...
* Add events factory
* Add AppBridgeProvider
* Rewrite useAppBridge, add tests
2022-09-13 12:00:02 +02:00
Lukasz Ostrowski
ac6900f35f
Add support for locale change ( #55 )
...
* Add new event type
* Add state handling for locale change
2022-09-13 11:59:30 +02:00
Krzysztof Wolski
a50b055c7c
Fix Vercel APL set method + add tests for it ( #52 )
...
* Fix Vercel APL set method + add tests for it
2022-09-07 17:33:48 +02:00
Lukasz Ostrowski
423495970b
Add additional test and fix debug message
2022-09-06 16:02:24 +02:00
Krzysztof Wolski
027b239114
Use APL debug util
2022-09-05 11:09:06 +02:00
Krzysztof Wolski
668b96ac4c
Update names to kebab case
2022-09-05 10:31:31 +02:00
Krzysztof Wolski
2fc57718a6
Code review changes
2022-09-05 10:18:12 +02:00
Krzysztof Wolski
3b81151cca
Rename helper function
2022-09-05 10:18:12 +02:00
Krzysztof Wolski
ace6efbdba
Change default file name for FileAPL
2022-09-05 10:18:12 +02:00
Krzysztof Wolski
6adabd1cba
Introduce debug namespaces
2022-09-05 10:18:12 +02:00