@wix/cli-app 1.1.132 → 1.1.133

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 (65) hide show
  1. package/build/{AddPermissionCommand-7QIFVBXV.js → AddPermissionCommand-TSG2QSBL.js} +2 -2
  2. package/build/{DevCommand-RDPL27X5.js → DevCommand-7MZLBDES.js} +20 -204
  3. package/build/DevCommand-7MZLBDES.js.map +1 -0
  4. package/build/{GenerateCommand-6ADO2EJU.js → GenerateCommand-5UI54KBU.js} +8 -8
  5. package/build/{LogsCommand-PIRWJADI.js → LogsCommand-WFRYKHOJ.js} +3 -3
  6. package/build/PreviewCommand-LL5LFTMH.js +19 -0
  7. package/build/ReleaseCommand-RKFXIF3L.js +23 -0
  8. package/build/{ServeCommand-5HERPY2Q.js → ServeCommand-H4SEVUAN.js} +3 -3
  9. package/build/{build-6IDZAW4E.js → build-DSGVV5ZV.js} +6 -6
  10. package/build/{chunk-ZHQREOZP.js → chunk-3QFT6UQF.js} +2 -1
  11. package/build/chunk-3QFT6UQF.js.map +1 -0
  12. package/build/{chunk-O2MISIES.js → chunk-5WFSVZ46.js} +2 -2
  13. package/build/{chunk-WA2CFDB5.js → chunk-ANYJPSC5.js} +3 -3
  14. package/build/{chunk-IIF6P6XG.js → chunk-CGB7ASKC.js} +2 -2
  15. package/build/{chunk-QQ4OBBX7.js → chunk-DYQDQIEK.js} +6 -6
  16. package/build/{chunk-XDUVJLLQ.js → chunk-ESWUL5ZX.js} +2 -2
  17. package/build/{chunk-FWRUE2NB.js → chunk-FDSIXM6K.js} +2 -2
  18. package/build/{chunk-ESTYQVMX.js → chunk-FLD47ENF.js} +179 -110
  19. package/build/{chunk-ESTYQVMX.js.map → chunk-FLD47ENF.js.map} +1 -1
  20. package/build/{chunk-UJ4SA2PC.js → chunk-GD5PKY3K.js} +2 -2
  21. package/build/{chunk-DK2KK5UN.js → chunk-JL3LD5NY.js} +2 -2
  22. package/build/{chunk-JYZ5QJ5C.js → chunk-LQ4UVRDE.js} +2 -2
  23. package/build/{chunk-KVESKT7X.js → chunk-LXB667TS.js} +5 -5
  24. package/build/{chunk-VDQEUTFT.js → chunk-MNXUG25I.js} +5 -5
  25. package/build/{chunk-GNL53AZS.js → chunk-QYDPX5NW.js} +3 -3
  26. package/build/{chunk-LQZSH33G.js → chunk-RD5ZK7QU.js} +6 -6
  27. package/build/{chunk-NJXD2TTX.js → chunk-XLQ3FRLZ.js} +2 -2
  28. package/build/{chunk-PREYTA74.js → chunk-Z4TJCHCK.js} +3 -3
  29. package/build/{chunk-KHUHWBJD.js → chunk-Z5ULQGAD.js} +395 -93
  30. package/build/chunk-Z5ULQGAD.js.map +1 -0
  31. package/build/index.js +24 -24
  32. package/build/{preview-IXHPIOMO.js → preview-2NDGCDVM.js} +13 -13
  33. package/build/{release-RFFKID6V.js → release-EYSGZ3OW.js} +15 -15
  34. package/build/{render-command-NUU6LT5M.js → render-command-5BZDYMWG.js} +6 -6
  35. package/package.json +2 -2
  36. package/build/DevCommand-RDPL27X5.js.map +0 -1
  37. package/build/PreviewCommand-AN6WMCYS.js +0 -19
  38. package/build/ReleaseCommand-DAK2EFM2.js +0 -23
  39. package/build/chunk-KHUHWBJD.js.map +0 -1
  40. package/build/chunk-ZHQREOZP.js.map +0 -1
  41. /package/build/{AddPermissionCommand-7QIFVBXV.js.map → AddPermissionCommand-TSG2QSBL.js.map} +0 -0
  42. /package/build/{GenerateCommand-6ADO2EJU.js.map → GenerateCommand-5UI54KBU.js.map} +0 -0
  43. /package/build/{LogsCommand-PIRWJADI.js.map → LogsCommand-WFRYKHOJ.js.map} +0 -0
  44. /package/build/{PreviewCommand-AN6WMCYS.js.map → PreviewCommand-LL5LFTMH.js.map} +0 -0
  45. /package/build/{ReleaseCommand-DAK2EFM2.js.map → ReleaseCommand-RKFXIF3L.js.map} +0 -0
  46. /package/build/{ServeCommand-5HERPY2Q.js.map → ServeCommand-H4SEVUAN.js.map} +0 -0
  47. /package/build/{build-6IDZAW4E.js.map → build-DSGVV5ZV.js.map} +0 -0
  48. /package/build/{chunk-O2MISIES.js.map → chunk-5WFSVZ46.js.map} +0 -0
  49. /package/build/{chunk-WA2CFDB5.js.map → chunk-ANYJPSC5.js.map} +0 -0
  50. /package/build/{chunk-IIF6P6XG.js.map → chunk-CGB7ASKC.js.map} +0 -0
  51. /package/build/{chunk-QQ4OBBX7.js.map → chunk-DYQDQIEK.js.map} +0 -0
  52. /package/build/{chunk-XDUVJLLQ.js.map → chunk-ESWUL5ZX.js.map} +0 -0
  53. /package/build/{chunk-FWRUE2NB.js.map → chunk-FDSIXM6K.js.map} +0 -0
  54. /package/build/{chunk-UJ4SA2PC.js.map → chunk-GD5PKY3K.js.map} +0 -0
  55. /package/build/{chunk-DK2KK5UN.js.map → chunk-JL3LD5NY.js.map} +0 -0
  56. /package/build/{chunk-JYZ5QJ5C.js.map → chunk-LQ4UVRDE.js.map} +0 -0
  57. /package/build/{chunk-KVESKT7X.js.map → chunk-LXB667TS.js.map} +0 -0
  58. /package/build/{chunk-VDQEUTFT.js.map → chunk-MNXUG25I.js.map} +0 -0
  59. /package/build/{chunk-GNL53AZS.js.map → chunk-QYDPX5NW.js.map} +0 -0
  60. /package/build/{chunk-LQZSH33G.js.map → chunk-RD5ZK7QU.js.map} +0 -0
  61. /package/build/{chunk-NJXD2TTX.js.map → chunk-XLQ3FRLZ.js.map} +0 -0
  62. /package/build/{chunk-PREYTA74.js.map → chunk-Z4TJCHCK.js.map} +0 -0
  63. /package/build/{preview-IXHPIOMO.js.map → preview-2NDGCDVM.js.map} +0 -0
  64. /package/build/{release-RFFKID6V.js.map → release-EYSGZ3OW.js.map} +0 -0
  65. /package/build/{render-command-NUU6LT5M.js.map → render-command-5BZDYMWG.js.map} +0 -0
@@ -306,12 +306,12 @@ var require_isType = __commonJS({
306
306
  Object.defineProperty(exports, "__esModule", { value: true });
307
307
  exports.isTypeImpl = void 0;
308
308
  function isTypeImpl(key) {
309
- function isType12(instanceOrType, type) {
309
+ function isType13(instanceOrType, type) {
310
310
  if (instanceOrType != void 0) {
311
311
  if (typeof instanceOrType === "function" || typeof instanceOrType === "string") {
312
312
  const typeArg = instanceOrType;
313
313
  const typeStr2 = typeof typeArg === "string" ? typeArg : typeArg.output.type;
314
- return (o) => isType12(o, typeStr2);
314
+ return (o) => isType13(o, typeStr2);
315
315
  } else {
316
316
  const instance2 = instanceOrType;
317
317
  const typeStr2 = typeof type === "string" ? type : type.output.type;
@@ -321,7 +321,7 @@ var require_isType = __commonJS({
321
321
  return false;
322
322
  }
323
323
  }
324
- return { isType: isType12 };
324
+ return { isType: isType13 };
325
325
  }
326
326
  exports.isTypeImpl = isTypeImpl;
327
327
  }
@@ -588,13 +588,13 @@ var require_remote = __commonJS({
588
588
  CompareResult2[CompareResult2["Greater"] = 1] = "Greater";
589
589
  })(CompareResult = exports.CompareResult || (exports.CompareResult = {}));
590
590
  function remoteImpl(key) {
591
- const { isType: isType12 } = (0, isType_1.isTypeImpl)(key);
591
+ const { isType: isType13 } = (0, isType_1.isTypeImpl)(key);
592
592
  const { match: match15 } = (0, match_1.matchImpl)(key);
593
593
  const { variantList } = (0, variant_1.variantImpl)(key);
594
594
  function isFunctions(vmod) {
595
595
  const keys2 = Object.keys(vmod);
596
596
  return keys2.reduce((acc, key2) => {
597
- return Object.assign(Object.assign({}, acc), { [key2]: isType12(key2) });
597
+ return Object.assign(Object.assign({}, acc), { [key2]: isType13(key2) });
598
598
  }, {});
599
599
  }
600
600
  function remote(vmod) {
@@ -862,11 +862,11 @@ var require_cosmos = __commonJS({
862
862
  var typed_1 = require_typed();
863
863
  var matcher_1 = require_matcher();
864
864
  function variantCosmos({ key }) {
865
- const { isType: isType12 } = (0, isType_1.isTypeImpl)(key);
865
+ const { isType: isType13 } = (0, isType_1.isTypeImpl)(key);
866
866
  const { flags } = (0, flags_1.flagsImpl)(key);
867
867
  return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
868
868
  key,
869
- isType: isType12,
869
+ isType: isType13,
870
870
  flags
871
871
  }, (0, isOfVariant_1.isOfVariantImpl)(key)), (0, match_1.matchImpl)(key)), (0, matcher_1.matcherImpl)(key)), (0, remote_1.remoteImpl)(key)), (0, typed_1.typedImpl)(key)), (0, types_1.typesImpl)(key)), (0, variant_1.variantImpl)(key));
872
872
  }
@@ -9083,12 +9083,12 @@ var require_lodash = __commonJS({
9083
9083
  Stack.prototype.has = stackHas;
9084
9084
  Stack.prototype.set = stackSet;
9085
9085
  function arrayLikeKeys(value2, inherited) {
9086
- var isArr = isArray3(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2), isType12 = !isArr && !isArg && !isBuff && isTypedArray2(value2), skipIndexes = isArr || isArg || isBuff || isType12, result = skipIndexes ? baseTimes(value2.length, String) : [], length = result.length;
9086
+ var isArr = isArray3(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2), isType13 = !isArr && !isArg && !isBuff && isTypedArray2(value2), skipIndexes = isArr || isArg || isBuff || isType13, result = skipIndexes ? baseTimes(value2.length, String) : [], length = result.length;
9087
9087
  for (var key in value2) {
9088
9088
  if ((inherited || hasOwnProperty3.call(value2, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
9089
9089
  (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
9090
9090
  isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
9091
- isType12 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
9091
+ isType13 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
9092
9092
  isIndex(key, length)))) {
9093
9093
  result.push(key);
9094
9094
  }
@@ -20886,9 +20886,9 @@ ${trace}`);
20886
20886
  Object.defineProperty(exports2, "__esModule", {
20887
20887
  value: true
20888
20888
  });
20889
- exports2.default = isType12;
20889
+ exports2.default = isType13;
20890
20890
  var _index = require_definitions();
20891
- function isType12(nodeType, targetType) {
20891
+ function isType13(nodeType, targetType) {
20892
20892
  if (nodeType === targetType) return true;
20893
20893
  if (nodeType == null) return false;
20894
20894
  if (_index.ALIAS_KEYS[targetType]) return false;
@@ -53433,7 +53433,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
53433
53433
  return false;
53434
53434
  }
53435
53435
  }
53436
- function isType12(node) {
53436
+ function isType13(node) {
53437
53437
  return isLiteral(node) || isObjectExpression(node) || isArrayExpression(node) || isIdentifier(node) || isMemberExpression(node);
53438
53438
  }
53439
53439
  var nodes = exports2.nodes = {
@@ -53469,7 +53469,7 @@ var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toS
53469
53469
  VariableDeclaration(node) {
53470
53470
  for (let i2 = 0; i2 < node.declarations.length; i2++) {
53471
53471
  const declar = node.declarations[i2];
53472
- let enabled = isHelper(declar.id) && !isType12(declar.init);
53472
+ let enabled = isHelper(declar.id) && !isType13(declar.init);
53473
53473
  if (!enabled && declar.init) {
53474
53474
  const state = crawl(declar.init);
53475
53475
  enabled = isHelper(declar.init) && state.hasCall || state.hasFunction;
@@ -61050,7 +61050,7 @@ ${" ".repeat(indentSize)}`);
61050
61050
  isIdentifier,
61051
61051
  isLiteral,
61052
61052
  isStringLiteral,
61053
- isType: isType12,
61053
+ isType: isType13,
61054
61054
  matchesPattern: _matchesPattern
61055
61055
  } = _t;
61056
61056
  function matchesPattern(pattern, allowPartial) {
@@ -61080,7 +61080,7 @@ ${" ".repeat(indentSize)}`);
61080
61080
  };
61081
61081
  }
61082
61082
  function isNodeType(type) {
61083
- return isType12(this.type, type);
61083
+ return isType13(this.type, type);
61084
61084
  }
61085
61085
  function canHaveVariableDeclarationOrExpression() {
61086
61086
  return (this.key === "init" || this.key === "left") && this.parentPath.isFor();
@@ -139636,7 +139636,7 @@ var require_path_type = __commonJS({
139636
139636
  init_esm_shims();
139637
139637
  var { promisify: promisify6 } = __require("util");
139638
139638
  var fs11 = __require("fs");
139639
- async function isType12(fsStatType, statsMethodName, filePath) {
139639
+ async function isType13(fsStatType, statsMethodName, filePath) {
139640
139640
  if (typeof filePath !== "string") {
139641
139641
  throw new TypeError(`Expected a string, got ${typeof filePath}`);
139642
139642
  }
@@ -139663,9 +139663,9 @@ var require_path_type = __commonJS({
139663
139663
  throw error;
139664
139664
  }
139665
139665
  }
139666
- exports.isFile = isType12.bind(null, "stat", "isFile");
139667
- exports.isDirectory = isType12.bind(null, "stat", "isDirectory");
139668
- exports.isSymlink = isType12.bind(null, "lstat", "isSymbolicLink");
139666
+ exports.isFile = isType13.bind(null, "stat", "isFile");
139667
+ exports.isDirectory = isType13.bind(null, "stat", "isDirectory");
139668
+ exports.isSymlink = isType13.bind(null, "lstat", "isSymbolicLink");
139669
139669
  exports.isFileSync = isTypeSync2.bind(null, "statSync", "isFile");
139670
139670
  exports.isDirectorySync = isTypeSync2.bind(null, "statSync", "isDirectory");
139671
139671
  exports.isSymlinkSync = isTypeSync2.bind(null, "lstatSync", "isSymbolicLink");
@@ -145058,7 +145058,7 @@ var require_chokidar = __commonJS({
145058
145058
  var package_default = {
145059
145059
  name: "@wix/cli-app",
145060
145060
  description: "CLI tool for Wix apps",
145061
- version: "1.1.132",
145061
+ version: "1.1.133",
145062
145062
  author: "Amit Dahan",
145063
145063
  dependencies: {
145064
145064
  esbuild: "^0.25.0",
@@ -145364,7 +145364,8 @@ var CliSystemErrorCode = (0, import_variant.variant)({
145364
145364
  FailedToFindAstroConfig: {},
145365
145365
  FailedToCreateShareUrl: {},
145366
145366
  FailedToListShareUrls: {},
145367
- FailedToParseNextVersion: (0, import_variant.fields)()
145367
+ FailedToParseNextVersion: (0, import_variant.fields)(),
145368
+ FailedToDistributeClientManifestUpdate: {}
145368
145369
  });
145369
145370
  var CliUserErrorCode = (0, import_variant.variant)({
145370
145371
  LatestVersionOfCreateAppRequired: (0, import_variant.fields)(),
@@ -164931,6 +164932,9 @@ ${errorMessage}`
164931
164932
  }
164932
164933
  );
164933
164934
  },
164935
+ FailedToDistributeClientManifestUpdate: () => {
164936
+ return () => /* @__PURE__ */ import_react79.default.createElement(SystemErrorMessage, { message: "Failed to distribute client manifest update." });
164937
+ },
164934
164938
  InvalidSiteComponentElementItem: ({ elementPath }) => {
164935
164939
  return () => /* @__PURE__ */ import_react79.default.createElement(
164936
164940
  ErrorMessage,
@@ -167590,6 +167594,62 @@ var SiteAuthProvider = ({
167590
167594
  );
167591
167595
  };
167592
167596
 
167597
+ // ../cli-auth/src/hooks/useSiteAuth.ts
167598
+ init_esm_shims();
167599
+ var import_react90 = __toESM(require_react(), 1);
167600
+ var import_variant24 = __toESM(require_lib(), 1);
167601
+ var useSiteAuth = ({
167602
+ siteId,
167603
+ onError,
167604
+ onLogin
167605
+ }) => {
167606
+ const exit = useExit();
167607
+ const authStrategy = (0, import_react90.useMemo)(() => createSiteAuthStrategy(siteId), [siteId]);
167608
+ const { status } = useAsync2(authStrategy.isLoggedIn, [], {
167609
+ onSuccess: (result) => {
167610
+ if (result) {
167611
+ onLogin?.(result.userInfo);
167612
+ }
167613
+ },
167614
+ onError: onError ?? exit
167615
+ });
167616
+ if ((0, import_variant24.isType)(status, "Loading")) {
167617
+ return {
167618
+ isLoading: true,
167619
+ isError: false,
167620
+ isAuthenticated: false,
167621
+ authState: null
167622
+ };
167623
+ }
167624
+ if ((0, import_variant24.isType)(status, "Error")) {
167625
+ return {
167626
+ isLoading: false,
167627
+ isError: true,
167628
+ isAuthenticated: false,
167629
+ authState: null,
167630
+ error: status.error
167631
+ };
167632
+ }
167633
+ const authState = status.result;
167634
+ if (authState == null) {
167635
+ return {
167636
+ isLoading: false,
167637
+ isError: false,
167638
+ isAuthenticated: false,
167639
+ authState: null
167640
+ };
167641
+ }
167642
+ return {
167643
+ isLoading: false,
167644
+ isError: false,
167645
+ isAuthenticated: true,
167646
+ authState,
167647
+ getAccessToken: authState.getAccessToken,
167648
+ getRequestHeaders: authState.getRequestHeaders,
167649
+ userInfo: authState.userInfo
167650
+ };
167651
+ };
167652
+
167593
167653
  // ../cli-auth/src/index.ts
167594
167654
  var { isLoggedIn: isLoggedInToAccount } = accountAuthStrategy;
167595
167655
 
@@ -167624,13 +167684,13 @@ function getDebugLogFilePath(projectFolder) {
167624
167684
 
167625
167685
  // ../cli-http-client-react/src/httpClientProvider.tsx
167626
167686
  init_esm_shims();
167627
- var import_react90 = __toESM(require_react(), 1);
167628
- var HttpClientContext = (0, import_react90.createContext)(null);
167687
+ var import_react91 = __toESM(require_react(), 1);
167688
+ var HttpClientContext = (0, import_react91.createContext)(null);
167629
167689
  var HttpClientProvider = ({
167630
167690
  children,
167631
167691
  headers
167632
167692
  }) => {
167633
- return /* @__PURE__ */ import_react90.default.createElement(HttpClientContext.Provider, { value: { headers } }, children);
167693
+ return /* @__PURE__ */ import_react91.default.createElement(HttpClientContext.Provider, { value: { headers } }, children);
167634
167694
  };
167635
167695
 
167636
167696
  // ../cli-http-client-react/src/buildHttpClientHeaders.ts
@@ -167655,13 +167715,13 @@ init_esm_shims();
167655
167715
 
167656
167716
  // ../cli-http-client-react/src/useHttpClient.ts
167657
167717
  init_esm_shims();
167658
- var import_react91 = __toESM(require_react(), 1);
167718
+ var import_react92 = __toESM(require_react(), 1);
167659
167719
  function useHttpClient({
167660
167720
  type
167661
167721
  }) {
167662
- const context = (0, import_react91.useContext)(HttpClientContext);
167722
+ const context = (0, import_react92.useContext)(HttpClientContext);
167663
167723
  const { getAccessToken: getAppToken, getRequestHeaders: createAuthHeaders } = useAuth();
167664
- return (0, import_react91.useMemo)(
167724
+ return (0, import_react92.useMemo)(
167665
167725
  () => createHttpClient({
167666
167726
  type,
167667
167727
  getAppToken,
@@ -167676,11 +167736,11 @@ function useHttpClient({
167676
167736
 
167677
167737
  // ../cli-panorama/src/PanoramaContext.tsx
167678
167738
  init_esm_shims();
167679
- var import_react92 = __toESM(require_react(), 1);
167680
- var PanoramaContext = (0, import_react92.createContext)(void 0);
167739
+ var import_react93 = __toESM(require_react(), 1);
167740
+ var PanoramaContext = (0, import_react93.createContext)(void 0);
167681
167741
  var PanoramaProvider = (props) => {
167682
167742
  const { value: value2, children } = props;
167683
- return /* @__PURE__ */ import_react92.default.createElement(PanoramaContext.Provider, { value: value2 }, children);
167743
+ return /* @__PURE__ */ import_react93.default.createElement(PanoramaContext.Provider, { value: value2 }, children);
167684
167744
  };
167685
167745
 
167686
167746
  // ../cli-panorama/src/index.ts
@@ -167688,23 +167748,23 @@ init_esm_shims();
167688
167748
 
167689
167749
  // ../cli-panorama/src/usePanoramaMethodLogger.ts
167690
167750
  init_esm_shims();
167691
- var import_react93 = __toESM(require_react(), 1);
167751
+ var import_react94 = __toESM(require_react(), 1);
167692
167752
  function usePanoramaMethodLogger(target) {
167693
- const factory = (0, import_react93.useContext)(PanoramaContext);
167753
+ const factory = (0, import_react94.useContext)(PanoramaContext);
167694
167754
  if (factory == null) {
167695
167755
  throw new Error(
167696
167756
  "usePanoramaMethodLogger() cannot be used without a <PanoramaProvider />"
167697
167757
  );
167698
167758
  }
167699
167759
  const componentId = target.constructor.name;
167700
- const clientOptions = (0, import_react93.useMemo)(
167760
+ const clientOptions = (0, import_react94.useMemo)(
167701
167761
  () => ({ baseParams: { componentId } }),
167702
167762
  [componentId]
167703
167763
  );
167704
- const client2 = (0, import_react93.useMemo)(() => {
167764
+ const client2 = (0, import_react94.useMemo)(() => {
167705
167765
  return factory.client(clientOptions);
167706
167766
  }, [factory, clientOptions]);
167707
- return (0, import_react93.useMemo)(() => {
167767
+ return (0, import_react94.useMemo)(() => {
167708
167768
  const cache3 = /* @__PURE__ */ new Map();
167709
167769
  return new Proxy(target, {
167710
167770
  get(target2, prop, receiver) {
@@ -167731,7 +167791,7 @@ function usePanoramaMethodLogger(target) {
167731
167791
 
167732
167792
  // ../cli-app-definitions/src/index.ts
167733
167793
  init_esm_shims();
167734
- var import_variant24 = __toESM(require_lib(), 1);
167794
+ var import_variant25 = __toESM(require_lib(), 1);
167735
167795
  import { join as join4 } from "node:path";
167736
167796
 
167737
167797
  // ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-old/build/es/types.impl.js
@@ -170677,7 +170737,7 @@ var embeddedScriptConfigSchema = external_exports.object({
170677
170737
  "An enum indicating where in the page's DOM the HTML code will be injected."
170678
170738
  )
170679
170739
  }).strict();
170680
- var PlatformType = (0, import_variant24.variant)({
170740
+ var PlatformType = (0, import_variant25.variant)({
170681
170741
  Site: {},
170682
170742
  Editor: {},
170683
170743
  Dashboard: {},
@@ -170943,44 +171003,44 @@ var siteComponentPanelConfigSchema = external_exports.object({
170943
171003
 
170944
171004
  // src/dev-center/components/dev-center-component.ts
170945
171005
  init_esm_shims();
170946
- var import_variant25 = __toESM(require_lib(), 1);
170947
- var ServicePlugin = (0, import_variant25.variant)({
170948
- EcomShippingRates: (0, import_variant25.fields)(),
170949
- EcomAdditionalFees: (0, import_variant25.fields)(),
170950
- EcomDiscountsTrigger: (0, import_variant25.fields)(),
170951
- EcomValidations: (0, import_variant25.fields)(),
170952
- EcomPaymentSettings: (0, import_variant25.fields)(),
170953
- EcomGiftCardsProvider: (0, import_variant25.fields)(),
170954
- EcomRecommendationsProvider: (0, import_variant25.fields)(),
170955
- ExternalDatabaseProvider: (0, import_variant25.fields)(),
170956
- SeoKeywordsSuggestion: (0, import_variant25.fields)(),
170957
- PremiumCustomCharges: (0, import_variant25.fields)()
171006
+ var import_variant26 = __toESM(require_lib(), 1);
171007
+ var ServicePlugin = (0, import_variant26.variant)({
171008
+ EcomShippingRates: (0, import_variant26.fields)(),
171009
+ EcomAdditionalFees: (0, import_variant26.fields)(),
171010
+ EcomDiscountsTrigger: (0, import_variant26.fields)(),
171011
+ EcomValidations: (0, import_variant26.fields)(),
171012
+ EcomPaymentSettings: (0, import_variant26.fields)(),
171013
+ EcomGiftCardsProvider: (0, import_variant26.fields)(),
171014
+ EcomRecommendationsProvider: (0, import_variant26.fields)(),
171015
+ ExternalDatabaseProvider: (0, import_variant26.fields)(),
171016
+ SeoKeywordsSuggestion: (0, import_variant26.fields)(),
171017
+ PremiumCustomCharges: (0, import_variant26.fields)()
170958
171018
  });
170959
- var DevCenterComponent = (0, import_variant25.variant)({
170960
- DashboardPage: (0, import_variant25.fields)(),
170961
- DashboardPlugin: (0, import_variant25.fields)(),
170962
- DashboardMenuPlugin: (0, import_variant25.fields)(),
170963
- DashboardModal: (0, import_variant25.fields)(),
170964
- DashboardSidebarCategory: (0, import_variant25.fields)(),
170965
- EmbeddedScript: (0, import_variant25.fields)(),
170966
- CustomElement: (0, import_variant25.fields)(),
170967
- SitePlugin: (0, import_variant25.fields)(),
170968
- BlocksWidget: (0, import_variant25.fields)(),
170969
- BlocksWidgetPanel: (0, import_variant25.fields)(),
170970
- BlocksMainComponent: (0, import_variant25.fields)(),
170971
- Topology: (0, import_variant25.fields)(),
170972
- Api: (0, import_variant25.fields)(),
170973
- WebMethod: (0, import_variant25.fields)(),
170974
- Event: (0, import_variant25.fields)(),
170975
- ServicePlugin: (0, import_variant25.fields)(),
170976
- Monitoring: (0, import_variant25.fields)(),
170977
- SiteComponent: (0, import_variant25.fields)(),
170978
- SiteComponentPanel: (0, import_variant25.fields)()
171019
+ var DevCenterComponent = (0, import_variant26.variant)({
171020
+ DashboardPage: (0, import_variant26.fields)(),
171021
+ DashboardPlugin: (0, import_variant26.fields)(),
171022
+ DashboardMenuPlugin: (0, import_variant26.fields)(),
171023
+ DashboardModal: (0, import_variant26.fields)(),
171024
+ DashboardSidebarCategory: (0, import_variant26.fields)(),
171025
+ EmbeddedScript: (0, import_variant26.fields)(),
171026
+ CustomElement: (0, import_variant26.fields)(),
171027
+ SitePlugin: (0, import_variant26.fields)(),
171028
+ BlocksWidget: (0, import_variant26.fields)(),
171029
+ BlocksWidgetPanel: (0, import_variant26.fields)(),
171030
+ BlocksMainComponent: (0, import_variant26.fields)(),
171031
+ Topology: (0, import_variant26.fields)(),
171032
+ Api: (0, import_variant26.fields)(),
171033
+ WebMethod: (0, import_variant26.fields)(),
171034
+ Event: (0, import_variant26.fields)(),
171035
+ ServicePlugin: (0, import_variant26.fields)(),
171036
+ Monitoring: (0, import_variant26.fields)(),
171037
+ SiteComponent: (0, import_variant26.fields)(),
171038
+ SiteComponentPanel: (0, import_variant26.fields)()
170979
171039
  });
170980
171040
 
170981
171041
  // src/model.tsx
170982
171042
  init_esm_shims();
170983
- var import_react97 = __toESM(require_react(), 1);
171043
+ var import_react98 = __toESM(require_react(), 1);
170984
171044
 
170985
171045
  // src/files/wix.config.ts
170986
171046
  init_esm_shims();
@@ -171200,7 +171260,7 @@ var import_fast_glob2 = __toESM(require_out4(), 1);
171200
171260
  init_esm_shims();
171201
171261
  import fs6 from "node:fs";
171202
171262
  import fsPromises from "node:fs/promises";
171203
- async function isType9(fsStatType, statsMethodName, filePath) {
171263
+ async function isType10(fsStatType, statsMethodName, filePath) {
171204
171264
  if (typeof filePath !== "string") {
171205
171265
  throw new TypeError(`Expected a string, got ${typeof filePath}`);
171206
171266
  }
@@ -171227,9 +171287,9 @@ function isTypeSync(fsStatType, statsMethodName, filePath) {
171227
171287
  throw error;
171228
171288
  }
171229
171289
  }
171230
- var isFile = isType9.bind(void 0, "stat", "isFile");
171231
- var isDirectory = isType9.bind(void 0, "stat", "isDirectory");
171232
- var isSymlink = isType9.bind(void 0, "lstat", "isSymbolicLink");
171290
+ var isFile = isType10.bind(void 0, "stat", "isFile");
171291
+ var isDirectory = isType10.bind(void 0, "stat", "isDirectory");
171292
+ var isSymlink = isType10.bind(void 0, "lstat", "isSymbolicLink");
171233
171293
  var isFileSync = isTypeSync.bind(void 0, "statSync", "isFile");
171234
171294
  var isDirectorySync = isTypeSync.bind(void 0, "statSync", "isDirectory");
171235
171295
  var isSymlinkSync = isTypeSync.bind(void 0, "lstatSync", "isSymbolicLink");
@@ -171538,7 +171598,7 @@ import { randomUUID } from "node:crypto";
171538
171598
 
171539
171599
  // src/dev-center/components/dashboard/config.ts
171540
171600
  init_esm_shims();
171541
- var import_variant26 = __toESM(require_lib(), 1);
171601
+ var import_variant27 = __toESM(require_lib(), 1);
171542
171602
 
171543
171603
  // src/dev-center/components/path.ts
171544
171604
  init_esm_shims();
@@ -171660,7 +171720,7 @@ function virtualPathForHTMLAsset(componentId) {
171660
171720
  function virtualDashboardHTMLAssets(model) {
171661
171721
  return new Map(
171662
171722
  model.components.filter(
171663
- (component) => (0, import_variant26.isType)(component, DevCenterComponent.DashboardPage) || (0, import_variant26.isType)(component, DevCenterComponent.DashboardPlugin) || (0, import_variant26.isType)(component, DevCenterComponent.DashboardModal)
171723
+ (component) => (0, import_variant27.isType)(component, DevCenterComponent.DashboardPage) || (0, import_variant27.isType)(component, DevCenterComponent.DashboardPlugin) || (0, import_variant27.isType)(component, DevCenterComponent.DashboardModal)
171664
171724
  ).map((comp) => [virtualPathForHTMLAsset(comp.id), comp])
171665
171725
  );
171666
171726
  }
@@ -171670,7 +171730,7 @@ function virtualModuleIdForScriptAsset(componentId) {
171670
171730
  function virtualDashboardScriptAssets(model) {
171671
171731
  return new Map(
171672
171732
  model.components.filter(
171673
- (component) => (0, import_variant26.isType)(component, DevCenterComponent.DashboardPage) || (0, import_variant26.isType)(component, DevCenterComponent.DashboardPlugin) || (0, import_variant26.isType)(component, DevCenterComponent.DashboardModal)
171733
+ (component) => (0, import_variant27.isType)(component, DevCenterComponent.DashboardPage) || (0, import_variant27.isType)(component, DevCenterComponent.DashboardPlugin) || (0, import_variant27.isType)(component, DevCenterComponent.DashboardModal)
171674
171734
  ).map((comp) => [virtualModuleIdForScriptAsset(comp.id), comp])
171675
171735
  );
171676
171736
  }
@@ -172227,16 +172287,16 @@ function createEmbeddedScriptFolderValidation(embeddedScripts) {
172227
172287
 
172228
172288
  // src/dev-center/components/validations/custom-element.ts
172229
172289
  init_esm_shims();
172230
- var import_react95 = __toESM(require_react(), 1);
172290
+ var import_react96 = __toESM(require_react(), 1);
172231
172291
 
172232
172292
  // src/components/extensions/useExtensions.tsx
172233
172293
  init_esm_shims();
172234
- var import_react94 = __toESM(require_react(), 1);
172235
- var import_variant27 = __toESM(require_lib(), 1);
172236
- var _DevCenterComponentTypes = (0, import_variant27.typeCatalog)(DevCenterComponent);
172294
+ var import_react95 = __toESM(require_react(), 1);
172295
+ var import_variant28 = __toESM(require_lib(), 1);
172296
+ var _DevCenterComponentTypes = (0, import_variant28.typeCatalog)(DevCenterComponent);
172237
172297
  function useExtensions() {
172238
172298
  const { model } = useProjectModel();
172239
- const extensionsByType = (0, import_react94.useMemo)(() => {
172299
+ const extensionsByType = (0, import_react95.useMemo)(() => {
172240
172300
  const extensionsMap = model.components.reduce(
172241
172301
  (acc, component) => {
172242
172302
  acc[component.type].push(component);
@@ -172269,7 +172329,7 @@ function useExtensions() {
172269
172329
  );
172270
172330
  return extensionsMap;
172271
172331
  }, [model.components]);
172272
- const dashboardExtensions = (0, import_react94.useMemo)(
172332
+ const dashboardExtensions = (0, import_react95.useMemo)(
172273
172333
  () => [
172274
172334
  ...extensionsByType.DashboardPage,
172275
172335
  ...extensionsByType.DashboardMenuPlugin,
@@ -172278,11 +172338,11 @@ function useExtensions() {
172278
172338
  ],
172279
172339
  [extensionsByType]
172280
172340
  );
172281
- const hasExtensions = (0, import_react94.useCallback)(
172341
+ const hasExtensions = (0, import_react95.useCallback)(
172282
172342
  (extensionType) => extensionType ? extensionsByType[extensionType].length > 0 : model.components.length > 0,
172283
172343
  [extensionsByType, model.components]
172284
172344
  );
172285
- const getExtensions = (0, import_react94.useCallback)(
172345
+ const getExtensions = (0, import_react95.useCallback)(
172286
172346
  (extensionType) => extensionsByType[extensionType],
172287
172347
  [extensionsByType]
172288
172348
  );
@@ -172361,7 +172421,7 @@ var useCustomElementDirectoryValidation = (extensionType) => {
172361
172421
  ]
172362
172422
  ])
172363
172423
  );
172364
- return (0, import_react95.useCallback)(validation, [validation]);
172424
+ return (0, import_react96.useCallback)(validation, [validation]);
172365
172425
  };
172366
172426
  var useCustomElementNameValidation = () => {
172367
172427
  const { t: t3 } = useTranslation();
@@ -172373,7 +172433,7 @@ var useCustomElementNameValidation = () => {
172373
172433
  ]
172374
172434
  ])
172375
172435
  );
172376
- return (0, import_react95.useCallback)(validation, [validation]);
172436
+ return (0, import_react96.useCallback)(validation, [validation]);
172377
172437
  };
172378
172438
 
172379
172439
  // src/dev-center/components/backend/config.ts
@@ -177903,10 +177963,10 @@ var DevCenterClient = class {
177903
177963
 
177904
177964
  // ../dev-center-client/src/useDevCenterClient.ts
177905
177965
  init_esm_shims();
177906
- var import_react96 = __toESM(require_react(), 1);
177966
+ var import_react97 = __toESM(require_react(), 1);
177907
177967
  function useDevCenterClient() {
177908
177968
  const httpClient = useHttpClient({ type: "backoffice" });
177909
- const client2 = (0, import_react96.useMemo)(() => new DevCenterClient(httpClient), [httpClient]);
177969
+ const client2 = (0, import_react97.useMemo)(() => new DevCenterClient(httpClient), [httpClient]);
177910
177970
  return usePanoramaMethodLogger(client2);
177911
177971
  }
177912
177972
 
@@ -179242,7 +179302,7 @@ import { randomUUID as randomUUID2 } from "node:crypto";
179242
179302
  // src/dev-center/components/site/config.ts
179243
179303
  init_esm_shims();
179244
179304
  import { join as join9, dirname as dirname3, resolve as resolve3 } from "node:path";
179245
- var import_variant28 = __toESM(require_lib(), 1);
179305
+ var import_variant29 = __toESM(require_lib(), 1);
179246
179306
  var import_types_impl = __toESM(require_types_impl(), 1);
179247
179307
  async function loadEmbeddedScriptComponentConfig(embeddedScriptPath) {
179248
179308
  const configPath = replaceExtension(embeddedScriptPath, "json");
@@ -179366,14 +179426,14 @@ function virtualModuleIdForCustomElementScriptAsset(componentId) {
179366
179426
  function virtualCustomElementPanelHTMLAssets(model) {
179367
179427
  return new Map(
179368
179428
  model.components.filter(
179369
- (component) => ((0, import_variant28.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant28.isType)(component, DevCenterComponent.SitePlugin)) && Boolean(component.relativePanelPath)
179429
+ (component) => ((0, import_variant29.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant29.isType)(component, DevCenterComponent.SitePlugin)) && Boolean(component.relativePanelPath)
179370
179430
  ).map((comp) => [virtualPathForCustomElementPanelHTMLAsset(comp.id), comp])
179371
179431
  );
179372
179432
  }
179373
179433
  function virtualCustomElementScriptAssets(model) {
179374
179434
  return new Map(
179375
179435
  model.components.filter(
179376
- (component) => (0, import_variant28.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant28.isType)(component, DevCenterComponent.SitePlugin)
179436
+ (component) => (0, import_variant29.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant29.isType)(component, DevCenterComponent.SitePlugin)
179377
179437
  ).map((comp) => [
179378
179438
  virtualModuleIdForCustomElementScriptAsset(comp.id),
179379
179439
  comp
@@ -179383,7 +179443,7 @@ function virtualCustomElementScriptAssets(model) {
179383
179443
  function virtualCustomElementPanelScriptAssets(model) {
179384
179444
  return new Map(
179385
179445
  model.components.filter(
179386
- (component) => ((0, import_variant28.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant28.isType)(component, DevCenterComponent.SitePlugin)) && Boolean(component.relativePanelPath)
179446
+ (component) => ((0, import_variant29.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant29.isType)(component, DevCenterComponent.SitePlugin)) && Boolean(component.relativePanelPath)
179387
179447
  ).map((comp) => [
179388
179448
  virtualModuleIdForCustomElementPanelScriptAsset(comp.id),
179389
179449
  comp
@@ -179395,7 +179455,7 @@ function virtualModuleIdForBlocksComponentScriptAsset(componentId) {
179395
179455
  }
179396
179456
  function virtualBlocksWidgetPanelScriptAssets(model) {
179397
179457
  return new Map(
179398
- model.components.filter((0, import_variant28.isType)(DevCenterComponent.BlocksWidgetPanel)).map((comp) => [
179458
+ model.components.filter((0, import_variant29.isType)(DevCenterComponent.BlocksWidgetPanel)).map((comp) => [
179399
179459
  virtualModuleIdForBlocksComponentScriptAsset(comp.id),
179400
179460
  comp
179401
179461
  ])
@@ -179403,7 +179463,7 @@ function virtualBlocksWidgetPanelScriptAssets(model) {
179403
179463
  }
179404
179464
  function virtualBlocksWidgetScriptAssets(model) {
179405
179465
  return new Map(
179406
- model.components.filter((0, import_variant28.isType)(DevCenterComponent.BlocksWidget)).map((comp) => [
179466
+ model.components.filter((0, import_variant29.isType)(DevCenterComponent.BlocksWidget)).map((comp) => [
179407
179467
  virtualModuleIdForBlocksComponentScriptAsset(comp.id),
179408
179468
  comp
179409
179469
  ])
@@ -179414,7 +179474,7 @@ function virtualModuleIdForSiteComponentScriptAsset(componentId) {
179414
179474
  }
179415
179475
  function virtualSiteComponentScriptAssets(model) {
179416
179476
  return new Map(
179417
- model.components.filter((0, import_variant28.isType)(DevCenterComponent.SiteComponent)).map((comp) => [
179477
+ model.components.filter((0, import_variant29.isType)(DevCenterComponent.SiteComponent)).map((comp) => [
179418
179478
  virtualModuleIdForSiteComponentScriptAsset(comp.id),
179419
179479
  comp
179420
179480
  ])
@@ -179425,7 +179485,7 @@ function virtualModuleIdForSiteComponentPanelScriptAsset(componentId) {
179425
179485
  }
179426
179486
  function virtualSiteComponentPanelScriptAssets(model) {
179427
179487
  return new Map(
179428
- model.components.filter((0, import_variant28.isType)(DevCenterComponent.SiteComponentPanel)).map((comp) => [
179488
+ model.components.filter((0, import_variant29.isType)(DevCenterComponent.SiteComponentPanel)).map((comp) => [
179429
179489
  virtualModuleIdForSiteComponentPanelScriptAsset(comp.id),
179430
179490
  comp
179431
179491
  ])
@@ -179437,7 +179497,7 @@ function virtualModuleIdForSiteComponentPreview(componentId) {
179437
179497
  function virtualSiteComponentPreviewScriptAssets(model) {
179438
179498
  const assets = /* @__PURE__ */ new Map();
179439
179499
  for (const comp of model.components) {
179440
- if ((0, import_variant28.isType)(comp, DevCenterComponent.SiteComponent) && comp.relativePreviewPath) {
179500
+ if ((0, import_variant29.isType)(comp, DevCenterComponent.SiteComponent) && comp.relativePreviewPath) {
179441
179501
  assets.set(virtualModuleIdForSiteComponentPreview(comp.id), {
179442
179502
  ...comp,
179443
179503
  relativePreviewPath: comp.relativePreviewPath
@@ -179529,7 +179589,7 @@ function getElementsPresetEntries(componentId, componentDir, projectFolder, elem
179529
179589
  function virtualSiteComponentPresetAssets(model) {
179530
179590
  const entries = [];
179531
179591
  const siteComponents = model.components.filter(
179532
- (0, import_variant28.isType)(DevCenterComponent.SiteComponent)
179592
+ (0, import_variant29.isType)(DevCenterComponent.SiteComponent)
179533
179593
  );
179534
179594
  for (const component of siteComponents) {
179535
179595
  if (component.presets) {
@@ -179565,7 +179625,7 @@ function virtualModuleIdForSiteComponentSdkScriptAsset(componentId) {
179565
179625
  function virtualSiteComponentSdkScriptAssets(model) {
179566
179626
  const assets = /* @__PURE__ */ new Map();
179567
179627
  for (const comp of model.components) {
179568
- if ((0, import_variant28.isType)(comp, DevCenterComponent.SiteComponent) && comp.relativeSdkPath) {
179628
+ if ((0, import_variant29.isType)(comp, DevCenterComponent.SiteComponent) && comp.relativeSdkPath) {
179569
179629
  assets.set(virtualModuleIdForSiteComponentSdkScriptAsset(comp.id), {
179570
179630
  ...comp,
179571
179631
  relativeSdkPath: comp.relativeSdkPath
@@ -180182,7 +180242,7 @@ var getMajorVersionFromRange = (packageName, versionRange) => {
180182
180242
  // src/dev-center/components/backend/components.ts
180183
180243
  init_esm_shims();
180184
180244
  import { join as join11 } from "node:path";
180185
- var import_variant29 = __toESM(require_lib(), 1);
180245
+ var import_variant30 = __toESM(require_lib(), 1);
180186
180246
  var API_PATTERN = join11(API_DIR, "*", "api.{ts,tsx,js,jsx}");
180187
180247
  var WEB_METHOD_PATTERN = join11(WEB_METHOD_DIR, "**", "*.web.ts");
180188
180248
  var EVENTS_PATTERN = join11(EVENTS_DIR, "*", "event.{ts,tsx,js,jsx}");
@@ -180259,7 +180319,7 @@ async function loadServicePlugin(pluginPath) {
180259
180319
  PlatformType.Dashboard()
180260
180320
  ],
180261
180321
  relativePath: pluginPath,
180262
- servicePlugin: await (0, import_variant29.match)(servicePluginType, {
180322
+ servicePlugin: await (0, import_variant30.match)(servicePluginType, {
180263
180323
  ECOM_ADDITIONAL_FEES: async () => ServicePlugin.EcomAdditionalFees(
180264
180324
  await loadServicePluginConfig(
180265
180325
  pluginPath,
@@ -180920,7 +180980,14 @@ var ProjectModelWatcher = class {
180920
180980
  if (this.prevModel.config.blocks?.uiRevision !== model.config.blocks?.uiRevision) {
180921
180981
  this.emitter.emit("all", model, "blocks-revision-changed");
180922
180982
  }
180923
- if (!deepEqual(model, this.prevModel) || basename(path5) === "embedded.html" || basename(path5) === "event.ts") {
180983
+ if (basename(path5) === "component.json") {
180984
+ this.emitter.emit("all", model, "component-updated");
180985
+ return;
180986
+ }
180987
+ if (!deepEqual(model, this.prevModel) && basename(path5) === "component.json") {
180988
+ this.prevModel = model;
180989
+ this.emitter.emit("all", model, "component-updated");
180990
+ } else if (!deepEqual(model, this.prevModel) || basename(path5) === "embedded.html" || basename(path5) === "event.ts") {
180924
180991
  this.prevModel = model;
180925
180992
  this.emitter.emit("all", model, "model-updated");
180926
180993
  } else {
@@ -180944,11 +181011,11 @@ async function loadProjectModel(projectFolder) {
180944
181011
  })
180945
181012
  };
180946
181013
  }
180947
- var ProjectModelContext = (0, import_react97.createContext)(null);
181014
+ var ProjectModelContext = (0, import_react98.createContext)(null);
180948
181015
  var ProjectModelProvider = (props) => {
180949
181016
  const { reportError } = useErrorReporter();
180950
- const [model, setModel] = (0, import_react97.useState)(props.value);
180951
- const [watcher] = (0, import_react97.useState)(() => {
181017
+ const [model, setModel] = (0, import_react98.useState)(props.value);
181018
+ const [watcher] = (0, import_react98.useState)(() => {
180952
181019
  const watcher2 = new ProjectModelWatcher(model);
180953
181020
  if (props.watchForChanges === true) {
180954
181021
  watcher2.watch().onChange((newModel, changeType) => {
@@ -180959,15 +181026,15 @@ var ProjectModelProvider = (props) => {
180959
181026
  }
180960
181027
  return watcher2;
180961
181028
  });
180962
- (0, import_react97.useEffect)(() => {
181029
+ (0, import_react98.useEffect)(() => {
180963
181030
  return () => {
180964
181031
  watcher.close().catch(reportError);
180965
181032
  };
180966
181033
  }, [watcher, reportError]);
180967
- return /* @__PURE__ */ import_react97.default.createElement(ProjectModelContext.Provider, { value: { model, watcher } }, props.children);
181034
+ return /* @__PURE__ */ import_react98.default.createElement(ProjectModelContext.Provider, { value: { model, watcher } }, props.children);
180968
181035
  };
180969
181036
  function useProjectModel() {
180970
- const context = (0, import_react97.useContext)(ProjectModelContext);
181037
+ const context = (0, import_react98.useContext)(ProjectModelContext);
180971
181038
  if (context == null) {
180972
181039
  throw new Error(
180973
181040
  "useProjectModel() cannot be used without an <ProjectModelProvider>"
@@ -180998,6 +181065,7 @@ export {
180998
181065
  isHttpError,
180999
181066
  isHttpValidationError,
181000
181067
  isHttpApplicationError,
181068
+ createHttpClient,
181001
181069
  getTestOverrides,
181002
181070
  getDataDirPath,
181003
181071
  ensureDataDirExists,
@@ -181066,6 +181134,7 @@ export {
181066
181134
  useErrorReporter,
181067
181135
  AccountAuthProvider,
181068
181136
  SiteAuthProvider,
181137
+ useSiteAuth,
181069
181138
  isLoggedInToAccount,
181070
181139
  WIX_CONFIG_FILENAME,
181071
181140
  TS_CONFIG_FILENAME,
@@ -181387,4 +181456,4 @@ mustache/mustache.mjs:
181387
181456
  * http://github.com/janl/mustache.js
181388
181457
  *)
181389
181458
  */
181390
- //# sourceMappingURL=chunk-ESTYQVMX.js.map
181459
+ //# sourceMappingURL=chunk-FLD47ENF.js.map