@wix/cli-app 1.1.132 → 1.1.134
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/{AddPermissionCommand-7QIFVBXV.js → AddPermissionCommand-TL46A3YR.js} +2 -2
- package/build/{DevCommand-RDPL27X5.js → DevCommand-KKSEAF6U.js} +20 -204
- package/build/DevCommand-KKSEAF6U.js.map +1 -0
- package/build/{GenerateCommand-6ADO2EJU.js → GenerateCommand-CHACGG6N.js} +8 -8
- package/build/{LogsCommand-PIRWJADI.js → LogsCommand-ONUNVGZR.js} +3 -3
- package/build/PreviewCommand-Y7JEA26N.js +19 -0
- package/build/ReleaseCommand-QIDFQA2M.js +23 -0
- package/build/{ServeCommand-5HERPY2Q.js → ServeCommand-I57RKIFD.js} +3 -3
- package/build/{build-6IDZAW4E.js → build-UZCNG6SL.js} +6 -6
- package/build/{chunk-FWRUE2NB.js → chunk-3GHB2NXZ.js} +2 -2
- package/build/{chunk-ZHQREOZP.js → chunk-3QFT6UQF.js} +2 -1
- package/build/chunk-3QFT6UQF.js.map +1 -0
- package/build/{chunk-ESTYQVMX.js → chunk-DLJA76CA.js} +270 -141
- package/build/{chunk-ESTYQVMX.js.map → chunk-DLJA76CA.js.map} +1 -1
- package/build/{chunk-IIF6P6XG.js → chunk-FDSZMRFC.js} +2 -2
- package/build/{chunk-LQZSH33G.js → chunk-FUAEI7OE.js} +6 -6
- package/build/{chunk-WA2CFDB5.js → chunk-GY4LG7V4.js} +3 -3
- package/build/{chunk-O2MISIES.js → chunk-JPSY3QB7.js} +2 -2
- package/build/{chunk-XDUVJLLQ.js → chunk-NPYJ3GAT.js} +2 -2
- package/build/{chunk-VDQEUTFT.js → chunk-NQ4YNX6A.js} +5 -5
- package/build/{chunk-KVESKT7X.js → chunk-NU7CPDB5.js} +5 -5
- package/build/{chunk-QQ4OBBX7.js → chunk-PRRRKDRX.js} +6 -6
- package/build/{chunk-DK2KK5UN.js → chunk-PTXQ3EPG.js} +2 -2
- package/build/{chunk-NJXD2TTX.js → chunk-R5HMH6QX.js} +30 -10
- package/build/{chunk-NJXD2TTX.js.map → chunk-R5HMH6QX.js.map} +1 -1
- package/build/{chunk-GNL53AZS.js → chunk-TNH2NG27.js} +3 -3
- package/build/{chunk-KHUHWBJD.js → chunk-U2CR5VPH.js} +400 -95
- package/build/chunk-U2CR5VPH.js.map +1 -0
- package/build/{chunk-PREYTA74.js → chunk-UWCQA4MW.js} +3 -3
- package/build/{chunk-UJ4SA2PC.js → chunk-WOIU7VIM.js} +2 -2
- package/build/{chunk-JYZ5QJ5C.js → chunk-YLUVMDX7.js} +2 -2
- package/build/index.js +24 -24
- package/build/platform-sdk/editor.js +1 -1
- package/build/platform-sdk/editor.js.map +1 -1
- package/build/{preview-IXHPIOMO.js → preview-6SJAV4D6.js} +13 -13
- package/build/{release-RFFKID6V.js → release-JUZK53KH.js} +15 -15
- package/build/{render-command-NUU6LT5M.js → render-command-FFAZSU54.js} +6 -6
- package/package.json +3 -3
- package/build/DevCommand-RDPL27X5.js.map +0 -1
- package/build/PreviewCommand-AN6WMCYS.js +0 -19
- package/build/ReleaseCommand-DAK2EFM2.js +0 -23
- package/build/chunk-KHUHWBJD.js.map +0 -1
- package/build/chunk-ZHQREOZP.js.map +0 -1
- /package/build/{AddPermissionCommand-7QIFVBXV.js.map → AddPermissionCommand-TL46A3YR.js.map} +0 -0
- /package/build/{GenerateCommand-6ADO2EJU.js.map → GenerateCommand-CHACGG6N.js.map} +0 -0
- /package/build/{LogsCommand-PIRWJADI.js.map → LogsCommand-ONUNVGZR.js.map} +0 -0
- /package/build/{PreviewCommand-AN6WMCYS.js.map → PreviewCommand-Y7JEA26N.js.map} +0 -0
- /package/build/{ReleaseCommand-DAK2EFM2.js.map → ReleaseCommand-QIDFQA2M.js.map} +0 -0
- /package/build/{ServeCommand-5HERPY2Q.js.map → ServeCommand-I57RKIFD.js.map} +0 -0
- /package/build/{build-6IDZAW4E.js.map → build-UZCNG6SL.js.map} +0 -0
- /package/build/{chunk-FWRUE2NB.js.map → chunk-3GHB2NXZ.js.map} +0 -0
- /package/build/{chunk-IIF6P6XG.js.map → chunk-FDSZMRFC.js.map} +0 -0
- /package/build/{chunk-LQZSH33G.js.map → chunk-FUAEI7OE.js.map} +0 -0
- /package/build/{chunk-WA2CFDB5.js.map → chunk-GY4LG7V4.js.map} +0 -0
- /package/build/{chunk-O2MISIES.js.map → chunk-JPSY3QB7.js.map} +0 -0
- /package/build/{chunk-XDUVJLLQ.js.map → chunk-NPYJ3GAT.js.map} +0 -0
- /package/build/{chunk-VDQEUTFT.js.map → chunk-NQ4YNX6A.js.map} +0 -0
- /package/build/{chunk-KVESKT7X.js.map → chunk-NU7CPDB5.js.map} +0 -0
- /package/build/{chunk-QQ4OBBX7.js.map → chunk-PRRRKDRX.js.map} +0 -0
- /package/build/{chunk-DK2KK5UN.js.map → chunk-PTXQ3EPG.js.map} +0 -0
- /package/build/{chunk-GNL53AZS.js.map → chunk-TNH2NG27.js.map} +0 -0
- /package/build/{chunk-PREYTA74.js.map → chunk-UWCQA4MW.js.map} +0 -0
- /package/build/{chunk-UJ4SA2PC.js.map → chunk-WOIU7VIM.js.map} +0 -0
- /package/build/{chunk-JYZ5QJ5C.js.map → chunk-YLUVMDX7.js.map} +0 -0
- /package/build/{preview-IXHPIOMO.js.map → preview-6SJAV4D6.js.map} +0 -0
- /package/build/{release-RFFKID6V.js.map → release-JUZK53KH.js.map} +0 -0
- /package/build/{render-command-NUU6LT5M.js.map → render-command-FFAZSU54.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
|
|
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) =>
|
|
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:
|
|
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:
|
|
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]:
|
|
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:
|
|
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:
|
|
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),
|
|
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
|
-
|
|
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 =
|
|
20889
|
+
exports2.default = isType13;
|
|
20890
20890
|
var _index = require_definitions();
|
|
20891
|
-
function
|
|
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
|
|
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) && !
|
|
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:
|
|
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
|
|
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
|
|
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 =
|
|
139667
|
-
exports.isDirectory =
|
|
139668
|
-
exports.isSymlink =
|
|
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");
|
|
@@ -140131,12 +140131,12 @@ var require_types_impl = __commonJS({
|
|
|
140131
140131
|
"use strict";
|
|
140132
140132
|
init_esm_shims();
|
|
140133
140133
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
140134
|
-
exports.
|
|
140135
|
-
exports.
|
|
140136
|
-
exports.
|
|
140137
|
-
exports.
|
|
140138
|
-
exports.
|
|
140139
|
-
exports.WebhookIdentityType = exports.TranslationType = void 0;
|
|
140134
|
+
exports.SlotDataType = exports.DtsDefinitionType = exports.BackOfficeHostingPlatforms = exports.ExtendingComponentType = exports.ExecutionType = exports.SourceType = exports.IntegrationType = exports.ActionSPIConfigInterfaceConfigurationType = exports.HookType = exports.Default = exports.MeasurementSystem = exports.MandatoryField = exports.HostContainerId = exports.PartialPaymentRestriction = exports.SchemaFieldExposure = exports.SimpleType = exports.PrimitiveType = exports.Order = exports.AccessLevel = exports.DataComponentFieldType = exports.ExtensionType = exports.ScriptType = exports.WebComponentDataElementType = exports.DefaultTextStyle = exports.BarAlignmentSelected = exports.ThumbnailsSize = exports.TemplateDefaultColor = exports.EmbedCategory = exports.EmbeddedScriptPlacement = exports.EmbeddedScriptPages = exports.StaticContainer = exports.RegionType = exports.InstallPage = exports.HTTPMethod = exports.Maturity = exports.Exposure = exports.PluginInterface = exports.ReplacementType = exports.MpaNavigation = exports.SiteMembersSsrCaching = exports.VerticalDocking = exports.HorizontalDocking = exports.UnitType = exports.Region = exports.WidgetWidthType = exports.WidgetHorizontal = exports.WidgetVertical = exports.ComponentType = exports.VersionStatus = exports.Classification = void 0;
|
|
140135
|
+
exports.Resizing = exports.AspectRatio = exports.ImageStylesPosition = exports.FontType = exports.DecorationType = exports.BackgroundType = exports.PollLayoutDirection = exports.PollLayoutType = exports.VoteRole = exports.ViewRole = exports.MapType = exports.StylesPosition = exports.HTMLDataSource = exports.GIFType = exports.ThumbnailsAlignment = exports.Crop = exports.Orientation = exports.LayoutType = exports.PDFSettingsViewMode = exports.Alignment = exports.DividerDataWidth = exports.LineStyle = exports.TextAlignment = exports.LinkTarget = exports.ButtonDataType = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = exports.InitDirection = exports.AcceptedSmsMessageType = exports.MediaMimeType = exports.AcceptedDirectMessageType = exports.ChannelType = exports.PaginationMode = exports.FilterOptionsType = exports.FilterSelectionType = exports.Tag = exports.AvatarShape = exports.ImageShape = exports.ThumbnailType = exports.TextInputDisplayType = exports.LayoutMode = exports.Status = exports.Domain = exports.BlockType = exports.RestrictedOperation = exports.LockableOperation = exports.AlgorithmType = exports.ViewMode = exports.BackOfficeScriptAssetType = void 0;
|
|
140136
|
+
exports.AlignmentEnumAlignment = exports.ImagePosition = exports.StringComponentType = exports.Format = exports.FieldType = exports.HeightMode = exports.CustomElementScriptType = exports.SchemaFieldFieldType = exports.SchemaScope = exports.Environment = exports.Type = exports.RecipientFilterType = exports.UserNotificationDataType = exports.Intent = exports.ExposureRuleType = exports.AndroidStyle = exports.MobileApplication = exports.IconType = exports.Level = exports.InitiatorType = exports.UserNotificationDataRecipientFilterType = exports.TypedDynamicParamType = exports.PlanPeriodUnit = exports.PlanFormDefaultSection = exports.PlanFormPricingType = exports.PlanFormPricingOption = exports.RecipientType = exports.NotificationTopicType = exports.NotificationTopicState = exports.PingSettingsGroupComponentDataState = exports.NavigationType = exports.OAuthTechnologies = exports.OAuthAppType = exports.SyncToCalendar = exports.ListEventFromCalendars = exports.ConnectMethod = exports.CalendarType = exports.ResponsivenessBehaviour = exports.VerticalAlignmentAlignment = exports.LayoutDataImagePosition = exports.Scaling = exports.NullValue = exports.VerticalAlignment = exports.Direction = exports.InitialExpandedItems = exports.AppType = exports.CardStylesLayout = exports.CardStylesAlignment = exports.CardStylesType = exports.Placement = void 0;
|
|
140137
|
+
exports.Method = exports.StorageDomain = exports.ConsentCategory = exports.StorageType = exports.PanelMode = exports.PanelContentType = exports.Width = exports.ImportanceLevel = exports.Escalation = exports.MonitoringType = exports.FactorType = exports.AcceptedMessageTypesAcceptedSmsMessageType = exports.AcceptedMessageTypesAcceptedDirectMessageType = exports.ChannelConfigurationChannelType = exports.WixCodePublishTaskName = exports.RequiredIndicatorPlacement = exports.RequiredIndicator = exports.EditableProperties = exports.CustomFieldsType = exports.TemplateType = exports.SubmitSuccessAction = exports.Target = exports.Operator = exports.OverrideEntityType = exports.ChangeableProperty = exports.DisplayFieldType = exports.ContactField = exports.ConfirmationLevel = exports.AddressInfoTag = exports.PhoneInfoTag = exports.EmailInfoTag = exports.InputType = exports.AppointmentFormat = exports.SchedulingComponentType = exports.DefaultCountryConfigType = exports.AddressComponentType = exports.PriceType = exports.ProductType = exports.PaymentComponentType = exports.UploadFileFormat = exports.UploadFileFormatEnumUploadFileFormat = exports.WixFileComponentType = exports.ArrayComponentType = exports.PropertiesTypeEnum = exports.ItemType = exports.BooleanComponentType = exports.NumberComponentType = exports.FirstDayOfWeek = exports.NumberOfColumns = exports.ImageFit = void 0;
|
|
140138
|
+
exports.PlanStatus = exports.MediaType = exports.UninstallActions = exports.OpenConsentIn = exports.AssetType = exports.VibeActionType = exports.RegionScopeScope = exports.Category = exports.ValueConstraintType = exports.TimeConstraintType = exports.FilterValueDefinitionMode = exports.ParameterType = exports.OperatorEnumOperator = exports.SidebarEntityType = exports.SidebarDataType = exports.ElementDisplayOption = exports.RestrictionLevel = exports.EffectGroup = exports.InteractionsTrigger = exports.CssPropertyEnumCssPropertyType = exports.GroupType = exports.NativeStateType = exports.Archetype = exports.ContentResizeDirection = exports.BreakpointEnumBreakpoint = exports.SizingType = exports.ActionName = exports.PanelType = exports.ActionType = exports.CssDataTypeEnumCssDataType = exports.BackgroundModeEnum = exports.WritingModeValue = exports.DisplayValueEnumDisplayValue = exports.FilterFunction = exports.StyleType = exports.CssDataType = exports.CssPropertyType = exports.ElementType = exports.VectorArtCategoryTypes = exports.VideoCategoryTypes = exports.ImageCategoryTypes = exports.RichTextAbilities = exports.ResizeDirection = exports.ContainerType = exports.LinkType = exports.A11yAttributes = exports.DataType = exports.Scope = exports.InterfaceConfigurationType = exports.ParticipantType = void 0;
|
|
140139
|
+
exports.WebhookIdentityType = exports.TranslationType = exports.BusinessModel = exports.PlanDescription = void 0;
|
|
140140
140140
|
var Classification2;
|
|
140141
140141
|
(function(Classification3) {
|
|
140142
140142
|
Classification3["SITE_APP"] = "SITE_APP";
|
|
@@ -140366,6 +140366,7 @@ var require_types_impl = __commonJS({
|
|
|
140366
140366
|
ComponentType4["SITE_MAP_INFO_PROVIDER"] = "SITE_MAP_INFO_PROVIDER";
|
|
140367
140367
|
ComponentType4["WIX_AI_GATEWAY_CALLBACK"] = "WIX_AI_GATEWAY_CALLBACK";
|
|
140368
140368
|
ComponentType4["URL_MAPPER_PROVIDER"] = "URL_MAPPER_PROVIDER";
|
|
140369
|
+
ComponentType4["PROVIDER_SUPPRESSION_SERVICE_PLUGIN"] = "PROVIDER_SUPPRESSION_SERVICE_PLUGIN";
|
|
140369
140370
|
})(ComponentType3 = exports.ComponentType || (exports.ComponentType = {}));
|
|
140370
140371
|
var WidgetVertical3;
|
|
140371
140372
|
(function(WidgetVertical4) {
|
|
@@ -140423,6 +140424,12 @@ var require_types_impl = __commonJS({
|
|
|
140423
140424
|
SiteMembersSsrCaching4["CACHING_ALLOWED"] = "CACHING_ALLOWED";
|
|
140424
140425
|
SiteMembersSsrCaching4["CACHING_NOT_ALLOWED"] = "CACHING_NOT_ALLOWED";
|
|
140425
140426
|
})(SiteMembersSsrCaching3 = exports.SiteMembersSsrCaching || (exports.SiteMembersSsrCaching = {}));
|
|
140427
|
+
var MpaNavigation3;
|
|
140428
|
+
(function(MpaNavigation4) {
|
|
140429
|
+
MpaNavigation4["DEFAULT"] = "DEFAULT";
|
|
140430
|
+
MpaNavigation4["ALLOWED"] = "ALLOWED";
|
|
140431
|
+
MpaNavigation4["NOT_ALLOWED"] = "NOT_ALLOWED";
|
|
140432
|
+
})(MpaNavigation3 = exports.MpaNavigation || (exports.MpaNavigation = {}));
|
|
140426
140433
|
var ReplacementType3;
|
|
140427
140434
|
(function(ReplacementType4) {
|
|
140428
140435
|
ReplacementType4["UNKNOWN_REPLACEMENT"] = "UNKNOWN_REPLACEMENT";
|
|
@@ -142627,6 +142634,7 @@ var require_types_impl = __commonJS({
|
|
|
142627
142634
|
ParameterType4["CURRENCY"] = "CURRENCY";
|
|
142628
142635
|
ParameterType4["COUNTRY_SUBDIVISION"] = "COUNTRY_SUBDIVISION";
|
|
142629
142636
|
ParameterType4["LANGUAGE"] = "LANGUAGE";
|
|
142637
|
+
ParameterType4["MONEY"] = "MONEY";
|
|
142630
142638
|
})(ParameterType3 = exports.ParameterType || (exports.ParameterType = {}));
|
|
142631
142639
|
var FilterValueDefinitionMode3;
|
|
142632
142640
|
(function(FilterValueDefinitionMode4) {
|
|
@@ -142645,23 +142653,32 @@ var require_types_impl = __commonJS({
|
|
|
142645
142653
|
(function(TimeConstraintType4) {
|
|
142646
142654
|
TimeConstraintType4["UNKNOWN_TIME_CONSTRAINT_TYPE"] = "UNKNOWN_TIME_CONSTRAINT_TYPE";
|
|
142647
142655
|
TimeConstraintType4["LAST_DAYS"] = "LAST_DAYS";
|
|
142648
|
-
TimeConstraintType4["LAST_HOURS"] = "LAST_HOURS";
|
|
142649
142656
|
TimeConstraintType4["NEXT_DAYS"] = "NEXT_DAYS";
|
|
142650
|
-
TimeConstraintType4["NEXT_HOURS"] = "NEXT_HOURS";
|
|
142651
142657
|
TimeConstraintType4["BETWEEN"] = "BETWEEN";
|
|
142652
|
-
TimeConstraintType4["TODAY"] = "TODAY";
|
|
142653
142658
|
TimeConstraintType4["THIS_MONTH"] = "THIS_MONTH";
|
|
142654
|
-
TimeConstraintType4["
|
|
142655
|
-
TimeConstraintType4["
|
|
142659
|
+
TimeConstraintType4["ON_OR_AFTER"] = "ON_OR_AFTER";
|
|
142660
|
+
TimeConstraintType4["ON_OR_BEFORE"] = "ON_OR_BEFORE";
|
|
142656
142661
|
})(TimeConstraintType3 = exports.TimeConstraintType || (exports.TimeConstraintType = {}));
|
|
142657
142662
|
var ValueConstraintType3;
|
|
142658
142663
|
(function(ValueConstraintType4) {
|
|
142659
142664
|
ValueConstraintType4["UNKNOWN_VALUE_CONSTRAINT_TYPE"] = "UNKNOWN_VALUE_CONSTRAINT_TYPE";
|
|
142660
|
-
ValueConstraintType4["NONE"] = "NONE";
|
|
142661
142665
|
ValueConstraintType4["PREDEFINED_VALUES"] = "PREDEFINED_VALUES";
|
|
142662
|
-
ValueConstraintType4["MIN_MAX_RANGE"] = "MIN_MAX_RANGE";
|
|
142663
|
-
ValueConstraintType4["RANGE"] = "RANGE";
|
|
142664
142666
|
})(ValueConstraintType3 = exports.ValueConstraintType || (exports.ValueConstraintType = {}));
|
|
142667
|
+
var Category3;
|
|
142668
|
+
(function(Category4) {
|
|
142669
|
+
Category4["UNKNOWN_CATEGORY"] = "UNKNOWN_CATEGORY";
|
|
142670
|
+
Category4["CONTACT_ATTRIBUTES"] = "CONTACT_ATTRIBUTES";
|
|
142671
|
+
Category4["CONTACT_ACTIVITIES"] = "CONTACT_ACTIVITIES";
|
|
142672
|
+
Category4["EMAIL_MARKETING"] = "EMAIL_MARKETING";
|
|
142673
|
+
Category4["MESSAGING_CAMPAIGNS"] = "MESSAGING_CAMPAIGNS";
|
|
142674
|
+
Category4["BOOKING_SERVICES"] = "BOOKING_SERVICES";
|
|
142675
|
+
Category4["STORES"] = "STORES";
|
|
142676
|
+
Category4["EVENTS"] = "EVENTS";
|
|
142677
|
+
Category4["PRICING_PLANS"] = "PRICING_PLANS";
|
|
142678
|
+
Category4["ECOMMERCE"] = "ECOMMERCE";
|
|
142679
|
+
Category4["GETTING_PAID"] = "GETTING_PAID";
|
|
142680
|
+
Category4["OTHER"] = "OTHER";
|
|
142681
|
+
})(Category3 = exports.Category || (exports.Category = {}));
|
|
142665
142682
|
var RegionScopeScope3;
|
|
142666
142683
|
(function(RegionScopeScope4) {
|
|
142667
142684
|
RegionScopeScope4["SPECIFIC_REGIONS"] = "SPECIFIC_REGIONS";
|
|
@@ -142682,6 +142699,9 @@ var require_types_impl = __commonJS({
|
|
|
142682
142699
|
AssetType4["EVENT"] = "EVENT";
|
|
142683
142700
|
AssetType4["FORM"] = "FORM";
|
|
142684
142701
|
AssetType4["PDF"] = "PDF";
|
|
142702
|
+
AssetType4["RICOS"] = "RICOS";
|
|
142703
|
+
AssetType4["DOC"] = "DOC";
|
|
142704
|
+
AssetType4["SLIDE"] = "SLIDE";
|
|
142685
142705
|
})(AssetType3 = exports.AssetType || (exports.AssetType = {}));
|
|
142686
142706
|
var OpenConsentIn3;
|
|
142687
142707
|
(function(OpenConsentIn4) {
|
|
@@ -145058,7 +145078,7 @@ var require_chokidar = __commonJS({
|
|
|
145058
145078
|
var package_default = {
|
|
145059
145079
|
name: "@wix/cli-app",
|
|
145060
145080
|
description: "CLI tool for Wix apps",
|
|
145061
|
-
version: "1.1.
|
|
145081
|
+
version: "1.1.134",
|
|
145062
145082
|
author: "Amit Dahan",
|
|
145063
145083
|
dependencies: {
|
|
145064
145084
|
esbuild: "^0.25.0",
|
|
@@ -145076,7 +145096,7 @@ var package_default = {
|
|
|
145076
145096
|
"@wix/ambassador-cli-site-override-service-v1-site-override": "^1.0.11",
|
|
145077
145097
|
"@wix/ambassador-ctp-app-cloud-backend-service-v1-app-cloud-backend-deployment": "^1.0.15",
|
|
145078
145098
|
"@wix/ambassador-ctp-gradual-rollout-v1-app-config": "^1.0.82",
|
|
145079
|
-
"@wix/ambassador-devcenter-apps-v1-app-old": "^1.0.
|
|
145099
|
+
"@wix/ambassador-devcenter-apps-v1-app-old": "^1.0.124",
|
|
145080
145100
|
"@wix/app-cloud-uploader": "^1.18.0",
|
|
145081
145101
|
"@wix/arm-client": "workspace:*",
|
|
145082
145102
|
"@wix/bi-logger-dev-tools-data": "^1.125.0",
|
|
@@ -145364,7 +145384,8 @@ var CliSystemErrorCode = (0, import_variant.variant)({
|
|
|
145364
145384
|
FailedToFindAstroConfig: {},
|
|
145365
145385
|
FailedToCreateShareUrl: {},
|
|
145366
145386
|
FailedToListShareUrls: {},
|
|
145367
|
-
FailedToParseNextVersion: (0, import_variant.fields)()
|
|
145387
|
+
FailedToParseNextVersion: (0, import_variant.fields)(),
|
|
145388
|
+
FailedToDistributeClientManifestUpdate: {}
|
|
145368
145389
|
});
|
|
145369
145390
|
var CliUserErrorCode = (0, import_variant.variant)({
|
|
145370
145391
|
LatestVersionOfCreateAppRequired: (0, import_variant.fields)(),
|
|
@@ -164931,6 +164952,9 @@ ${errorMessage}`
|
|
|
164931
164952
|
}
|
|
164932
164953
|
);
|
|
164933
164954
|
},
|
|
164955
|
+
FailedToDistributeClientManifestUpdate: () => {
|
|
164956
|
+
return () => /* @__PURE__ */ import_react79.default.createElement(SystemErrorMessage, { message: "Failed to distribute client manifest update." });
|
|
164957
|
+
},
|
|
164934
164958
|
InvalidSiteComponentElementItem: ({ elementPath }) => {
|
|
164935
164959
|
return () => /* @__PURE__ */ import_react79.default.createElement(
|
|
164936
164960
|
ErrorMessage,
|
|
@@ -167590,6 +167614,62 @@ var SiteAuthProvider = ({
|
|
|
167590
167614
|
);
|
|
167591
167615
|
};
|
|
167592
167616
|
|
|
167617
|
+
// ../cli-auth/src/hooks/useSiteAuth.ts
|
|
167618
|
+
init_esm_shims();
|
|
167619
|
+
var import_react90 = __toESM(require_react(), 1);
|
|
167620
|
+
var import_variant24 = __toESM(require_lib(), 1);
|
|
167621
|
+
var useSiteAuth = ({
|
|
167622
|
+
siteId,
|
|
167623
|
+
onError,
|
|
167624
|
+
onLogin
|
|
167625
|
+
}) => {
|
|
167626
|
+
const exit = useExit();
|
|
167627
|
+
const authStrategy = (0, import_react90.useMemo)(() => createSiteAuthStrategy(siteId), [siteId]);
|
|
167628
|
+
const { status } = useAsync2(authStrategy.isLoggedIn, [], {
|
|
167629
|
+
onSuccess: (result) => {
|
|
167630
|
+
if (result) {
|
|
167631
|
+
onLogin?.(result.userInfo);
|
|
167632
|
+
}
|
|
167633
|
+
},
|
|
167634
|
+
onError: onError ?? exit
|
|
167635
|
+
});
|
|
167636
|
+
if ((0, import_variant24.isType)(status, "Loading")) {
|
|
167637
|
+
return {
|
|
167638
|
+
isLoading: true,
|
|
167639
|
+
isError: false,
|
|
167640
|
+
isAuthenticated: false,
|
|
167641
|
+
authState: null
|
|
167642
|
+
};
|
|
167643
|
+
}
|
|
167644
|
+
if ((0, import_variant24.isType)(status, "Error")) {
|
|
167645
|
+
return {
|
|
167646
|
+
isLoading: false,
|
|
167647
|
+
isError: true,
|
|
167648
|
+
isAuthenticated: false,
|
|
167649
|
+
authState: null,
|
|
167650
|
+
error: status.error
|
|
167651
|
+
};
|
|
167652
|
+
}
|
|
167653
|
+
const authState = status.result;
|
|
167654
|
+
if (authState == null) {
|
|
167655
|
+
return {
|
|
167656
|
+
isLoading: false,
|
|
167657
|
+
isError: false,
|
|
167658
|
+
isAuthenticated: false,
|
|
167659
|
+
authState: null
|
|
167660
|
+
};
|
|
167661
|
+
}
|
|
167662
|
+
return {
|
|
167663
|
+
isLoading: false,
|
|
167664
|
+
isError: false,
|
|
167665
|
+
isAuthenticated: true,
|
|
167666
|
+
authState,
|
|
167667
|
+
getAccessToken: authState.getAccessToken,
|
|
167668
|
+
getRequestHeaders: authState.getRequestHeaders,
|
|
167669
|
+
userInfo: authState.userInfo
|
|
167670
|
+
};
|
|
167671
|
+
};
|
|
167672
|
+
|
|
167593
167673
|
// ../cli-auth/src/index.ts
|
|
167594
167674
|
var { isLoggedIn: isLoggedInToAccount } = accountAuthStrategy;
|
|
167595
167675
|
|
|
@@ -167624,13 +167704,13 @@ function getDebugLogFilePath(projectFolder) {
|
|
|
167624
167704
|
|
|
167625
167705
|
// ../cli-http-client-react/src/httpClientProvider.tsx
|
|
167626
167706
|
init_esm_shims();
|
|
167627
|
-
var
|
|
167628
|
-
var HttpClientContext = (0,
|
|
167707
|
+
var import_react91 = __toESM(require_react(), 1);
|
|
167708
|
+
var HttpClientContext = (0, import_react91.createContext)(null);
|
|
167629
167709
|
var HttpClientProvider = ({
|
|
167630
167710
|
children,
|
|
167631
167711
|
headers
|
|
167632
167712
|
}) => {
|
|
167633
|
-
return /* @__PURE__ */
|
|
167713
|
+
return /* @__PURE__ */ import_react91.default.createElement(HttpClientContext.Provider, { value: { headers } }, children);
|
|
167634
167714
|
};
|
|
167635
167715
|
|
|
167636
167716
|
// ../cli-http-client-react/src/buildHttpClientHeaders.ts
|
|
@@ -167655,13 +167735,13 @@ init_esm_shims();
|
|
|
167655
167735
|
|
|
167656
167736
|
// ../cli-http-client-react/src/useHttpClient.ts
|
|
167657
167737
|
init_esm_shims();
|
|
167658
|
-
var
|
|
167738
|
+
var import_react92 = __toESM(require_react(), 1);
|
|
167659
167739
|
function useHttpClient({
|
|
167660
167740
|
type
|
|
167661
167741
|
}) {
|
|
167662
|
-
const context = (0,
|
|
167742
|
+
const context = (0, import_react92.useContext)(HttpClientContext);
|
|
167663
167743
|
const { getAccessToken: getAppToken, getRequestHeaders: createAuthHeaders } = useAuth();
|
|
167664
|
-
return (0,
|
|
167744
|
+
return (0, import_react92.useMemo)(
|
|
167665
167745
|
() => createHttpClient({
|
|
167666
167746
|
type,
|
|
167667
167747
|
getAppToken,
|
|
@@ -167676,11 +167756,11 @@ function useHttpClient({
|
|
|
167676
167756
|
|
|
167677
167757
|
// ../cli-panorama/src/PanoramaContext.tsx
|
|
167678
167758
|
init_esm_shims();
|
|
167679
|
-
var
|
|
167680
|
-
var PanoramaContext = (0,
|
|
167759
|
+
var import_react93 = __toESM(require_react(), 1);
|
|
167760
|
+
var PanoramaContext = (0, import_react93.createContext)(void 0);
|
|
167681
167761
|
var PanoramaProvider = (props) => {
|
|
167682
167762
|
const { value: value2, children } = props;
|
|
167683
|
-
return /* @__PURE__ */
|
|
167763
|
+
return /* @__PURE__ */ import_react93.default.createElement(PanoramaContext.Provider, { value: value2 }, children);
|
|
167684
167764
|
};
|
|
167685
167765
|
|
|
167686
167766
|
// ../cli-panorama/src/index.ts
|
|
@@ -167688,23 +167768,23 @@ init_esm_shims();
|
|
|
167688
167768
|
|
|
167689
167769
|
// ../cli-panorama/src/usePanoramaMethodLogger.ts
|
|
167690
167770
|
init_esm_shims();
|
|
167691
|
-
var
|
|
167771
|
+
var import_react94 = __toESM(require_react(), 1);
|
|
167692
167772
|
function usePanoramaMethodLogger(target) {
|
|
167693
|
-
const factory = (0,
|
|
167773
|
+
const factory = (0, import_react94.useContext)(PanoramaContext);
|
|
167694
167774
|
if (factory == null) {
|
|
167695
167775
|
throw new Error(
|
|
167696
167776
|
"usePanoramaMethodLogger() cannot be used without a <PanoramaProvider />"
|
|
167697
167777
|
);
|
|
167698
167778
|
}
|
|
167699
167779
|
const componentId = target.constructor.name;
|
|
167700
|
-
const clientOptions = (0,
|
|
167780
|
+
const clientOptions = (0, import_react94.useMemo)(
|
|
167701
167781
|
() => ({ baseParams: { componentId } }),
|
|
167702
167782
|
[componentId]
|
|
167703
167783
|
);
|
|
167704
|
-
const client2 = (0,
|
|
167784
|
+
const client2 = (0, import_react94.useMemo)(() => {
|
|
167705
167785
|
return factory.client(clientOptions);
|
|
167706
167786
|
}, [factory, clientOptions]);
|
|
167707
|
-
return (0,
|
|
167787
|
+
return (0, import_react94.useMemo)(() => {
|
|
167708
167788
|
const cache3 = /* @__PURE__ */ new Map();
|
|
167709
167789
|
return new Proxy(target, {
|
|
167710
167790
|
get(target2, prop, receiver) {
|
|
@@ -167731,7 +167811,7 @@ function usePanoramaMethodLogger(target) {
|
|
|
167731
167811
|
|
|
167732
167812
|
// ../cli-app-definitions/src/index.ts
|
|
167733
167813
|
init_esm_shims();
|
|
167734
|
-
var
|
|
167814
|
+
var import_variant25 = __toESM(require_lib(), 1);
|
|
167735
167815
|
import { join as join4 } from "node:path";
|
|
167736
167816
|
|
|
167737
167817
|
// ../../node_modules/@wix/ambassador-devcenter-apps-v1-app-old/build/es/types.impl.js
|
|
@@ -167965,6 +168045,7 @@ var ComponentType;
|
|
|
167965
168045
|
ComponentType3["SITE_MAP_INFO_PROVIDER"] = "SITE_MAP_INFO_PROVIDER";
|
|
167966
168046
|
ComponentType3["WIX_AI_GATEWAY_CALLBACK"] = "WIX_AI_GATEWAY_CALLBACK";
|
|
167967
168047
|
ComponentType3["URL_MAPPER_PROVIDER"] = "URL_MAPPER_PROVIDER";
|
|
168048
|
+
ComponentType3["PROVIDER_SUPPRESSION_SERVICE_PLUGIN"] = "PROVIDER_SUPPRESSION_SERVICE_PLUGIN";
|
|
167968
168049
|
})(ComponentType || (ComponentType = {}));
|
|
167969
168050
|
var WidgetVertical;
|
|
167970
168051
|
(function(WidgetVertical3) {
|
|
@@ -168022,6 +168103,12 @@ var SiteMembersSsrCaching;
|
|
|
168022
168103
|
SiteMembersSsrCaching3["CACHING_ALLOWED"] = "CACHING_ALLOWED";
|
|
168023
168104
|
SiteMembersSsrCaching3["CACHING_NOT_ALLOWED"] = "CACHING_NOT_ALLOWED";
|
|
168024
168105
|
})(SiteMembersSsrCaching || (SiteMembersSsrCaching = {}));
|
|
168106
|
+
var MpaNavigation;
|
|
168107
|
+
(function(MpaNavigation3) {
|
|
168108
|
+
MpaNavigation3["DEFAULT"] = "DEFAULT";
|
|
168109
|
+
MpaNavigation3["ALLOWED"] = "ALLOWED";
|
|
168110
|
+
MpaNavigation3["NOT_ALLOWED"] = "NOT_ALLOWED";
|
|
168111
|
+
})(MpaNavigation || (MpaNavigation = {}));
|
|
168025
168112
|
var ReplacementType;
|
|
168026
168113
|
(function(ReplacementType3) {
|
|
168027
168114
|
ReplacementType3["UNKNOWN_REPLACEMENT"] = "UNKNOWN_REPLACEMENT";
|
|
@@ -170226,6 +170313,7 @@ var ParameterType;
|
|
|
170226
170313
|
ParameterType3["CURRENCY"] = "CURRENCY";
|
|
170227
170314
|
ParameterType3["COUNTRY_SUBDIVISION"] = "COUNTRY_SUBDIVISION";
|
|
170228
170315
|
ParameterType3["LANGUAGE"] = "LANGUAGE";
|
|
170316
|
+
ParameterType3["MONEY"] = "MONEY";
|
|
170229
170317
|
})(ParameterType || (ParameterType = {}));
|
|
170230
170318
|
var FilterValueDefinitionMode;
|
|
170231
170319
|
(function(FilterValueDefinitionMode3) {
|
|
@@ -170244,23 +170332,32 @@ var TimeConstraintType;
|
|
|
170244
170332
|
(function(TimeConstraintType3) {
|
|
170245
170333
|
TimeConstraintType3["UNKNOWN_TIME_CONSTRAINT_TYPE"] = "UNKNOWN_TIME_CONSTRAINT_TYPE";
|
|
170246
170334
|
TimeConstraintType3["LAST_DAYS"] = "LAST_DAYS";
|
|
170247
|
-
TimeConstraintType3["LAST_HOURS"] = "LAST_HOURS";
|
|
170248
170335
|
TimeConstraintType3["NEXT_DAYS"] = "NEXT_DAYS";
|
|
170249
|
-
TimeConstraintType3["NEXT_HOURS"] = "NEXT_HOURS";
|
|
170250
170336
|
TimeConstraintType3["BETWEEN"] = "BETWEEN";
|
|
170251
|
-
TimeConstraintType3["TODAY"] = "TODAY";
|
|
170252
170337
|
TimeConstraintType3["THIS_MONTH"] = "THIS_MONTH";
|
|
170253
|
-
TimeConstraintType3["
|
|
170254
|
-
TimeConstraintType3["
|
|
170338
|
+
TimeConstraintType3["ON_OR_AFTER"] = "ON_OR_AFTER";
|
|
170339
|
+
TimeConstraintType3["ON_OR_BEFORE"] = "ON_OR_BEFORE";
|
|
170255
170340
|
})(TimeConstraintType || (TimeConstraintType = {}));
|
|
170256
170341
|
var ValueConstraintType;
|
|
170257
170342
|
(function(ValueConstraintType3) {
|
|
170258
170343
|
ValueConstraintType3["UNKNOWN_VALUE_CONSTRAINT_TYPE"] = "UNKNOWN_VALUE_CONSTRAINT_TYPE";
|
|
170259
|
-
ValueConstraintType3["NONE"] = "NONE";
|
|
170260
170344
|
ValueConstraintType3["PREDEFINED_VALUES"] = "PREDEFINED_VALUES";
|
|
170261
|
-
ValueConstraintType3["MIN_MAX_RANGE"] = "MIN_MAX_RANGE";
|
|
170262
|
-
ValueConstraintType3["RANGE"] = "RANGE";
|
|
170263
170345
|
})(ValueConstraintType || (ValueConstraintType = {}));
|
|
170346
|
+
var Category;
|
|
170347
|
+
(function(Category3) {
|
|
170348
|
+
Category3["UNKNOWN_CATEGORY"] = "UNKNOWN_CATEGORY";
|
|
170349
|
+
Category3["CONTACT_ATTRIBUTES"] = "CONTACT_ATTRIBUTES";
|
|
170350
|
+
Category3["CONTACT_ACTIVITIES"] = "CONTACT_ACTIVITIES";
|
|
170351
|
+
Category3["EMAIL_MARKETING"] = "EMAIL_MARKETING";
|
|
170352
|
+
Category3["MESSAGING_CAMPAIGNS"] = "MESSAGING_CAMPAIGNS";
|
|
170353
|
+
Category3["BOOKING_SERVICES"] = "BOOKING_SERVICES";
|
|
170354
|
+
Category3["STORES"] = "STORES";
|
|
170355
|
+
Category3["EVENTS"] = "EVENTS";
|
|
170356
|
+
Category3["PRICING_PLANS"] = "PRICING_PLANS";
|
|
170357
|
+
Category3["ECOMMERCE"] = "ECOMMERCE";
|
|
170358
|
+
Category3["GETTING_PAID"] = "GETTING_PAID";
|
|
170359
|
+
Category3["OTHER"] = "OTHER";
|
|
170360
|
+
})(Category || (Category = {}));
|
|
170264
170361
|
var RegionScopeScope;
|
|
170265
170362
|
(function(RegionScopeScope3) {
|
|
170266
170363
|
RegionScopeScope3["SPECIFIC_REGIONS"] = "SPECIFIC_REGIONS";
|
|
@@ -170281,6 +170378,9 @@ var AssetType;
|
|
|
170281
170378
|
AssetType3["EVENT"] = "EVENT";
|
|
170282
170379
|
AssetType3["FORM"] = "FORM";
|
|
170283
170380
|
AssetType3["PDF"] = "PDF";
|
|
170381
|
+
AssetType3["RICOS"] = "RICOS";
|
|
170382
|
+
AssetType3["DOC"] = "DOC";
|
|
170383
|
+
AssetType3["SLIDE"] = "SLIDE";
|
|
170284
170384
|
})(AssetType || (AssetType = {}));
|
|
170285
170385
|
var OpenConsentIn;
|
|
170286
170386
|
(function(OpenConsentIn3) {
|
|
@@ -170677,7 +170777,7 @@ var embeddedScriptConfigSchema = external_exports.object({
|
|
|
170677
170777
|
"An enum indicating where in the page's DOM the HTML code will be injected."
|
|
170678
170778
|
)
|
|
170679
170779
|
}).strict();
|
|
170680
|
-
var PlatformType = (0,
|
|
170780
|
+
var PlatformType = (0, import_variant25.variant)({
|
|
170681
170781
|
Site: {},
|
|
170682
170782
|
Editor: {},
|
|
170683
170783
|
Dashboard: {},
|
|
@@ -170943,44 +171043,44 @@ var siteComponentPanelConfigSchema = external_exports.object({
|
|
|
170943
171043
|
|
|
170944
171044
|
// src/dev-center/components/dev-center-component.ts
|
|
170945
171045
|
init_esm_shims();
|
|
170946
|
-
var
|
|
170947
|
-
var ServicePlugin = (0,
|
|
170948
|
-
EcomShippingRates: (0,
|
|
170949
|
-
EcomAdditionalFees: (0,
|
|
170950
|
-
EcomDiscountsTrigger: (0,
|
|
170951
|
-
EcomValidations: (0,
|
|
170952
|
-
EcomPaymentSettings: (0,
|
|
170953
|
-
EcomGiftCardsProvider: (0,
|
|
170954
|
-
EcomRecommendationsProvider: (0,
|
|
170955
|
-
ExternalDatabaseProvider: (0,
|
|
170956
|
-
SeoKeywordsSuggestion: (0,
|
|
170957
|
-
PremiumCustomCharges: (0,
|
|
171046
|
+
var import_variant26 = __toESM(require_lib(), 1);
|
|
171047
|
+
var ServicePlugin = (0, import_variant26.variant)({
|
|
171048
|
+
EcomShippingRates: (0, import_variant26.fields)(),
|
|
171049
|
+
EcomAdditionalFees: (0, import_variant26.fields)(),
|
|
171050
|
+
EcomDiscountsTrigger: (0, import_variant26.fields)(),
|
|
171051
|
+
EcomValidations: (0, import_variant26.fields)(),
|
|
171052
|
+
EcomPaymentSettings: (0, import_variant26.fields)(),
|
|
171053
|
+
EcomGiftCardsProvider: (0, import_variant26.fields)(),
|
|
171054
|
+
EcomRecommendationsProvider: (0, import_variant26.fields)(),
|
|
171055
|
+
ExternalDatabaseProvider: (0, import_variant26.fields)(),
|
|
171056
|
+
SeoKeywordsSuggestion: (0, import_variant26.fields)(),
|
|
171057
|
+
PremiumCustomCharges: (0, import_variant26.fields)()
|
|
170958
171058
|
});
|
|
170959
|
-
var DevCenterComponent = (0,
|
|
170960
|
-
DashboardPage: (0,
|
|
170961
|
-
DashboardPlugin: (0,
|
|
170962
|
-
DashboardMenuPlugin: (0,
|
|
170963
|
-
DashboardModal: (0,
|
|
170964
|
-
DashboardSidebarCategory: (0,
|
|
170965
|
-
EmbeddedScript: (0,
|
|
170966
|
-
CustomElement: (0,
|
|
170967
|
-
SitePlugin: (0,
|
|
170968
|
-
BlocksWidget: (0,
|
|
170969
|
-
BlocksWidgetPanel: (0,
|
|
170970
|
-
BlocksMainComponent: (0,
|
|
170971
|
-
Topology: (0,
|
|
170972
|
-
Api: (0,
|
|
170973
|
-
WebMethod: (0,
|
|
170974
|
-
Event: (0,
|
|
170975
|
-
ServicePlugin: (0,
|
|
170976
|
-
Monitoring: (0,
|
|
170977
|
-
SiteComponent: (0,
|
|
170978
|
-
SiteComponentPanel: (0,
|
|
171059
|
+
var DevCenterComponent = (0, import_variant26.variant)({
|
|
171060
|
+
DashboardPage: (0, import_variant26.fields)(),
|
|
171061
|
+
DashboardPlugin: (0, import_variant26.fields)(),
|
|
171062
|
+
DashboardMenuPlugin: (0, import_variant26.fields)(),
|
|
171063
|
+
DashboardModal: (0, import_variant26.fields)(),
|
|
171064
|
+
DashboardSidebarCategory: (0, import_variant26.fields)(),
|
|
171065
|
+
EmbeddedScript: (0, import_variant26.fields)(),
|
|
171066
|
+
CustomElement: (0, import_variant26.fields)(),
|
|
171067
|
+
SitePlugin: (0, import_variant26.fields)(),
|
|
171068
|
+
BlocksWidget: (0, import_variant26.fields)(),
|
|
171069
|
+
BlocksWidgetPanel: (0, import_variant26.fields)(),
|
|
171070
|
+
BlocksMainComponent: (0, import_variant26.fields)(),
|
|
171071
|
+
Topology: (0, import_variant26.fields)(),
|
|
171072
|
+
Api: (0, import_variant26.fields)(),
|
|
171073
|
+
WebMethod: (0, import_variant26.fields)(),
|
|
171074
|
+
Event: (0, import_variant26.fields)(),
|
|
171075
|
+
ServicePlugin: (0, import_variant26.fields)(),
|
|
171076
|
+
Monitoring: (0, import_variant26.fields)(),
|
|
171077
|
+
SiteComponent: (0, import_variant26.fields)(),
|
|
171078
|
+
SiteComponentPanel: (0, import_variant26.fields)()
|
|
170979
171079
|
});
|
|
170980
171080
|
|
|
170981
171081
|
// src/model.tsx
|
|
170982
171082
|
init_esm_shims();
|
|
170983
|
-
var
|
|
171083
|
+
var import_react98 = __toESM(require_react(), 1);
|
|
170984
171084
|
|
|
170985
171085
|
// src/files/wix.config.ts
|
|
170986
171086
|
init_esm_shims();
|
|
@@ -171200,7 +171300,7 @@ var import_fast_glob2 = __toESM(require_out4(), 1);
|
|
|
171200
171300
|
init_esm_shims();
|
|
171201
171301
|
import fs6 from "node:fs";
|
|
171202
171302
|
import fsPromises from "node:fs/promises";
|
|
171203
|
-
async function
|
|
171303
|
+
async function isType10(fsStatType, statsMethodName, filePath) {
|
|
171204
171304
|
if (typeof filePath !== "string") {
|
|
171205
171305
|
throw new TypeError(`Expected a string, got ${typeof filePath}`);
|
|
171206
171306
|
}
|
|
@@ -171227,9 +171327,9 @@ function isTypeSync(fsStatType, statsMethodName, filePath) {
|
|
|
171227
171327
|
throw error;
|
|
171228
171328
|
}
|
|
171229
171329
|
}
|
|
171230
|
-
var isFile =
|
|
171231
|
-
var isDirectory =
|
|
171232
|
-
var isSymlink =
|
|
171330
|
+
var isFile = isType10.bind(void 0, "stat", "isFile");
|
|
171331
|
+
var isDirectory = isType10.bind(void 0, "stat", "isDirectory");
|
|
171332
|
+
var isSymlink = isType10.bind(void 0, "lstat", "isSymbolicLink");
|
|
171233
171333
|
var isFileSync = isTypeSync.bind(void 0, "statSync", "isFile");
|
|
171234
171334
|
var isDirectorySync = isTypeSync.bind(void 0, "statSync", "isDirectory");
|
|
171235
171335
|
var isSymlinkSync = isTypeSync.bind(void 0, "lstatSync", "isSymbolicLink");
|
|
@@ -171538,7 +171638,7 @@ import { randomUUID } from "node:crypto";
|
|
|
171538
171638
|
|
|
171539
171639
|
// src/dev-center/components/dashboard/config.ts
|
|
171540
171640
|
init_esm_shims();
|
|
171541
|
-
var
|
|
171641
|
+
var import_variant27 = __toESM(require_lib(), 1);
|
|
171542
171642
|
|
|
171543
171643
|
// src/dev-center/components/path.ts
|
|
171544
171644
|
init_esm_shims();
|
|
@@ -171660,7 +171760,7 @@ function virtualPathForHTMLAsset(componentId) {
|
|
|
171660
171760
|
function virtualDashboardHTMLAssets(model) {
|
|
171661
171761
|
return new Map(
|
|
171662
171762
|
model.components.filter(
|
|
171663
|
-
(component) => (0,
|
|
171763
|
+
(component) => (0, import_variant27.isType)(component, DevCenterComponent.DashboardPage) || (0, import_variant27.isType)(component, DevCenterComponent.DashboardPlugin) || (0, import_variant27.isType)(component, DevCenterComponent.DashboardModal)
|
|
171664
171764
|
).map((comp) => [virtualPathForHTMLAsset(comp.id), comp])
|
|
171665
171765
|
);
|
|
171666
171766
|
}
|
|
@@ -171670,7 +171770,7 @@ function virtualModuleIdForScriptAsset(componentId) {
|
|
|
171670
171770
|
function virtualDashboardScriptAssets(model) {
|
|
171671
171771
|
return new Map(
|
|
171672
171772
|
model.components.filter(
|
|
171673
|
-
(component) => (0,
|
|
171773
|
+
(component) => (0, import_variant27.isType)(component, DevCenterComponent.DashboardPage) || (0, import_variant27.isType)(component, DevCenterComponent.DashboardPlugin) || (0, import_variant27.isType)(component, DevCenterComponent.DashboardModal)
|
|
171674
171774
|
).map((comp) => [virtualModuleIdForScriptAsset(comp.id), comp])
|
|
171675
171775
|
);
|
|
171676
171776
|
}
|
|
@@ -172227,16 +172327,16 @@ function createEmbeddedScriptFolderValidation(embeddedScripts) {
|
|
|
172227
172327
|
|
|
172228
172328
|
// src/dev-center/components/validations/custom-element.ts
|
|
172229
172329
|
init_esm_shims();
|
|
172230
|
-
var
|
|
172330
|
+
var import_react96 = __toESM(require_react(), 1);
|
|
172231
172331
|
|
|
172232
172332
|
// src/components/extensions/useExtensions.tsx
|
|
172233
172333
|
init_esm_shims();
|
|
172234
|
-
var
|
|
172235
|
-
var
|
|
172236
|
-
var _DevCenterComponentTypes = (0,
|
|
172334
|
+
var import_react95 = __toESM(require_react(), 1);
|
|
172335
|
+
var import_variant28 = __toESM(require_lib(), 1);
|
|
172336
|
+
var _DevCenterComponentTypes = (0, import_variant28.typeCatalog)(DevCenterComponent);
|
|
172237
172337
|
function useExtensions() {
|
|
172238
172338
|
const { model } = useProjectModel();
|
|
172239
|
-
const extensionsByType = (0,
|
|
172339
|
+
const extensionsByType = (0, import_react95.useMemo)(() => {
|
|
172240
172340
|
const extensionsMap = model.components.reduce(
|
|
172241
172341
|
(acc, component) => {
|
|
172242
172342
|
acc[component.type].push(component);
|
|
@@ -172269,7 +172369,7 @@ function useExtensions() {
|
|
|
172269
172369
|
);
|
|
172270
172370
|
return extensionsMap;
|
|
172271
172371
|
}, [model.components]);
|
|
172272
|
-
const dashboardExtensions = (0,
|
|
172372
|
+
const dashboardExtensions = (0, import_react95.useMemo)(
|
|
172273
172373
|
() => [
|
|
172274
172374
|
...extensionsByType.DashboardPage,
|
|
172275
172375
|
...extensionsByType.DashboardMenuPlugin,
|
|
@@ -172278,11 +172378,11 @@ function useExtensions() {
|
|
|
172278
172378
|
],
|
|
172279
172379
|
[extensionsByType]
|
|
172280
172380
|
);
|
|
172281
|
-
const hasExtensions = (0,
|
|
172381
|
+
const hasExtensions = (0, import_react95.useCallback)(
|
|
172282
172382
|
(extensionType) => extensionType ? extensionsByType[extensionType].length > 0 : model.components.length > 0,
|
|
172283
172383
|
[extensionsByType, model.components]
|
|
172284
172384
|
);
|
|
172285
|
-
const getExtensions = (0,
|
|
172385
|
+
const getExtensions = (0, import_react95.useCallback)(
|
|
172286
172386
|
(extensionType) => extensionsByType[extensionType],
|
|
172287
172387
|
[extensionsByType]
|
|
172288
172388
|
);
|
|
@@ -172361,7 +172461,7 @@ var useCustomElementDirectoryValidation = (extensionType) => {
|
|
|
172361
172461
|
]
|
|
172362
172462
|
])
|
|
172363
172463
|
);
|
|
172364
|
-
return (0,
|
|
172464
|
+
return (0, import_react96.useCallback)(validation, [validation]);
|
|
172365
172465
|
};
|
|
172366
172466
|
var useCustomElementNameValidation = () => {
|
|
172367
172467
|
const { t: t3 } = useTranslation();
|
|
@@ -172373,7 +172473,7 @@ var useCustomElementNameValidation = () => {
|
|
|
172373
172473
|
]
|
|
172374
172474
|
])
|
|
172375
172475
|
);
|
|
172376
|
-
return (0,
|
|
172476
|
+
return (0, import_react96.useCallback)(validation, [validation]);
|
|
172377
172477
|
};
|
|
172378
172478
|
|
|
172379
172479
|
// src/dev-center/components/backend/config.ts
|
|
@@ -174748,6 +174848,7 @@ var ComponentType2;
|
|
|
174748
174848
|
ComponentType3["SITE_MAP_INFO_PROVIDER"] = "SITE_MAP_INFO_PROVIDER";
|
|
174749
174849
|
ComponentType3["WIX_AI_GATEWAY_CALLBACK"] = "WIX_AI_GATEWAY_CALLBACK";
|
|
174750
174850
|
ComponentType3["URL_MAPPER_PROVIDER"] = "URL_MAPPER_PROVIDER";
|
|
174851
|
+
ComponentType3["PROVIDER_SUPPRESSION_SERVICE_PLUGIN"] = "PROVIDER_SUPPRESSION_SERVICE_PLUGIN";
|
|
174751
174852
|
})(ComponentType2 || (ComponentType2 = {}));
|
|
174752
174853
|
var WidgetVertical2;
|
|
174753
174854
|
(function(WidgetVertical3) {
|
|
@@ -174805,6 +174906,12 @@ var SiteMembersSsrCaching2;
|
|
|
174805
174906
|
SiteMembersSsrCaching3["CACHING_ALLOWED"] = "CACHING_ALLOWED";
|
|
174806
174907
|
SiteMembersSsrCaching3["CACHING_NOT_ALLOWED"] = "CACHING_NOT_ALLOWED";
|
|
174807
174908
|
})(SiteMembersSsrCaching2 || (SiteMembersSsrCaching2 = {}));
|
|
174909
|
+
var MpaNavigation2;
|
|
174910
|
+
(function(MpaNavigation3) {
|
|
174911
|
+
MpaNavigation3["DEFAULT"] = "DEFAULT";
|
|
174912
|
+
MpaNavigation3["ALLOWED"] = "ALLOWED";
|
|
174913
|
+
MpaNavigation3["NOT_ALLOWED"] = "NOT_ALLOWED";
|
|
174914
|
+
})(MpaNavigation2 || (MpaNavigation2 = {}));
|
|
174808
174915
|
var ReplacementType2;
|
|
174809
174916
|
(function(ReplacementType3) {
|
|
174810
174917
|
ReplacementType3["UNKNOWN_REPLACEMENT"] = "UNKNOWN_REPLACEMENT";
|
|
@@ -177009,6 +177116,7 @@ var ParameterType2;
|
|
|
177009
177116
|
ParameterType3["CURRENCY"] = "CURRENCY";
|
|
177010
177117
|
ParameterType3["COUNTRY_SUBDIVISION"] = "COUNTRY_SUBDIVISION";
|
|
177011
177118
|
ParameterType3["LANGUAGE"] = "LANGUAGE";
|
|
177119
|
+
ParameterType3["MONEY"] = "MONEY";
|
|
177012
177120
|
})(ParameterType2 || (ParameterType2 = {}));
|
|
177013
177121
|
var FilterValueDefinitionMode2;
|
|
177014
177122
|
(function(FilterValueDefinitionMode3) {
|
|
@@ -177027,23 +177135,32 @@ var TimeConstraintType2;
|
|
|
177027
177135
|
(function(TimeConstraintType3) {
|
|
177028
177136
|
TimeConstraintType3["UNKNOWN_TIME_CONSTRAINT_TYPE"] = "UNKNOWN_TIME_CONSTRAINT_TYPE";
|
|
177029
177137
|
TimeConstraintType3["LAST_DAYS"] = "LAST_DAYS";
|
|
177030
|
-
TimeConstraintType3["LAST_HOURS"] = "LAST_HOURS";
|
|
177031
177138
|
TimeConstraintType3["NEXT_DAYS"] = "NEXT_DAYS";
|
|
177032
|
-
TimeConstraintType3["NEXT_HOURS"] = "NEXT_HOURS";
|
|
177033
177139
|
TimeConstraintType3["BETWEEN"] = "BETWEEN";
|
|
177034
|
-
TimeConstraintType3["TODAY"] = "TODAY";
|
|
177035
177140
|
TimeConstraintType3["THIS_MONTH"] = "THIS_MONTH";
|
|
177036
|
-
TimeConstraintType3["
|
|
177037
|
-
TimeConstraintType3["
|
|
177141
|
+
TimeConstraintType3["ON_OR_AFTER"] = "ON_OR_AFTER";
|
|
177142
|
+
TimeConstraintType3["ON_OR_BEFORE"] = "ON_OR_BEFORE";
|
|
177038
177143
|
})(TimeConstraintType2 || (TimeConstraintType2 = {}));
|
|
177039
177144
|
var ValueConstraintType2;
|
|
177040
177145
|
(function(ValueConstraintType3) {
|
|
177041
177146
|
ValueConstraintType3["UNKNOWN_VALUE_CONSTRAINT_TYPE"] = "UNKNOWN_VALUE_CONSTRAINT_TYPE";
|
|
177042
|
-
ValueConstraintType3["NONE"] = "NONE";
|
|
177043
177147
|
ValueConstraintType3["PREDEFINED_VALUES"] = "PREDEFINED_VALUES";
|
|
177044
|
-
ValueConstraintType3["MIN_MAX_RANGE"] = "MIN_MAX_RANGE";
|
|
177045
|
-
ValueConstraintType3["RANGE"] = "RANGE";
|
|
177046
177148
|
})(ValueConstraintType2 || (ValueConstraintType2 = {}));
|
|
177149
|
+
var Category2;
|
|
177150
|
+
(function(Category3) {
|
|
177151
|
+
Category3["UNKNOWN_CATEGORY"] = "UNKNOWN_CATEGORY";
|
|
177152
|
+
Category3["CONTACT_ATTRIBUTES"] = "CONTACT_ATTRIBUTES";
|
|
177153
|
+
Category3["CONTACT_ACTIVITIES"] = "CONTACT_ACTIVITIES";
|
|
177154
|
+
Category3["EMAIL_MARKETING"] = "EMAIL_MARKETING";
|
|
177155
|
+
Category3["MESSAGING_CAMPAIGNS"] = "MESSAGING_CAMPAIGNS";
|
|
177156
|
+
Category3["BOOKING_SERVICES"] = "BOOKING_SERVICES";
|
|
177157
|
+
Category3["STORES"] = "STORES";
|
|
177158
|
+
Category3["EVENTS"] = "EVENTS";
|
|
177159
|
+
Category3["PRICING_PLANS"] = "PRICING_PLANS";
|
|
177160
|
+
Category3["ECOMMERCE"] = "ECOMMERCE";
|
|
177161
|
+
Category3["GETTING_PAID"] = "GETTING_PAID";
|
|
177162
|
+
Category3["OTHER"] = "OTHER";
|
|
177163
|
+
})(Category2 || (Category2 = {}));
|
|
177047
177164
|
var RegionScopeScope2;
|
|
177048
177165
|
(function(RegionScopeScope3) {
|
|
177049
177166
|
RegionScopeScope3["SPECIFIC_REGIONS"] = "SPECIFIC_REGIONS";
|
|
@@ -177064,6 +177181,9 @@ var AssetType2;
|
|
|
177064
177181
|
AssetType3["EVENT"] = "EVENT";
|
|
177065
177182
|
AssetType3["FORM"] = "FORM";
|
|
177066
177183
|
AssetType3["PDF"] = "PDF";
|
|
177184
|
+
AssetType3["RICOS"] = "RICOS";
|
|
177185
|
+
AssetType3["DOC"] = "DOC";
|
|
177186
|
+
AssetType3["SLIDE"] = "SLIDE";
|
|
177067
177187
|
})(AssetType2 || (AssetType2 = {}));
|
|
177068
177188
|
var SaleType;
|
|
177069
177189
|
(function(SaleType2) {
|
|
@@ -177903,10 +178023,10 @@ var DevCenterClient = class {
|
|
|
177903
178023
|
|
|
177904
178024
|
// ../dev-center-client/src/useDevCenterClient.ts
|
|
177905
178025
|
init_esm_shims();
|
|
177906
|
-
var
|
|
178026
|
+
var import_react97 = __toESM(require_react(), 1);
|
|
177907
178027
|
function useDevCenterClient() {
|
|
177908
178028
|
const httpClient = useHttpClient({ type: "backoffice" });
|
|
177909
|
-
const client2 = (0,
|
|
178029
|
+
const client2 = (0, import_react97.useMemo)(() => new DevCenterClient(httpClient), [httpClient]);
|
|
177910
178030
|
return usePanoramaMethodLogger(client2);
|
|
177911
178031
|
}
|
|
177912
178032
|
|
|
@@ -179242,7 +179362,7 @@ import { randomUUID as randomUUID2 } from "node:crypto";
|
|
|
179242
179362
|
// src/dev-center/components/site/config.ts
|
|
179243
179363
|
init_esm_shims();
|
|
179244
179364
|
import { join as join9, dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
179245
|
-
var
|
|
179365
|
+
var import_variant29 = __toESM(require_lib(), 1);
|
|
179246
179366
|
var import_types_impl = __toESM(require_types_impl(), 1);
|
|
179247
179367
|
async function loadEmbeddedScriptComponentConfig(embeddedScriptPath) {
|
|
179248
179368
|
const configPath = replaceExtension(embeddedScriptPath, "json");
|
|
@@ -179366,14 +179486,14 @@ function virtualModuleIdForCustomElementScriptAsset(componentId) {
|
|
|
179366
179486
|
function virtualCustomElementPanelHTMLAssets(model) {
|
|
179367
179487
|
return new Map(
|
|
179368
179488
|
model.components.filter(
|
|
179369
|
-
(component) => ((0,
|
|
179489
|
+
(component) => ((0, import_variant29.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant29.isType)(component, DevCenterComponent.SitePlugin)) && Boolean(component.relativePanelPath)
|
|
179370
179490
|
).map((comp) => [virtualPathForCustomElementPanelHTMLAsset(comp.id), comp])
|
|
179371
179491
|
);
|
|
179372
179492
|
}
|
|
179373
179493
|
function virtualCustomElementScriptAssets(model) {
|
|
179374
179494
|
return new Map(
|
|
179375
179495
|
model.components.filter(
|
|
179376
|
-
(component) => (0,
|
|
179496
|
+
(component) => (0, import_variant29.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant29.isType)(component, DevCenterComponent.SitePlugin)
|
|
179377
179497
|
).map((comp) => [
|
|
179378
179498
|
virtualModuleIdForCustomElementScriptAsset(comp.id),
|
|
179379
179499
|
comp
|
|
@@ -179383,7 +179503,7 @@ function virtualCustomElementScriptAssets(model) {
|
|
|
179383
179503
|
function virtualCustomElementPanelScriptAssets(model) {
|
|
179384
179504
|
return new Map(
|
|
179385
179505
|
model.components.filter(
|
|
179386
|
-
(component) => ((0,
|
|
179506
|
+
(component) => ((0, import_variant29.isType)(component, DevCenterComponent.CustomElement) || (0, import_variant29.isType)(component, DevCenterComponent.SitePlugin)) && Boolean(component.relativePanelPath)
|
|
179387
179507
|
).map((comp) => [
|
|
179388
179508
|
virtualModuleIdForCustomElementPanelScriptAsset(comp.id),
|
|
179389
179509
|
comp
|
|
@@ -179395,7 +179515,7 @@ function virtualModuleIdForBlocksComponentScriptAsset(componentId) {
|
|
|
179395
179515
|
}
|
|
179396
179516
|
function virtualBlocksWidgetPanelScriptAssets(model) {
|
|
179397
179517
|
return new Map(
|
|
179398
|
-
model.components.filter((0,
|
|
179518
|
+
model.components.filter((0, import_variant29.isType)(DevCenterComponent.BlocksWidgetPanel)).map((comp) => [
|
|
179399
179519
|
virtualModuleIdForBlocksComponentScriptAsset(comp.id),
|
|
179400
179520
|
comp
|
|
179401
179521
|
])
|
|
@@ -179403,7 +179523,7 @@ function virtualBlocksWidgetPanelScriptAssets(model) {
|
|
|
179403
179523
|
}
|
|
179404
179524
|
function virtualBlocksWidgetScriptAssets(model) {
|
|
179405
179525
|
return new Map(
|
|
179406
|
-
model.components.filter((0,
|
|
179526
|
+
model.components.filter((0, import_variant29.isType)(DevCenterComponent.BlocksWidget)).map((comp) => [
|
|
179407
179527
|
virtualModuleIdForBlocksComponentScriptAsset(comp.id),
|
|
179408
179528
|
comp
|
|
179409
179529
|
])
|
|
@@ -179414,7 +179534,7 @@ function virtualModuleIdForSiteComponentScriptAsset(componentId) {
|
|
|
179414
179534
|
}
|
|
179415
179535
|
function virtualSiteComponentScriptAssets(model) {
|
|
179416
179536
|
return new Map(
|
|
179417
|
-
model.components.filter((0,
|
|
179537
|
+
model.components.filter((0, import_variant29.isType)(DevCenterComponent.SiteComponent)).map((comp) => [
|
|
179418
179538
|
virtualModuleIdForSiteComponentScriptAsset(comp.id),
|
|
179419
179539
|
comp
|
|
179420
179540
|
])
|
|
@@ -179425,7 +179545,7 @@ function virtualModuleIdForSiteComponentPanelScriptAsset(componentId) {
|
|
|
179425
179545
|
}
|
|
179426
179546
|
function virtualSiteComponentPanelScriptAssets(model) {
|
|
179427
179547
|
return new Map(
|
|
179428
|
-
model.components.filter((0,
|
|
179548
|
+
model.components.filter((0, import_variant29.isType)(DevCenterComponent.SiteComponentPanel)).map((comp) => [
|
|
179429
179549
|
virtualModuleIdForSiteComponentPanelScriptAsset(comp.id),
|
|
179430
179550
|
comp
|
|
179431
179551
|
])
|
|
@@ -179437,7 +179557,7 @@ function virtualModuleIdForSiteComponentPreview(componentId) {
|
|
|
179437
179557
|
function virtualSiteComponentPreviewScriptAssets(model) {
|
|
179438
179558
|
const assets = /* @__PURE__ */ new Map();
|
|
179439
179559
|
for (const comp of model.components) {
|
|
179440
|
-
if ((0,
|
|
179560
|
+
if ((0, import_variant29.isType)(comp, DevCenterComponent.SiteComponent) && comp.relativePreviewPath) {
|
|
179441
179561
|
assets.set(virtualModuleIdForSiteComponentPreview(comp.id), {
|
|
179442
179562
|
...comp,
|
|
179443
179563
|
relativePreviewPath: comp.relativePreviewPath
|
|
@@ -179529,7 +179649,7 @@ function getElementsPresetEntries(componentId, componentDir, projectFolder, elem
|
|
|
179529
179649
|
function virtualSiteComponentPresetAssets(model) {
|
|
179530
179650
|
const entries = [];
|
|
179531
179651
|
const siteComponents = model.components.filter(
|
|
179532
|
-
(0,
|
|
179652
|
+
(0, import_variant29.isType)(DevCenterComponent.SiteComponent)
|
|
179533
179653
|
);
|
|
179534
179654
|
for (const component of siteComponents) {
|
|
179535
179655
|
if (component.presets) {
|
|
@@ -179565,7 +179685,7 @@ function virtualModuleIdForSiteComponentSdkScriptAsset(componentId) {
|
|
|
179565
179685
|
function virtualSiteComponentSdkScriptAssets(model) {
|
|
179566
179686
|
const assets = /* @__PURE__ */ new Map();
|
|
179567
179687
|
for (const comp of model.components) {
|
|
179568
|
-
if ((0,
|
|
179688
|
+
if ((0, import_variant29.isType)(comp, DevCenterComponent.SiteComponent) && comp.relativeSdkPath) {
|
|
179569
179689
|
assets.set(virtualModuleIdForSiteComponentSdkScriptAsset(comp.id), {
|
|
179570
179690
|
...comp,
|
|
179571
179691
|
relativeSdkPath: comp.relativeSdkPath
|
|
@@ -180182,7 +180302,7 @@ var getMajorVersionFromRange = (packageName, versionRange) => {
|
|
|
180182
180302
|
// src/dev-center/components/backend/components.ts
|
|
180183
180303
|
init_esm_shims();
|
|
180184
180304
|
import { join as join11 } from "node:path";
|
|
180185
|
-
var
|
|
180305
|
+
var import_variant30 = __toESM(require_lib(), 1);
|
|
180186
180306
|
var API_PATTERN = join11(API_DIR, "*", "api.{ts,tsx,js,jsx}");
|
|
180187
180307
|
var WEB_METHOD_PATTERN = join11(WEB_METHOD_DIR, "**", "*.web.ts");
|
|
180188
180308
|
var EVENTS_PATTERN = join11(EVENTS_DIR, "*", "event.{ts,tsx,js,jsx}");
|
|
@@ -180259,7 +180379,7 @@ async function loadServicePlugin(pluginPath) {
|
|
|
180259
180379
|
PlatformType.Dashboard()
|
|
180260
180380
|
],
|
|
180261
180381
|
relativePath: pluginPath,
|
|
180262
|
-
servicePlugin: await (0,
|
|
180382
|
+
servicePlugin: await (0, import_variant30.match)(servicePluginType, {
|
|
180263
180383
|
ECOM_ADDITIONAL_FEES: async () => ServicePlugin.EcomAdditionalFees(
|
|
180264
180384
|
await loadServicePluginConfig(
|
|
180265
180385
|
pluginPath,
|
|
@@ -180920,7 +181040,14 @@ var ProjectModelWatcher = class {
|
|
|
180920
181040
|
if (this.prevModel.config.blocks?.uiRevision !== model.config.blocks?.uiRevision) {
|
|
180921
181041
|
this.emitter.emit("all", model, "blocks-revision-changed");
|
|
180922
181042
|
}
|
|
180923
|
-
if (
|
|
181043
|
+
if (basename(path5) === "component.json") {
|
|
181044
|
+
this.emitter.emit("all", model, "component-updated");
|
|
181045
|
+
return;
|
|
181046
|
+
}
|
|
181047
|
+
if (!deepEqual(model, this.prevModel) && basename(path5) === "component.json") {
|
|
181048
|
+
this.prevModel = model;
|
|
181049
|
+
this.emitter.emit("all", model, "component-updated");
|
|
181050
|
+
} else if (!deepEqual(model, this.prevModel) || basename(path5) === "embedded.html" || basename(path5) === "event.ts") {
|
|
180924
181051
|
this.prevModel = model;
|
|
180925
181052
|
this.emitter.emit("all", model, "model-updated");
|
|
180926
181053
|
} else {
|
|
@@ -180944,11 +181071,11 @@ async function loadProjectModel(projectFolder) {
|
|
|
180944
181071
|
})
|
|
180945
181072
|
};
|
|
180946
181073
|
}
|
|
180947
|
-
var ProjectModelContext = (0,
|
|
181074
|
+
var ProjectModelContext = (0, import_react98.createContext)(null);
|
|
180948
181075
|
var ProjectModelProvider = (props) => {
|
|
180949
181076
|
const { reportError } = useErrorReporter();
|
|
180950
|
-
const [model, setModel] = (0,
|
|
180951
|
-
const [watcher] = (0,
|
|
181077
|
+
const [model, setModel] = (0, import_react98.useState)(props.value);
|
|
181078
|
+
const [watcher] = (0, import_react98.useState)(() => {
|
|
180952
181079
|
const watcher2 = new ProjectModelWatcher(model);
|
|
180953
181080
|
if (props.watchForChanges === true) {
|
|
180954
181081
|
watcher2.watch().onChange((newModel, changeType) => {
|
|
@@ -180959,15 +181086,15 @@ var ProjectModelProvider = (props) => {
|
|
|
180959
181086
|
}
|
|
180960
181087
|
return watcher2;
|
|
180961
181088
|
});
|
|
180962
|
-
(0,
|
|
181089
|
+
(0, import_react98.useEffect)(() => {
|
|
180963
181090
|
return () => {
|
|
180964
181091
|
watcher.close().catch(reportError);
|
|
180965
181092
|
};
|
|
180966
181093
|
}, [watcher, reportError]);
|
|
180967
|
-
return /* @__PURE__ */
|
|
181094
|
+
return /* @__PURE__ */ import_react98.default.createElement(ProjectModelContext.Provider, { value: { model, watcher } }, props.children);
|
|
180968
181095
|
};
|
|
180969
181096
|
function useProjectModel() {
|
|
180970
|
-
const context = (0,
|
|
181097
|
+
const context = (0, import_react98.useContext)(ProjectModelContext);
|
|
180971
181098
|
if (context == null) {
|
|
180972
181099
|
throw new Error(
|
|
180973
181100
|
"useProjectModel() cannot be used without an <ProjectModelProvider>"
|
|
@@ -180998,6 +181125,7 @@ export {
|
|
|
180998
181125
|
isHttpError,
|
|
180999
181126
|
isHttpValidationError,
|
|
181000
181127
|
isHttpApplicationError,
|
|
181128
|
+
createHttpClient,
|
|
181001
181129
|
getTestOverrides,
|
|
181002
181130
|
getDataDirPath,
|
|
181003
181131
|
ensureDataDirExists,
|
|
@@ -181066,6 +181194,7 @@ export {
|
|
|
181066
181194
|
useErrorReporter,
|
|
181067
181195
|
AccountAuthProvider,
|
|
181068
181196
|
SiteAuthProvider,
|
|
181197
|
+
useSiteAuth,
|
|
181069
181198
|
isLoggedInToAccount,
|
|
181070
181199
|
WIX_CONFIG_FILENAME,
|
|
181071
181200
|
TS_CONFIG_FILENAME,
|
|
@@ -181387,4 +181516,4 @@ mustache/mustache.mjs:
|
|
|
181387
181516
|
* http://github.com/janl/mustache.js
|
|
181388
181517
|
*)
|
|
181389
181518
|
*/
|
|
181390
|
-
//# sourceMappingURL=chunk-
|
|
181519
|
+
//# sourceMappingURL=chunk-DLJA76CA.js.map
|