Commit graph

337 commits

Author SHA1 Message Date
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
b32f1ff104 Release 0.27.0 2023-01-23 15:42:59 +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
5a4d316228
Update the codeowners file (#160) 2023-01-23 14:41:15 +01:00
Krzysztof Wolski
75eacaf49c
Bump vitest version (#157) 2023-01-23 09:35:49 +01:00
Krzysztof Wolski
b84049246b
Use b64url and fix incoming data validation (#156) 2023-01-23 09:35:31 +01:00
Lukasz Ostrowski
74e3f40ca5
Update doc for register handler (#151) 2023-01-19 14:17:36 +01:00
Lukasz Ostrowski
62a9c2b11f Release 0.26.1 2023-01-19 12:03:47 +01:00
Adrian Pilarczyk
db1cd13919
feat: 🏷️ add handle_taxes permission type (#153) 2023-01-19 12:02:46 +01:00
Krzysztof Wolski
32c81446d1 Release 0.26.0 2023-01-13 17:33:25 +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
715eb6abf0 Release 0.26.0-4 2023-01-13 16:37:00 +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
99d7ac58e9 Release 0.26.0-3 2023-01-12 16:13:58 +01:00
Krzysztof Wolski
bc622dd3e1
Rename api url field in the Cloud APL (#146) 2023-01-12 16:13:27 +01:00
Krzysztof Wolski
887751a51e Release 0.26.0-2 2023-01-12 13:50:39 +01:00
Krzysztof Wolski
1b5a152d1e
Export verify jwt (#145) 2023-01-12 13:49:59 +01:00
Krzysztof Wolski
9c344c1fcc Release 0.26.0-1 2023-01-12 13:41:34 +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
fcc7bbba1e Release 0.25.1 2023-01-11 12:56:11 +01:00
Krzysztof Wolski
58244a465f
Restrict VercelAPL reinstallations to the same domain (#141) 2022-12-19 13:44:08 +01:00
Lukasz Ostrowski
b91bbf3d4e Release 0.25.0 2022-12-12 11:53:21 +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
Krzysztof Wolski
52c31f7d30
Add protected handler docs (#135) 2022-12-06 18:25:56 +01:00
Lukasz Ostrowski
f4bfec2b15 Release 0.24.0 2022-12-06 10:22:29 +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
7d7ff1e562 Release 0.24.0-0 2022-11-29 18:44:56 +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
d8b22bf583 Release 0.23.0 2022-11-23 17:45:11 +01:00
Lukasz Ostrowski
0d072d325c Fix npm bundle 2022-11-23 17:44:17 +01:00
Lukasz Ostrowski
a013457e02 Release 0.22.0 2022-11-23 17:40:51 +01:00
Lukasz Ostrowski
f4b0128175
Add links to docs from main readme (#123)
* Add links to docs from main readme

* Update README.md

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2022-11-23 14:58:38 +01:00
Lukasz Ostrowski
49b9c6e75b Release 0.21.0 2022-11-23 14:26:24 +01:00
Lukasz Ostrowski
0272a792c1
Copy readme on build (#119)
* test

* copy readme.md to dist folder
2022-11-23 13:17:17 +01:00
Lukasz Ostrowski
41fbca17f0 Release 0.21.0-0 2022-11-23 10:12:18 +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
6799c00098 Release 0.20.1 2022-11-22 09:53:11 +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
030a65424c Release 0.20.0 2022-11-21 16:33:46 +01:00
Lukasz Ostrowski
9061c76df7
Install lint-staged in devDependency, so it doesnt require internet on precommit (#111) 2022-11-21 15:29:50 +01:00
Lukasz Ostrowski
b2acf676bc Release 0.20.0-0 2022-11-21 12:54:03 +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
Łukasz Ostrowski
4ba2ada75c Release 0.19.0 2022-11-05 10:36:19 +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