@shopify/cli 3.68.0 → 3.69.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.
Files changed (124) hide show
  1. package/dist/assets/graphiql/style.css +58 -0
  2. package/dist/assets/hydrogen/starter/CHANGELOG.md +19 -0
  3. package/dist/assets/hydrogen/starter/app/components/Aside.tsx +24 -1
  4. package/dist/assets/hydrogen/starter/app/components/Header.tsx +13 -6
  5. package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +5 -3
  6. package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +10 -25
  7. package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +3 -1
  8. package/dist/assets/hydrogen/starter/package.json +4 -4
  9. package/dist/{chokidar-4TKDAB27.js → chokidar-OESTCX4H.js} +571 -8
  10. package/dist/{chunk-BFQFJ7IZ.js → chunk-27ILOE3X.js} +93 -5
  11. package/dist/{chunk-G47SEBU3.js → chunk-2KS65IIG.js} +4 -4
  12. package/dist/{chunk-IL455HI5.js → chunk-2MYCKNTK.js} +3 -3
  13. package/dist/{chunk-GDKBDEZV.js → chunk-3ABJXNVW.js} +4 -4
  14. package/dist/{chunk-INEJACZ7.js → chunk-4N3RFONW.js} +3 -3
  15. package/dist/{chunk-RUR45G5U.js → chunk-5CWXBRLN.js} +3 -3
  16. package/dist/{chunk-QIBFYG6F.js → chunk-6LAVKC2D.js} +3 -3
  17. package/dist/{chunk-4H7GRGC6.js → chunk-6X6RXSOY.js} +3 -3
  18. package/dist/{chunk-MXZ6B3TP.js → chunk-6Y4AUHLY.js} +2 -2
  19. package/dist/{chunk-WJBW5QHV.js → chunk-7FIKIM5M.js} +2 -2
  20. package/dist/{chunk-HTDUPJH5.js → chunk-7HUDUSI4.js} +3 -3
  21. package/dist/{chunk-NCUKAORS.js → chunk-7ZKC5ILI.js} +9 -9
  22. package/dist/{chunk-LAPJDMM4.js → chunk-A3JXD7N7.js} +2 -2
  23. package/dist/{chunk-FKQTUQ3O.js → chunk-BSDFEZQG.js} +5 -5
  24. package/dist/{chunk-JAQZDU4S.js → chunk-C5PPIQTU.js} +2 -2
  25. package/dist/{chunk-XCGES3AJ.js → chunk-CKBSX6XG.js} +3 -3
  26. package/dist/{chunk-A3DV6VXO.js → chunk-E4UK3DDW.js} +2 -2
  27. package/dist/{chunk-CLB5CEKJ.js → chunk-ERVB6ERU.js} +3 -3
  28. package/dist/{chunk-DD5ULVKP.js → chunk-FCPMBTDR.js} +3 -3
  29. package/dist/{chunk-JJOZP7G6.js → chunk-FGJNGEQU.js} +3 -3
  30. package/dist/{chunk-WUA6LTEH.js → chunk-GZPZCHO4.js} +8 -8
  31. package/dist/{chunk-6IS7OFWG.js → chunk-M7RSCDR3.js} +5 -5
  32. package/dist/{chunk-ZJZ3SGOJ.js → chunk-MW2MPXIP.js} +2 -2
  33. package/dist/{chunk-F27QYMO7.js → chunk-MX4RJDBM.js} +591 -20
  34. package/dist/{chunk-ZFVK6EQX.js → chunk-NB4NLOEJ.js} +142 -703
  35. package/dist/{chunk-EUBA2XGP.js → chunk-NDBAW6KJ.js} +7 -7
  36. package/dist/{chunk-7PUJMPXN.js → chunk-OBGMH362.js} +142 -860
  37. package/dist/{chunk-OBX5DIH4.js → chunk-OFXRW54F.js} +4 -4
  38. package/dist/{chunk-NZDBLGNM.js → chunk-P7JUHQKL.js} +1 -2
  39. package/dist/{chunk-VVY6VJR6.js → chunk-QNT2C5AG.js} +3 -3
  40. package/dist/{chunk-C4FBYE7F.js → chunk-STUT2ORI.js} +4 -4
  41. package/dist/{chunk-YKH4ILAB.js → chunk-T5NVZ7CN.js} +76 -77
  42. package/dist/{chunk-JR6ZN4TY.js → chunk-TCFVEGET.js} +5 -5
  43. package/dist/{chunk-UCYJX4VB.js → chunk-TW5OG5SK.js} +2 -2
  44. package/dist/{chunk-E2OAY724.js → chunk-UBD3BPIF.js} +2 -2
  45. package/dist/{chunk-DMM6NVLV.js → chunk-VOAOZJT3.js} +4 -4
  46. package/dist/{chunk-5VZ6BLBM.js → chunk-VU6JM57U.js} +3 -3
  47. package/dist/{chunk-D72SCNZ2.js → chunk-XQBHX6FC.js} +139 -37
  48. package/dist/{chunk-FIAUTHMT.js → chunk-YC5ZCSKV.js} +2 -2
  49. package/dist/{chunk-JAH3NBCG.js → chunk-YYE7F3MT.js} +4 -4
  50. package/dist/cli/commands/auth/logout.js +15 -17
  51. package/dist/cli/commands/auth/logout.test.js +16 -18
  52. package/dist/cli/commands/debug/command-flags.js +14 -16
  53. package/dist/cli/commands/demo/catalog.js +15 -17
  54. package/dist/cli/commands/demo/generate-file.js +15 -17
  55. package/dist/cli/commands/demo/index.js +15 -17
  56. package/dist/cli/commands/demo/print-ai-prompt.js +15 -17
  57. package/dist/cli/commands/docs/generate.js +14 -16
  58. package/dist/cli/commands/docs/generate.test.js +14 -16
  59. package/dist/cli/commands/help.js +14 -16
  60. package/dist/cli/commands/kitchen-sink/async.js +15 -17
  61. package/dist/cli/commands/kitchen-sink/async.test.js +15 -17
  62. package/dist/cli/commands/kitchen-sink/index.js +17 -19
  63. package/dist/cli/commands/kitchen-sink/index.test.js +17 -19
  64. package/dist/cli/commands/kitchen-sink/prompts.js +15 -17
  65. package/dist/cli/commands/kitchen-sink/prompts.test.js +15 -17
  66. package/dist/cli/commands/kitchen-sink/static.js +15 -17
  67. package/dist/cli/commands/kitchen-sink/static.test.js +15 -17
  68. package/dist/cli/commands/search.js +15 -17
  69. package/dist/cli/commands/upgrade.js +15 -17
  70. package/dist/cli/commands/version.js +15 -17
  71. package/dist/cli/commands/version.test.js +15 -17
  72. package/dist/cli/services/commands/search.js +7 -9
  73. package/dist/cli/services/commands/search.test.js +7 -9
  74. package/dist/cli/services/commands/version.js +8 -10
  75. package/dist/cli/services/commands/version.test.js +9 -11
  76. package/dist/cli/services/demo.js +7 -9
  77. package/dist/cli/services/demo.test.js +7 -9
  78. package/dist/cli/services/kitchen-sink/async.js +7 -9
  79. package/dist/cli/services/kitchen-sink/prompts.js +7 -9
  80. package/dist/cli/services/kitchen-sink/static.js +7 -9
  81. package/dist/cli/services/upgrade.js +8 -10
  82. package/dist/cli/services/upgrade.test.js +10 -12
  83. package/dist/{constants-TR6ABVLJ.js → constants-T7JXE5K7.js} +2 -2
  84. package/dist/{custom-oclif-loader-Y5TLP3GI.js → custom-oclif-loader-5V334D6O.js} +9 -11
  85. package/dist/{del-EL3PLWCY.js → del-7ZS2Z64N.js} +4 -4
  86. package/dist/{error-handler-EORUUIBK.js → error-handler-HMFDDM23.js} +13 -15
  87. package/dist/hooks/postrun.js +14 -15
  88. package/dist/hooks/prerun.js +12 -14
  89. package/dist/index.js +4573 -3762
  90. package/dist/{lib-4WCTNKJK.js → lib-JHUCJTHS.js} +5 -6
  91. package/dist/{local-4NQ3UGM2.js → local-AL4CN3PY.js} +7 -11
  92. package/dist/{morph-WDFBUXWF.js → morph-QZYXTRWT.js} +11 -11
  93. package/dist/{node-NWOSUD3V.js → node-V4CKO2VA.js} +18 -20
  94. package/dist/{node-package-manager-D7JIOBLM.js → node-package-manager-OQVXGQ6S.js} +8 -10
  95. package/dist/out-ZDSLKX4N.js +7 -0
  96. package/dist/{system-WDT2XUAD.js → system-L7GYVRHB.js} +7 -9
  97. package/dist/tsconfig.tsbuildinfo +1 -1
  98. package/dist/{ui-JUVEDXYN.js → ui-TYMS2HPU.js} +7 -9
  99. package/dist/{workerd-VWTWLJIV.js → workerd-3T7EKFXS.js} +17 -19
  100. package/oclif.manifest.json +30 -49
  101. package/package.json +19 -8
  102. package/dist/assets/auth-error.html +0 -23
  103. package/dist/assets/empty-url.html +0 -23
  104. package/dist/assets/favicon.svg +0 -26
  105. package/dist/assets/missing-code.html +0 -23
  106. package/dist/assets/missing-state.html +0 -23
  107. package/dist/assets/style.css +0 -58
  108. package/dist/assets/success.html +0 -20
  109. package/dist/chunk-2AW6NZQ5.js +0 -101
  110. package/dist/chunk-QETDXAFX.js +0 -106
  111. package/dist/lib-H3ZZGS7I.js +0 -1322
  112. package/dist/out-66YUO4CT.js +0 -7
  113. package/dist/templates/theme-extension/assets/thumbs-up.png +0 -0
  114. package/dist/templates/theme-extension/blocks/star_rating.liquid.raw +0 -21
  115. package/dist/templates/theme-extension/locales/en.default.json +0 -10
  116. package/dist/templates/theme-extension/shopify.extension.toml.liquid +0 -3
  117. package/dist/templates/theme-extension/snippets/stars.liquid.raw +0 -10
  118. package/dist/templates/ui-extensions/projects/product_subscription/package.json.liquid +0 -25
  119. package/dist/templates/ui-extensions/projects/product_subscription/shopify.extension.toml.liquid +0 -3
  120. package/dist/templates/ui-extensions/projects/product_subscription/src/index.liquid +0 -46
  121. package/dist/templates/ui-extensions/projects/web_pixel_extension/README.md +0 -23
  122. package/dist/templates/ui-extensions/projects/web_pixel_extension/package.json.liquid +0 -9
  123. package/dist/templates/ui-extensions/projects/web_pixel_extension/shopify.extension.toml.liquid +0 -16
  124. package/dist/templates/ui-extensions/projects/web_pixel_extension/src/index.liquid +0 -10
@@ -1,7 +0,0 @@
1
- import {
2
- require_out
3
- } from "./chunk-F27QYMO7.js";
4
- import "./chunk-ZFVK6EQX.js";
5
- import "./chunk-POZ5MGPT.js";
6
- export default require_out();
7
- //# sourceMappingURL=out-66YUO4CT.js.map
@@ -1,21 +0,0 @@
1
- {% assign avg_rating = block.settings.product.metafields.demo.avg_rating.value | round %}
2
- <span style="color:{{ block.settings.colour }}">
3
- {% render 'stars', rating: avg_rating %}
4
- </span>
5
- {% if avg_rating >= 4 %}
6
- <br>
7
- <img src="{{ "thumbs-up.png" | asset_img_url: '15x' }}" height="15" width="15" loading="lazy">
8
- {{ 'ratings.home.recommendationText' | t }}
9
- {% endif %}
10
-
11
- {% schema %}
12
- {
13
- "name": "Star Rating",
14
- "target": "section",
15
- "settings": [
16
- { "type": "product", "id": "product", "label": "product", "autofill": true },
17
- { "type": "color", "id": "colour", "label": "Star Colour", "default": "#ff0000" }
18
- ]
19
- }
20
- {% endschema %}
21
-
@@ -1,10 +0,0 @@
1
- {
2
- "ratings": {
3
- "stars": {
4
- "label": "Ratings"
5
- },
6
- "home": {
7
- "recommendationText": "Recommended Product!"
8
- }
9
- }
10
- }
@@ -1,3 +0,0 @@
1
- name = "{{name}}"
2
- type = "{{type}}"
3
- {% if uid %}uid = "{{ uid }}"{% endif %}
@@ -1,10 +0,0 @@
1
- {{ 'ratings.stars.label' | t }}:
2
-
3
- {%- for i in (1..rating) -%}
4
-
5
- {%- endfor -%}
6
- {%- assign blank_stars = 5 | minus: rating -%}
7
- {%- for i in (1..blank_stars) -%}
8
-
9
- {%- endfor -%}
10
-
@@ -1,25 +0,0 @@
1
- {%- if flavor contains "react" -%}
2
- {
3
- "name": "{{ handle }}",
4
- "version": "1.0.0",
5
- "main": "dist/main.js",
6
- "license": "UNLICENSED",
7
- "dependencies": {
8
- "react": "^17.0.0",
9
- "@shopify/admin-ui-extensions-react": "^1.1.0"
10
- },
11
- "devDependencies": {
12
- "@types/react": "^17.0.0"
13
- }
14
- }
15
- {%- else -%}
16
- {
17
- "name": "{{ handle }}",
18
- "version": "1.0.0",
19
- "main": "dist/main.js",
20
- "license": "UNLICENSED",
21
- "dependencies": {
22
- "@shopify/admin-ui-extensions": "^1.1.0"
23
- }
24
- }
25
- {%- endif -%}
@@ -1,3 +0,0 @@
1
- name = "{{ name }}"
2
- type = "product_subscription"
3
- {% if uid %}uid = "{{ uid }}"{% endif %}
@@ -1,46 +0,0 @@
1
- {%- if flavor contains "react" -%}
2
- import React from 'react'
3
- import {render, extend, Text, useExtensionApi} from '@shopify/admin-ui-extensions-react'
4
-
5
- // Your extension must render all four modes
6
- extend(
7
- 'Admin::Product::SubscriptionPlan::Add',
8
- render(() => <App />),
9
- )
10
- extend(
11
- 'Admin::Product::SubscriptionPlan::Create',
12
- render(() => <App />),
13
- )
14
- extend(
15
- 'Admin::Product::SubscriptionPlan::Remove',
16
- render(() => <App />),
17
- )
18
- extend(
19
- 'Admin::Product::SubscriptionPlan::Edit',
20
- render(() => <App />),
21
- )
22
-
23
- function App() {
24
- const {extensionPoint} = useExtensionApi()
25
- return <Text>Welcome to the {extensionPoint} extension!</Text>
26
- }
27
- {%- else -%}
28
- import { Text, extend } from "@shopify/admin-ui-extensions";
29
-
30
- // Your extension must render all four modes
31
- extend("Admin::Product::SubscriptionPlan::Add", App);
32
- extend("Admin::Product::SubscriptionPlan::Create", App);
33
- extend("Admin::Product::SubscriptionPlan::Remove", App);
34
- extend("Admin::Product::SubscriptionPlan::Edit", App);
35
-
36
- function App(root, { extensionPoint }) {
37
- root.appendChild(
38
- root.createComponent(
39
- Text,
40
- {},
41
- `Welcome to the ${extensionPoint} extension!`
42
- )
43
- );
44
- root.mount();
45
- }
46
- {%- endif -%}
@@ -1,23 +0,0 @@
1
- # Web Pixel Extension
2
-
3
- Web pixel app extensions provide developers with a simplified process for managing and processing behavioral data, by loading pixels in a secure sandbox environment with APIs for subscribing to customer events. Web pixel app extensions provide the following benefits to app users and developers:
4
-
5
- - Eliminate or minimize the need for users to add tracking code
6
- - Securely access all surfaces, like storefront, checkout and post-purchase pages
7
- - Control what data the developers have access to
8
- - Avoid performance and privacy alerts
9
- - Provide a smaller pixel code library with the removal of excess DOM manipulation code
10
-
11
- To learn more about web pixels, see Shopify’s [developer documentation](https://shopify.dev/docs/apps/marketing/pixels/getting-started).
12
-
13
- ## API
14
-
15
- > The web pixel extension API gives you access to a select set of controlled APIs for accessing browser APIs and subscribing to customer events, within one of our Lax or Strict sandboxes.
16
-
17
- This template project already provides a basic extension setup. For more information, see the [Web pixel extension API documentation](https://shopify.dev/docs/api/pixels/pixel-extension).
18
-
19
- ## Customer Events
20
-
21
- > Customer events represent and describe the behavior of your customers, including key events during the customer journey, such as page views, product views, cart updates, searches, and purchases.
22
-
23
- See all available events in the [Customer Events API documentation](https://shopify.dev/docs/api/pixels/customer-events).
@@ -1,9 +0,0 @@
1
- {
2
- "name": "{{ handle }}",
3
- "version": "1.0.0",
4
- "main": "dist/main.js",
5
- "license": "UNLICENSED",
6
- "dependencies": {
7
- "@shopify/web-pixels-extension": "^2.10.0"
8
- }
9
- }
@@ -1,16 +0,0 @@
1
- name = "{{ name }}"
2
- type = "web_pixel_extension"
3
- {% if uid %}uid = "{{ uid }}"{% endif %}
4
-
5
- runtime_context = "strict"
6
-
7
- [settings]
8
- type = "object"
9
-
10
- [settings.fields.accountID]
11
- name = "Account ID"
12
- description = "Account ID"
13
- type = "single_line_text_field"
14
- validations = [
15
- { name = "min", value = "1" }
16
- ]
@@ -1,10 +0,0 @@
1
- import {register} from "@shopify/web-pixels-extension";
2
-
3
- register(({ analytics, browser, init, settings }) => {
4
- // Bootstrap and insert pixel script tag here
5
-
6
- // Sample subscribe to page view
7
- analytics.subscribe('page_viewed', (event) => {
8
- console.log('Page viewed', event);
9
- });
10
- });