@shopify/create-app 3.74.1 → 3.75.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.
@@ -4,10 +4,10 @@ import {
4
4
  getEnvironmentData,
5
5
  getLastSeenUserIdAfterAuth,
6
6
  getSensitiveEnvironmentData
7
- } from "./chunk-VS6UX7CH.js";
7
+ } from "./chunk-LAGKHJZJ.js";
8
8
  import {
9
9
  runWithRateLimit
10
- } from "./chunk-XENZIRXB.js";
10
+ } from "./chunk-LC4MJ4H3.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-IS43CUN4.js";
27
+ } from "./chunk-DOGSJDGS.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-UV6IYZ3Q.js.map
15929
+ //# sourceMappingURL=chunk-BP2PIZDA.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-SHWOPMLQ.js";
5
5
  import {
6
6
  require_balanced_match
7
- } from "./chunk-ZKGBK6WQ.js";
7
+ } from "./chunk-IVFBSLUD.js";
8
8
  import {
9
9
  __commonJS,
10
10
  __require,
@@ -1458,4 +1458,4 @@ export {
1458
1458
  require_inflight,
1459
1459
  require_glob
1460
1460
  };
1461
- //# sourceMappingURL=chunk-A2CUF3IE.js.map
1461
+ //# sourceMappingURL=chunk-C5GINFDG.js.map
@@ -5,10 +5,7 @@ import {
5
5
  require_source,
6
6
  require_source_map,
7
7
  require_supports_hyperlinks
8
- } from "./chunk-NBA3G6YQ.js";
9
- import {
10
- Queue
11
- } from "./chunk-CFIKVUNW.js";
8
+ } from "./chunk-S3QEOIDU.js";
12
9
  import {
13
10
  cwd,
14
11
  dirname,
@@ -22458,7 +22455,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
22458
22455
  try {
22459
22456
  await getAndSet();
22460
22457
  } catch (error) {
22461
- let { sendErrorToBugsnag } = await import("./error-handler-OVH57TNJ.js");
22458
+ let { sendErrorToBugsnag } = await import("./error-handler-XIWWVT5T.js");
22462
22459
  await sendErrorToBugsnag(error, "unexpected_error");
22463
22460
  }
22464
22461
  }, durationStack = [];
@@ -27070,7 +27067,7 @@ function difference(array, ...values) {
27070
27067
  }
27071
27068
 
27072
27069
  // ../cli-kit/dist/public/common/string.js
27073
- var import_change_case = __toESM(require_dist16(), 1), SAFE_RANDOM_BUSINESS_ADJECTIVES = [
27070
+ var import_change_case = __toESM(require_dist16()), SAFE_RANDOM_BUSINESS_ADJECTIVES = [
27074
27071
  "commercial",
27075
27072
  "profitable",
27076
27073
  "amortizable",
@@ -27173,7 +27170,6 @@ var import_change_case = __toESM(require_dist16(), 1), SAFE_RANDOM_BUSINESS_ADJE
27173
27170
  "franchise",
27174
27171
  "subsidiary",
27175
27172
  "logistics",
27176
- "infrastructure",
27177
27173
  "sponsorship",
27178
27174
  "partnership",
27179
27175
  "tax",
@@ -27847,13 +27843,20 @@ function rainbow(text, frame) {
27847
27843
  let hue = 5 * frame, leftColor = { h: hue % 360, s: 0.8, v: 1 }, rightColor = { h: (hue + 1) % 360, s: 0.8, v: 1 };
27848
27844
  return (0, import_gradient_string.default)(leftColor, rightColor)(text, { interpolation: "hsv", hsvSpin: "long" });
27849
27845
  }
27850
- var TextAnimation = (0, import_react50.memo)(({ text }) => {
27846
+ function rotated(text, steps) {
27847
+ let normalizedSteps = steps % text.length, start = text.slice(-normalizedSteps), end = text.slice(0, -normalizedSteps);
27848
+ return start + end;
27849
+ }
27850
+ function truncated(text, maxWidth) {
27851
+ return maxWidth ? text.slice(0, maxWidth) : text;
27852
+ }
27853
+ var TextAnimation = (0, import_react50.memo)(({ text, maxWidth }) => {
27851
27854
  let frame = (0, import_react50.useRef)(0), [renderedFrame, setRenderedFrame] = (0, import_react50.useState)(text), timeout = (0, import_react50.useRef)(), renderAnimation = (0, import_react50.useCallback)(() => {
27852
27855
  let newFrame = frame.current + 1;
27853
- frame.current = newFrame, setRenderedFrame(rainbow(text, frame.current)), timeout.current = setTimeout(() => {
27856
+ frame.current = newFrame, setRenderedFrame(rainbow(truncated(rotated(text, frame.current), maxWidth), frame.current)), timeout.current = setTimeout(() => {
27854
27857
  renderAnimation();
27855
27858
  }, 35);
27856
- }, [text]);
27859
+ }, [text, maxWidth]);
27857
27860
  return (0, import_react50.useLayoutEffect)(() => (renderAnimation(), () => {
27858
27861
  clearTimeout(timeout.current);
27859
27862
  }), [renderAnimation]), import_react50.default.createElement(Text, null, renderedFrame);
@@ -27877,7 +27880,7 @@ function useAsyncAndUnmount(asyncFunction, { onFulfilled = () => {
27877
27880
  }
27878
27881
 
27879
27882
  // ../cli-kit/dist/private/node/ui/components/Tasks.js
27880
- var import_react52 = __toESM(require_react(), 1), loadingBarChar = "\u2580", TasksState;
27883
+ var import_react52 = __toESM(require_react(), 1), loadingBarChar = "\u2580", hillString = "\u2581\u2581\u2582\u2582\u2583\u2583\u2584\u2584\u2585\u2585\u2586\u2586\u2587\u2587\u2588\u2588\u2587\u2587\u2586\u2586\u2585\u2585\u2584\u2584\u2583\u2583\u2582\u2582\u2581\u2581", TasksState;
27881
27884
  (function(TasksState2) {
27882
27885
  TasksState2.Loading = "loading", TasksState2.Success = "success", TasksState2.Failure = "failure";
27883
27886
  })(TasksState || (TasksState = {}));
@@ -27895,8 +27898,10 @@ async function runTask(task, ctx) {
27895
27898
  }
27896
27899
  var noop3 = () => {
27897
27900
  };
27898
- function Tasks({ tasks, silent = isUnitTest(), onComplete = noop3, abortSignal }) {
27899
- let { twoThirds } = useLayout(), loadingBar = new Array(twoThirds).fill(loadingBarChar).join(""), [currentTask, setCurrentTask] = (0, import_react52.useState)(tasks[0]), [state, setState] = (0, import_react52.useState)(TasksState.Loading), ctx = (0, import_react52.useRef)({}), { isRawModeSupported } = use_stdin_default();
27901
+ function Tasks({ tasks, silent = isUnitTest(), onComplete = noop3, abortSignal, noColor }) {
27902
+ let { twoThirds } = useLayout(), loadingBar = new Array(twoThirds).fill(loadingBarChar).join("");
27903
+ (noColor ?? !shouldDisplayColors()) && (loadingBar = hillString.repeat(Math.ceil(twoThirds / hillString.length)));
27904
+ let [currentTask, setCurrentTask] = (0, import_react52.useState)(tasks[0]), [state, setState] = (0, import_react52.useState)(TasksState.Loading), ctx = (0, import_react52.useRef)({}), { isRawModeSupported } = use_stdin_default();
27900
27905
  useAsyncAndUnmount(async () => {
27901
27906
  for (let task of tasks) {
27902
27907
  setCurrentTask(task);
@@ -27920,7 +27925,7 @@ function Tasks({ tasks, silent = isUnitTest(), onComplete = noop3, abortSignal }
27920
27925
  return silent ? null : state === TasksState.Loading && !isAborted ? import_react52.default.createElement(
27921
27926
  Box_default,
27922
27927
  { flexDirection: "column" },
27923
- import_react52.default.createElement(TextAnimation, { text: loadingBar }),
27928
+ import_react52.default.createElement(TextAnimation, { text: loadingBar, maxWidth: twoThirds }),
27924
27929
  import_react52.default.createElement(
27925
27930
  Text,
27926
27931
  null,
@@ -28020,7 +28025,7 @@ init_cjs_shims();
28020
28025
 
28021
28026
  // ../cli-kit/dist/public/common/function.js
28022
28027
  init_cjs_shims();
28023
- var import_memoize = __toESM(require_memoize(), 1), import_debounce = __toESM(require_debounce(), 1);
28028
+ var import_memoize = __toESM(require_memoize()), import_debounce = __toESM(require_debounce());
28024
28029
  function debounce(func, wait, options) {
28025
28030
  return (0, import_debounce.default)(func, wait, options);
28026
28031
  }
@@ -28060,7 +28065,7 @@ function AutocompletePrompt({ message, choices, infoTable, onSubmit, search, has
28060
28065
  }
28061
28066
 
28062
28067
  // ../cli-kit/dist/public/node/ui.js
28063
- var import_react55 = __toESM(require_react()), defaultUIDebugOptions = {
28068
+ var import_react55 = __toESM(require_react(), 1), defaultUIDebugOptions = {
28064
28069
  skipTTYCheck: !1
28065
28070
  };
28066
28071
  async function renderConcurrent({ renderOptions, ...props }) {
@@ -28200,7 +28205,7 @@ This usually happens when running a command non-interactively, for example in a
28200
28205
  }
28201
28206
 
28202
28207
  // ../cli-kit/dist/public/node/error.js
28203
- var import_core = __toESM(require_lib(), 1), import_ts_error = __toESM(require_cjs(), 1), FatalErrorType;
28208
+ var import_core = __toESM(require_lib()), import_ts_error = __toESM(require_cjs()), FatalErrorType;
28204
28209
  (function(FatalErrorType2) {
28205
28210
  FatalErrorType2[FatalErrorType2.Abort = 0] = "Abort", FatalErrorType2[FatalErrorType2.AbortSilent = 1] = "AbortSilent", FatalErrorType2[FatalErrorType2.Bug = 2] = "Bug";
28206
28211
  })(FatalErrorType || (FatalErrorType = {}));
@@ -29774,6 +29779,45 @@ init_cjs_shims();
29774
29779
 
29775
29780
  // ../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js
29776
29781
  init_cjs_shims();
29782
+
29783
+ // ../../node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js
29784
+ init_cjs_shims();
29785
+ var Node = class {
29786
+ value;
29787
+ next;
29788
+ constructor(value) {
29789
+ this.value = value;
29790
+ }
29791
+ }, Queue = class {
29792
+ #head;
29793
+ #tail;
29794
+ #size;
29795
+ constructor() {
29796
+ this.clear();
29797
+ }
29798
+ enqueue(value) {
29799
+ let node = new Node(value);
29800
+ this.#head ? (this.#tail.next = node, this.#tail = node) : (this.#head = node, this.#tail = node), this.#size++;
29801
+ }
29802
+ dequeue() {
29803
+ let current = this.#head;
29804
+ if (current)
29805
+ return this.#head = this.#head.next, this.#size--, current.value;
29806
+ }
29807
+ clear() {
29808
+ this.#head = void 0, this.#tail = void 0, this.#size = 0;
29809
+ }
29810
+ get size() {
29811
+ return this.#size;
29812
+ }
29813
+ *[Symbol.iterator]() {
29814
+ let current = this.#head;
29815
+ for (; current; )
29816
+ yield current.value, current = current.next;
29817
+ }
29818
+ };
29819
+
29820
+ // ../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js
29777
29821
  function pLimit(concurrency) {
29778
29822
  if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0))
29779
29823
  throw new TypeError("Expected `concurrency` to be a number from 1 and up");
@@ -30787,7 +30831,7 @@ async function removeFile(path8) {
30787
30831
  outputDebug(outputContent`Removing file at ${outputToken.path(path8)}...`), await remove(path8);
30788
30832
  }
30789
30833
  async function rmdir(path8, options = {}) {
30790
- let { default: del } = await import("./del-CKAQ44SX.js");
30834
+ let { default: del } = await import("./del-G6PUU7PY.js");
30791
30835
  outputDebug(outputContent`Removing directory at ${outputToken.path(path8)}...`), await del(path8, { force: options.force });
30792
30836
  }
30793
30837
  async function isDirectory(path8) {
@@ -30945,7 +30989,8 @@ var identifier = "shopify-cli", cacheFolder = () => process.env.XDG_CACHE_HOME ?
30945
30989
  refreshToken: "SHOPIFY_CLI_REFRESH_TOKEN",
30946
30990
  otelURL: "SHOPIFY_CLI_OTEL_EXPORTER_OTLP_ENDPOINT",
30947
30991
  themeKitAccessDomain: "SHOPIFY_CLI_THEME_KIT_ACCESS_DOMAIN",
30948
- json: "SHOPIFY_FLAG_JSON"
30992
+ json: "SHOPIFY_FLAG_JSON",
30993
+ neverUsePartnersApi: "SHOPIFY_CLI_NEVER_USE_PARTNERS_API"
30949
30994
  }, defaultThemeKitAccessDomain = "theme-kit-access.shopifyapps.com", systemEnvironmentVariables = {
30950
30995
  backendPort: "BACKEND_PORT"
30951
30996
  }, pathConstants = {
@@ -31159,6 +31204,9 @@ function getIdentityTokenInformation() {
31159
31204
  function jsonOutputEnabled(environment = getEnvironmentVariables()) {
31160
31205
  return sniffForJson() || isTruthy(environment[environmentVariables.json]);
31161
31206
  }
31207
+ function blockPartnersAccess() {
31208
+ return isTruthy(getEnvironmentVariables()[environmentVariables.neverUsePartnersApi]);
31209
+ }
31162
31210
 
31163
31211
  // ../../node_modules/.pnpm/is-interactive@2.0.0/node_modules/is-interactive/index.js
31164
31212
  init_cjs_shims();
@@ -31254,23 +31302,35 @@ function ciPlatform(env3 = process.env) {
31254
31302
  function macAddress() {
31255
31303
  return import_macaddress.default.one();
31256
31304
  }
31305
+ function getThemeKitAccessDomain(env3 = process.env) {
31306
+ let domain = env3[environmentVariables.themeKitAccessDomain];
31307
+ return isSet(domain) ? domain : defaultThemeKitAccessDomain;
31308
+ }
31257
31309
  function opentelemetryDomain(env3 = process.env) {
31258
- return isSet(env3[environmentVariables.otelURL]) ? env3[environmentVariables.otelURL] : "https://otlp-http-production-cli.shopifysvc.com";
31310
+ let domain = env3[environmentVariables.otelURL];
31311
+ return isSet(domain) ? domain : "https://otlp-http-production-cli.shopifysvc.com";
31259
31312
  }
31260
31313
 
31261
31314
  export {
31262
31315
  isTruthy,
31263
31316
  require_eq,
31317
+ require_root,
31318
+ require_Symbol,
31264
31319
  require_isObject,
31320
+ require_Stack,
31321
+ require_Uint8Array,
31265
31322
  require_mapToArray,
31266
31323
  require_arrayPush,
31267
31324
  require_isArray,
31268
31325
  require_baseGetAllKeys,
31269
31326
  require_stubArray,
31270
31327
  require_getSymbols,
31328
+ require_isObjectLike,
31271
31329
  require_isArguments,
31272
31330
  require_isBuffer,
31273
31331
  require_isIndex,
31332
+ require_baseUnary,
31333
+ require_nodeUtil,
31274
31334
  require_isTypedArray,
31275
31335
  require_arrayLikeKeys,
31276
31336
  require_isPrototype,
@@ -31278,6 +31338,7 @@ export {
31278
31338
  require_baseKeys,
31279
31339
  require_isArrayLike,
31280
31340
  require_keys,
31341
+ require_getAllKeys,
31281
31342
  require_getTag,
31282
31343
  require_baseIsEqual,
31283
31344
  require_arrayMap,
@@ -31379,6 +31440,7 @@ export {
31379
31440
  getBackendPort,
31380
31441
  getIdentityTokenInformation,
31381
31442
  jsonOutputEnabled,
31443
+ blockPartnersAccess,
31382
31444
  isTerminalInteractive,
31383
31445
  homeDirectory,
31384
31446
  isDevelopment,
@@ -31401,6 +31463,7 @@ export {
31401
31463
  hasGit,
31402
31464
  ciPlatform,
31403
31465
  macAddress,
31466
+ getThemeKitAccessDomain,
31404
31467
  opentelemetryDomain,
31405
31468
  currentProcessIsGlobal,
31406
31469
  installGlobalShopifyCLI,
@@ -31566,4 +31629,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
31566
31629
  * LICENSE file in the root directory of this source tree.
31567
31630
  *)
31568
31631
  */
31569
- //# sourceMappingURL=chunk-IS43CUN4.js.map
31632
+ //# sourceMappingURL=chunk-DOGSJDGS.js.map
@@ -102,9 +102,9 @@ var require_dir_glob = __commonJS({
102
102
  }
103
103
  });
104
104
 
105
- // ../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js
105
+ // ../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js
106
106
  var require_ignore = __commonJS({
107
- "../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(exports, module) {
107
+ "../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js"(exports, module) {
108
108
  init_cjs_shims();
109
109
  function makeArray(subject) {
110
110
  return Array.isArray(subject) ? subject : [subject];
@@ -129,14 +129,21 @@ var require_ignore = __commonJS({
129
129
  [
130
130
  // (a\ ) -> (a )
131
131
  // (a ) -> (a)
132
+ // (a ) -> (a)
132
133
  // (a \ ) -> (a )
133
- /\\?\s+$/,
134
- (match) => match.indexOf("\\") === 0 ? SPACE : EMPTY
134
+ /((?:\\\\)*?)(\\?\s+)$/,
135
+ (_, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
135
136
  ],
136
137
  // replace (\ ) with ' '
138
+ // (\ ) -> ' '
139
+ // (\\ ) -> '\\ '
140
+ // (\\\ ) -> '\\ '
137
141
  [
138
- /\\\s/g,
139
- () => SPACE
142
+ /(\\+?)\s/g,
143
+ (_, m1) => {
144
+ let { length } = m1;
145
+ return m1.slice(0, length - length % 2) + SPACE;
146
+ }
140
147
  ],
141
148
  // Escape metacharacters
142
149
  // which is written down by users but means special for regular expressions.
@@ -265,7 +272,7 @@ var require_ignore = __commonJS({
265
272
  ], regexCache = /* @__PURE__ */ Object.create(null), makeRegex = (pattern, ignoreCase) => {
266
273
  let source = regexCache[pattern];
267
274
  return source || (source = REPLACERS.reduce(
268
- (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
275
+ (prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
269
276
  pattern
270
277
  ), regexCache[pattern] = source), ignoreCase ? new RegExp(source, "i") : new RegExp(source);
271
278
  }, isString = (subject) => typeof subject == "string", checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0, splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF), IgnoreRule = class {
@@ -659,4 +666,4 @@ export {
659
666
  require_globby,
660
667
  require_indent_string
661
668
  };
662
- //# sourceMappingURL=chunk-ZKGBK6WQ.js.map
669
+ //# sourceMappingURL=chunk-IVFBSLUD.js.map