@wix/cli-app 1.1.65 → 1.1.66
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/{CreateVersionCommand-3LCMV6MO.js → CreateVersionCommand-3APRL3VU.js} +14 -14
- package/build/{DevCommand-AL5OJMFK.js → DevCommand-ETOGX7TQ.js} +12 -12
- package/build/{GenerateCommand-P3WBZGMA.js → GenerateCommand-WI4QHFLI.js} +8 -8
- package/build/{LogsCommand-27N3PFUW.js → LogsCommand-EI2OGC45.js} +4 -4
- package/build/PreviewCommand-NELA5NRX.js +23 -0
- package/build/{ReleaseCommand-JVRK6QOZ.js → ReleaseCommand-A7OLS7VK.js} +17 -16
- package/build/ReleaseCommand-A7OLS7VK.js.map +1 -0
- package/build/{ServeCommand-5BSAPNHC.js → ServeCommand-HZFAQ76D.js} +13 -13
- package/build/{build-IONLFG5I.js → build-3YQ4WRAD.js} +7 -7
- package/build/{chunk-LVHX7JGR.js → chunk-B2ICYFSY.js} +35 -6
- package/build/{chunk-LVHX7JGR.js.map → chunk-B2ICYFSY.js.map} +1 -1
- package/build/{chunk-YKTRDLGU.js → chunk-CXSHOO4P.js} +8 -8
- package/build/{chunk-HH64DLEE.js → chunk-EXLMLNEA.js} +7 -7
- package/build/{chunk-HH64DLEE.js.map → chunk-EXLMLNEA.js.map} +1 -1
- package/build/{chunk-PZGUE6SY.js → chunk-GAJ7KUCP.js} +3 -3
- package/build/{chunk-YCQJNAIT.js → chunk-IEPRQY35.js} +3 -3
- package/build/{chunk-L2MHG5WV.js → chunk-JRT7D3FW.js} +5 -5
- package/build/{chunk-DWOAWAAA.js → chunk-KCNDPIBT.js} +5 -5
- package/build/{chunk-CUVZAENC.js → chunk-NKZUVIGH.js} +2 -2
- package/build/{chunk-CUVZAENC.js.map → chunk-NKZUVIGH.js.map} +1 -1
- package/build/{chunk-7GJYEEDQ.js → chunk-NOA57HIN.js} +624 -38
- package/build/{chunk-7GJYEEDQ.js.map → chunk-NOA57HIN.js.map} +1 -1
- package/build/{chunk-4SH3UIG6.js → chunk-NU2C42KF.js} +3 -3
- package/build/{chunk-BMM7NKZM.js → chunk-ONNVSN6Z.js} +3 -3
- package/build/{chunk-HTJIY6JE.js → chunk-P4IYXOMH.js} +2 -2
- package/build/{chunk-HTJIY6JE.js.map → chunk-P4IYXOMH.js.map} +1 -1
- package/build/{chunk-JAGVJ3T4.js → chunk-R25C65PI.js} +3 -3
- package/build/{chunk-KQ2A66PL.js → chunk-THBDIBD6.js} +3 -3
- package/build/{chunk-T3OLHPLT.js → chunk-UGZ4HW7C.js} +3 -3
- package/build/{chunk-G2IJ2IWB.js → chunk-UPFJUERL.js} +3 -3
- package/build/{chunk-FASUKQVL.js → chunk-YAB2U4Z2.js} +2 -2
- package/build/{chunk-WRJ57AC2.js → chunk-YV7I3J5W.js} +3 -3
- package/build/index.js +20 -20
- package/build/platform-sdk/{chunk-RH4X5G4O.js → chunk-BY4JACX6.js} +2 -2
- package/build/platform-sdk/{chunk-RH4X5G4O.js.map → chunk-BY4JACX6.js.map} +1 -1
- package/build/platform-sdk/dashboard.js +1 -1
- package/build/platform-sdk/editor.js +1 -1
- package/build/{preview-OF2W3WOE.js → preview-CYO6EQDP.js} +12 -12
- package/build/{render-command-MCDOFXCD.js → render-command-NFVEABET.js} +6 -6
- package/package.json +7 -7
- package/build/PreviewCommand-KWMT6GOO.js +0 -23
- package/build/ReleaseCommand-JVRK6QOZ.js.map +0 -1
- /package/build/{CreateVersionCommand-3LCMV6MO.js.map → CreateVersionCommand-3APRL3VU.js.map} +0 -0
- /package/build/{DevCommand-AL5OJMFK.js.map → DevCommand-ETOGX7TQ.js.map} +0 -0
- /package/build/{GenerateCommand-P3WBZGMA.js.map → GenerateCommand-WI4QHFLI.js.map} +0 -0
- /package/build/{LogsCommand-27N3PFUW.js.map → LogsCommand-EI2OGC45.js.map} +0 -0
- /package/build/{PreviewCommand-KWMT6GOO.js.map → PreviewCommand-NELA5NRX.js.map} +0 -0
- /package/build/{ServeCommand-5BSAPNHC.js.map → ServeCommand-HZFAQ76D.js.map} +0 -0
- /package/build/{build-IONLFG5I.js.map → build-3YQ4WRAD.js.map} +0 -0
- /package/build/{chunk-YKTRDLGU.js.map → chunk-CXSHOO4P.js.map} +0 -0
- /package/build/{chunk-PZGUE6SY.js.map → chunk-GAJ7KUCP.js.map} +0 -0
- /package/build/{chunk-YCQJNAIT.js.map → chunk-IEPRQY35.js.map} +0 -0
- /package/build/{chunk-L2MHG5WV.js.map → chunk-JRT7D3FW.js.map} +0 -0
- /package/build/{chunk-DWOAWAAA.js.map → chunk-KCNDPIBT.js.map} +0 -0
- /package/build/{chunk-4SH3UIG6.js.map → chunk-NU2C42KF.js.map} +0 -0
- /package/build/{chunk-BMM7NKZM.js.map → chunk-ONNVSN6Z.js.map} +0 -0
- /package/build/{chunk-JAGVJ3T4.js.map → chunk-R25C65PI.js.map} +0 -0
- /package/build/{chunk-KQ2A66PL.js.map → chunk-THBDIBD6.js.map} +0 -0
- /package/build/{chunk-T3OLHPLT.js.map → chunk-UGZ4HW7C.js.map} +0 -0
- /package/build/{chunk-G2IJ2IWB.js.map → chunk-UPFJUERL.js.map} +0 -0
- /package/build/{chunk-FASUKQVL.js.map → chunk-YAB2U4Z2.js.map} +0 -0
- /package/build/{chunk-WRJ57AC2.js.map → chunk-YV7I3J5W.js.map} +0 -0
- /package/build/{preview-OF2W3WOE.js.map → preview-CYO6EQDP.js.map} +0 -0
- /package/build/{render-command-MCDOFXCD.js.map → render-command-NFVEABET.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/@wix/sdk-runtime/build/context.js","../../../node_modules/@wix/sdk-runtime/build/context-v2.js","../../../node_modules/@wix/sdk-runtime/build/host-modules.js","../../../node_modules/@wix/monitoring/build/index.js","../../../node_modules/@wix/monitoring-browser-sentry/build/index.js","../../../node_modules/@wix/monitoring-browser-sdk-host/build/index.js"],"sourcesContent":["import { wixContext } from '@wix/sdk-context';\nexport function resolveContext() {\n const oldContext = typeof $wixContext !== 'undefined' && $wixContext.initWixModules\n ? $wixContext.initWixModules\n : typeof globalThis.__wix_context__ !== 'undefined' &&\n globalThis.__wix_context__.initWixModules\n ? globalThis.__wix_context__.initWixModules\n : undefined;\n if (oldContext) {\n return {\n // @ts-expect-error\n initWixModules(modules, elevated) {\n return runWithoutContext(() => oldContext(modules, elevated));\n },\n fetchWithAuth() {\n throw new Error('fetchWithAuth is not available in this context');\n },\n graphql() {\n throw new Error('graphql is not available in this context');\n },\n };\n }\n const contextualClient = typeof $wixContext !== 'undefined'\n ? $wixContext.client\n : typeof wixContext.client !== 'undefined'\n ? wixContext.client\n : typeof globalThis.__wix_context__ !== 'undefined'\n ? globalThis.__wix_context__.client\n : undefined;\n const elevatedClient = typeof $wixContext !== 'undefined'\n ? $wixContext.elevatedClient\n : typeof wixContext.elevatedClient !== 'undefined'\n ? wixContext.elevatedClient\n : typeof globalThis.__wix_context__ !== 'undefined'\n ? globalThis.__wix_context__.elevatedClient\n : undefined;\n if (!contextualClient && !elevatedClient) {\n return;\n }\n return {\n initWixModules(wixModules, elevated) {\n if (elevated) {\n if (!elevatedClient) {\n throw new Error('An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules');\n }\n return runWithoutContext(() => elevatedClient.use(wixModules));\n }\n if (!contextualClient) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return runWithoutContext(() => contextualClient.use(wixModules));\n },\n fetchWithAuth: (urlOrRequest, requestInit) => {\n if (!contextualClient) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return contextualClient.fetchWithAuth(urlOrRequest, requestInit);\n },\n async graphql(query, variables, opts) {\n if (!contextualClient) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return contextualClient.graphql(query, variables, opts);\n },\n };\n}\nexport function contextualizeHostModule(hostModule, prop) {\n return (...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context.initWixModules(hostModule)[prop].apply(undefined, args);\n };\n}\nexport function contextualizeRESTModule(restModule, expectedArgsLength) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context\n .initWixModules(restModule, args[expectedArgsLength]?.suppressAuth ? true : false)\n .apply(undefined, args);\n });\n}\nexport function contextualizeEventDefinitionModule(eventDefinition) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context.initWixModules(eventDefinition).apply(undefined, args);\n });\n}\nexport function contextualizeSerivcePluginModule(servicePlugin) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context.initWixModules(servicePlugin).apply(undefined, args);\n });\n}\nexport * from './context-v2.js';\nexport function runWithoutContext(fn) {\n const globalContext = globalThis.__wix_context__;\n const moduleContext = {\n client: wixContext.client,\n elevatedClient: wixContext.elevatedClient,\n };\n let closureContext;\n globalThis.__wix_context__ = undefined;\n wixContext.client = undefined;\n wixContext.elevatedClient = undefined;\n if (typeof $wixContext !== 'undefined') {\n closureContext = {\n client: $wixContext?.client,\n elevatedClient: $wixContext?.elevatedClient,\n };\n delete $wixContext.client;\n delete $wixContext.elevatedClient;\n }\n try {\n return fn();\n }\n finally {\n globalThis.__wix_context__ = globalContext;\n wixContext.client = moduleContext.client;\n wixContext.elevatedClient = moduleContext.elevatedClient;\n if (typeof $wixContext !== 'undefined') {\n $wixContext.client = closureContext.client;\n $wixContext.elevatedClient = closureContext.elevatedClient;\n }\n }\n}\n","import { EventDefinition, ServicePluginDefinition, } from '@wix/sdk-types';\nimport { resolveContext } from './context.js';\nexport { EventDefinition, ServicePluginDefinition, };\nexport function contextualizeHostModuleV2(hostModule, props) {\n return {\n ...hostModule,\n ...Object.fromEntries(props.map((prop) => [\n prop,\n (...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context\n .initWixModules(hostModule)[prop].apply(undefined, args);\n },\n ])),\n };\n}\nexport function contextualizeRESTModuleV2(restModule, elevated) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n // @ts-expect-error - if there is no context, we want to behave like the original module\n return restModule.apply(undefined, args);\n }\n return (context\n .initWixModules(restModule, elevated)\n // @ts-expect-error - we know the args here are meant to be passed to the initalized module\n .apply(undefined, args));\n });\n}\nexport function contextualizeEventDefinitionModuleV2(eventDefinition) {\n const contextualMethod = ((...args) => {\n const context = resolveContext();\n if (!context) {\n // this line should throw, but this would be a breaking change for older SDK versions\n // this is because in wixClient there's code that calls any function it detects and checks\n // if it's an ambassador module (see isAmbassadorModule)\n return () => { };\n }\n return context.initWixModules(eventDefinition).apply(undefined, args);\n });\n contextualMethod.__type = eventDefinition.__type;\n contextualMethod.type = eventDefinition.type;\n contextualMethod.isDomainEvent = eventDefinition.isDomainEvent;\n contextualMethod.transformations = eventDefinition.transformations;\n return contextualMethod;\n}\nexport function contextualizeSerivcePluginModuleV2(servicePlugin) {\n const contextualMethod = ((...args) => {\n const context = resolveContext();\n if (!context) {\n // this line should throw, but this would be a breaking change for older SDK versions\n // this is because in wixClient there's code that calls any function it detects and checks\n // if it's an ambassador module (see isAmbassadorModule)\n return () => { };\n }\n return context.initWixModules(servicePlugin).apply(undefined, args);\n });\n contextualMethod.__type = servicePlugin.__type;\n contextualMethod.componentType = servicePlugin.componentType;\n contextualMethod.methods = servicePlugin.methods;\n return contextualMethod;\n}\n","import { contextualizeHostModuleV2 } from './context-v2.js';\nexport function createHostModule(hostModuleAPI) {\n return contextualizeHostModuleV2({\n __type: 'host',\n create: (host) => Object.entries(hostModuleAPI).reduce((acc, [key, fn]) => ({\n ...acc,\n [key]: fn(host),\n }), {}),\n }, Object.keys(hostModuleAPI));\n}\n","// src/context/context-utils.ts\nvar validValue = (value) => value !== void 0 && value !== null && value !== \"\";\nvar pickByValidValues = (obj) => pickBy(obj, validValue);\nfunction pickBy(object, predicate = (value) => !!value) {\n if (!object) {\n return {};\n }\n const result = {};\n for (const key in object) {\n if (predicate(object[key], key)) {\n result[key] = object[key];\n }\n }\n return result;\n}\nvar generateTagsAndContext = (context) => {\n const tags = pickByValidValues({\n \"app.id\": context.appId,\n \"app.version\": context.appVersion,\n \"app.instanceId\": context.appInstanceId,\n \"extension.id\": context.extensionId,\n \"extension.name\": context.extensionName,\n \"extension.type\": context.extensionType,\n platform: context.platform\n });\n const contexts = pickBy(\n {\n \"extension.data\": pickByValidValues({\n ...context.extensionData\n }),\n site: pickByValidValues({\n url: context.siteUrl,\n id: context.tenantType === \"SITE\" ? context.tenantId : void 0\n }),\n account: pickByValidValues({\n id: context.tenantType === \"ACCOUNT\" ? context.tenantId : void 0\n })\n },\n (value) => !!value && Object.keys(value).length > 0\n );\n return {\n tags,\n contexts\n };\n};\n\n// src/fallback-client.ts\nvar FallbackMonitoringClient = class {\n constructor(message) {\n this.message = message;\n this.captureException = () => {\n console.error(this.message);\n return \"\";\n };\n this.captureMessage = () => {\n console.error(this.message);\n return \"\";\n };\n this.startSpan = () => {\n console.error(this.message);\n return {};\n };\n this.addBreadcrumb = () => {\n console.error(this.message);\n };\n }\n};\nvar createFallbackMonitoringClient = (message) => {\n return new FallbackMonitoringClient(message);\n};\nexport {\n createFallbackMonitoringClient,\n generateTagsAndContext\n};\n","// src/factory.ts\nimport { createFallbackMonitoringClient } from \"@wix/monitoring\";\n\n// src/utils.ts\nimport { generateTagsAndContext } from \"@wix/monitoring\";\nvar setTagsAndContextsOnScope = (scope, { tags, contexts }) => {\n if (tags) {\n scope.setTags(tags);\n }\n if (contexts) {\n Object.entries(contexts).forEach(\n ([key, value]) => typeof value !== \"undefined\" && scope.setContext(key, value)\n );\n }\n};\nvar setHostContextOnScope = (scope, hostContext) => {\n if (!hostContext) {\n return;\n }\n const { tags, contexts } = generateTagsAndContext(hostContext);\n setTagsAndContextsOnScope(scope, { tags, contexts });\n};\n\n// src/micro-frontend/utils.ts\nvar withCaptureScope = (client, scope, sentry, captureContext = {}, defaultLevel = \"info\", callback) => {\n const hub = new sentry.Hub(client, scope);\n return hub.withScope((_scope) => {\n const { level = defaultLevel, tags, contexts } = captureContext;\n _scope.setLevel(level);\n setTagsAndContextsOnScope(_scope, { tags, contexts });\n return callback(_scope, hub);\n });\n};\n\n// src/abstract-browser-client.ts\nvar AbstractSentryBrowserClient = class {\n constructor(options) {\n this.sentry = options.sentrySDK;\n this.scope = new this.sentry.Scope();\n this.sentryClient = new this.sentry.BrowserClient({\n dsn: options.dsn,\n transport: options.transport ?? this.sentry.makeFetchTransport,\n integrations: this.sentry.getDefaultIntegrations({}),\n stackParser: this.sentry.defaultStackParser,\n tracesSampleRate: options.tracesSampleRate || 1,\n debug: options.debug ?? false,\n environment: options.environment,\n release: options.release\n });\n setHostContextOnScope(this.scope, options.hostContext);\n this.scope.setClient(this.sentryClient);\n this.sentryClient.init();\n }\n};\n\n// src/micro-frontend/client.ts\nvar SentryBrowserMicroFrontendClient = class extends AbstractSentryBrowserClient {\n constructor() {\n super(...arguments);\n /**\n * Records a new breadcrumb which will be attached to future events.\n * Breadcrumbs will be added to subsequent events to provide more context on user's actions prior to an error or crash.\n * @param breadcrumb The breadcrumb to record.\n */\n this.addBreadcrumb = (breadcrumb) => {\n const filteredBreadcrumb = {\n type: breadcrumb.type,\n category: breadcrumb.category,\n message: breadcrumb.message,\n level: breadcrumb.level,\n data: breadcrumb.data\n };\n this.scope.addBreadcrumb(filteredBreadcrumb);\n };\n /**\n * Captures an exception event and sends it to Sentry.\n * @param error The error to capture\n * @param captureContext Optional additional data to attach to the Sentry e vent.\n * @returns the id of the captured Sentry event.\n */\n this.captureException = (error, captureContext) => {\n return withCaptureScope(\n this.sentryClient,\n this.scope,\n this.sentry,\n captureContext,\n \"error\",\n (scope) => scope.captureException(error)\n );\n };\n /**\n * Captures a message event and sends it to Sentry.\n * @param message The message to capture\n * @param captureContext Define the level of the message or pass in additional data to attach to the message.\n * @returns the id of the captured message.\n */\n this.captureMessage = (message, captureContext) => {\n return withCaptureScope(\n this.sentryClient,\n this.scope,\n this.sentry,\n captureContext,\n \"info\",\n (scope) => scope.captureMessage(message)\n );\n };\n /**\n * Wraps a function with a span and finishes the span after the function is done. The created span is the active span and will be used as parent by other spans created inside the function, as long as the function is executed while the scope is active.\n * @param spanOptions The options for the span\n * @param callback The function to wrap with a span\n * @returns The return value of the callback\n */\n this.startSpan = (spanOptions, callback) => {\n const filteredSpanOptions = {\n name: spanOptions.name,\n tags: spanOptions.tags\n };\n return this.sentry.startSpan(\n { ...filteredSpanOptions, scope: this.scope },\n callback\n );\n };\n }\n};\n\n// src/browser/client.ts\nvar SentryBrowserClient = class extends AbstractSentryBrowserClient {\n constructor() {\n super(...arguments);\n /**\n * Records a new breadcrumb which will be attached to future events.\n * Breadcrumbs will be added to subsequent events to provide more context on user's actions prior to an error or crash.\n * @param breadcrumb The breadcrumb to record.\n */\n this.addBreadcrumb = (breadcrumb) => {\n const filteredBreadcrumb = {\n type: breadcrumb.type,\n category: breadcrumb.category,\n message: breadcrumb.message,\n level: breadcrumb.level,\n data: breadcrumb.data\n };\n this.scope.addBreadcrumb(filteredBreadcrumb);\n };\n /**\n * Captures an exception event and sends it to Sentry.\n * @param error The error to capture\n * @param captureContext Optional additional data to attach to the Sentry e vent.\n * @returns the id of the captured Sentry event.\n */\n this.captureException = (error, captureContext) => {\n return this.sentryClient.captureException(\n error,\n {\n captureContext: {\n level: captureContext?.level ?? \"error\",\n tags: captureContext?.tags,\n contexts: captureContext?.contexts\n }\n },\n this.scope\n );\n };\n /**\n * Captures a message event and sends it to Sentry.\n * @param message The message to capture\n * @param captureContext Define the level of the message or pass in additional data to attach to the message.\n * @returns the id of the captured message.\n */\n this.captureMessage = (message, captureContext) => {\n return this.sentryClient.captureMessage(\n message,\n captureContext?.level ?? \"error\",\n {\n captureContext: {\n level: captureContext?.level ?? \"error\",\n tags: captureContext?.tags,\n contexts: captureContext?.contexts\n }\n },\n this.scope\n );\n };\n /**\n * Wraps a function with a span and finishes the span after the function is done. The created span is the active span and will be used as parent by other spans created inside the function, as long as the function is executed while the scope is active.\n * @param spanOptions The options for the span\n * @param callback The function to wrap with a span\n * @returns The return value of the callback\n */\n this.startSpan = (spanOptions, callback) => {\n const filteredSpanOptions = {\n name: spanOptions.name,\n tags: spanOptions.tags\n };\n return this.sentry.startSpan(\n { ...filteredSpanOptions, scope: this.scope },\n callback\n );\n };\n }\n};\n\n// src/factory.ts\nvar createSentryBrowserClient = ({\n microFrontendEnvironment,\n sentrySDK,\n dsn,\n ...options\n}) => {\n if (!sentrySDK) {\n return createFallbackMonitoringClient(\n \"Unsupported environment - Sentry SDK is not loaded into the environment. Please make sure to use monitoring SDK only in supported environments.\"\n );\n }\n if (!dsn) {\n return createFallbackMonitoringClient(\n \"Missing Sentry DSN in the app's monitoring configuration. Please make sure to set it.\"\n );\n }\n if (microFrontendEnvironment) {\n return new SentryBrowserMicroFrontendClient({ ...options, dsn, sentrySDK });\n }\n return new SentryBrowserClient({ ...options, dsn, sentrySDK });\n};\nexport {\n createSentryBrowserClient\n};\n","// src/monitoring-client.ts\nimport { createFallbackMonitoringClient } from \"@wix/monitoring\";\nimport { createSentryBrowserClient } from \"@wix/monitoring-browser-sentry\";\nvar isSentryConfig = (monitoringConfig) => monitoringConfig?.type === \"SENTRY\";\nvar getMonitoringClientFunction = ({\n sentrySDK,\n monitoringConfig,\n hostContext\n}) => {\n if (isSentryConfig(monitoringConfig)) {\n const { sentryOptions } = monitoringConfig;\n return () => createSentryBrowserClient({\n dsn: sentryOptions?.dsn,\n hostContext,\n sentrySDK\n });\n }\n return () => createFallbackMonitoringClient(\n \"Invalid monitoring configuration. Please check the monitoring setup of your application.\"\n );\n};\nexport {\n getMonitoringClientFunction\n};\n"],"mapp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AAS,QAChC,KAAMA,GAAgB,KACtB,SAAUA,GAAgB,QAC5B,CACF,EACA,KAAK,KACP,EAQF,KAAK,UAAY,CAACa,EAAaX,IAAa,CAC1C,IAAMY,EAAsB,CAC1B,KAAMD,EAAY,KAClB,KAAMA,EAAY,IACpB,EACA,OAAO,KAAK,OAAO,UACjB,CAAE,GAAGC,EAAqB,MAAO,KAAK,KAAM,EAC5CZ,CACF,CACF,CACF,CACF,EAGIc,EAA4B,CAAC,CAC/B,yBAAAC,EACA,UAAAC,EACA,IAAAC,EACA,GAAGZ,CACL,IACOW,EAKAC,EAKDF,EACK,IAAIT,EAAiC,CAAE,GAAGD,EAAS,IAAAY,EAAK,UAAAD,CAAU,CAAC,EAErE,IAAIH,EAAoB,CAAE,GAAGR,EAAS,IAAAY,EAAK,UAAAD,CAAU,CAAC,EAPpDE,EACL,uFACF,EAPOA,EACL,iJACF,ECjNJ,IAAIC,EAAkBC,GAAqBA,GAAkB,OAAS,SAClEC,EAA8B,CAAC,CACjC,UAAAC,EACA,iBAAAF,EACA,YAAAG,CACF,IAAM,CACJ,GAAIJ,EAAeC,CAAgB,EAAG,CACpC,GAAM,CAAE,cAAAI,CAAc,EAAIJ,EAC1B,MAAO,IAAMK,EAA0B,CACrC,IAAKD,GAAe,IACpB,YAAAD,EACA,UAAAD,CACF,CAAC,CACH,CACA,MAAO,IAAMI,EACX,0FACF,CACF","names":["wixContext","resolveContext","oldContext","modules","elevated","runWithoutContext","contextualClient","elevatedClient","wixModules","urlOrRequest","requestInit","query","variables","opts","runWithoutContext","fn","globalContext","moduleContext","wixContext","closureContext","contextualizeHostModuleV2","hostModule","props","prop","args","context","resolveContext","createHostModule","hostModuleAPI","contextualizeHostModuleV2","host","acc","key","fn","validValue","value","pickByValidValues","obj","pickBy","object","predicate","result","key","generateTagsAndContext","context","tags","contexts","FallbackMonitoringClient","message","createFallbackMonitoringClient","setTagsAndContextsOnScope","scope","tags","contexts","key","value","setHostContextOnScope","hostContext","generateTagsAndContext","withCaptureScope","client","sentry","captureContext","defaultLevel","callback","hub","_scope","level","AbstractSentryBrowserClient","options","SentryBrowserMicroFrontendClient","breadcrumb","filteredBreadcrumb","error","message","spanOptions","filteredSpanOptions","SentryBrowserClient","createSentryBrowserClient","microFrontendEnvironment","sentrySDK","dsn","createFallbackMonitoringClient","isSentryConfig","monitoringConfig","getMonitoringClientFunction","sentrySDK","hostContext","sentryOptions","createSentryBrowserClient","createFallbackMonitoringClient"]}
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/@wix/sdk-runtime/build/context.js","../../../node_modules/@wix/sdk-runtime/build/context-v2.js","../../../node_modules/@wix/sdk-runtime/build/host-modules.js","../../../node_modules/@wix/monitoring/build/index.js","../../../node_modules/@wix/monitoring-browser-sentry/build/index.js","../../../node_modules/@wix/monitoring-browser-sdk-host/build/index.js"],"sourcesContent":["import { wixContext } from '@wix/sdk-context';\nexport function resolveContext() {\n const oldContext = typeof $wixContext !== 'undefined' && $wixContext.initWixModules\n ? $wixContext.initWixModules\n : typeof globalThis.__wix_context__ !== 'undefined' &&\n globalThis.__wix_context__.initWixModules\n ? globalThis.__wix_context__.initWixModules\n : undefined;\n if (oldContext) {\n return {\n // @ts-expect-error\n initWixModules(modules, elevated) {\n return runWithoutContext(() => oldContext(modules, elevated));\n },\n fetchWithAuth() {\n throw new Error('fetchWithAuth is not available in this context');\n },\n graphql() {\n throw new Error('graphql is not available in this context');\n },\n };\n }\n const contextualClient = typeof $wixContext !== 'undefined'\n ? $wixContext.client\n : typeof wixContext.client !== 'undefined'\n ? wixContext.client\n : typeof globalThis.__wix_context__ !== 'undefined'\n ? globalThis.__wix_context__.client\n : undefined;\n const elevatedClient = typeof $wixContext !== 'undefined'\n ? $wixContext.elevatedClient\n : typeof wixContext.elevatedClient !== 'undefined'\n ? wixContext.elevatedClient\n : typeof globalThis.__wix_context__ !== 'undefined'\n ? globalThis.__wix_context__.elevatedClient\n : undefined;\n if (!contextualClient && !elevatedClient) {\n return;\n }\n return {\n initWixModules(wixModules, elevated) {\n if (elevated) {\n if (!elevatedClient) {\n throw new Error('An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules');\n }\n return runWithoutContext(() => elevatedClient.use(wixModules));\n }\n if (!contextualClient) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return runWithoutContext(() => contextualClient.use(wixModules));\n },\n fetchWithAuth: (urlOrRequest, requestInit) => {\n if (!contextualClient) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return contextualClient.fetchWithAuth(urlOrRequest, requestInit);\n },\n async graphql(query, variables, opts) {\n if (!contextualClient) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return contextualClient.graphql(query, variables, opts);\n },\n };\n}\nexport function contextualizeHostModule(hostModule, prop) {\n return (...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context.initWixModules(hostModule)[prop].apply(undefined, args);\n };\n}\nexport function contextualizeRESTModule(restModule, expectedArgsLength) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context\n .initWixModules(restModule, args[expectedArgsLength]?.suppressAuth ? true : false)\n .apply(undefined, args);\n });\n}\nexport function contextualizeEventDefinitionModule(eventDefinition) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context.initWixModules(eventDefinition).apply(undefined, args);\n });\n}\nexport function contextualizeSerivcePluginModule(servicePlugin) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context.initWixModules(servicePlugin).apply(undefined, args);\n });\n}\nexport * from './context-v2.js';\nexport function runWithoutContext(fn) {\n const globalContext = globalThis.__wix_context__;\n const moduleContext = {\n client: wixContext.client,\n elevatedClient: wixContext.elevatedClient,\n };\n let closureContext;\n globalThis.__wix_context__ = undefined;\n wixContext.client = undefined;\n wixContext.elevatedClient = undefined;\n if (typeof $wixContext !== 'undefined') {\n closureContext = {\n client: $wixContext?.client,\n elevatedClient: $wixContext?.elevatedClient,\n };\n delete $wixContext.client;\n delete $wixContext.elevatedClient;\n }\n try {\n return fn();\n }\n finally {\n globalThis.__wix_context__ = globalContext;\n wixContext.client = moduleContext.client;\n wixContext.elevatedClient = moduleContext.elevatedClient;\n if (typeof $wixContext !== 'undefined') {\n $wixContext.client = closureContext.client;\n $wixContext.elevatedClient = closureContext.elevatedClient;\n }\n }\n}\n","import { EventDefinition, ServicePluginDefinition, } from '@wix/sdk-types';\nimport { resolveContext } from './context.js';\nexport { EventDefinition, ServicePluginDefinition, };\nexport function contextualizeHostModuleV2(hostModule, props) {\n return {\n ...hostModule,\n ...Object.fromEntries(props.map((prop) => [\n prop,\n (...args) => {\n const context = resolveContext();\n if (!context) {\n throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');\n }\n return context\n .initWixModules(hostModule)[prop].apply(undefined, args);\n },\n ])),\n };\n}\nexport function contextualizeRESTModuleV2(restModule, elevated) {\n return ((...args) => {\n const context = resolveContext();\n if (!context) {\n // @ts-expect-error - if there is no context, we want to behave like the original module\n return restModule.apply(undefined, args);\n }\n return (context\n .initWixModules(restModule, elevated)\n // @ts-expect-error - we know the args here are meant to be passed to the initalized module\n .apply(undefined, args));\n });\n}\nexport function contextualizeEventDefinitionModuleV2(eventDefinition) {\n const contextualMethod = ((...args) => {\n const context = resolveContext();\n if (!context) {\n // this line should throw, but this would be a breaking change for older SDK versions\n // this is because in wixClient there's code that calls any function it detects and checks\n // if it's an ambassador module (see isAmbassadorModule)\n return () => { };\n }\n return context.initWixModules(eventDefinition).apply(undefined, args);\n });\n contextualMethod.__type = eventDefinition.__type;\n contextualMethod.type = eventDefinition.type;\n contextualMethod.isDomainEvent = eventDefinition.isDomainEvent;\n contextualMethod.transformations = eventDefinition.transformations;\n return contextualMethod;\n}\nexport function contextualizeSerivcePluginModuleV2(servicePlugin) {\n const contextualMethod = ((...args) => {\n const context = resolveContext();\n if (!context) {\n // this line should throw, but this would be a breaking change for older SDK versions\n // this is because in wixClient there's code that calls any function it detects and checks\n // if it's an ambassador module (see isAmbassadorModule)\n return () => { };\n }\n return context.initWixModules(servicePlugin).apply(undefined, args);\n });\n contextualMethod.__type = servicePlugin.__type;\n contextualMethod.componentType = servicePlugin.componentType;\n contextualMethod.methods = servicePlugin.methods;\n return contextualMethod;\n}\n","import { contextualizeHostModuleV2 } from './context-v2.js';\nexport function createHostModule(hostModuleAPI) {\n return contextualizeHostModuleV2({\n __type: 'host',\n create: (host) => Object.entries(hostModuleAPI).reduce((acc, [key, fn]) => ({\n ...acc,\n [key]: fn(host),\n }), {}),\n }, Object.keys(hostModuleAPI));\n}\n","// src/context/context-utils.ts\nvar validValue = (value) => value !== void 0 && value !== null && value !== \"\";\nvar pickByValidValues = (obj) => pickBy(obj, validValue);\nfunction pickBy(object, predicate = (value) => !!value) {\n if (!object) {\n return {};\n }\n const result = {};\n for (const key in object) {\n if (predicate(object[key], key)) {\n result[key] = object[key];\n }\n }\n return result;\n}\nvar generateTagsAndContext = (context) => {\n const tags = pickByValidValues({\n \"app.id\": context.appId,\n \"app.version\": context.appVersion,\n \"app.instanceId\": context.appInstanceId,\n \"extension.id\": context.extensionId,\n \"extension.name\": context.extensionName,\n \"extension.type\": context.extensionType,\n platform: context.platform\n });\n const contexts = pickBy(\n {\n \"extension.data\": pickByValidValues({\n ...context.extensionData\n }),\n site: pickByValidValues({\n url: context.siteUrl,\n id: context.tenantType === \"SITE\" ? context.tenantId : void 0\n }),\n account: pickByValidValues({\n id: context.tenantType === \"ACCOUNT\" ? context.tenantId : void 0\n })\n },\n (value) => !!value && Object.keys(value).length > 0\n );\n return {\n tags,\n contexts\n };\n};\n\n// src/fallback-client.ts\nvar FallbackMonitoringClient = class {\n constructor(message) {\n this.message = message;\n this.captureException = () => {\n console.error(this.message);\n return \"\";\n };\n this.captureMessage = () => {\n console.error(this.message);\n return \"\";\n };\n this.startSpan = () => {\n console.error(this.message);\n return {};\n };\n this.addBreadcrumb = () => {\n console.error(this.message);\n };\n }\n};\nvar createFallbackMonitoringClient = (message) => {\n return new FallbackMonitoringClient(message);\n};\nexport {\n createFallbackMonitoringClient,\n generateTagsAndContext\n};\n","// src/factory.ts\nimport { createFallbackMonitoringClient } from \"@wix/monitoring\";\n\n// src/utils.ts\nimport { generateTagsAndContext } from \"@wix/monitoring\";\nvar setTagsAndContextsOnScope = (scope, { tags, contexts }) => {\n if (tags) {\n scope.setTags(tags);\n }\n if (contexts) {\n Object.entries(contexts).forEach(\n ([key, value]) => typeof value !== \"undefined\" && scope.setContext(key, value)\n );\n }\n};\nvar setHostContextOnScope = (scope, hostContext) => {\n if (!hostContext) {\n return;\n }\n const { tags, contexts } = generateTagsAndContext(hostContext);\n setTagsAndContextsOnScope(scope, { tags, contexts });\n};\n\n// src/micro-frontend/utils.ts\nvar withCaptureScope = (client, scope, sentry, captureContext = {}, defaultLevel = \"info\", callback) => {\n const hub = new sentry.Hub(client, scope);\n return hub.withScope((_scope) => {\n const { level = defaultLevel, tags, contexts } = captureContext;\n _scope.setLevel(level);\n setTagsAndContextsOnScope(_scope, { tags, contexts });\n return callback(_scope, hub);\n });\n};\n\n// src/abstract-browser-client.ts\nvar AbstractSentryBrowserClient = class {\n constructor(options) {\n this.sentry = options.sentrySDK;\n this.scope = new this.sentry.Scope();\n this.sentryClient = new this.sentry.BrowserClient({\n dsn: options.dsn,\n transport: options.transport ?? this.sentry.makeFetchTransport,\n integrations: this.sentry.getDefaultIntegrations({}),\n stackParser: this.sentry.defaultStackParser,\n tracesSampleRate: options.tracesSampleRate || 1,\n debug: options.debug ?? false,\n environment: options.environment,\n release: options.release\n });\n setHostContextOnScope(this.scope, options.hostContext);\n this.scope.setClient(this.sentryClient);\n this.sentryClient.init();\n }\n};\n\n// src/micro-frontend/client.ts\nvar SentryBrowserMicroFrontendClient = class extends AbstractSentryBrowserClient {\n constructor() {\n super(...arguments);\n /**\n * Records a new breadcrumb which will be attached to future events.\n * Breadcrumbs will be added to subsequent events to provide more context on user's actions prior to an error or crash.\n * @param breadcrumb The breadcrumb to record.\n */\n this.addBreadcrumb = (breadcrumb) => {\n const filteredBreadcrumb = {\n type: breadcrumb.type,\n category: breadcrumb.category,\n message: breadcrumb.message,\n level: breadcrumb.level,\n data: breadcrumb.data\n };\n this.scope.addBreadcrumb(filteredBreadcrumb);\n };\n /**\n * Captures an exception event and sends it to Sentry.\n * @param error The error to capture\n * @param captureContext Optional additional data to attach to the Sentry e vent.\n * @returns the id of the captured Sentry event.\n */\n this.captureException = (error, captureContext) => {\n return withCaptureScope(\n this.sentryClient,\n this.scope,\n this.sentry,\n captureContext,\n \"error\",\n (scope) => scope.captureException(error)\n );\n };\n /**\n * Captures a message event and sends it to Sentry.\n * @param message The message to capture\n * @param captureContext Define the level of the message or pass in additional data to attach to the message.\n * @returns the id of the captured message.\n */\n this.captureMessage = (message, captureContext) => {\n return withCaptureScope(\n this.sentryClient,\n this.scope,\n this.sentry,\n captureContext,\n \"info\",\n (scope) => scope.captureMessage(message)\n );\n };\n /**\n * Wraps a function with a span and finishes the span after the function is done. The created span is the active span and will be used as parent by other spans created inside the function, as long as the function is executed while the scope is active.\n * @param spanOptions The options for the span\n * @param callback The function to wrap with a span\n * @returns The return value of the callback\n */\n this.startSpan = (spanOptions, callback) => {\n const filteredSpanOptions = {\n name: spanOptions.name,\n tags: spanOptions.tags\n };\n return this.sentry.startSpan(\n { ...filteredSpanOptions, scope: this.scope },\n callback\n );\n };\n }\n};\n\n// src/browser/client.ts\nvar SentryBrowserClient = class extends AbstractSentryBrowserClient {\n constructor() {\n super(...arguments);\n /**\n * Records a new breadcrumb which will be attached to future events.\n * Breadcrumbs will be added to subsequent events to provide more context on user's actions prior to an error or crash.\n * @param breadcrumb The breadcrumb to record.\n */\n this.addBreadcrumb = (breadcrumb) => {\n const filteredBreadcrumb = {\n type: breadcrumb.type,\n category: breadcrumb.category,\n message: breadcrumb.message,\n level: breadcrumb.level,\n data: breadcrumb.data\n };\n this.scope.addBreadcrumb(filteredBreadcrumb);\n };\n /**\n * Captures an exception event and sends it to Sentry.\n * @param error The error to capture\n * @param captureContext Optional additional data to attach to the Sentry e vent.\n * @returns the id of the captured Sentry event.\n */\n this.captureException = (error, captureContext) => {\n return this.sentryClient.captureException(\n error,\n {\n captureContext: {\n level: captureContext?.level ?? \"error\",\n tags: captureContext?.tags,\n contexts: captureContext?.contexts\n }\n },\n this.scope\n );\n };\n /**\n * Captures a message event and sends it to Sentry.\n * @param message The message to capture\n * @param captureContext Define the level of the message or pass in additional data to attach to the message.\n * @returns the id of the captured message.\n */\n this.captureMessage = (message, captureContext) => {\n return this.sentryClient.captureMessage(\n message,\n captureContext?.level ?? \"error\",\n {\n captureContext: {\n level: captureContext?.level ?? \"error\",\n tags: captureContext?.tags,\n contexts: captureContext?.contexts\n }\n },\n this.scope\n );\n };\n /**\n * Wraps a function with a span and finishes the span after the function is done. The created span is the active span and will be used as parent by other spans created inside the function, as long as the function is executed while the scope is active.\n * @param spanOptions The options for the span\n * @param callback The function to wrap with a span\n * @returns The return value of the callback\n */\n this.startSpan = (spanOptions, callback) => {\n const filteredSpanOptions = {\n name: spanOptions.name,\n tags: spanOptions.tags\n };\n return this.sentry.startSpan(\n { ...filteredSpanOptions, scope: this.scope },\n callback\n );\n };\n }\n};\n\n// src/factory.ts\nvar unsupportedEnvironmentMessage = (version) => `Sentry SDK version \"${version}\" is not supported. Please make sure to use monitoring SDK only in supported environments.`;\nvar major = (version) => {\n try {\n return parseInt(version.split(\".\")[0], 10);\n } catch {\n console.warn(\"Failed to parse Sentry SDK version\");\n return void 0;\n }\n};\nvar createSentryBrowserClient = ({\n microFrontendEnvironment,\n sentrySDK,\n dsn,\n ...options\n}) => {\n if (!sentrySDK) {\n return createFallbackMonitoringClient(\n \"Unsupported environment - Sentry SDK is not loaded into the environment. Please make sure to use monitoring SDK only in supported environments.\"\n );\n }\n if (!dsn) {\n return createFallbackMonitoringClient(\n \"Missing Sentry DSN in the app's monitoring configuration. Please make sure to set it.\"\n );\n }\n try {\n const sentrySdkMajorVersion = sentrySDK.SDK_VERSION && major(sentrySDK.SDK_VERSION);\n if (microFrontendEnvironment) {\n if (sentrySdkMajorVersion && sentrySdkMajorVersion !== 7) {\n return createFallbackMonitoringClient(\n unsupportedEnvironmentMessage(sentrySDK.SDK_VERSION)\n );\n }\n return new SentryBrowserMicroFrontendClient({\n ...options,\n dsn,\n sentrySDK\n });\n }\n if (sentrySdkMajorVersion && sentrySdkMajorVersion < 7) {\n return createFallbackMonitoringClient(\n unsupportedEnvironmentMessage(sentrySDK.SDK_VERSION)\n );\n }\n return new SentryBrowserClient({ ...options, dsn, sentrySDK });\n } catch (e) {\n return createFallbackMonitoringClient(\n `Failed to initialize monitoring client: ${e.message}`\n );\n }\n};\nexport {\n createSentryBrowserClient\n};\n","// src/monitoring-client.ts\nimport { createFallbackMonitoringClient } from \"@wix/monitoring\";\nimport { createSentryBrowserClient } from \"@wix/monitoring-browser-sentry\";\nvar isSentryConfig = (monitoringConfig) => monitoringConfig?.type === \"SENTRY\";\nvar getMonitoringClientFunction = ({\n sentrySDK,\n sentryTransport,\n monitoringConfig,\n hostContext,\n microFrontendEnvironment\n}) => {\n if (isSentryConfig(monitoringConfig)) {\n const { sentryOptions } = monitoringConfig;\n return () => createSentryBrowserClient({\n microFrontendEnvironment,\n dsn: sentryOptions?.dsn,\n hostContext,\n sentrySDK,\n transport: sentryTransport\n });\n }\n return () => createFallbackMonitoringClient(\n \"Invalid monitoring configuration. Please check the monitoring setup of your application.\"\n );\n};\nexport {\n getMonitoringClientFunction\n};\n"],"mappings":"AAAA,OAAS,cAAAA,MAAkB,mBACpB,SAASC,GAAiB,CAC7B,IAAMC,EAAa,OAAO,YAAgB,KAAe,YAAY,eAC/D,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AAAF,EACA,UAAWC,CACb,CAAC,CACH,CACA,MAAO,IAAMK,EACX,0FACF,CACF","names":["wixContext","resolveContext","oldContext","modules","elevated","runWithoutContext","contextualClient","elevatedClient","wixModules","urlOrRequest","requestInit","query","variables","opts","runWithoutContext","fn","globalContext","moduleContext","wixContext","closureContext","contextualizeHostModuleV2","hostModule","props","prop","args","context","resolveContext","createHostModule","hostModuleAPI","contextualizeHostModuleV2","host","acc","key","fn","validValue","value","pickByValidValues","obj","pickBy","object","predicate","result","key","generateTagsAndContext","context","tags","contexts","FallbackMonitoringClient","message","createFallbackMonitoringClient","setTagsAndContextsOnScope","scope","tags","contexts","key","value","setHostContextOnScope","hostContext","generateTagsAndContext","withCaptureScope","client","sentry","captureContext","defaultLevel","callback","hub","_scope","level","AbstractSentryBrowserClient","options","SentryBrowserMicroFrontendClient","breadcrumb","filteredBreadcrumb","error","message","spanOptions","filteredSpanOptions","SentryBrowserClient","unsupportedEnvironmentMessage","version","major","createSentryBrowserClient","microFrontendEnvironment","sentrySDK","dsn","createFallbackMonitoringClient","sentrySdkMajorVersion","e","isSentryConfig","monitoringConfig","getMonitoringClientFunction","sentrySDK","sentryTransport","hostContext","microFrontendEnvironment","sentryOptions","createSentryBrowserClient","createFallbackMonitoringClient"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as K,b as N}from"./chunk-RH4X5G4O.js";import{a as F}from"./chunk-XYIDODIB.js";import"./chunk-BGTZ3RNN.js";import"./chunk-7EYXEF6M.js";import"./chunk-SBZEOPXX.js";function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(null,arguments)}import Oe,{useEffect as He,useState as pe}from"react";function w(e){"@babel/helpers - typeof";return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(e)}function q(e,t){if(w(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(w(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J(e){var t=q(e,"string");return w(t)=="symbol"?t:t+""}function G(e,t,n){return(t=J(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=class extends Error{constructor(t){let{message:n,code:r}=t;super(n),G(this,"code",void 0),this.message=n,this.code=r}};var Q=()=>{let e=u=>{let{channel:o}=u;return function(){let f=o.showToast(...arguments);return{remove:()=>Promise.resolve(f).then(h=>h.remove())}}},t=u=>{let{channel:o}=u;return function(){let f=o.observeState(...arguments);return{disconnect:()=>Promise.resolve(f).then(h=>h.disconnect())}}};return{showToast:e,observeState:t,navigate:u=>{let{channel:o}=u;return function(){return o.navigate(...arguments)}},navigateBack:u=>{let{channel:o}=u;return()=>o.navigateBack()},openModal:u=>{let{channel:o}=u;return(f,g)=>{let[h,A]=typeof f=="string"?[f,g]:[f.modalId,f.params],E=o.openModal(h,A);return{modalClosed:Promise.resolve(E).then(y=>y.modalClosed)}}},closeModal:u=>{let{channel:o}=u;return f=>{if(f===void 0)return o.closeModal();let g=JSON.parse(JSON.stringify(f));return o.closeModal(g)}},getAccessToken:u=>{let{channel:o}=u;return()=>o.getAccessToken()},getPageUrl:u=>{let{channel:o}=u;return function(){return o.getPageUrl(...arguments)}},openMediaManager:u=>{let{channel:o}=u;return function(){return o.openMediaManager(...arguments)}},addSitePlugin:u=>{let{channel:o}=u;return(f,g)=>{let h="802c76e4-b381-4bb3-9152-96acabbf3194",A=g?.placement||{},E=o.openModal(h,{...A,pluginId:f,action:"populate"});return Promise.resolve(E).then(y=>y.modalClosed).then(y=>{if(y?.type===void 0)throw new S({message:"Aborted by user",code:3006});if(y?.type==="ERROR")throw new S(y.data.error)})}},onBeforeUnload:u=>{let{channel:o}=u;return function(){return o.onBeforeUnload(...arguments)}},setPageTitle:u=>{let{channel:o}=u;return f=>o.setPageTitle(f)},getLanguage:u=>{let o=null;return async()=>{var f;if(o)return o;let g=null;return o=await new Promise(h=>{g=t(u)((A,E)=>{h(E.language)})}),(f=g)==null||f.disconnect(),o}},requestFeedback:u=>{let{channel:o}=u;return function(){return o.requestFeedback(...arguments)}},onLayerStateChange:u=>{let{channel:o}=u;return function(){let f=o.onLayerStateChange(...arguments);return{remove:()=>Promise.resolve(f).then(h=>h.remove())}}},installApp:u=>{let{channel:o}=u;return o.installApp},getWidget:u=>{let{channel:o}=u;return function(){if("getWidget"in o)return o.getWidget(...arguments);throw new Error("Unsupported")}},getDashboardPlugins:u=>{let{channel:o}=u;return function(){if("getDashboardPlugins"in o)return o.getDashboardPlugins(...arguments);throw new Error("Unsupported")}},getDashboardMenuPlugins:u=>{let{channel:o}=u;return function(){if("getDashboardMenuPlugins"in o)return o.getDashboardMenuPlugins(...arguments);throw new Error("Unsupported")}}}};var $=e=>{let{createHost:t}=e,n=Q();return{...K(n),host:t,auth:()=>({getAuthHeaders:async r=>({headers:{Authorization:await n.getAccessToken(r)()}})})}};var Y=Symbol("Comlink.proxy"),he=Symbol("Comlink.endpoint"),D=Symbol("Comlink.releaseProxy"),L=Symbol("Comlink.thrown"),Z=e=>typeof e=="object"&&e!==null||typeof e=="function",ye={canHandle:e=>Z(e)&&e[Y],serialize(e){let{port1:t,port2:n}=new MessageChannel;return _(e,t),[n,[n]]},deserialize(e){return e.start(),B(e)}},be={canHandle:e=>Z(e)&&L in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},ee=new Map([["proxy",ye],["throw",be]]);function _(e,t=self){t.addEventListener("message",function n(r){if(!r||!r.data)return;let{id:s,type:i,path:a}=Object.assign({path:[]},r.data),c=(r.data.argumentList||[]).map(P),l;try{let d=a.slice(0,-1).reduce((p,b)=>p[b],e),m=a.reduce((p,b)=>p[b],e);switch(i){case 0:l=m;break;case 1:d[a.slice(-1)[0]]=P(r.data.value),l=!0;break;case 2:l=m.apply(d,c);break;case 3:{let p=new m(...c);l=k(p)}break;case 4:{let{port1:p,port2:b}=new MessageChannel;_(e,b),l=xe(p,[p])}break;case 5:l=void 0;break}}catch(d){l={value:d,[L]:0}}Promise.resolve(l).catch(d=>({value:d,[L]:0})).then(d=>{let[m,p]=W(d);t.postMessage(Object.assign(Object.assign({},m),{id:s}),p),i===5&&(t.removeEventListener("message",n),te(t))})}),t.start&&t.start()}function we(e){return e.constructor.name==="MessagePort"}function te(e){we(e)&&e.close()}function B(e,t){return R(e,[],t)}function U(e){if(e)throw new Error("Proxy has been released and is not useable")}function R(e,t=[],n=function(){}){let r=!1,s=new Proxy(n,{get(i,a){if(U(r),a===D)return()=>v(e,{type:5,path:t.map(c=>c.toString())}).then(()=>{te(e),r=!0});if(a==="then"){if(t.length===0)return{then:()=>s};let c=v(e,{type:0,path:t.map(l=>l.toString())}).then(P);return c.then.bind(c)}return R(e,[...t,a])},set(i,a,c){U(r);let[l,d]=W(c);return v(e,{type:1,path:[...t,a].map(m=>m.toString()),value:l},d).then(P)},apply(i,a,c){U(r);let l=t[t.length-1];if(l===he)return v(e,{type:4}).then(P);if(l==="bind")return R(e,t.slice(0,-1));let[d,m]=X(c);return v(e,{type:2,path:t.map(p=>p.toString()),argumentList:d},m).then(P)},construct(i,a){U(r);let[c,l]=X(a);return v(e,{type:3,path:t.map(d=>d.toString()),argumentList:c},l).then(P)}});return s}function Pe(e){return Array.prototype.concat.apply([],e)}function X(e){let t=e.map(W);return[t.map(n=>n[0]),Pe(t.map(n=>n[1]))]}var ne=new WeakMap;function xe(e,t){return ne.set(e,t),e}function k(e){return Object.assign(e,{[Y]:!0})}function W(e){for(let[t,n]of ee)if(n.canHandle(e)){let[r,s]=n.serialize(e);return[{type:3,name:t,value:r},s]}return[{type:0,value:e},ne.get(e)||[]]}function P(e){switch(e.type){case 3:return ee.get(e.name).deserialize(e.value);case 0:return e.value}}function v(e,t,n){return new Promise(r=>{let s=ve();e.addEventListener("message",function i(a){!a.data||!a.data.id||a.data.id!==s||(e.removeEventListener("message",i),r(a.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:s},t),n)})}function ve(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var T="__proxyCallbackId__wixSDK__",I="__proxyPromiseId__wixSDK__",oe=e=>Ee(e,t=>async function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];let[i,a]=j(r),c=await t(k(i),a);return se(c)});var Me=async e=>{let[t,n]=j(await e);return k({proxies:t,clonables:n})},se=async e=>H(e?.proxies,await e?.clonables),j=e=>{let t=(s,i)=>{if(ae(i)){let a=re();return s.promises[a]=i,{[I]:a}}if(Se(i)){let a=re();return s.callbacks[a]=(c,l)=>{let d=H(c,l),m=i(...d);return Me(m)},{[T]:a}}return Array.isArray(i)?i.map(a=>t(s,a)):O(i)?ie(i,a=>t(s,a)):i},n={promises:{},callbacks:{}},r=t(n,e);return[n,r]},H=(e,t)=>{if(Array.isArray(t))return t.map(n=>H(e,n));if(O(t)&&t.hasOwnProperty(I)){let n=t[I];return e.promises[n]}if(O(t)&&t.hasOwnProperty(T)){let n=t[T];return async function(){for(var r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];let[a,c]=j(s),l=await e.callbacks[n](k(a),c);return se(l)}}return O(t)?ie(t,n=>H(e,n)):t},Ee=(e,t)=>new Proxy(e,{get(n,r){return n[r]?t(n[r]):()=>{throw new Error(`Serialization error occurred while accessing ${r} property of ${n}`)}}}),ae=e=>e instanceof Promise,O=e=>e&&typeof e=="object"&&!ae(e),Se=e=>typeof e=="function",ie=(e,t)=>{let n=r=>{let[s,i]=r;return[s,t(i)]};return Object.fromEntries(Object.entries(e).map(n))},re=(()=>{let e=0;return()=>++e})();var ke="wix-sdk-bo-hello-handshake",ce=e=>{let{postMessage:t,origin:n}=e,{port1:r,port2:s}=new MessageChannel;t({code:ke,version:"1.0.0",port:s},n,[s]);let c=oe(B(r));return{channel:c,close:()=>c[D]()}};var ue=(e,t)=>{let n=()=>e.updateHeight(t.offsetHeight),r=new ResizeObserver(n);return r.observe(t),()=>r.disconnect()};var Ae=["https://manage.wix.com","https://manage.editorx.com"],Ce=new Set(Ae),le=e=>Ce.has(e);var de=e=>{let t=new EventTarget,n=typeof window>"u",r=c=>{t.dispatchEvent(new CustomEvent("beforeunload",{cancelable:!0}))||(c.preventDefault(),c.returnValue=!0)},s=e.onBeforeUnload(r),i=()=>{n||window.removeEventListener("beforeunload",r),s.then(c=>{let{remove:l}=c;return l()})};return n||(window.addEventListener("beforeunload",r),window.addEventListener("unload",i)),{onBeforeUnload:c=>(t.addEventListener("beforeunload",c),{remove:()=>{t.removeEventListener("beforeunload",c)}}),clearBeforeUnloadHandler:i}};function Ue(e){if(e)try{return JSON.parse(decodeURIComponent(e))}catch(t){console.warn('Failed to parse "essentials" query parameter. Make sure to run the code inside a supported Wix App extension.',t);return}}function fe(e){return e.has("essentials")?Ue(e.get("essentials")):void 0}var me=function(e){e===void 0&&(e={});let t=new URLSearchParams(typeof window<"u"?window.location.search:"?"),n=e.origin||t.get("origin")||"",r=e.postMessage||window.parent.postMessage.bind(window.parent);if(!le(n))throw new Error("Wix Dashboard SDK: Unable to establish a connection with the Wix dashboard. Please ensure that you are running your app within the Wix dashboard.");let{channel:s,close:i}=ce({postMessage:r,origin:n}),a=[i];if(e.autoHeightUpdate===void 0||e.autoHeightUpdate){let x=e.autoHeightElement||document.documentElement,M=ue(s,x);a.push(()=>M())}let{onBeforeUnload:c,clearBeforeUnloadHandler:l}=de(s);a.push(l);let d=new Proxy(s,{get(x,M,V){return M==="onBeforeUnload"?c:Reflect.get(x,M,V)}}),{monitoring:m,...p}=fe(t)||{},b=N({hostContext:m?.context,monitoringConfig:m?.config,sentrySDK:typeof window<"u"?window.Sentry:void 0});return{channel:d,close:()=>a.forEach(x=>x()),getMonitoringClient:b,essentials:p}};var z=$({createHost:me});var ge=(e,t)=>{let[n,r]=pe(()=>e());return t(n)&&r(e()),n},Le=e=>t=>{let{host:n,compProps:r}=Re(t);return ge(()=>(F({auth:z.auth(),host:n}).enableContext("module"),n),s=>s!==n),r?Oe.createElement(e,C({host:n},r)):null},Re=e=>{let{host:t,...n}=e,{host:r,hostType:s}=ge(()=>t?{host:t,hostType:"local"}:{host:z.host(),hostType:"remote"},c=>!!t&&t!==c.host),[i,a]=pe(void 0);return He(()=>{if(s==="local")return;let c=r.channel.observeState(d=>{a(d||{})}),l=async()=>{(await c).disconnect(),r.close()};return()=>{l()}},[r,s]),s==="local"?{host:r,compProps:n}:{host:r,compProps:i?{...i,...n}:void 0}};export{Le as withContextualWixClient};
|
|
1
|
+
import{a as K,b as N}from"./chunk-BY4JACX6.js";import{a as F}from"./chunk-XYIDODIB.js";import"./chunk-BGTZ3RNN.js";import"./chunk-7EYXEF6M.js";import"./chunk-SBZEOPXX.js";function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(null,arguments)}import Oe,{useEffect as He,useState as pe}from"react";function w(e){"@babel/helpers - typeof";return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(e)}function q(e,t){if(w(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(w(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J(e){var t=q(e,"string");return w(t)=="symbol"?t:t+""}function G(e,t,n){return(t=J(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=class extends Error{constructor(t){let{message:n,code:r}=t;super(n),G(this,"code",void 0),this.message=n,this.code=r}};var Q=()=>{let e=u=>{let{channel:o}=u;return function(){let f=o.showToast(...arguments);return{remove:()=>Promise.resolve(f).then(h=>h.remove())}}},t=u=>{let{channel:o}=u;return function(){let f=o.observeState(...arguments);return{disconnect:()=>Promise.resolve(f).then(h=>h.disconnect())}}};return{showToast:e,observeState:t,navigate:u=>{let{channel:o}=u;return function(){return o.navigate(...arguments)}},navigateBack:u=>{let{channel:o}=u;return()=>o.navigateBack()},openModal:u=>{let{channel:o}=u;return(f,g)=>{let[h,A]=typeof f=="string"?[f,g]:[f.modalId,f.params],E=o.openModal(h,A);return{modalClosed:Promise.resolve(E).then(y=>y.modalClosed)}}},closeModal:u=>{let{channel:o}=u;return f=>{if(f===void 0)return o.closeModal();let g=JSON.parse(JSON.stringify(f));return o.closeModal(g)}},getAccessToken:u=>{let{channel:o}=u;return()=>o.getAccessToken()},getPageUrl:u=>{let{channel:o}=u;return function(){return o.getPageUrl(...arguments)}},openMediaManager:u=>{let{channel:o}=u;return function(){return o.openMediaManager(...arguments)}},addSitePlugin:u=>{let{channel:o}=u;return(f,g)=>{let h="802c76e4-b381-4bb3-9152-96acabbf3194",A=g?.placement||{},E=o.openModal(h,{...A,pluginId:f,action:"populate"});return Promise.resolve(E).then(y=>y.modalClosed).then(y=>{if(y?.type===void 0)throw new S({message:"Aborted by user",code:3006});if(y?.type==="ERROR")throw new S(y.data.error)})}},onBeforeUnload:u=>{let{channel:o}=u;return function(){return o.onBeforeUnload(...arguments)}},setPageTitle:u=>{let{channel:o}=u;return f=>o.setPageTitle(f)},getLanguage:u=>{let o=null;return async()=>{var f;if(o)return o;let g=null;return o=await new Promise(h=>{g=t(u)((A,E)=>{h(E.language)})}),(f=g)==null||f.disconnect(),o}},requestFeedback:u=>{let{channel:o}=u;return function(){return o.requestFeedback(...arguments)}},onLayerStateChange:u=>{let{channel:o}=u;return function(){let f=o.onLayerStateChange(...arguments);return{remove:()=>Promise.resolve(f).then(h=>h.remove())}}},installApp:u=>{let{channel:o}=u;return o.installApp},getWidget:u=>{let{channel:o}=u;return function(){if("getWidget"in o)return o.getWidget(...arguments);throw new Error("Unsupported")}},getDashboardPlugins:u=>{let{channel:o}=u;return function(){if("getDashboardPlugins"in o)return o.getDashboardPlugins(...arguments);throw new Error("Unsupported")}},getDashboardMenuPlugins:u=>{let{channel:o}=u;return function(){if("getDashboardMenuPlugins"in o)return o.getDashboardMenuPlugins(...arguments);throw new Error("Unsupported")}}}};var $=e=>{let{createHost:t}=e,n=Q();return{...K(n),host:t,auth:()=>({getAuthHeaders:async r=>({headers:{Authorization:await n.getAccessToken(r)()}})})}};var Y=Symbol("Comlink.proxy"),he=Symbol("Comlink.endpoint"),D=Symbol("Comlink.releaseProxy"),L=Symbol("Comlink.thrown"),Z=e=>typeof e=="object"&&e!==null||typeof e=="function",ye={canHandle:e=>Z(e)&&e[Y],serialize(e){let{port1:t,port2:n}=new MessageChannel;return _(e,t),[n,[n]]},deserialize(e){return e.start(),B(e)}},be={canHandle:e=>Z(e)&&L in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},ee=new Map([["proxy",ye],["throw",be]]);function _(e,t=self){t.addEventListener("message",function n(r){if(!r||!r.data)return;let{id:s,type:i,path:a}=Object.assign({path:[]},r.data),c=(r.data.argumentList||[]).map(P),l;try{let d=a.slice(0,-1).reduce((p,b)=>p[b],e),m=a.reduce((p,b)=>p[b],e);switch(i){case 0:l=m;break;case 1:d[a.slice(-1)[0]]=P(r.data.value),l=!0;break;case 2:l=m.apply(d,c);break;case 3:{let p=new m(...c);l=k(p)}break;case 4:{let{port1:p,port2:b}=new MessageChannel;_(e,b),l=xe(p,[p])}break;case 5:l=void 0;break}}catch(d){l={value:d,[L]:0}}Promise.resolve(l).catch(d=>({value:d,[L]:0})).then(d=>{let[m,p]=W(d);t.postMessage(Object.assign(Object.assign({},m),{id:s}),p),i===5&&(t.removeEventListener("message",n),te(t))})}),t.start&&t.start()}function we(e){return e.constructor.name==="MessagePort"}function te(e){we(e)&&e.close()}function B(e,t){return R(e,[],t)}function U(e){if(e)throw new Error("Proxy has been released and is not useable")}function R(e,t=[],n=function(){}){let r=!1,s=new Proxy(n,{get(i,a){if(U(r),a===D)return()=>v(e,{type:5,path:t.map(c=>c.toString())}).then(()=>{te(e),r=!0});if(a==="then"){if(t.length===0)return{then:()=>s};let c=v(e,{type:0,path:t.map(l=>l.toString())}).then(P);return c.then.bind(c)}return R(e,[...t,a])},set(i,a,c){U(r);let[l,d]=W(c);return v(e,{type:1,path:[...t,a].map(m=>m.toString()),value:l},d).then(P)},apply(i,a,c){U(r);let l=t[t.length-1];if(l===he)return v(e,{type:4}).then(P);if(l==="bind")return R(e,t.slice(0,-1));let[d,m]=X(c);return v(e,{type:2,path:t.map(p=>p.toString()),argumentList:d},m).then(P)},construct(i,a){U(r);let[c,l]=X(a);return v(e,{type:3,path:t.map(d=>d.toString()),argumentList:c},l).then(P)}});return s}function Pe(e){return Array.prototype.concat.apply([],e)}function X(e){let t=e.map(W);return[t.map(n=>n[0]),Pe(t.map(n=>n[1]))]}var ne=new WeakMap;function xe(e,t){return ne.set(e,t),e}function k(e){return Object.assign(e,{[Y]:!0})}function W(e){for(let[t,n]of ee)if(n.canHandle(e)){let[r,s]=n.serialize(e);return[{type:3,name:t,value:r},s]}return[{type:0,value:e},ne.get(e)||[]]}function P(e){switch(e.type){case 3:return ee.get(e.name).deserialize(e.value);case 0:return e.value}}function v(e,t,n){return new Promise(r=>{let s=ve();e.addEventListener("message",function i(a){!a.data||!a.data.id||a.data.id!==s||(e.removeEventListener("message",i),r(a.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:s},t),n)})}function ve(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var T="__proxyCallbackId__wixSDK__",I="__proxyPromiseId__wixSDK__",oe=e=>Ee(e,t=>async function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];let[i,a]=j(r),c=await t(k(i),a);return se(c)});var Me=async e=>{let[t,n]=j(await e);return k({proxies:t,clonables:n})},se=async e=>H(e?.proxies,await e?.clonables),j=e=>{let t=(s,i)=>{if(ae(i)){let a=re();return s.promises[a]=i,{[I]:a}}if(Se(i)){let a=re();return s.callbacks[a]=(c,l)=>{let d=H(c,l),m=i(...d);return Me(m)},{[T]:a}}return Array.isArray(i)?i.map(a=>t(s,a)):O(i)?ie(i,a=>t(s,a)):i},n={promises:{},callbacks:{}},r=t(n,e);return[n,r]},H=(e,t)=>{if(Array.isArray(t))return t.map(n=>H(e,n));if(O(t)&&t.hasOwnProperty(I)){let n=t[I];return e.promises[n]}if(O(t)&&t.hasOwnProperty(T)){let n=t[T];return async function(){for(var r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];let[a,c]=j(s),l=await e.callbacks[n](k(a),c);return se(l)}}return O(t)?ie(t,n=>H(e,n)):t},Ee=(e,t)=>new Proxy(e,{get(n,r){return n[r]?t(n[r]):()=>{throw new Error(`Serialization error occurred while accessing ${r} property of ${n}`)}}}),ae=e=>e instanceof Promise,O=e=>e&&typeof e=="object"&&!ae(e),Se=e=>typeof e=="function",ie=(e,t)=>{let n=r=>{let[s,i]=r;return[s,t(i)]};return Object.fromEntries(Object.entries(e).map(n))},re=(()=>{let e=0;return()=>++e})();var ke="wix-sdk-bo-hello-handshake",ce=e=>{let{postMessage:t,origin:n}=e,{port1:r,port2:s}=new MessageChannel;t({code:ke,version:"1.0.0",port:s},n,[s]);let c=oe(B(r));return{channel:c,close:()=>c[D]()}};var ue=(e,t)=>{let n=()=>e.updateHeight(t.offsetHeight),r=new ResizeObserver(n);return r.observe(t),()=>r.disconnect()};var Ae=["https://manage.wix.com","https://manage.editorx.com"],Ce=new Set(Ae),le=e=>Ce.has(e);var de=e=>{let t=new EventTarget,n=typeof window>"u",r=c=>{t.dispatchEvent(new CustomEvent("beforeunload",{cancelable:!0}))||(c.preventDefault(),c.returnValue=!0)},s=e.onBeforeUnload(r),i=()=>{n||window.removeEventListener("beforeunload",r),s.then(c=>{let{remove:l}=c;return l()})};return n||(window.addEventListener("beforeunload",r),window.addEventListener("unload",i)),{onBeforeUnload:c=>(t.addEventListener("beforeunload",c),{remove:()=>{t.removeEventListener("beforeunload",c)}}),clearBeforeUnloadHandler:i}};function Ue(e){if(e)try{return JSON.parse(decodeURIComponent(e))}catch(t){console.warn('Failed to parse "essentials" query parameter. Make sure to run the code inside a supported Wix App extension.',t);return}}function fe(e){return e.has("essentials")?Ue(e.get("essentials")):void 0}var me=function(e){e===void 0&&(e={});let t=new URLSearchParams(typeof window<"u"?window.location.search:"?"),n=e.origin||t.get("origin")||"",r=e.postMessage||window.parent.postMessage.bind(window.parent);if(!le(n))throw new Error("Wix Dashboard SDK: Unable to establish a connection with the Wix dashboard. Please ensure that you are running your app within the Wix dashboard.");let{channel:s,close:i}=ce({postMessage:r,origin:n}),a=[i];if(e.autoHeightUpdate===void 0||e.autoHeightUpdate){let x=e.autoHeightElement||document.documentElement,M=ue(s,x);a.push(()=>M())}let{onBeforeUnload:c,clearBeforeUnloadHandler:l}=de(s);a.push(l);let d=new Proxy(s,{get(x,M,V){return M==="onBeforeUnload"?c:Reflect.get(x,M,V)}}),{monitoring:m,...p}=fe(t)||{},b=N({hostContext:m?.context,monitoringConfig:m?.config,sentrySDK:typeof window<"u"?window.Sentry:void 0});return{channel:d,close:()=>a.forEach(x=>x()),getMonitoringClient:b,essentials:p}};var z=$({createHost:me});var ge=(e,t)=>{let[n,r]=pe(()=>e());return t(n)&&r(e()),n},Le=e=>t=>{let{host:n,compProps:r}=Re(t);return ge(()=>(F({auth:z.auth(),host:n}).enableContext("module"),n),s=>s!==n),r?Oe.createElement(e,C({host:n},r)):null},Re=e=>{let{host:t,...n}=e,{host:r,hostType:s}=ge(()=>t?{host:t,hostType:"local"}:{host:z.host(),hostType:"remote"},c=>!!t&&t!==c.host),[i,a]=pe(void 0);return He(()=>{if(s==="local")return;let c=r.channel.observeState(d=>{a(d||{})}),l=async()=>{(await c).disconnect(),r.close()};return()=>{l()}},[r,s]),s==="local"?{host:r,compProps:n}:{host:r,compProps:i?{...i,...n}:void 0}};export{Le as withContextualWixClient};
|
|
2
2
|
//# sourceMappingURL=dashboard.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Ie,b as ge}from"./chunk-
|
|
1
|
+
import{a as Ie,b as ge}from"./chunk-BY4JACX6.js";import{a as Pe}from"./chunk-XYIDODIB.js";import"./chunk-BGTZ3RNN.js";import{c as Je,d as He}from"./chunk-7EYXEF6M.js";import{b as me,d as ye,e as Ye,f as p,g as a,h as l,i as w,j as d}from"./chunk-SBZEOPXX.js";var Ee=me(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.EventType=void 0;var we;(function(n){n.removeAppCompleted="removeAppCompleted",n.componentSelectionChanged="componentSelectionChanged",n.appInstalled="appInstalled",n.appUpdateCompleted="appUpdateCompleted"})(we||(ot.EventType=we={}))});var Mt=me(m=>{"use strict";var Xe=m&&m.__createBinding||(Object.create?function(n,t,e,i){i===void 0&&(i=e);var s=Object.getOwnPropertyDescriptor(t,e);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,i,s)}:function(n,t,e,i){i===void 0&&(i=e),n[i]=t[e]}),Qe=m&&m.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),Ze=m&&m.__importStar||function(){var n=function(t){return n=Object.getOwnPropertyNames||function(e){var i=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[i.length]=s);return i},n(t)};return function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var i=n(t),s=0;s<i.length;s++)i[s]!=="default"&&Xe(e,t,i[s]);return Qe(e,t),e}}();Object.defineProperty(m,"__esModule",{value:!0});m.EventType=m.WixSDKTypes=void 0;var tn=Ze((He(),Ye(Je)));m.WixSDKTypes=tn;var en=Ee();Object.defineProperty(m,"EventType",{enumerable:!0,get:function(){return en.EventType}})});var q=ye(Mt(),1);var N=class N{constructor(){p(this,"uid",0);p(this,"callbacks",new Map);p(this,"inTransaction",!1);p(this,"isSilent",!1);p(this,"queue",[])}silent(t=!0){this.isSilent=t}startTransaction(){this.inTransaction=!0}commit(){this.inTransaction=!1;let t=this.queue;this.queue=[],this.isSilent||t.forEach(e=>{this.notify(e)})}notify(t){this.isSilent||(this.inTransaction?this.queue.push(t):this.callbacks.forEach(e=>{e(t)}))}subscribe(t){let e=this.uid++;return this.callbacks.set(e,t),()=>{this.callbacks.delete(e)}}notifyWithStep(t,e){this.notify({...t,meta:{...t.meta,step:e}})}async withEvent(t,e){let i=e();if(i&&i.hasOwnProperty("then"))try{return this.notifyWithStep(t,N.EventSteps.Start),i=await i,this.notifyWithStep(t,N.EventSteps.End),i}catch(s){throw this.notifyWithStep({...t,meta:{...t.meta,error:s}},N.EventSteps.Error),s}else return this.notify(t),i}};p(N,"biEvents",{PLATFORM_WORKER_SPAWN:123,PLATFORM_APP_RUNNER_INIT_APP_API:124,PLATFORM_APP_RUNNER_RUN_APP:125,PLATFORM_APP_RUNNER_REMOVE_APP:126,PLATFORM_WORKER_APP_BUNDLE_LOAD:127,PLATFORM_WORKER_APP_BUNDLE_EXECUTE:128,PLATFORM_IFRAME_INIT:129,PLATFORM_APP_API_INIT:130,PLATFORM_APP_API_GET:131}),p(N,"EventSteps",{Start:"start",End:"end",Error:"error"});var Dt=N,ct=(n=>(n.WorkerSpawn="WorkerSpawn",n.HostEvent="HostEvent",n.ApplicationsSpecsReceived="ApplicationsSpecsReceived",n.InitApplicationApi="InitApplicationApi",n.RunApplication="RunApplication",n.getApplicationApi="getApplicationApi",n.IframeInit="IframeInit",n))(ct||{}),kt=(n=>(n.EditorReady="EditorReady",n))(kt||{});var E=(n=>(n.ApplicationInit="ApplicationInit",n.ApplicationExecute="ApplicationExecute",n.ApplicationRemoved="ApplicationRemoved",n.ApplicationLoad="ApplicationLoad",n.ApplicationApiInit="ApplicationApiInit",n.CustomEvent="CustomEvent",n.HostEvent="HostEvent",n.EditorReady="EditorReady",n))(E||{}),St=class{createApplicationRemovedEvent(t){return{type:"ApplicationRemoved",payload:{appDefinitionId:t},meta:{bi:{evid:v.biEvents.PLATFORM_WORKER_SPAWN,appDefId:t}}}}createApplicationLoadEvent(t,e){return{type:"ApplicationLoad",payload:{appDefinitionId:t.appDefinitionId,url:e},meta:{bi:{evid:v.biEvents.PLATFORM_WORKER_APP_BUNDLE_LOAD,appDefId:t.appDefinitionId,appType:t.appType,bundleUrl:e}}}}createApplicationExecuteEvent(t,e){return{type:"ApplicationExecute",payload:{appDefinitionId:t.appDefinitionId,url:e},meta:{bi:{evid:v.biEvents.PLATFORM_WORKER_APP_BUNDLE_EXECUTE,appDefId:t.appDefinitionId,appType:t.appType,bundleUrl:e}}}}createApplicationApiInitEvent(t,e){return{type:"ApplicationApiInit",payload:{appDefinitionId:t},meta:{bi:{evid:v.biEvents.PLATFORM_APP_API_INIT,appDefId:t,scope:e}}}}},v=class extends Dt{constructor(){super(...arguments);p(this,"factories",new St)}},at=class at{constructor(t){this.events=t}mapToPlatformHostEvent(t){if(typeof t=="string")try{t=JSON.parse(t)}catch{}return{type:ct.HostEvent,payload:{type:t.args.eventType,...t.args.eventPayload},meta:{appDefinitionId:t.appDefinitionId??null,intent:t.intent}}}notify(t){let e=this.mapToPlatformHostEvent(t);at.allowedEvents.includes(e.payload.type)&&this.events.notify(e)}};p(at,"allowedEvents",[q.EventType.componentSelectionChanged,q.EventType.appInstalled,q.EventType.appUpdateCompleted,q.EventType.removeAppCompleted]);var ve=at;var y=class n extends Error{constructor(e,i,s){let r=e?` ${e}`:"",o=`[${s}]#${i}`;super(`${o}.${r}`);p(this,"state",{});p(this,"displayName");p(this,"prefix");p(this,"errorMessage");p(this,"parent");p(this,"messages",[]);p(this,"code");this.displayName=o,this.errorMessage=e,this.prefix=s,this.code=i,this.name=o,Object.defineProperty(this,"message",{get:()=>this.getDisplayMessage()}),Error.captureStackTrace&&Error.captureStackTrace(this,n)}get parentError(){let e=this.parent;if(!e)return null;if(this.parent instanceof n)return this.parent;let i=e.name??"[Unknown Error]";return{getBreadcrumbs(){return[i]},getMessage(){return[i,e.message??"unknown error message"].join(`
|
|
2
2
|
`)}}}getDisplayMessage(){return[(this.parentError?this.getBreadcrumbs():[]).join(" -> "),this.getMessage()].filter(i=>i.trim().length).join(`
|
|
3
3
|
`)}getMessage(){let e=Object.entries(this.state).reduce((c,[h,u])=>(u&&c.push(` \u2013 ${h}: ${u}`),c),[]).join(`
|
|
4
4
|
`),i=this.messages.reduce((c,h)=>(c.push(` - ${h.join(" ")}`),c),[]).join(`
|
|
@@ -2,36 +2,36 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createPreviewTag
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ONNVSN6Z.js";
|
|
6
6
|
import {
|
|
7
7
|
addUserFields
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-R25C65PI.js";
|
|
9
|
+
import "./chunk-UGZ4HW7C.js";
|
|
10
10
|
import {
|
|
11
11
|
ARMClient,
|
|
12
12
|
SiteListClient,
|
|
13
13
|
resolveConfiguredSite,
|
|
14
14
|
resolveDashboardExtensionUrl,
|
|
15
15
|
resolvePlatformUrl
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-EXLMLNEA.js";
|
|
17
|
+
import "./chunk-UPFJUERL.js";
|
|
18
|
+
import "./chunk-YV7I3J5W.js";
|
|
19
19
|
import "./chunk-ZR3N5INU.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-GAJ7KUCP.js";
|
|
21
|
+
import "./chunk-B2ICYFSY.js";
|
|
22
|
+
import "./chunk-YAB2U4Z2.js";
|
|
23
23
|
import {
|
|
24
24
|
DevCenterComponent,
|
|
25
25
|
PlatformType,
|
|
26
26
|
createHttpClient,
|
|
27
27
|
isLoggedInToAccount,
|
|
28
28
|
uploadApplication
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NOA57HIN.js";
|
|
30
30
|
import {
|
|
31
31
|
CliError,
|
|
32
32
|
CliErrorCode,
|
|
33
33
|
require_lib
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-NKZUVIGH.js";
|
|
35
35
|
import {
|
|
36
36
|
__toESM,
|
|
37
37
|
init_esm_shims
|
|
@@ -135,4 +135,4 @@ async function nonInteractivePreview(options, model, services) {
|
|
|
135
135
|
export {
|
|
136
136
|
nonInteractivePreview
|
|
137
137
|
};
|
|
138
|
-
//# sourceMappingURL=preview-
|
|
138
|
+
//# sourceMappingURL=preview-CYO6EQDP.js.map
|
|
@@ -2,14 +2,14 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
messages_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-P4IYXOMH.js";
|
|
6
6
|
import {
|
|
7
7
|
addUserFields,
|
|
8
8
|
reportCommandStartEvent
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R25C65PI.js";
|
|
10
10
|
import {
|
|
11
11
|
DebugLogProvider
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GAJ7KUCP.js";
|
|
13
13
|
import {
|
|
14
14
|
AccountAuthProvider,
|
|
15
15
|
BiProvider,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
ProjectModelProvider,
|
|
18
18
|
getDebugLogFilePath,
|
|
19
19
|
loadProjectModel
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NOA57HIN.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError,
|
|
23
23
|
CliErrorCode,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
render,
|
|
26
26
|
require_react,
|
|
27
27
|
version
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NKZUVIGH.js";
|
|
29
29
|
import {
|
|
30
30
|
__toESM,
|
|
31
31
|
init_esm_shims
|
|
@@ -114,4 +114,4 @@ export {
|
|
|
114
114
|
renderCommand,
|
|
115
115
|
runCommand
|
|
116
116
|
};
|
|
117
|
-
//# sourceMappingURL=render-command-
|
|
117
|
+
//# sourceMappingURL=render-command-NFVEABET.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/cli-app",
|
|
3
3
|
"description": "CLI tool for Wix apps",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.66",
|
|
5
5
|
"author": "Amit Dahan",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"esbuild": "^0.21.3",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"@types/mustache": "^4.2.5",
|
|
15
15
|
"@types/react": "^18.3.3",
|
|
16
16
|
"@types/semver": "^7.5.8",
|
|
17
|
-
"@wix/ambassador-blocks-v1-blocks-app": "^1.0.
|
|
17
|
+
"@wix/ambassador-blocks-v1-blocks-app": "^1.0.51",
|
|
18
18
|
"@wix/ambassador-cli-site-override-service-v1-site-override": "^1.0.7",
|
|
19
19
|
"@wix/ambassador-ctp-app-cloud-backend-service-v1-app-cloud-backend-deployment": "^1.0.8",
|
|
20
20
|
"@wix/ambassador-ctp-gradual-rollout-v1-app-config": "^1.0.73",
|
|
21
|
-
"@wix/ambassador-devcenter-apps-v1-app": "^1.0.
|
|
22
|
-
"@wix/ambassador-devcenter-components-v1-component": "^1.0.
|
|
21
|
+
"@wix/ambassador-devcenter-apps-v1-app": "^1.0.540",
|
|
22
|
+
"@wix/ambassador-devcenter-components-v1-component": "^1.0.439",
|
|
23
23
|
"@wix/app-cloud-uploader": "^1.14.0",
|
|
24
24
|
"@wix/arm-client": "0.0.0",
|
|
25
|
-
"@wix/bi-logger-dev-tools-data": "^1.
|
|
25
|
+
"@wix/bi-logger-dev-tools-data": "^1.95.0",
|
|
26
26
|
"@wix/cli-app-definitions": "0.0.0",
|
|
27
27
|
"@wix/cli-app-manifest": "1.0.0",
|
|
28
28
|
"@wix/cli-app-platform-sdk": "0.0.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@wix/extensions-data-client": "0.0.0",
|
|
52
52
|
"@wix/gena": "0.0.0",
|
|
53
53
|
"@wix/metasite-manager-client": "0.0.0",
|
|
54
|
-
"@wix/monitoring-buildtime": "^1.
|
|
54
|
+
"@wix/monitoring-buildtime": "^1.19.0",
|
|
55
55
|
"@wix/package-manager": "0.0.0",
|
|
56
56
|
"@wix/site-list-client": "0.0.0",
|
|
57
57
|
"@wix/site-override-client": "0.0.0",
|
|
@@ -151,5 +151,5 @@
|
|
|
151
151
|
]
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
|
-
"falconPackageHash": "
|
|
154
|
+
"falconPackageHash": "52a74eae9b902c69b0831024401b65a535d2ebb2a84f950a4168329d"
|
|
155
155
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
-
const require = _createRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
PreviewCommand
|
|
5
|
-
} from "./chunk-YKTRDLGU.js";
|
|
6
|
-
import "./chunk-DWOAWAAA.js";
|
|
7
|
-
import "./chunk-L2MHG5WV.js";
|
|
8
|
-
import "./chunk-BMM7NKZM.js";
|
|
9
|
-
import "./chunk-T3OLHPLT.js";
|
|
10
|
-
import "./chunk-HH64DLEE.js";
|
|
11
|
-
import "./chunk-G2IJ2IWB.js";
|
|
12
|
-
import "./chunk-WRJ57AC2.js";
|
|
13
|
-
import "./chunk-ZR3N5INU.js";
|
|
14
|
-
import "./chunk-PZGUE6SY.js";
|
|
15
|
-
import "./chunk-LVHX7JGR.js";
|
|
16
|
-
import "./chunk-FASUKQVL.js";
|
|
17
|
-
import "./chunk-7GJYEEDQ.js";
|
|
18
|
-
import "./chunk-CUVZAENC.js";
|
|
19
|
-
import "./chunk-PYIAC2GK.js";
|
|
20
|
-
export {
|
|
21
|
-
PreviewCommand
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=PreviewCommand-KWMT6GOO.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/ReleaseCommand/index.ts","../src/components/ReleaseCommand/ReleaseCommand.tsx","../src/components/ReleaseCommand/Release.tsx","../src/components/ReleaseCommand/Steps/CreatePreview.tsx","../src/components/ReleaseCommand/Steps/Warnings.tsx","../src/components/ReleaseCommand/Steps/ReleaseComment.tsx","../src/components/ReleaseCommand/Steps/ChooseVersion.tsx","../src/components/ReleaseCommand/types.ts","../src/components/ReleaseCommand/Steps/ConfirmMinorVersion.tsx","../src/components/ReleaseCommand/Steps/NextSteps.tsx"],"sourcesContent":["export { ReleaseCommand } from './ReleaseCommand.js';\nexport { ReleaseVersionType } from './types.js';\n","import React from 'react';\nimport type { FC } from 'react';\nimport { match } from 'variant';\nimport { useAsync, Spinner } from '@wix/cli-ui-kit';\nimport { Trans } from '@wix/cli-i18n';\nimport { VersionStatus } from '@wix/ambassador-devcenter-apps-v1-app/types';\nimport { useDevCenterClient } from '@wix/dev-center-client';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\nimport parse from 'semver/functions/parse.js';\nimport { useProjectModel } from '../../model.js';\nimport { assertBuildOutputExists } from '../../files/assert-build-output-exists.js';\nimport { Release } from './Release.js';\nimport type { ReleaseVersionType } from './types.js';\n\nconst restrictedAppStatuses = new Set<string>([\n VersionStatus.IN_REVIEW,\n VersionStatus.SUBMITTED,\n]);\n\ninterface ReleaseCommandProps {\n baseUrl?: string;\n siteIdOverride?: string;\n preEnteredComment?: string;\n preApproveMinor: boolean;\n preSelectedVersionType?: ReleaseVersionType;\n}\n\nexport const ReleaseCommand: FC<ReleaseCommandProps> = (props) => {\n const {\n model: {\n projectFolder,\n config: { appId },\n },\n } = useProjectModel();\n\n const { getAppByVersion } = useDevCenterClient();\n\n const { status } = useAsync(async () => {\n await assertBuildOutputExists(projectFolder);\n const { appStatus, latestVersion } = await getAppByVersion({ appId });\n\n if (appStatus && restrictedAppStatuses.has(appStatus)) {\n throw new CliError({\n code: CliErrorCode.CannotReleaseApplicationInReview(),\n cause: undefined,\n });\n }\n\n const parsedLatestVersion = parse(latestVersion);\n if (!parsedLatestVersion) {\n throw new CliError({\n code: CliErrorCode.FailedToParseLatestVersion({\n version: latestVersion,\n }),\n cause: undefined,\n info: {\n latestVersion,\n },\n });\n }\n\n const isPublished = appStatus === VersionStatus.PUBLISHED;\n return { isPublished, latestVersion: parsedLatestVersion };\n }, []);\n\n return match(status, {\n Error: () => null,\n Loading: () => (\n <Spinner text={<Trans i18nKey=\"release_command.loading_app_details\" />} />\n ),\n Success: ({ result }) => <Release {...props} {...result} />,\n });\n};\n","import React, { useState } from 'react';\nimport type { FC } from 'react';\nimport { match } from 'variant';\nimport { Box, Text, Alert, Spinner, useAsyncCallback } from '@wix/cli-ui-kit';\nimport { Trans } from '@wix/cli-i18n';\nimport { useARMClient } from '@wix/arm-client';\nimport type { SemVer } from 'semver';\nimport { useProjectModel } from '../../model.js';\nimport { CreatePreview } from './Steps/CreatePreview.js';\nimport { Warnings } from './Steps/Warnings.js';\nimport { ReleaseComment } from './Steps/ReleaseComment.js';\nimport { ChooseVersion } from './Steps/ChooseVersion.js';\nimport { ConfirmMinorVersion } from './Steps/ConfirmMinorVersion.js';\nimport { NextSteps } from './Steps/NextSteps.js';\nimport { ReleaseVersionType } from './types.js';\n\ninterface ReleaseProps {\n baseUrl?: string;\n siteIdOverride?: string;\n preEnteredComment?: string;\n preApproveMinor: boolean;\n preSelectedVersionType?: ReleaseVersionType;\n isPublished: boolean;\n latestVersion: SemVer;\n}\n\nexport const Release: FC<ReleaseProps> = ({\n baseUrl,\n siteIdOverride,\n preEnteredComment,\n preApproveMinor,\n preSelectedVersionType,\n isPublished,\n latestVersion,\n}) => {\n const {\n model: {\n config: { appId },\n },\n } = useProjectModel();\n\n const { createDraftVersion, releaseDraftVersion } = useARMClient();\n\n const [tag, setTag] = useState<string>();\n const [comment, setComment] = useState<string | undefined>();\n const [versionType, setVersionType] = useState<ReleaseVersionType>();\n const [versionIsRequired, setVersionIsRequired] = useState<boolean>();\n\n const createDraftAction = useAsyncCallback(async (_, tag: string) => {\n const { nextMajor, nextMinor } = await createDraftVersion(appId, tag);\n\n const appWasNeverReleased =\n latestVersion.major === 0 && latestVersion.minor === 0;\n\n return {\n nextMinor,\n nextMajor,\n appWasNeverReleased,\n };\n });\n\n const releaseDraftAction = useAsyncCallback(\n async (_, versionType: ReleaseVersionType, comment: string) => {\n return releaseDraftVersion(appId, {\n createNewMajor: versionType === ReleaseVersionType.MAJOR,\n notes: comment,\n latestMajor: latestVersion.major,\n });\n }\n );\n\n function onPreviewCreated({ tag }: { tag: string }) {\n setTag(tag);\n\n if (isString(preEnteredComment)) {\n void onReleaseCommentEntered({ tag, comment: preEnteredComment });\n }\n }\n\n async function onReleaseCommentEntered({\n tag,\n comment,\n }: {\n tag: string;\n comment: string;\n }) {\n setComment(comment);\n\n const result = await createDraftAction.execute(tag).catch(() => null);\n if (!result) {\n return;\n }\n\n const { appWasNeverReleased, nextMajor, nextMinor } = result;\n\n const versionsMap = {\n [ReleaseVersionType.MINOR]: nextMinor,\n [ReleaseVersionType.MAJOR]: nextMajor,\n };\n\n const chosenVersion = appWasNeverReleased\n ? ReleaseVersionType.MAJOR\n : preSelectedVersionType;\n\n if (chosenVersion && versionsMap[chosenVersion]) {\n onVersionChosen(chosenVersion, comment);\n } else {\n setVersionIsRequired(true);\n }\n }\n\n function onVersionChosen(versionType: ReleaseVersionType, comment: string) {\n setVersionType(versionType);\n\n if (\n (versionType === ReleaseVersionType.MINOR && preApproveMinor) ||\n versionType === ReleaseVersionType.MAJOR\n ) {\n onVersionConfirmed(versionType, comment);\n }\n }\n\n function onVersionConfirmed(\n versionType: ReleaseVersionType,\n comment: string\n ) {\n void releaseDraftAction.execute(versionType, comment);\n }\n\n return (\n <>\n <CreatePreview\n baseUrl={baseUrl}\n siteIdOverride={siteIdOverride}\n onCreated={(tag) => onPreviewCreated({ tag })}\n />\n {tag && <Warnings />}\n {tag && !isString(preEnteredComment) && (\n <ReleaseComment\n onEntered={(comment) => onReleaseCommentEntered({ tag, comment })}\n />\n )}\n {isString(comment) &&\n match(createDraftAction.status, {\n NotRequested: () => null,\n Error: () => null,\n Loading: () => (\n <Spinner\n text={<Trans i18nKey=\"release_command.creating_draft\" />}\n />\n ),\n Success: ({ result: { nextMajor, nextMinor } }) => (\n <>\n {versionIsRequired && (\n <ChooseVersion\n nextMinor={nextMinor}\n nextMajor={nextMajor}\n onChosen={(selection) => onVersionChosen(selection, comment)}\n />\n )}\n {versionType === ReleaseVersionType.MINOR && !preApproveMinor && (\n <ConfirmMinorVersion\n onConfirmed={() => onVersionConfirmed(versionType, comment)}\n />\n )}\n </>\n ),\n })}\n {match(releaseDraftAction.status, {\n NotRequested: () => null,\n Error: () => null,\n Loading: () => (\n <Spinner text={<Trans i18nKey=\"release_command.releasing\" />} />\n ),\n Success: ({ result: { releasedVersion } }) => (\n <Box flexDirection=\"column\" gap={1}>\n <Alert type=\"success\">\n <Text bold>\n <Trans\n i18nKey=\"release_command.released\"\n values={{ version: releasedVersion }}\n />\n </Text>\n </Alert>\n <NextSteps isPublished={isPublished} />\n </Box>\n ),\n })}\n </>\n );\n};\n\nfunction isString(value: unknown): value is string {\n return typeof value === 'string';\n}\n","import React from 'react';\nimport type { FC } from 'react';\nimport { Box } from '@wix/cli-ui-kit';\nimport { Trans } from '@wix/cli-i18n';\nimport { PreviewCommand } from '../../PreviewCommand/index.js';\n\ninterface CreatePreviewProps {\n baseUrl?: string;\n siteIdOverride?: string;\n onCreated: (tag: string) => void;\n}\n\nexport const CreatePreview: FC<CreatePreviewProps> = (props) => {\n const { baseUrl, siteIdOverride, onCreated } = props;\n\n return (\n <Box flexDirection=\"column\" gap={1}>\n <Trans i18nKey=\"release_command.check_preview_before_version_release\" />\n <Box flexDirection=\"column\">\n <PreviewCommand\n baseUrl={baseUrl}\n siteIdOverride={siteIdOverride}\n onPreviewCreated={onCreated}\n />\n </Box>\n </Box>\n );\n};\n","import React from 'react';\nimport { Alert, Box } from '@wix/cli-ui-kit';\nimport { Trans } from '@wix/cli-i18n';\nimport { useBackendComponents } from '../../../backend/useBackendComponents.js';\n\nexport const Warnings = () => {\n const { backendComponentsByType } = useBackendComponents();\n\n if (backendComponentsByType.Event.length === 0) {\n return null;\n }\n\n return (\n <Box flexDirection=\"column\" paddingBottom={1}>\n <Alert type=\"warning\">\n <Trans i18nKey=\"release_command.confirm_version_events_warning\" />\n </Alert>\n </Box>\n );\n};\n","import React, { useCallback } from 'react';\nimport type { FC } from 'react';\nimport { TextInput } from '@wix/cli-ui-kit';\nimport { useTranslation } from '@wix/cli-i18n';\nimport { useWixCliAppBi } from '../../../bi/index.js';\n\ninterface ReleaseCommentProps {\n onEntered: (comment: string) => void;\n}\n\nexport const ReleaseComment: FC<ReleaseCommentProps> = (props) => {\n const { onEntered } = props;\n\n const { t } = useTranslation();\n const bi = useWixCliAppBi();\n\n const validate = useCallback(\n (value: string) => {\n if (value && value.length > 250) {\n return t('release_command.release_comment_requirement');\n }\n return true;\n },\n [t]\n );\n\n return (\n <TextInput\n label={t('release_command.enter_release_comment')}\n onSubmit={(answer) => {\n bi.cliFlowStepAnswered({\n question: t('release_command.enter_release_comment'),\n questionKey: 'release_command.enter_release_comment',\n answer,\n });\n onEntered(answer);\n }}\n validate={validate}\n />\n );\n};\n","import React from 'react';\nimport type { FC } from 'react';\nimport type { SelectOption } from '@wix/cli-ui-kit';\nimport { Link, SelectInput, SelectOptionAvailability } from '@wix/cli-ui-kit';\nimport { Trans, useTranslation } from '@wix/cli-i18n';\nimport { useWixCliAppBi } from '../../../bi/index.js';\nimport { ReleaseVersionType } from '../types.js';\n\ninterface ChooseVersionProps {\n nextMinor?: string;\n nextMajor: string;\n onChosen: (props: ReleaseVersionType) => void;\n}\n\nexport const ChooseVersion: FC<ChooseVersionProps> = (props) => {\n const { nextMinor, nextMajor, onChosen } = props;\n\n const bi = useWixCliAppBi();\n const { t } = useTranslation();\n\n const options: Array<SelectOption<ReleaseVersionType>> = [\n {\n title: nextMinor\n ? t('release_command.version.minor', {\n version: nextMinor,\n })\n : t('release_command.version.minor_disabled'),\n description: t('release_command.version.minor.description'),\n value: ReleaseVersionType.MINOR,\n availability: nextMinor\n ? SelectOptionAvailability.Enabled()\n : SelectOptionAvailability.Disabled({\n reason: (\n <Trans\n i18nKey=\"release_command.version.minor.disabled\"\n components={[\n // https://dev.wix.com/docs/build-apps/manage-your-app/versioning/about-app-versioning\n <Link url=\"https://wix.to/ZR80Y7p\" />,\n ]}\n />\n ),\n }),\n },\n {\n title: t('release_command.version.major', {\n version: nextMajor,\n }),\n description: t('release_command.version.major.description'),\n value: ReleaseVersionType.MAJOR,\n },\n ];\n\n return (\n <SelectInput<ReleaseVersionType>\n label={t('release_command.version_type_question')}\n options={options}\n initialIndex={nextMinor ? 0 : 1}\n onSubmit={({ value }) => {\n bi.cliFlowStepAnswered({\n question: t('release_command.version_type_question'),\n questionKey: 'release_command.version_type_question',\n answer: value,\n });\n onChosen(value);\n }}\n />\n );\n};\n","import { VersionType } from '@wix/ambassador-ctp-gradual-rollout-v1-app-config/types';\n\nexport enum ReleaseVersionType {\n MINOR = VersionType.MINOR,\n MAJOR = VersionType.MAJOR,\n}\n","import React from 'react';\nimport type { FC } from 'react';\nimport { Box, ConfirmInput } from '@wix/cli-ui-kit';\nimport { useTranslation } from '@wix/cli-i18n';\nimport { useWixCliAppBi } from '../../../bi/index.js';\n\ninterface ConfirmMinorVersionProps {\n onConfirmed: () => void;\n}\n\nexport const ConfirmMinorVersion: FC<ConfirmMinorVersionProps> = (props) => {\n const { onConfirmed } = props;\n\n const bi = useWixCliAppBi();\n const { t } = useTranslation();\n\n return (\n <Box flexDirection=\"column\" paddingBottom={1}>\n <ConfirmInput\n label={t('release_command.confirm_version_creation')}\n initialValue={true}\n onSubmit={(confirm) => {\n bi.cliFlowStepAnswered({\n question: t('release_command.confirm_version_creation'),\n questionKey: 'release_command.confirm_version_creation',\n answer: String(confirm),\n });\n\n if (confirm) {\n onConfirmed();\n }\n }}\n />\n </Box>\n );\n};\n","import React from 'react';\nimport type { FC } from 'react';\nimport { Box, Text, Link, Learn, Cart, Statistics } from '@wix/cli-ui-kit';\nimport { Trans } from '@wix/cli-i18n';\nimport { useProjectModel } from '../../../model.js';\n\ninterface NextStepsProps {\n isPublished: boolean;\n}\n\nexport const NextSteps: FC<NextStepsProps> = (props) => {\n const { isPublished } = props;\n\n const {\n model: {\n config: { appId },\n },\n } = useProjectModel();\n\n const homeUrl = `https://dev.wix.com/apps/${appId}/home?referralInfo=wix-cli`;\n const statisticsUrl = `https://dev.wix.com/apps/${appId}/statistics?referralInfo=wix-cli`;\n\n return (\n <Box flexDirection=\"column\" gap={1}>\n <Text bold>\n <Trans i18nKey=\"release_command.next_steps\" />\n </Text>\n {isPublished && (\n <Trans\n i18nKey=\"release_command.open_stats\"\n components={[<Statistics />, <Link url={statisticsUrl} />]}\n />\n )}\n {isPublished && (\n <Trans\n i18nKey={'release_command.distribute_other'}\n components={[<Learn />, <Link url={homeUrl} />]}\n />\n )}\n {!isPublished && (\n <Trans\n i18nKey={'release_command.distribute'}\n components={[<Cart />, <Link url={homeUrl} />]}\n />\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AAC;AAEL,aAAO,uBAAM,QAAQ;AAAA,IACnB,OAAO,MAAM;AAAA,IACb,SAAS,MACP,8BAAAC,QAAA,cAAC,WAAQ,MAAM,8BAAAA,QAAA,cAAC,SAAM,SAAQ,uCAAsC,GAAI;AAAA,IAE1E,SAAS,CAAC,EAAE,OAAO,MAAM,8BAAAA,QAAA,cAAC,WAAS,GAAG,OAAQ,GAAG,QAAQ;AAAA,EAC3D,CAAC;AACH;","names":["import_react","import_variant","import_react","React","import_react","React","import_react","React","import_react","ReleaseVersionType","React","import_react","React","import_react","React","tag","versionType","comment","React","parse","React"]}
|
/package/build/{CreateVersionCommand-3LCMV6MO.js.map → CreateVersionCommand-3APRL3VU.js.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|