@commmerce/app-bridge 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Connects an app embedded in the Commmerce admin (in an iframe) to the admin around it: admin-level toasts and
|
|
4
4
|
modals, the save bar, a loading bar, the resource picker, the admin's address, and session tokens for your backend.
|
|
5
5
|
|
|
6
|
-
Docs: https://commmerce.com/
|
|
6
|
+
Docs: https://commmerce.com/commmerceui/#apps--app-bridge
|
|
7
7
|
|
|
8
8
|
## In your app (inside the iframe)
|
|
9
9
|
|
|
10
10
|
```js
|
|
11
11
|
import { createApp } from '@commmerce/app-bridge';
|
|
12
12
|
// or, without a build step, pinned to a version:
|
|
13
|
-
// import { createApp } from 'https://commmerce.com/
|
|
13
|
+
// import { createApp } from 'https://commmerce.com/commmerceui/v/<version>/app-bridge.js';
|
|
14
14
|
|
|
15
15
|
// ADMIN_ORIGIN, from your app settings (render it into the page from your server): 'https://*.commmerce.com'
|
|
16
16
|
// (any Commmerce admin on a subdomain; recommended) or one exact origin.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commmerce/app-bridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Connects an app embedded in the Commmerce admin to the admin: toasts, modals, navigation, save bar, resource picker, loading bar and session tokens.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"commmerce",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"embedded-app"
|
|
11
11
|
],
|
|
12
12
|
"author": "Commmerce",
|
|
13
|
-
"homepage": "https://commmerce.com/
|
|
13
|
+
"homepage": "https://commmerce.com/commmerceui/",
|
|
14
14
|
"bugs": {
|
|
15
15
|
"email": "support@commmerce.com"
|
|
16
16
|
},
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"test": "vitest run"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@commmerce/ui": "1.
|
|
46
|
+
"@commmerce/ui": "1.1.0",
|
|
47
47
|
"@vitest/browser": "^2.1.8",
|
|
48
48
|
"playwright": "^1.49.0"
|
|
49
49
|
}
|