@shopify/shopify-app-remix 3.1.0 → 3.3.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 +56 -12
- package/dist/cjs/server/authenticate/admin/authenticate.js +2 -0
- package/dist/cjs/server/authenticate/admin/authenticate.js.map +1 -1
- package/dist/cjs/server/authenticate/admin/billing/create-usage-record.js +36 -0
- package/dist/cjs/server/authenticate/admin/billing/create-usage-record.js.map +1 -0
- package/dist/cjs/server/authenticate/admin/helpers/redirect.js +21 -5
- package/dist/cjs/server/authenticate/admin/helpers/redirect.js.map +1 -1
- package/dist/cjs/server/authenticate/admin/scope/client/fetch-scopes-details.js +26 -0
- package/dist/cjs/server/authenticate/admin/scope/client/fetch-scopes-details.js.map +1 -0
- package/dist/cjs/server/authenticate/admin/scope/client/revoke-scopes.js +1 -1
- package/dist/cjs/server/authenticate/admin/scope/client/revoke-scopes.js.map +1 -1
- package/dist/cjs/server/authenticate/admin/scope/query.js +13 -21
- package/dist/cjs/server/authenticate/admin/scope/query.js.map +1 -1
- package/dist/cjs/server/authenticate/admin/scope/request.js +4 -7
- package/dist/cjs/server/authenticate/admin/scope/request.js.map +1 -1
- package/dist/cjs/server/authenticate/admin/scope/revoke.js +4 -5
- package/dist/cjs/server/authenticate/admin/scope/revoke.js.map +1 -1
- package/dist/cjs/server/index.js +4 -0
- package/dist/cjs/server/index.js.map +1 -1
- package/dist/cjs/server/shopify-app.js +5 -1
- package/dist/cjs/server/shopify-app.js.map +1 -1
- package/dist/cjs/server/test-helpers/index.js +8 -0
- package/dist/cjs/server/test-helpers/index.js.map +1 -0
- package/dist/cjs/server/test-helpers/test-config.js +33 -0
- package/dist/cjs/server/test-helpers/test-config.js.map +1 -0
- package/dist/cjs/server/version.js +1 -1
- package/dist/cjs/session-storage/shopify-app-session-storage-memory/dist/esm/memory.js +29 -0
- package/dist/cjs/session-storage/shopify-app-session-storage-memory/dist/esm/memory.js.map +1 -0
- package/dist/esm/server/authenticate/admin/authenticate.mjs +2 -0
- package/dist/esm/server/authenticate/admin/authenticate.mjs.map +1 -1
- package/dist/esm/server/authenticate/admin/billing/create-usage-record.mjs +34 -0
- package/dist/esm/server/authenticate/admin/billing/create-usage-record.mjs.map +1 -0
- package/dist/esm/server/authenticate/admin/helpers/redirect.mjs +21 -5
- package/dist/esm/server/authenticate/admin/helpers/redirect.mjs.map +1 -1
- package/dist/esm/server/authenticate/admin/scope/client/fetch-scopes-details.mjs +24 -0
- package/dist/esm/server/authenticate/admin/scope/client/fetch-scopes-details.mjs.map +1 -0
- package/dist/esm/server/authenticate/admin/scope/client/revoke-scopes.mjs +1 -1
- package/dist/esm/server/authenticate/admin/scope/client/revoke-scopes.mjs.map +1 -1
- package/dist/esm/server/authenticate/admin/scope/query.mjs +13 -21
- package/dist/esm/server/authenticate/admin/scope/query.mjs.map +1 -1
- package/dist/esm/server/authenticate/admin/scope/request.mjs +4 -7
- package/dist/esm/server/authenticate/admin/scope/request.mjs.map +1 -1
- package/dist/esm/server/authenticate/admin/scope/revoke.mjs +4 -5
- package/dist/esm/server/authenticate/admin/scope/revoke.mjs.map +1 -1
- package/dist/esm/server/index.mjs +1 -1
- package/dist/esm/server/shopify-app.mjs +5 -1
- package/dist/esm/server/shopify-app.mjs.map +1 -1
- package/dist/esm/server/test-helpers/index.mjs +2 -0
- package/dist/esm/server/test-helpers/index.mjs.map +1 -0
- package/dist/esm/server/test-helpers/test-config.mjs +31 -0
- package/dist/esm/server/test-helpers/test-config.mjs.map +1 -0
- package/dist/esm/server/version.mjs +1 -1
- package/dist/esm/session-storage/shopify-app-session-storage-memory/dist/esm/memory.mjs +27 -0
- package/dist/esm/session-storage/shopify-app-session-storage-memory/dist/esm/memory.mjs.map +1 -0
- package/dist/ts/server/authenticate/admin/authenticate.d.ts.map +1 -1
- package/dist/ts/server/authenticate/admin/billing/create-usage-record.d.ts +5 -0
- package/dist/ts/server/authenticate/admin/billing/create-usage-record.d.ts.map +1 -0
- package/dist/ts/server/authenticate/admin/billing/index.d.ts +1 -0
- package/dist/ts/server/authenticate/admin/billing/index.d.ts.map +1 -1
- package/dist/ts/server/authenticate/admin/billing/types.d.ts +138 -2
- package/dist/ts/server/authenticate/admin/billing/types.d.ts.map +1 -1
- package/dist/ts/server/authenticate/admin/helpers/redirect.d.ts.map +1 -1
- package/dist/ts/server/authenticate/admin/scope/client/{fetch-scopes-information.d.ts → fetch-scopes-details.d.ts} +3 -3
- package/dist/ts/server/authenticate/admin/scope/client/fetch-scopes-details.d.ts.map +1 -0
- package/dist/ts/server/authenticate/admin/scope/query.d.ts +4 -4
- package/dist/ts/server/authenticate/admin/scope/query.d.ts.map +1 -1
- package/dist/ts/server/authenticate/admin/scope/request.d.ts.map +1 -1
- package/dist/ts/server/authenticate/admin/scope/revoke.d.ts +3 -1
- package/dist/ts/server/authenticate/admin/scope/revoke.d.ts.map +1 -1
- package/dist/ts/server/authenticate/admin/scope/types.d.ts +6 -9
- package/dist/ts/server/authenticate/admin/scope/types.d.ts.map +1 -1
- package/dist/ts/server/authenticate/admin/types.d.ts +1 -1
- package/dist/ts/server/authenticate/admin/types.d.ts.map +1 -1
- package/dist/ts/server/index.d.ts +2 -1
- package/dist/ts/server/index.d.ts.map +1 -1
- package/dist/ts/server/shopify-app.d.ts.map +1 -1
- package/dist/ts/server/test-helpers/index.d.ts +2 -0
- package/dist/ts/server/test-helpers/index.d.ts.map +1 -0
- package/dist/ts/server/test-helpers/test-config.d.ts +36 -0
- package/dist/ts/server/test-helpers/test-config.d.ts.map +1 -0
- package/dist/ts/server/types-contexts.d.ts +4 -1
- package/dist/ts/server/types-contexts.d.ts.map +1 -1
- package/dist/ts/server/types.d.ts +1 -1
- package/dist/ts/server/types.d.ts.map +1 -1
- package/dist/ts/server/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +34 -29
- package/dist/cjs/server/authenticate/admin/scope/client/fetch-scopes-information.js +0 -23
- package/dist/cjs/server/authenticate/admin/scope/client/fetch-scopes-information.js.map +0 -1
- package/dist/esm/server/authenticate/admin/scope/client/fetch-scopes-information.mjs +0 -21
- package/dist/esm/server/authenticate/admin/scope/client/fetch-scopes-information.mjs.map +0 -1
- package/dist/ts/server/authenticate/admin/scope/client/fetch-scopes-information.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/shopify-app-remix",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Shopify Remix - to simplify the building of Shopify Apps with Remix",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,21 +39,14 @@
|
|
|
39
39
|
"require": "./dist/cjs/react/index.js",
|
|
40
40
|
"import": "./dist/esm/react/index.mjs",
|
|
41
41
|
"default": "./dist/cjs/react/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./test-helpers": {
|
|
44
|
+
"types": "./dist/ts/server/test-helpers/index.d.ts",
|
|
45
|
+
"require": "./dist/cjs/server/test-helpers/index.js",
|
|
46
|
+
"import": "./dist/esm/server/test-helpers/index.mjs",
|
|
47
|
+
"default": "./dist/cjs/server/test-helpers/index.js"
|
|
42
48
|
}
|
|
43
49
|
},
|
|
44
|
-
"scripts": {
|
|
45
|
-
"build-docs": "sh docs/build-docs.sh",
|
|
46
|
-
"validate-docs": "sh ./docs/build-docs.sh isTest && yarn compare-docs",
|
|
47
|
-
"lint": "eslint . --ext .js,.ts",
|
|
48
|
-
"build": "yarn run rollup && yarn tsc -p ./tsconfig.build.json",
|
|
49
|
-
"test": "jest",
|
|
50
|
-
"test:ci": "yarn test",
|
|
51
|
-
"rollup": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
52
|
-
"clean": "rimraf .rollup.cache dist",
|
|
53
|
-
"changeset": "changeset",
|
|
54
|
-
"version": "changeset version",
|
|
55
|
-
"release": "yarn build && changeset publish"
|
|
56
|
-
},
|
|
57
50
|
"publishConfig": {
|
|
58
51
|
"access": "public"
|
|
59
52
|
},
|
|
@@ -70,33 +63,31 @@
|
|
|
70
63
|
"Storefront API"
|
|
71
64
|
],
|
|
72
65
|
"devDependencies": {
|
|
73
|
-
"@remix-run/node": "^2.
|
|
74
|
-
"@remix-run/react": "^2.
|
|
66
|
+
"@remix-run/node": "^2.11.2",
|
|
67
|
+
"@remix-run/react": "^2.11.2",
|
|
68
|
+
"@remix-run/testing": "^2.11.2",
|
|
75
69
|
"@shopify/generate-docs": "^0.16.2",
|
|
76
70
|
"@shopify/polaris": "^12.18.0",
|
|
77
71
|
"@shopify/react-testing": "^5.4.0",
|
|
78
|
-
"@shopify/shopify-app-session-storage-memory": "^4.0.
|
|
72
|
+
"@shopify/shopify-app-session-storage-memory": "^4.0.5",
|
|
79
73
|
"@types/jsonwebtoken": "^9.0.5",
|
|
80
74
|
"@types/react": "^18.3.3",
|
|
81
75
|
"@types/semver": "^7.5.8",
|
|
82
76
|
"jest-fetch-mock": "^3.0.3",
|
|
83
|
-
"jsonwebtoken": "^9.0.2"
|
|
84
|
-
"react": "^18.3.1",
|
|
85
|
-
"react-dom": "^18.3.1",
|
|
86
|
-
"react-router-dom": "^6.25.0"
|
|
77
|
+
"jsonwebtoken": "^9.0.2"
|
|
87
78
|
},
|
|
88
79
|
"dependencies": {
|
|
89
80
|
"@remix-run/server-runtime": "^2.5.1",
|
|
90
|
-
"@shopify/admin-api-client": "^1.0.
|
|
91
|
-
"@shopify/shopify-api": "^11.
|
|
92
|
-
"@shopify/shopify-app-session-storage": "^3.0.
|
|
93
|
-
"@shopify/storefront-api-client": "^1.0.
|
|
94
|
-
"isbot": "^5.1.
|
|
81
|
+
"@shopify/admin-api-client": "^1.0.2",
|
|
82
|
+
"@shopify/shopify-api": "^11.4.0",
|
|
83
|
+
"@shopify/shopify-app-session-storage": "^3.0.5",
|
|
84
|
+
"@shopify/storefront-api-client": "^1.0.2",
|
|
85
|
+
"isbot": "^5.1.16",
|
|
95
86
|
"semver": "^7.6.2"
|
|
96
87
|
},
|
|
97
88
|
"peerDependencies": {
|
|
98
|
-
"@remix-run/react": "*",
|
|
99
89
|
"@remix-run/node": "*",
|
|
90
|
+
"@remix-run/react": "*",
|
|
100
91
|
"@shopify/polaris": "*",
|
|
101
92
|
"react": "*"
|
|
102
93
|
},
|
|
@@ -113,5 +104,19 @@
|
|
|
113
104
|
"!build/**/__tests__",
|
|
114
105
|
"!tsconfig.tsbuildinfo",
|
|
115
106
|
"!node_modules"
|
|
116
|
-
]
|
|
117
|
-
|
|
107
|
+
],
|
|
108
|
+
"scripts": {
|
|
109
|
+
"build-docs": "sh docs/build-docs.sh",
|
|
110
|
+
"validate-docs": "sh ./docs/build-docs.sh isTest && pnpm compare-docs",
|
|
111
|
+
"lint": "eslint . --ext .js,.ts",
|
|
112
|
+
"build": "pnpm rollup && pnpm tsc -p ./tsconfig.build.json",
|
|
113
|
+
"tsc": "tsc",
|
|
114
|
+
"test": "jest",
|
|
115
|
+
"test:ci": "pnpm test",
|
|
116
|
+
"rollup": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
117
|
+
"clean": "rimraf .rollup.cache dist",
|
|
118
|
+
"changeset": "changeset",
|
|
119
|
+
"version": "changeset version",
|
|
120
|
+
"release": "pnpm build && changeset publish"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const FETCH_SCOPE_INFORMATION_QUERY = `#graphql
|
|
4
|
-
query FetchAccessScopes{
|
|
5
|
-
app {
|
|
6
|
-
requestedAccessScopes {
|
|
7
|
-
handle
|
|
8
|
-
}
|
|
9
|
-
installation {
|
|
10
|
-
accessScopes {
|
|
11
|
-
handle
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}`;
|
|
16
|
-
async function fetchScopeInformation(admin) {
|
|
17
|
-
const fetchScopeInformationResult = await admin.graphql(FETCH_SCOPE_INFORMATION_QUERY);
|
|
18
|
-
const resultContent = await fetchScopeInformationResult.json();
|
|
19
|
-
return resultContent.data;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
exports.fetchScopeInformation = fetchScopeInformation;
|
|
23
|
-
//# sourceMappingURL=fetch-scopes-information.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-scopes-information.js","sources":["../../../../../../../../src/server/authenticate/admin/scope/client/fetch-scopes-information.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAkBA,MAAM,6BAA6B,GAAG,CAAA;;;;;;;;;;;;EAYpC,CAAC;AAEI,eAAe,qBAAqB,CACzC,KAAsB,EAAA;IAEtB,MAAM,2BAA2B,GAAG,MAAM,KAAK,CAAC,OAAO,CACrD,6BAA6B,CAC9B,CAAC;AAEF,IAAA,MAAM,aAAa,GAAG,MAAM,2BAA2B,CAAC,IAAI,EAAE,CAAC;IAC/D,OAAO,aAAa,CAAC,IAAI,CAAC;AAC5B;;;;"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const FETCH_SCOPE_INFORMATION_QUERY = `#graphql
|
|
2
|
-
query FetchAccessScopes{
|
|
3
|
-
app {
|
|
4
|
-
requestedAccessScopes {
|
|
5
|
-
handle
|
|
6
|
-
}
|
|
7
|
-
installation {
|
|
8
|
-
accessScopes {
|
|
9
|
-
handle
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}`;
|
|
14
|
-
async function fetchScopeInformation(admin) {
|
|
15
|
-
const fetchScopeInformationResult = await admin.graphql(FETCH_SCOPE_INFORMATION_QUERY);
|
|
16
|
-
const resultContent = await fetchScopeInformationResult.json();
|
|
17
|
-
return resultContent.data;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { fetchScopeInformation };
|
|
21
|
-
//# sourceMappingURL=fetch-scopes-information.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-scopes-information.mjs","sources":["../../../../../../../../src/server/authenticate/admin/scope/client/fetch-scopes-information.ts"],"sourcesContent":[null],"names":[],"mappings":"AAkBA,MAAM,6BAA6B,GAAG,CAAA;;;;;;;;;;;;EAYpC,CAAC;AAEI,eAAe,qBAAqB,CACzC,KAAsB,EAAA;IAEtB,MAAM,2BAA2B,GAAG,MAAM,KAAK,CAAC,OAAO,CACrD,6BAA6B,CAC9B,CAAC;AAEF,IAAA,MAAM,aAAa,GAAG,MAAM,2BAA2B,CAAC,IAAI,EAAE,CAAC;IAC/D,OAAO,aAAa,CAAC,IAAI,CAAC;AAC5B;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-scopes-information.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/authenticate/admin/scope/client/fetch-scopes-information.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAEpD,MAAM,WAAW,6BAA6B;IAC5C,GAAG,EAAE;QACH,qBAAqB,EAAE;YACrB,MAAM,EAAE,MAAM,CAAC;SAChB,EAAE,CAAC;QACJ,oBAAoB,EAAE;YACpB,MAAM,EAAE,MAAM,CAAC;SAChB,EAAE,CAAC;QACJ,YAAY,EAAE;YACZ,YAAY,EAAE;gBACZ,MAAM,EAAE,MAAM,CAAC;aAChB,EAAE,CAAC;SACL,CAAC;KACH,CAAC;CACH;AAgBD,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,eAAe,GACrB,OAAO,CAAC,6BAA6B,CAAC,CAOxC"}
|