@shopify/create-app 3.81.2 → 3.82.1

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.
@@ -19,7 +19,7 @@ import {
19
19
  require_semver,
20
20
  runWithTimer,
21
21
  writeFile
22
- } from "./chunk-NEIKNULL.js";
22
+ } from "./chunk-75QMAARJ.js";
23
23
  import {
24
24
  dirname,
25
25
  joinPath
@@ -13907,4 +13907,4 @@ deep-extend/lib/deep-extend.js:
13907
13907
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13908
13908
  *)
13909
13909
  */
13910
- //# sourceMappingURL=chunk-YJPO3M7O.js.map
13910
+ //# sourceMappingURL=chunk-4ZPIFK7H.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  fanoutHooks,
3
3
  reportAnalyticsEvent
4
- } from "./chunk-CVOLR6M5.js";
4
+ } from "./chunk-ZIXYVUD6.js";
5
5
  import {
6
6
  CLI_KIT_VERSION,
7
7
  getEnvironmentData
8
- } from "./chunk-GGWHB6LL.js";
8
+ } from "./chunk-H2RMSP56.js";
9
9
  import {
10
10
  runWithRateLimit
11
- } from "./chunk-YJPO3M7O.js";
11
+ } from "./chunk-4ZPIFK7H.js";
12
12
  import {
13
13
  AbortSilentError,
14
14
  CancelExecution,
@@ -23,7 +23,7 @@ import {
23
23
  reportingRateLimit,
24
24
  require_stacktracey,
25
25
  shouldReportErrorAsUnexpected
26
- } from "./chunk-NEIKNULL.js";
26
+ } from "./chunk-75QMAARJ.js";
27
27
  import {
28
28
  require_lib
29
29
  } from "./chunk-2YVW3FGK.js";
@@ -2142,4 +2142,4 @@ export {
2142
2142
  registerCleanBugsnagErrorsFromWithinPlugins,
2143
2143
  addBugsnagMetadata
2144
2144
  };
2145
- //# sourceMappingURL=chunk-YFBX3GUL.js.map
2145
+ //# sourceMappingURL=chunk-6OWK7KKO.js.map
@@ -23580,7 +23580,7 @@ init_cjs_shims();
23580
23580
 
23581
23581
  // ../cli-kit/dist/public/node/abort.js
23582
23582
  init_cjs_shims();
23583
- var import_node_abort_controller = __toESM(require_node_abort_controller()), AbortController = class extends import_node_abort_controller.AbortController {
23583
+ var import_node_abort_controller = __toESM(require_node_abort_controller(), 1), AbortController = class extends import_node_abort_controller.AbortController {
23584
23584
  }, AbortSignal = class extends import_node_abort_controller.AbortSignal {
23585
23585
  };
23586
23586
 
@@ -23611,7 +23611,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
23611
23611
  try {
23612
23612
  await getAndSet();
23613
23613
  } catch (error) {
23614
- let { sendErrorToBugsnag } = await import("./error-handler-5ZPHVQR4.js");
23614
+ let { sendErrorToBugsnag } = await import("./error-handler-SWZ4Y54O.js");
23615
23615
  await sendErrorToBugsnag(error, "unexpected_error");
23616
23616
  }
23617
23617
  }, durationStack = [];
@@ -28240,7 +28240,7 @@ function asHumanFriendlyArray(items) {
28240
28240
  }
28241
28241
 
28242
28242
  // ../cli-kit/dist/public/common/string.js
28243
- var import_change_case = __toESM(require_dist16()), SAFE_RANDOM_BUSINESS_ADJECTIVES = [
28243
+ var import_change_case = __toESM(require_dist16(), 1), SAFE_RANDOM_BUSINESS_ADJECTIVES = [
28244
28244
  "commercial",
28245
28245
  "profitable",
28246
28246
  "amortizable",
@@ -28826,10 +28826,17 @@ function Item({ item, previousItem, isSelected, highlightedTerm, enableShortcuts
28826
28826
  );
28827
28827
  }
28828
28828
  var MAX_AVAILABLE_LINES = 25;
28829
- function SelectInputInner({ items: rawItems, initialItems = rawItems, onChange, enableShortcuts = !0, focus = !0, emptyMessage = "No items to select.", defaultValue, highlightedTerm, loading = !1, errorMessage, hasMorePages = !1, morePagesMessage, availableLines = MAX_AVAILABLE_LINES, onSubmit, inputFixedAreaRef }, ref) {
28829
+ function SelectInputInner({ items: rawItems, initialItems = rawItems, onChange, enableShortcuts = !0, focus = !0, emptyMessage = "No items to select.", defaultValue, highlightedTerm, loading = !1, errorMessage, hasMorePages = !1, morePagesMessage, availableLines = MAX_AVAILABLE_LINES, onSubmit, inputFixedAreaRef, groupOrder }, ref) {
28830
28830
  let noItems = !1;
28831
28831
  rawItems.length === 0 && (rawItems = [{ label: emptyMessage, value: null, disabled: !0 }], noItems = !0);
28832
- let hasAnyGroup = rawItems.some((item) => typeof item.group < "u"), items = (0, import_sortBy.default)(rawItems, "group"), itemsHaveKeys = items.some((item) => typeof item.key < "u" && item.key.length > 0);
28832
+ let hasAnyGroup = rawItems.some((item) => typeof item.group < "u"), items = (0, import_sortBy.default)(rawItems, (item) => {
28833
+ if (!item.group)
28834
+ return Number.MAX_SAFE_INTEGER + 1;
28835
+ if (!groupOrder)
28836
+ return Number.MAX_SAFE_INTEGER;
28837
+ let index = groupOrder.indexOf(item.group);
28838
+ return index === -1 ? Number.MAX_SAFE_INTEGER : index;
28839
+ }), itemsHaveKeys = items.some((item) => typeof item.key < "u" && item.key.length > 0);
28833
28840
  itemsHaveKeys && validateKeys(items);
28834
28841
  let availableLinesToUse = Math.min(availableLines, MAX_AVAILABLE_LINES);
28835
28842
  function maximumLinesLostToGroups(items2) {
@@ -28993,7 +29000,7 @@ var PromptLayout = ({ message, infoTable, abortSignal, infoMessage, header, stat
28993
29000
 
28994
29001
  // ../cli-kit/dist/private/node/ui/components/SelectPrompt.js
28995
29002
  var import_react49 = __toESM(require_react(), 1);
28996
- function SelectPrompt({ message, choices, infoTable, infoMessage, onSubmit, defaultValue, abortSignal }) {
29003
+ function SelectPrompt({ message, choices, infoTable, infoMessage, onSubmit, defaultValue, abortSignal, groupOrder }) {
28997
29004
  if (choices.length === 0)
28998
29005
  throw new Error("SelectPrompt requires at least one choice");
28999
29006
  let { exit: unmountInk } = use_app_default(), { promptState, setPromptState, answer, setAnswer } = usePrompt({
@@ -29003,7 +29010,7 @@ function SelectPrompt({ message, choices, infoTable, infoMessage, onSubmit, defa
29003
29010
  }, [setAnswer, setPromptState]);
29004
29011
  return (0, import_react49.useEffect)(() => {
29005
29012
  promptState === PromptState.Submitted && answer && (unmountInk(), onSubmit(answer.value));
29006
- }, [answer, onSubmit, promptState, unmountInk]), import_react49.default.createElement(PromptLayout, { message, state: promptState, submittedAnswerLabel: answer?.label, infoTable, infoMessage, abortSignal, input: import_react49.default.createElement(SelectInput, { defaultValue, items: choices, onSubmit: submitAnswer }) });
29013
+ }, [answer, onSubmit, promptState, unmountInk]), import_react49.default.createElement(PromptLayout, { message, state: promptState, submittedAnswerLabel: answer?.label, infoTable, infoMessage, abortSignal, input: import_react49.default.createElement(SelectInput, { defaultValue, items: choices, onSubmit: submitAnswer, groupOrder }) });
29007
29014
  }
29008
29015
 
29009
29016
  // ../cli-kit/dist/private/node/ui/components/Tasks.js
@@ -29210,7 +29217,7 @@ function debounce(func, wait, options) {
29210
29217
  // ../cli-kit/dist/private/node/ui/components/AutocompletePrompt.js
29211
29218
  var import_react54 = __toESM(require_react(), 1);
29212
29219
  var MIN_NUMBER_OF_ITEMS_FOR_SEARCH = 5;
29213
- function AutocompletePrompt({ message, choices, infoTable, onSubmit, search, hasMorePages: initialHasMorePages = !1, abortSignal, infoMessage }) {
29220
+ function AutocompletePrompt({ message, choices, infoTable, onSubmit, search, hasMorePages: initialHasMorePages = !1, abortSignal, infoMessage, groupOrder }) {
29214
29221
  let { exit: unmountInk } = use_app_default(), [searchTerm, setSearchTerm] = (0, import_react54.useState)(""), [searchResults, setSearchResults] = (0, import_react54.useState)(choices), canSearch = choices.length > MIN_NUMBER_OF_ITEMS_FOR_SEARCH, [hasMorePages, setHasMorePages] = (0, import_react54.useState)(initialHasMorePages), { promptState, setPromptState, answer, setAnswer } = usePrompt({
29215
29222
  initialAnswer: void 0
29216
29223
  }), paginatedSearch = (0, import_react54.useCallback)(async (term) => await search(term), [search]), submitAnswer = (0, import_react54.useCallback)((answer2) => {
@@ -29238,11 +29245,11 @@ function AutocompletePrompt({ message, choices, infoTable, onSubmit, search, has
29238
29245
  import_react54.default.createElement(TextInput, { value: searchTerm, onChange: (term) => {
29239
29246
  setSearchTerm(term), term.length > 0 ? debounceSearch(term) : (debounceSearch.cancel(), setPromptState(PromptState.Idle), setSearchResults(choices));
29240
29247
  }, placeholder: "Type to search..." })
29241
- ) : null, submittedAnswerLabel: answer?.label, input: import_react54.default.createElement(SelectInput, { items: searchResults, initialItems: choices, enableShortcuts: !1, emptyMessage: "No results found.", highlightedTerm: searchTerm, loading: promptState === PromptState.Loading, errorMessage: promptState === PromptState.Error ? "There has been an error while searching. Please try again later." : void 0, hasMorePages, morePagesMessage: "Find what you're looking for by typing its name.", onSubmit: submitAnswer }) });
29248
+ ) : null, submittedAnswerLabel: answer?.label, input: import_react54.default.createElement(SelectInput, { items: searchResults, initialItems: choices, enableShortcuts: !1, emptyMessage: "No results found.", highlightedTerm: searchTerm, loading: promptState === PromptState.Loading, errorMessage: promptState === PromptState.Error ? "There has been an error while searching. Please try again later." : void 0, hasMorePages, morePagesMessage: "Find what you're looking for by typing its name.", onSubmit: submitAnswer, groupOrder }) });
29242
29249
  }
29243
29250
 
29244
29251
  // ../cli-kit/dist/public/node/ui.js
29245
- var import_react55 = __toESM(require_react()), defaultUIDebugOptions = {
29252
+ var import_react55 = __toESM(require_react(), 1), defaultUIDebugOptions = {
29246
29253
  skipTTYCheck: !1
29247
29254
  };
29248
29255
  async function renderConcurrent({ renderOptions, ...props }) {
@@ -32813,4 +32820,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
32813
32820
  * LICENSE file in the root directory of this source tree.
32814
32821
  *)
32815
32822
  */
32816
- //# sourceMappingURL=chunk-NEIKNULL.js.map
32823
+ //# sourceMappingURL=chunk-75QMAARJ.js.map
@@ -9,7 +9,7 @@ import {
9
9
  packageManagerFromUserAgent,
10
10
  removeSession,
11
11
  setSession
12
- } from "./chunk-YJPO3M7O.js";
12
+ } from "./chunk-4ZPIFK7H.js";
13
13
  import {
14
14
  AbortError,
15
15
  BugError,
@@ -45,7 +45,7 @@ import {
45
45
  spinFqdn,
46
46
  systemEnvironmentVariables,
47
47
  themeToken
48
- } from "./chunk-NEIKNULL.js";
48
+ } from "./chunk-75QMAARJ.js";
49
49
  import {
50
50
  cwd,
51
51
  sniffForJson
@@ -26948,7 +26948,7 @@ var require_form_data = __commonJS({
26948
26948
 
26949
26949
  // ../cli-kit/dist/public/common/version.js
26950
26950
  init_cjs_shims();
26951
- var CLI_KIT_VERSION = "3.81.2";
26951
+ var CLI_KIT_VERSION = "3.82.1";
26952
26952
 
26953
26953
  // ../cli-kit/dist/private/node/analytics.js
26954
26954
  init_cjs_shims();
@@ -31039,7 +31039,7 @@ async function normalizeStoreFqdn(store2) {
31039
31039
 
31040
31040
  // ../cli-kit/dist/public/node/http.js
31041
31041
  init_cjs_shims();
31042
- var import_form_data = __toESM(require_form_data());
31042
+ var import_form_data = __toESM(require_form_data(), 1);
31043
31043
 
31044
31044
  // ../../node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/src/index.js
31045
31045
  init_cjs_shims();
@@ -32299,11 +32299,16 @@ async function remove() {
32299
32299
  // ../cli-kit/dist/private/node/session/device-authorization.js
32300
32300
  init_cjs_shims();
32301
32301
  async function requestDeviceAuthorization(scopes) {
32302
- let fqdn = await identityFqdn(), queryParams = { client_id: clientId(), scope: scopes.join(" ") }, url4 = `https://${fqdn}/oauth/device_authorization`, jsonResult = await (await shopifyFetch(url4, {
32302
+ let fqdn = await identityFqdn(), queryParams = { client_id: clientId(), scope: scopes.join(" ") }, url4 = `https://${fqdn}/oauth/device_authorization`, response = await shopifyFetch(url4, {
32303
32303
  method: "POST",
32304
32304
  headers: { "Content-type": "application/x-www-form-urlencoded" },
32305
32305
  body: convertRequestToParams(queryParams)
32306
- })).json();
32306
+ }), jsonResult;
32307
+ try {
32308
+ jsonResult = await response.json();
32309
+ } catch {
32310
+ throw new BugError("Received unexpected response from the authorization service. If this issue persists, please contact support at https://help.shopify.com");
32311
+ }
32307
32312
  if (outputDebug(outputContent`Received device authorization code: ${outputToken.json(jsonResult)}`), !jsonResult.device_code || !jsonResult.verification_uri_complete)
32308
32313
  throw new BugError("Failed to start authorization process");
32309
32314
  if (outputInfo(`
@@ -32631,4 +32636,4 @@ mime-types/index.js:
32631
32636
  * MIT Licensed
32632
32637
  *)
32633
32638
  */
32634
- //# sourceMappingURL=chunk-GGWHB6LL.js.map
32639
+ //# sourceMappingURL=chunk-H2RMSP56.js.map
@@ -2,12 +2,12 @@ import {
2
2
  CLI_KIT_VERSION,
3
3
  jsonOutputEnabled,
4
4
  z
5
- } from "./chunk-GGWHB6LL.js";
5
+ } from "./chunk-H2RMSP56.js";
6
6
  import {
7
7
  cacheRetrieve,
8
8
  cacheStore,
9
9
  versionSatisfies
10
- } from "./chunk-YJPO3M7O.js";
10
+ } from "./chunk-4ZPIFK7H.js";
11
11
  import {
12
12
  AbortSilentError,
13
13
  exec,
@@ -16,7 +16,7 @@ import {
16
16
  renderError,
17
17
  renderInfo,
18
18
  renderWarning
19
- } from "./chunk-NEIKNULL.js";
19
+ } from "./chunk-75QMAARJ.js";
20
20
  import {
21
21
  init_cjs_shims
22
22
  } from "./chunk-PKR7KJ6P.js";
@@ -84,7 +84,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
84
84
  throw new AbortSilentError();
85
85
  let errorMessage = `Error showing notifications: ${error.message}`;
86
86
  outputDebug(errorMessage);
87
- let { sendErrorToBugsnag } = await import("./error-handler-5ZPHVQR4.js");
87
+ let { sendErrorToBugsnag } = await import("./error-handler-SWZ4Y54O.js");
88
88
  await sendErrorToBugsnag(errorMessage, "unexpected_error");
89
89
  }
90
90
  }
@@ -174,4 +174,4 @@ export {
174
174
  showNotificationsIfNeeded,
175
175
  fetchNotificationsInBackground
176
176
  };
177
- //# sourceMappingURL=chunk-CSOJOXW2.js.map
177
+ //# sourceMappingURL=chunk-TNRWP2XN.js.map
@@ -4,10 +4,10 @@ import {
4
4
  getEnvironmentData,
5
5
  getLastSeenUserIdAfterAuth,
6
6
  getSensitiveEnvironmentData
7
- } from "./chunk-GGWHB6LL.js";
7
+ } from "./chunk-H2RMSP56.js";
8
8
  import {
9
9
  runWithRateLimit
10
- } from "./chunk-YJPO3M7O.js";
10
+ } from "./chunk-4ZPIFK7H.js";
11
11
  import {
12
12
  alwaysLogAnalytics,
13
13
  alwaysLogMetrics,
@@ -24,7 +24,7 @@ import {
24
24
  outputDebug,
25
25
  outputToken,
26
26
  reportingRateLimit
27
- } from "./chunk-NEIKNULL.js";
27
+ } from "./chunk-75QMAARJ.js";
28
28
  import {
29
29
  __commonJS,
30
30
  __esm,
@@ -15926,4 +15926,4 @@ export {
15926
15926
  requestIdsCollection,
15927
15927
  reportAnalyticsEvent
15928
15928
  };
15929
- //# sourceMappingURL=chunk-CVOLR6M5.js.map
15929
+ //# sourceMappingURL=chunk-ZIXYVUD6.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  execaSync,
3
3
  fileExistsSync
4
- } from "./chunk-NEIKNULL.js";
4
+ } from "./chunk-75QMAARJ.js";
5
5
  import {
6
6
  require_lib
7
7
  } from "./chunk-2YVW3FGK.js";
@@ -42,4 +42,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
42
42
  export {
43
43
  ShopifyConfig
44
44
  };
45
- //# sourceMappingURL=custom-oclif-loader-5ZQOICQH.js.map
45
+ //# sourceMappingURL=custom-oclif-loader-2KUDQ6HQ.js.map
@@ -4,12 +4,12 @@ import {
4
4
  errorHandler,
5
5
  registerCleanBugsnagErrorsFromWithinPlugins,
6
6
  sendErrorToBugsnag
7
- } from "./chunk-YFBX3GUL.js";
8
- import "./chunk-CVOLR6M5.js";
9
- import "./chunk-GGWHB6LL.js";
7
+ } from "./chunk-6OWK7KKO.js";
8
+ import "./chunk-ZIXYVUD6.js";
9
+ import "./chunk-H2RMSP56.js";
10
10
  import "./chunk-25IMI7TH.js";
11
- import "./chunk-YJPO3M7O.js";
12
- import "./chunk-NEIKNULL.js";
11
+ import "./chunk-4ZPIFK7H.js";
12
+ import "./chunk-75QMAARJ.js";
13
13
  import "./chunk-2YVW3FGK.js";
14
14
  import "./chunk-UMUTXITN.js";
15
15
  import "./chunk-Y2JP6WFP.js";
@@ -27,4 +27,4 @@ export {
27
27
  registerCleanBugsnagErrorsFromWithinPlugins,
28
28
  sendErrorToBugsnag
29
29
  };
30
- //# sourceMappingURL=error-handler-5ZPHVQR4.js.map
30
+ //# sourceMappingURL=error-handler-SWZ4Y54O.js.map
@@ -3,16 +3,16 @@ import {
3
3
  } from "../chunk-CP3BRHWK.js";
4
4
  import {
5
5
  reportAnalyticsEvent
6
- } from "../chunk-CVOLR6M5.js";
7
- import "../chunk-GGWHB6LL.js";
6
+ } from "../chunk-ZIXYVUD6.js";
7
+ import "../chunk-H2RMSP56.js";
8
8
  import "../chunk-25IMI7TH.js";
9
- import "../chunk-YJPO3M7O.js";
9
+ import "../chunk-4ZPIFK7H.js";
10
10
  import {
11
11
  addSensitiveMetadata,
12
12
  getAllSensitiveMetadata,
13
13
  outputDebug,
14
14
  renderWarning
15
- } from "../chunk-NEIKNULL.js";
15
+ } from "../chunk-75QMAARJ.js";
16
16
  import "../chunk-2YVW3FGK.js";
17
17
  import "../chunk-UMUTXITN.js";
18
18
  import "../chunk-Y2JP6WFP.js";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  fetchNotificationsInBackground
3
- } from "../chunk-CSOJOXW2.js";
3
+ } from "../chunk-TNRWP2XN.js";
4
4
  import {
5
5
  CLI_KIT_VERSION,
6
6
  startAnalytics
7
- } from "../chunk-GGWHB6LL.js";
7
+ } from "../chunk-H2RMSP56.js";
8
8
  import "../chunk-25IMI7TH.js";
9
9
  import {
10
10
  checkForCachedNewVersion,
11
11
  checkForNewVersion,
12
12
  packageManagerFromUserAgent,
13
13
  runAtMinimumInterval
14
- } from "../chunk-YJPO3M7O.js";
14
+ } from "../chunk-4ZPIFK7H.js";
15
15
  import {
16
16
  currentProcessIsGlobal,
17
17
  inferPackageManagerForGlobalCLI,
@@ -20,7 +20,7 @@ import {
20
20
  outputDebug,
21
21
  outputToken,
22
22
  outputWarn
23
- } from "../chunk-NEIKNULL.js";
23
+ } from "../chunk-75QMAARJ.js";
24
24
  import "../chunk-2YVW3FGK.js";
25
25
  import "../chunk-UMUTXITN.js";
26
26
  import "../chunk-Y2JP6WFP.js";