@agnostack/next-shopify 1.15.0-beta.21 → 1.15.0-beta.22

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.15.0-beta.22](https://github.com/agnostack/next-shopify/compare/v1.15.0-beta.21...v1.15.0-beta.22) (2023-12-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * wip ([3909ac9](https://github.com/agnostack/next-shopify/commit/3909ac901df8adf3150509603f03c3a17a49c176))
7
+
1
8
  # [1.15.0-beta.21](https://github.com/agnostack/next-shopify/compare/v1.15.0-beta.20...v1.15.0-beta.21) (2023-12-08)
2
9
 
3
10
 
package/README.md CHANGED
@@ -11,11 +11,11 @@ yarn add @agnostack/next-shopify
11
11
 
12
12
  Inside of `next.config.js`, add the following:
13
13
  ```js
14
- const { withZendeskCLI } = require('@agnostack/next-shopify')
14
+ const { withShopify } = require('@agnostack/next-shopify')
15
15
 
16
16
  const manifestTemplate = require('./manifestTemplate.json')
17
17
 
18
- const nextConfig = withZendeskCLI({
18
+ const nextConfig = withShopify({
19
19
  zendesk: { manifestTemplate },
20
20
  })
21
21
 
@@ -24,11 +24,11 @@ const nextConfig = withZendeskCLI({
24
24
  Also, create an api route (`pages/api/apps.js`) containing the following:
25
25
  ```js
26
26
  import getConfig from 'next/config'
27
- import { zendeskCLIHandler } from '@agnostack/next-shopify'
27
+ import { withShopify } from '@agnostack/next-shopify'
28
28
 
29
29
  const { serverRuntimeConfig } = getConfig() ?? {}
30
30
 
31
- export default zendeskCLIHandler(serverRuntimeConfig)
31
+ export default withShopify(serverRuntimeConfig)
32
32
  ```
33
33
 
34
34
 
@@ -36,12 +36,13 @@ export default zendeskCLIHandler(serverRuntimeConfig)
36
36
 
37
37
  Inside of `next.config.js`, add the following:
38
38
  ```js
39
- const { withPlugins, withZendeskCLI } = require('@agnostack/next-shopify')
39
+ const { withPlugins } = require('@agnostack/next-plugins')
40
+ const { withShopify } = require('@agnostack/next-shopify')
40
41
 
41
42
  const manifest = require('./manifest.json')
42
43
 
43
44
  const nextPlugins = [{
44
- [withZendeskCLI]: {
45
+ [withShopify]: {
45
46
  manifestTemplate: manifest,
46
47
  /* NOTE: add optionale below
47
48
  apiRoute: '/api/my-custom-api-json-route', // (defaults to /api/apps)
@@ -81,11 +82,11 @@ const nextConfig = withPlugins({
81
82
  Also, create an api route (`pages/api/apps.js`) containing the following:
82
83
  ```js
83
84
  import getConfig from 'next/config'
84
- import { zendeskCLIHandler } from '@agnostack/next-shopify'
85
+ import { withShopify } from '@agnostack/next-shopify'
85
86
 
86
87
  const { publicRuntimeConfig } = getConfig() ?? {}
87
88
 
88
- export default zendeskCLIHandler(publicRuntimeConfig)
89
+ export default withShopify(publicRuntimeConfig)
89
90
  ```
90
91
 
91
92
 
@@ -1,6 +1,5 @@
1
1
  export * from '../shared';
2
2
  export * from '../verification';
3
- export * from '../plugins';
4
3
  export * from './handlers';
5
4
  export { getShopifyHelpers, prepareHeaders } from './utils';
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,OAAO,EACL,iBAAiB,EACjB,cAAc,EACf,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,OAAO,EACL,iBAAiB,EACjB,cAAc,EACf,MAAM,SAAS,CAAA"}
package/dist/lib/index.js CHANGED
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.prepareHeaders = exports.getShopifyHelpers = void 0;
18
18
  __exportStar(require("../shared"), exports);
19
19
  __exportStar(require("../verification"), exports);
20
- __exportStar(require("../plugins"), exports);
21
20
  __exportStar(require("./handlers"), exports);
22
21
  var utils_1 = require("./utils");
23
22
  Object.defineProperty(exports, "getShopifyHelpers", { enumerable: true, get: function () { return utils_1.getShopifyHelpers; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,kDAA+B;AAC/B,6CAA0B;AAC1B,6CAA0B;AAC1B,iCAGgB;AAFd,0GAAA,iBAAiB,OAAA;AACjB,uGAAA,cAAc,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,kDAA+B;AAC/B,6CAA0B;AAC1B,iCAGgB;AAFd,0GAAA,iBAAiB,OAAA;AACjB,uGAAA,cAAc,OAAA"}
@@ -1,6 +1,5 @@
1
1
  export * from '../shared';
2
2
  export * from '../verification';
3
- export * from '../plugins';
4
3
  export * from './handlers';
5
4
  export { getShopifyHelpers, prepareHeaders } from './utils';
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,OAAO,EACL,iBAAiB,EACjB,cAAc,EACf,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,OAAO,EACL,iBAAiB,EACjB,cAAc,EACf,MAAM,SAAS,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agnostack/next-shopify",
3
- "version": "1.15.0-beta.21",
3
+ "version": "1.15.0-beta.22",
4
4
  "author": "agnoStack Dev <developers@agnostack.com> (https://agnostack.com)",
5
5
  "owner": "agnoStack",
6
6
  "description": "Please contact agnoStack via info@agnostack.com for any questions",
@@ -16,19 +16,19 @@
16
16
  "agnostack"
17
17
  ],
18
18
  "license": "MIT",
19
- "main": "./dist/lib/index.js",
20
- "types": "./dist/lib/index.d.ts",
19
+ "main": "./dist/plugins/index.js",
20
+ "types": "./dist/plugins/index.d.ts",
21
21
  "exports": {
22
22
  ".": {
23
- "types": "./dist/lib/index.d.ts",
24
- "require": "./dist/lib/index.js",
25
- "default": "./dist/lib/index.js"
26
- },
27
- "./plugins": {
28
23
  "types": "./dist/plugins/index.d.ts",
29
24
  "require": "./dist/plugins/index.js",
30
25
  "default": "./dist/plugins/index.js"
31
26
  },
27
+ "./lib": {
28
+ "types": "./dist/lib/index.d.ts",
29
+ "require": "./dist/lib/index.js",
30
+ "import": "./dist/lib/index.js"
31
+ },
32
32
  "./react": {
33
33
  "types": "./dist/react/index.d.ts",
34
34
  "require": "./dist/react/index.js",