@wix/cli-app 1.1.61 → 1.1.63
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-27X5XRUT.js → CreateVersionCommand-HSZ5KOXI.js} +15 -15
- package/build/{DevCommand-6HTMGZ2M.js → DevCommand-U5VNLUWE.js} +442 -299
- package/build/DevCommand-U5VNLUWE.js.map +1 -0
- package/build/{GenerateCommand-7IAUS6BH.js → GenerateCommand-EAOS2X3X.js} +11 -10
- package/build/{GenerateCommand-7IAUS6BH.js.map → GenerateCommand-EAOS2X3X.js.map} +1 -1
- package/build/{LogsCommand-WPUUN3JU.js → LogsCommand-OW2ZNER5.js} +5 -5
- package/build/PreviewCommand-MMMYRI4Z.js +23 -0
- package/build/{ReleaseCommand-KTVVW67B.js → ReleaseCommand-L4WZJXHC.js} +15 -15
- package/build/{ServeCommand-LXJK73IU.js → ServeCommand-RR7E4CTH.js} +14 -14
- package/build/{build-KOJIDD4M.js → build-KQLNYCVG.js} +7 -7
- package/build/{chunk-ELYFHAX6.js → chunk-2DRVDGHR.js} +1 -4
- package/build/chunk-2DRVDGHR.js.map +1 -0
- package/build/{chunk-S7UPYDTK.js → chunk-3I7X6TPV.js} +3 -3
- package/build/{chunk-Z7MEHVBF.js → chunk-7I5LSGDI.js} +4 -4
- package/build/{chunk-SJY44CC7.js → chunk-7XQDPLBO.js} +10335 -1852
- package/build/chunk-7XQDPLBO.js.map +1 -0
- package/build/{chunk-XCKLCHGL.js → chunk-CQUQ6WJV.js} +10 -6
- package/build/chunk-CQUQ6WJV.js.map +1 -0
- package/build/{chunk-KJF6LWGQ.js → chunk-DIA3AFPZ.js} +2 -2
- package/build/{chunk-63EMUDZG.js → chunk-EYB7PRAB.js} +3 -3
- package/build/{chunk-LOLULZLU.js → chunk-FXVMZQC7.js} +3 -3
- package/build/{chunk-EL6CIFIN.js → chunk-HAPDEIJZ.js} +3 -3
- package/build/{chunk-XBBIROHO.js → chunk-IB2EYESP.js} +3 -3
- package/build/{chunk-2GCKBITG.js → chunk-NWRBK74T.js} +8 -8
- package/build/{chunk-OHF42SKC.js → chunk-OHPZ74IV.js} +5 -5
- package/build/{chunk-KJRYBTZB.js → chunk-OV6Y7VX4.js} +5 -5
- package/build/{chunk-KJRYBTZB.js.map → chunk-OV6Y7VX4.js.map} +1 -1
- package/build/{chunk-MEDHLZDL.js → chunk-SFPBI2MM.js} +3 -3
- package/build/{chunk-A3UPTTKJ.js → chunk-SK3ICCEA.js} +3 -3
- package/build/{chunk-MKPZBVQD.js → chunk-SXIV63HN.js} +4675 -2540
- package/build/chunk-SXIV63HN.js.map +1 -0
- package/build/{chunk-IL6O6OIL.js → chunk-VSQ4XHEB.js} +2 -2
- package/build/{chunk-PBUNWOQL.js → chunk-XYNJZDSJ.js} +104 -160
- package/build/chunk-XYNJZDSJ.js.map +1 -0
- package/build/{chunk-QZOQAFHK.js → chunk-ZR3N5INU.js} +8 -8
- package/build/chunk-ZR3N5INU.js.map +1 -0
- package/build/index.js +48 -33
- package/build/index.js.map +1 -1
- package/build/platform-sdk/{chunk-NAPHVUFM.js → chunk-DGX4CFXG.js} +2 -2
- package/build/platform-sdk/chunk-DGX4CFXG.js.map +1 -0
- package/build/platform-sdk/dashboard.js +1 -1
- package/build/platform-sdk/dashboard.js.map +1 -1
- package/build/platform-sdk/editor.js +5 -5
- package/build/platform-sdk/editor.js.map +1 -1
- package/build/platform-sdk/web-methods.js +1 -1
- package/build/platform-sdk/web-methods.js.map +1 -1
- package/build/{preview-YEREVN42.js → preview-4UF7QRIS.js} +13 -13
- package/build/{render-command-H5DHMFOD.js → render-command-5DTSCPVY.js} +6 -6
- package/package.json +4 -4
- package/schemas/site-plugin.json +1 -1
- package/templates/web-method/dependencies.json +5 -0
- package/templates/web-method/files/placeholder.ts.ejs +9 -2
- package/build/DevCommand-6HTMGZ2M.js.map +0 -1
- package/build/PreviewCommand-CU46IAJE.js +0 -23
- package/build/chunk-ELYFHAX6.js.map +0 -1
- package/build/chunk-MKPZBVQD.js.map +0 -1
- package/build/chunk-PBUNWOQL.js.map +0 -1
- package/build/chunk-QZOQAFHK.js.map +0 -1
- package/build/chunk-SJY44CC7.js.map +0 -1
- package/build/chunk-XCKLCHGL.js.map +0 -1
- package/build/platform-sdk/chunk-FWUYJ3UR.js +0 -2
- package/build/platform-sdk/chunk-FWUYJ3UR.js.map +0 -1
- package/build/platform-sdk/chunk-NAPHVUFM.js.map +0 -1
- /package/build/{CreateVersionCommand-27X5XRUT.js.map → CreateVersionCommand-HSZ5KOXI.js.map} +0 -0
- /package/build/{LogsCommand-WPUUN3JU.js.map → LogsCommand-OW2ZNER5.js.map} +0 -0
- /package/build/{PreviewCommand-CU46IAJE.js.map → PreviewCommand-MMMYRI4Z.js.map} +0 -0
- /package/build/{ReleaseCommand-KTVVW67B.js.map → ReleaseCommand-L4WZJXHC.js.map} +0 -0
- /package/build/{ServeCommand-LXJK73IU.js.map → ServeCommand-RR7E4CTH.js.map} +0 -0
- /package/build/{build-KOJIDD4M.js.map → build-KQLNYCVG.js.map} +0 -0
- /package/build/{chunk-S7UPYDTK.js.map → chunk-3I7X6TPV.js.map} +0 -0
- /package/build/{chunk-Z7MEHVBF.js.map → chunk-7I5LSGDI.js.map} +0 -0
- /package/build/{chunk-KJF6LWGQ.js.map → chunk-DIA3AFPZ.js.map} +0 -0
- /package/build/{chunk-63EMUDZG.js.map → chunk-EYB7PRAB.js.map} +0 -0
- /package/build/{chunk-LOLULZLU.js.map → chunk-FXVMZQC7.js.map} +0 -0
- /package/build/{chunk-EL6CIFIN.js.map → chunk-HAPDEIJZ.js.map} +0 -0
- /package/build/{chunk-XBBIROHO.js.map → chunk-IB2EYESP.js.map} +0 -0
- /package/build/{chunk-2GCKBITG.js.map → chunk-NWRBK74T.js.map} +0 -0
- /package/build/{chunk-OHF42SKC.js.map → chunk-OHPZ74IV.js.map} +0 -0
- /package/build/{chunk-MEDHLZDL.js.map → chunk-SFPBI2MM.js.map} +0 -0
- /package/build/{chunk-A3UPTTKJ.js.map → chunk-SK3ICCEA.js.map} +0 -0
- /package/build/{chunk-IL6O6OIL.js.map → chunk-VSQ4XHEB.js.map} +0 -0
- /package/build/{preview-YEREVN42.js.map → preview-4UF7QRIS.js.map} +0 -0
- /package/build/{render-command-H5DHMFOD.js.map → render-command-5DTSCPVY.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/@wix/sdk-runtime/build/host-modules.js"],"sourcesContent":["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"],"mappings":"wCACO,SAASA,EAAiBC,EAAe,CAC5C,OAAOC,EAA0B,CAC7B,OAAQ,OACR,OAASC,GAAS,OAAO,QAAQF,CAAa,EAAE,OAAO,CAACG,EAAK,CAACC,EAAKC,CAAE,KAAO,CACxE,GAAGF,EACH,CAACC,CAAG,EAAGC,EAAGH,CAAI,CAClB,GAAI,CAAC,CAAC,CACV,EAAG,OAAO,KAAKF,CAAa,CAAC,CACjC","names":["createHostModule","hostModuleAPI","contextualizeHostModuleV2","host","acc","key","fn"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/@wix/sdk-runtime/build/context.js","../../../node_modules/@wix/sdk-runtime/build/context-v2.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"],"mappings":"AAAA,OAAS,cAAAA,MAAkB,mBACpB,SAASC,GAAiB,CAC7B,IAAMC,EAAa,OAAO,YAAgB,KAAe,YAAY,eAC/D,YAAY,eACZ,OAAO,WAAW,gBAAoB,KACpC,WAAW,gBAAgB,eACzB,WAAW,gBAAgB,eAC3B,OACV,GAAIA,EACA,MAAO,CAEH,eAAeC,EAASC,EAAU,CAC9B,OAAOC,EAAkB,IAAMH,EAAWC,EAASC,CAAQ,CAAC,CAChE,EACA,eAAgB,CACZ,MAAM,IAAI,MAAM,gDAAgD,CACpE,EACA,SAAU,CACN,MAAM,IAAI,MAAM,0CAA0C,CAC9D,CACJ,EAEJ,IAA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EAAc,OAClCC,EAAW,eAAiBD,EAAc,eACtC,OAAO,YAAgB,MACvB,YAAY,OAASE,EAAe,OACpC,YAAY,eAAiBA,EAAe,eAEpD,CACJ,CCpIO,SAASC,EAA0BC,EAAYC,EAAO,CACzD,MAAO,CACH,GAAGD,EACH,GAAG,OAAO,YAAYC,EAAM,IAAKC,GAAS,CACtCA,EACA,IAAIC,IAAS,CACT,IAAMC,EAAUC,EAAe,EAC/B,GAAI,CAACD,EACD,MAAM,IAAI,MAAM,gGAAgG,EAEpH,OAAOA,EACF,eAAeJ,CAAU,EAAEE,CAAI,EAAE,MAAM,OAAWC,CAAI,CAC/D,CACJ,CAAC,CAAC,CACN,CACJ,CACO,SAASG,EAA0BC,EAAYC,EAAU,CAC5D,MAAQ,IAAIL,IAAS,CACjB,IAAMC,EAAUC,EAAe,EAC/B,OAAKD,EAIGA,EACH,eAAeG,EAAYC,CAAQ,EAEnC,MAAM,OAAWL,CAAI,EALfI,EAAW,MAAM,OAAWJ,CAAI,CAM/C,CACJ","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","contextualizeRESTModuleV2","restModule","elevated"]}
|
/package/build/{CreateVersionCommand-27X5XRUT.js.map → CreateVersionCommand-HSZ5KOXI.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
|