@wix/create-headless-site 0.0.23 → 0.0.24

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/build/index.js CHANGED
@@ -7033,14 +7033,14 @@ var require_variant = __commonJS({
7033
7033
  return Object.assign(Object.assign({}, result), { [creator.output.type]: creator });
7034
7034
  }, {});
7035
7035
  }
7036
- function variant15(template) {
7036
+ function variant16(template) {
7037
7037
  if (Array.isArray(template)) {
7038
7038
  return variantList(template);
7039
7039
  } else {
7040
7040
  return variantModule(template);
7041
7041
  }
7042
7042
  }
7043
- return { descope, scoped: scope, variant: variant15, variantList, variantModule, variation };
7043
+ return { descope, scoped: scope, variant: variant16, variantList, variantModule, variation };
7044
7044
  }
7045
7045
  exports.variantImpl = variantImpl;
7046
7046
  }
@@ -7170,11 +7170,11 @@ var require_isOfVariant = __commonJS({
7170
7170
  function isOfVariantImpl(key) {
7171
7171
  function isOfVariant3(...args) {
7172
7172
  if (args.length === 1) {
7173
- const [variant15] = args;
7174
- return (instance2) => instance2 != void 0 && Object.values(variant15).some((vc) => vc.output.type === instance2[key]);
7173
+ const [variant16] = args;
7174
+ return (instance2) => instance2 != void 0 && Object.values(variant16).some((vc) => vc.output.type === instance2[key]);
7175
7175
  } else if (args.length === 2) {
7176
- const [instance2, variant15] = args;
7177
- return instance2 != void 0 && Object.values(variant15).some((vc) => vc.output.type === instance2[key]);
7176
+ const [instance2, variant16] = args;
7177
+ return instance2 != void 0 && Object.values(variant16).some((vc) => vc.output.type === instance2[key]);
7178
7178
  }
7179
7179
  return false;
7180
7180
  }
@@ -7611,15 +7611,15 @@ var require_typeCatalog = __commonJS({
7611
7611
  init_esm_shims();
7612
7612
  Object.defineProperty(exports, "__esModule", { value: true });
7613
7613
  exports.typeMap = exports.typeCatalog = void 0;
7614
- function typeCatalog(variant15) {
7615
- return Object.values(variant15).reduce((result, vc) => {
7614
+ function typeCatalog(variant16) {
7615
+ return Object.values(variant16).reduce((result, vc) => {
7616
7616
  return Object.assign(Object.assign({}, result), { [vc.output.type]: vc.output.type });
7617
7617
  }, {});
7618
7618
  }
7619
7619
  exports.typeCatalog = typeCatalog;
7620
- function typeMap(variant15) {
7621
- return Object.keys(variant15).reduce((result, key) => {
7622
- return Object.assign(Object.assign({}, result), { [key]: variant15[key].output.type });
7620
+ function typeMap(variant16) {
7621
+ return Object.keys(variant16).reduce((result, key) => {
7622
+ return Object.assign(Object.assign({}, result), { [key]: variant16[key].output.type });
7623
7623
  }, {});
7624
7624
  }
7625
7625
  exports.typeMap = typeMap;
@@ -79462,7 +79462,8 @@ var CliSystemErrorCode = (0, import_variant11.variant)({
79462
79462
  FailedToFindAstroConfig: {},
79463
79463
  FailedToCreateShareUrl: {},
79464
79464
  FailedToListShareUrls: {},
79465
- FailedToParseNextVersion: (0, import_variant11.fields)()
79465
+ FailedToParseNextVersion: (0, import_variant11.fields)(),
79466
+ FailedToDistributeClientManifestUpdate: {}
79466
79467
  });
79467
79468
  var CliUserErrorCode = (0, import_variant11.variant)({
79468
79469
  LatestVersionOfCreateAppRequired: (0, import_variant11.fields)(),
@@ -90535,6 +90536,9 @@ ${errorMessage}`
90535
90536
  }
90536
90537
  );
90537
90538
  },
90539
+ FailedToDistributeClientManifestUpdate: () => {
90540
+ return () => /* @__PURE__ */ import_react78.default.createElement(SystemErrorMessage, { message: "Failed to distribute client manifest update." });
90541
+ },
90538
90542
  InvalidSiteComponentElementItem: ({ elementPath }) => {
90539
90543
  return () => /* @__PURE__ */ import_react78.default.createElement(
90540
90544
  ErrorMessage,
@@ -95163,7 +95167,7 @@ function wixCliCliError(params) {
95163
95167
  var package_default = {
95164
95168
  name: "@wix/create-headless-site",
95165
95169
  description: "Headless site creation wizard",
95166
- version: "0.0.23",
95170
+ version: "0.0.24",
95167
95171
  bin: "bin/index.cjs",
95168
95172
  devDependencies: {
95169
95173
  "@commander-js/extra-typings": "^13.0.0",
@@ -97794,7 +97798,7 @@ var generateGlobTasksSync = normalizeArgumentsSync(generateTasksSync);
97794
97798
  var { convertPathToPattern } = import_fast_glob2.default;
97795
97799
 
97796
97800
  // src/components/LinkCommand/LinkCommand.tsx
97797
- var import_variant35 = __toESM(require_lib(), 1);
97801
+ var import_variant36 = __toESM(require_lib(), 1);
97798
97802
 
97799
97803
  // src/components/WelcomeMessage.tsx
97800
97804
  init_esm_shims();
@@ -106173,6 +106177,70 @@ function createMetaSiteFromTemplate(payload5) {
106173
106177
  return __createMetaSiteFromTemplate;
106174
106178
  }
106175
106179
 
106180
+ // ../../node_modules/@wix/ambassador-document-management-document-store-v1-transaction/build/es/http.impl.js
106181
+ init_esm_shims();
106182
+ var _distributeRequest = {};
106183
+ var _distributeResponse = {};
106184
+ function resolveComWixpressEditorApiDocumentStoreServiceUrl(opts) {
106185
+ var domainToMappings = {
106186
+ "api._api_base_domain_": [
106187
+ {
106188
+ srcPath: "/editor-document-store",
106189
+ destPath: ""
106190
+ }
106191
+ ],
106192
+ "www._base_domain_": [
106193
+ {
106194
+ srcPath: "/_api/editor-document-store",
106195
+ destPath: ""
106196
+ }
106197
+ ],
106198
+ "editor._base_domain_": [
106199
+ {
106200
+ srcPath: "/_api/editor-document-store",
106201
+ destPath: ""
106202
+ }
106203
+ ],
106204
+ "blocks._base_domain_": [
106205
+ {
106206
+ srcPath: "/_api/editor-document-store",
106207
+ destPath: ""
106208
+ }
106209
+ ],
106210
+ "create.editorx": [
106211
+ {
106212
+ srcPath: "/_api/editor-document-store",
106213
+ destPath: ""
106214
+ }
106215
+ ]
106216
+ };
106217
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
106218
+ }
106219
+ function distribute(payload5) {
106220
+ var _a3 = serializer(_distributeRequest, {}), toReq = _a3.toJSON, fromReq = _a3.fromJSON;
106221
+ var fromRes = serializer(_distributeResponse, {}).fromJSON;
106222
+ function __distribute(_a4) {
106223
+ var host = _a4.host;
106224
+ var serializedData = toReq(payload5);
106225
+ var metadata = {
106226
+ entityFqdn: "wix.document_management.document_store.v1.transaction",
106227
+ method: "POST",
106228
+ methodFqn: "com.wixpress.editor.api.DocumentStoreService.Distribute",
106229
+ url: resolveComWixpressEditorApiDocumentStoreServiceUrl({
106230
+ protoPath: "/v1/distribute",
106231
+ data: serializedData,
106232
+ host
106233
+ }),
106234
+ data: serializedData,
106235
+ transformResponse: fromRes
106236
+ };
106237
+ return metadata;
106238
+ }
106239
+ __distribute.fromReq = fromReq;
106240
+ __distribute.__isAmbassador = true;
106241
+ return __distribute;
106242
+ }
106243
+
106176
106244
  // ../metasite-manager-client/src/schemas.ts
106177
106245
  init_esm_shims();
106178
106246
  var clientSpecMapSchema = external_exports.record(
@@ -106247,6 +106315,29 @@ var MetasiteManagerClient = class {
106247
106315
  });
106248
106316
  }
106249
106317
  };
106318
+ distributeClientUpdate = async (appId) => {
106319
+ try {
106320
+ await this.httpClient.request(
106321
+ distribute({
106322
+ payloads: [
106323
+ {
106324
+ id: appId,
106325
+ messageType: "MANIFEST_UPDATE",
106326
+ data: {
106327
+ appId
106328
+ }
106329
+ }
106330
+ ],
106331
+ branchId: "00000000-0000-0000-0000-000000000000"
106332
+ })
106333
+ );
106334
+ } catch (e2) {
106335
+ throw new CliError({
106336
+ code: CliErrorCode.FailedToDistributeClientManifestUpdate(),
106337
+ cause: e2
106338
+ });
106339
+ }
106340
+ };
106250
106341
  };
106251
106342
 
106252
106343
  // ../metasite-manager-client/src/useMetasiteManagerClient.ts
@@ -107000,11 +107091,12 @@ var CreateProject = ({
107000
107091
  // src/components/LinkCommand/GenerateProject.tsx
107001
107092
  init_esm_shims();
107002
107093
  var import_react108 = __toESM(require_react(), 1);
107003
- var import_variant34 = __toESM(require_lib(), 1);
107094
+ var import_variant35 = __toESM(require_lib(), 1);
107004
107095
 
107005
107096
  // ../cli-astro-definitions/src/index.ts
107006
107097
  init_esm_shims();
107007
107098
  import { join as join11 } from "node:path";
107099
+ var import_variant32 = __toESM(require_lib(), 1);
107008
107100
  var wixAstroSiteConfigSchema = zod_default.object({
107009
107101
  $schema: zod_default.string().optional(),
107010
107102
  projectType: zod_default.literal("Site").optional().default("Site"),
@@ -107058,6 +107150,12 @@ function getEnvFilePath(projectFolder) {
107058
107150
  function getExtensionPath(projectFolder, extensionPath) {
107059
107151
  return join11(projectFolder, "src", "extensions", extensionPath);
107060
107152
  }
107153
+ var PlatformType = (0, import_variant32.variant)({
107154
+ Site: {},
107155
+ Editor: {},
107156
+ Dashboard: {},
107157
+ Blocks: {}
107158
+ });
107061
107159
 
107062
107160
  // ../cli-project-extender/src/index.ts
107063
107161
  init_esm_shims();
@@ -116230,7 +116328,7 @@ async function componentGenerator(opts) {
116230
116328
  // ../cli-project-extender/src/add-files-from-template.ts
116231
116329
  import { join as join16 } from "node:path";
116232
116330
  import { randomUUID as randomUUID3 } from "node:crypto";
116233
- var import_variant32 = __toESM(require_lib(), 1);
116331
+ var import_variant33 = __toESM(require_lib(), 1);
116234
116332
 
116235
116333
  // ../cli-project-extender/src/clone-templates-repo.ts
116236
116334
  init_esm_shims();
@@ -116414,7 +116512,7 @@ async function addFilesFromTemplate(projectFolder, templateId, packageManager, r
116414
116512
  packageManager: {
116415
116513
  name: packageManager.name
116416
116514
  },
116417
- isMonorepo: (0, import_variant32.isType)(repoType, RepoType.Monorepo)
116515
+ isMonorepo: (0, import_variant33.isType)(repoType, RepoType.Monorepo)
116418
116516
  }
116419
116517
  });
116420
116518
  }
@@ -116450,8 +116548,8 @@ async function getUniqueExtensionPath(projectFolder, extensionPath, suffix) {
116450
116548
  // src/task-runner.ts
116451
116549
  init_esm_shims();
116452
116550
  var import_react106 = __toESM(require_react(), 1);
116453
- var import_variant33 = __toESM(require_lib(), 1);
116454
- var TaskRunnerStatus = (0, import_variant33.variant)({
116551
+ var import_variant34 = __toESM(require_lib(), 1);
116552
+ var TaskRunnerStatus = (0, import_variant34.variant)({
116455
116553
  Idle: {},
116456
116554
  Running: (runningTasks, totalTaskCount) => {
116457
116555
  const taskStatuses = runningTasks.map((task, index) => {
@@ -116563,7 +116661,7 @@ var GenerateProject = ({ projectFolder, businessId, projectData, onDone, package
116563
116661
  await executeTaskRunner(tasks);
116564
116662
  onDone(true);
116565
116663
  }, []);
116566
- return (0, import_variant34.match)(taskRunnerStatus, {
116664
+ return (0, import_variant35.match)(taskRunnerStatus, {
116567
116665
  Idle: () => null,
116568
116666
  Running: (status) => /* @__PURE__ */ import_react108.default.createElement(GenerationProgress, { ...status }),
116569
116667
  Done: (status) => /* @__PURE__ */ import_react108.default.createElement(Box_default, { flexDirection: "column", marginBottom: 1 }, /* @__PURE__ */ import_react108.default.createElement(GenerationProgress, { ...status }), /* @__PURE__ */ import_react108.default.createElement(Box_default, { marginLeft: -2, marginTop: 1 }, /* @__PURE__ */ import_react108.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react108.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react108.default.createElement(Text2, null, "Project set up successfully"))))
@@ -116631,7 +116729,7 @@ var LinkCommand = ({
116631
116729
  const packageManager = await createPackageManager(repoType);
116632
116730
  return { repoType, packageManager };
116633
116731
  }, []);
116634
- return (0, import_variant35.match)(status, {
116732
+ return (0, import_variant36.match)(status, {
116635
116733
  Error: () => null,
116636
116734
  Loading: () => /* @__PURE__ */ import_react110.default.createElement(Spinner2, { text: "Loading..." }),
116637
116735
  Success: ({ result: { packageManager } }) => {
@@ -116732,11 +116830,11 @@ function validateTemplateParams(value2) {
116732
116830
  // src/components/ProcessCommand.tsx
116733
116831
  init_esm_shims();
116734
116832
  var import_react117 = __toESM(require_react(), 1);
116735
- var import_variant43 = __toESM(require_lib(), 1);
116833
+ var import_variant44 = __toESM(require_lib(), 1);
116736
116834
 
116737
116835
  // src/parse-command-options.ts
116738
116836
  init_esm_shims();
116739
- var import_variant37 = __toESM(require_lib(), 1);
116837
+ var import_variant38 = __toESM(require_lib(), 1);
116740
116838
  import { join as join17 } from "node:path";
116741
116839
 
116742
116840
  // src/validations/index.ts
@@ -117390,11 +117488,11 @@ async function validateForLatestVersion(pkgJson, packageManager) {
117390
117488
  // src/validations/package-name.ts
117391
117489
  init_esm_shims();
117392
117490
  var import_validate_npm_package_name = __toESM(require_lib3(), 1);
117393
- var import_variant36 = __toESM(require_lib(), 1);
117394
- var Result = (0, import_variant36.variant)(
117395
- (0, import_variant36.onTerms)(({ T }) => ({
117396
- Error: (0, import_variant36.payload)(T),
117397
- Ok: import_variant36.nil
117491
+ var import_variant37 = __toESM(require_lib(), 1);
117492
+ var Result = (0, import_variant37.variant)(
117493
+ (0, import_variant37.onTerms)(({ T }) => ({
117494
+ Error: (0, import_variant37.payload)(T),
117495
+ Ok: import_variant37.nil
117398
117496
  }))
117399
117497
  );
117400
117498
  async function validatePackageName(name) {
@@ -117433,10 +117531,10 @@ var headlessTemplates = [
117433
117531
  gitPath: "astro/blank"
117434
117532
  }
117435
117533
  ];
117436
- var TemplateSource = (0, import_variant37.variant)({
117437
- App: (0, import_variant37.fields)(),
117438
- GitRepo: (0, import_variant37.fields)(),
117439
- Local: (0, import_variant37.fields)()
117534
+ var TemplateSource = (0, import_variant38.variant)({
117535
+ App: (0, import_variant38.fields)(),
117536
+ GitRepo: (0, import_variant38.fields)(),
117537
+ Local: (0, import_variant38.fields)()
117440
117538
  });
117441
117539
  function parseCloudProvider(cloudProvider) {
117442
117540
  if (!cloudProvider) {
@@ -117505,7 +117603,7 @@ async function parseProjectNameOptions(targetParentFolder2, options) {
117505
117603
  });
117506
117604
  }
117507
117605
  const npmValidationErrors = await validatePackageName(projectName);
117508
- if ((0, import_variant37.isType)(npmValidationErrors, "Error")) {
117606
+ if ((0, import_variant38.isType)(npmValidationErrors, "Error")) {
117509
117607
  throw new CliError({
117510
117608
  code: CliErrorCode.ProjectNameArgumentIsInvalid({
117511
117609
  errorMessage: `Invalid package name "${projectName}". Please fix the following issues: ${npmValidationErrors.payload.join(", ")}`
@@ -117561,19 +117659,19 @@ async function parseCommandOptions(targetParentFolder2, options) {
117561
117659
  // src/components/CreateHeadlessSiteCommand.tsx
117562
117660
  init_esm_shims();
117563
117661
  var import_react116 = __toESM(require_react(), 1);
117564
- var import_variant42 = __toESM(require_lib(), 1);
117662
+ var import_variant43 = __toESM(require_lib(), 1);
117565
117663
 
117566
117664
  // src/components/ChooseFolder.tsx
117567
117665
  init_esm_shims();
117568
117666
  var import_react111 = __toESM(require_react(), 1);
117569
- var import_variant38 = __toESM(require_lib(), 1);
117667
+ var import_variant39 = __toESM(require_lib(), 1);
117570
117668
  import { join as join18 } from "node:path";
117571
117669
  var validateAppDirectory = async (targetParentFolder2, packageName) => {
117572
117670
  if (!await validateDirectory(join18(targetParentFolder2, packageName))) {
117573
117671
  return `Provided directory "${packageName}" is not empty`;
117574
117672
  }
117575
117673
  const npmValidationErrors = await validatePackageName(packageName);
117576
- return (0, import_variant38.match)(npmValidationErrors, {
117674
+ return (0, import_variant39.match)(npmValidationErrors, {
117577
117675
  Ok: () => true,
117578
117676
  Error: ({ payload: payload5 }) => `Invalid folder name. Please fix the following issues: ${payload5.join(", ")}`
117579
117677
  });
@@ -117599,7 +117697,7 @@ var ChooseFolder = ({ initialFolderName, targetParentFolder: targetParentFolder2
117599
117697
  init_esm_shims();
117600
117698
  import { mkdir as mkdir3 } from "node:fs/promises";
117601
117699
  var import_react112 = __toESM(require_react(), 1);
117602
- var import_variant39 = __toESM(require_lib(), 1);
117700
+ var import_variant40 = __toESM(require_lib(), 1);
117603
117701
  import { join as join20 } from "node:path";
117604
117702
 
117605
117703
  // src/services/generator/template-fetcher.ts
@@ -117671,7 +117769,7 @@ var GenerateProject2 = ({
117671
117769
  cause: e2
117672
117770
  });
117673
117771
  }
117674
- const templateFolder = await (0, import_variant39.match)(selectedTemplate, {
117772
+ const templateFolder = await (0, import_variant40.match)(selectedTemplate, {
117675
117773
  App: ({ gitPath }) => fetchTemplate(headlessTemplatesGitUrl, gitPath),
117676
117774
  GitRepo: ({ url: url2, path: path8 }) => fetchTemplate(url2, path8),
117677
117775
  Local: ({ path: path8 }) => path8
@@ -117800,7 +117898,7 @@ var GenerateProject2 = ({
117800
117898
  await executeTaskRunner(tasks);
117801
117899
  onDone(true);
117802
117900
  }, []);
117803
- return (0, import_variant39.match)(taskRunnerStatus, {
117901
+ return (0, import_variant40.match)(taskRunnerStatus, {
117804
117902
  Idle: () => null,
117805
117903
  Running: (status) => /* @__PURE__ */ import_react112.default.createElement(GenerationProgress2, { ...status }),
117806
117904
  Done: (status) => /* @__PURE__ */ import_react112.default.createElement(Box_default, { flexDirection: "column", marginBottom: 1 }, /* @__PURE__ */ import_react112.default.createElement(GenerationProgress2, { ...status }), /* @__PURE__ */ import_react112.default.createElement(Box_default, { marginLeft: -2, marginTop: 1 }, /* @__PURE__ */ import_react112.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react112.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react112.default.createElement(Text2, null, "Project set up successfully"))))
@@ -117832,7 +117930,7 @@ var ChooseTemplate = ({ onSubmit }) => {
117832
117930
  // src/components/ReleaseProject.tsx
117833
117931
  init_esm_shims();
117834
117932
  var import_react115 = __toESM(require_react(), 1);
117835
- var import_variant41 = __toESM(require_lib(), 1);
117933
+ var import_variant42 = __toESM(require_lib(), 1);
117836
117934
 
117837
117935
  // src/components/FinishedSuccessfullyMessage.tsx
117838
117936
  init_esm_shims();
@@ -117858,9 +117956,9 @@ var FinishedSuccessfullyMessage2 = ({ packageManager, folderName, projectData, i
117858
117956
 
117859
117957
  // src/hooks/release-project.ts
117860
117958
  init_esm_shims();
117861
- var import_variant40 = __toESM(require_lib(), 1);
117959
+ var import_variant41 = __toESM(require_lib(), 1);
117862
117960
  import { join as join21 } from "node:path";
117863
- var ReleaseStateVariant = (0, import_variant40.variant)({
117961
+ var ReleaseStateVariant = (0, import_variant41.variant)({
117864
117962
  Success: {},
117865
117963
  Skipped: {},
117866
117964
  Error: {}
@@ -117932,10 +118030,10 @@ var ReleaseProject = ({
117932
118030
  });
117933
118031
  }
117934
118032
  }
117935
- )), (0, import_variant41.match)(status, {
118033
+ )), (0, import_variant42.match)(status, {
117936
118034
  NotRequested: () => null,
117937
118035
  Success: ({ result }) => {
117938
- return /* @__PURE__ */ import_react115.default.createElement(import_react115.default.Fragment, null, (0, import_variant41.match)(result, {
118036
+ return /* @__PURE__ */ import_react115.default.createElement(import_react115.default.Fragment, null, (0, import_variant42.match)(result, {
117939
118037
  Success: () => /* @__PURE__ */ import_react115.default.createElement(Box_default, { marginLeft: -2 }, /* @__PURE__ */ import_react115.default.createElement(Alert, { type: "success" }, /* @__PURE__ */ import_react115.default.createElement(Badge, { skin: "success" }, "Success"), " ", /* @__PURE__ */ import_react115.default.createElement(Text2, null, "Site published successfully"))),
117940
118038
  Skipped: () => /* @__PURE__ */ import_react115.default.createElement(Text2, null, `No worries, you can publish your site later by running ${packageManager.getRunCmd()} release`),
117941
118039
  Error: () => /* @__PURE__ */ import_react115.default.createElement(Box_default, { flexDirection: "column", gap: 1 }, /* @__PURE__ */ import_react115.default.createElement(Alert, { type: "error" }, "Failed to publish your site"), /* @__PURE__ */ import_react115.default.createElement(Text2, null, `No worries, you can publish your site later by running ${packageManager.getRunCmd()} release`))
@@ -117945,7 +118043,7 @@ var ReleaseProject = ({
117945
118043
  packageManager,
117946
118044
  folderName,
117947
118045
  projectData,
117948
- isReleased: (0, import_variant41.isType)(result, "Success")
118046
+ isReleased: (0, import_variant42.isType)(result, "Success")
117949
118047
  }
117950
118048
  ));
117951
118049
  },
@@ -117980,7 +118078,7 @@ var CreateHeadlessSiteCommand = ({
117980
118078
  await validateForLatestVersion(package_default, packageManager);
117981
118079
  return { repoType, packageManager };
117982
118080
  }, []);
117983
- return (0, import_variant42.match)(status, {
118081
+ return (0, import_variant43.match)(status, {
117984
118082
  Error: () => null,
117985
118083
  Loading: () => /* @__PURE__ */ import_react116.default.createElement(Spinner2, { text: "Loading..." }),
117986
118084
  Success: ({ result: { packageManager, repoType } }) => {
@@ -118087,7 +118185,7 @@ var ProcessCommand = ({ targetParentFolder: targetParentFolder2, commandOptions
118087
118185
  }
118088
118186
  return result;
118089
118187
  }, []);
118090
- return (0, import_variant43.match)(status, {
118188
+ return (0, import_variant44.match)(status, {
118091
118189
  Error: () => null,
118092
118190
  Loading: () => /* @__PURE__ */ import_react117.default.createElement(Spinner2, { text: "Loading..." }),
118093
118191
  Success: ({