@wix/cli-app 1.1.59 → 1.1.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/build/{CreateVersionCommand-6HJGN4WS.js → CreateVersionCommand-Z6F5IKH5.js} +14 -14
  2. package/build/{DevCommand-U7PV4HW6.js → DevCommand-YFEZ4QV5.js} +12 -12
  3. package/build/{GenerateCommand-M3T6OD4B.js → GenerateCommand-KCV4YDNN.js} +15 -9
  4. package/build/{GenerateCommand-M3T6OD4B.js.map → GenerateCommand-KCV4YDNN.js.map} +1 -1
  5. package/build/{LogsCommand-ECPZQ3LE.js → LogsCommand-VBMGVYNU.js} +4 -4
  6. package/build/PreviewCommand-3OMHWDW6.js +23 -0
  7. package/build/{ReleaseCommand-KLZWNOVY.js → ReleaseCommand-5F3FPBXT.js} +14 -14
  8. package/build/{ServeCommand-I65XXTLM.js → ServeCommand-G4FF4PT3.js} +13 -13
  9. package/build/{build-HZ5LVFAS.js → build-XZI3USNB.js} +7 -7
  10. package/build/{chunk-BNROT2BN.js → chunk-2PTCXTKF.js} +5 -5
  11. package/build/{chunk-DXNFLVQP.js → chunk-36W5H7IG.js} +9 -4
  12. package/build/chunk-36W5H7IG.js.map +1 -0
  13. package/build/{chunk-IDWDZWLM.js → chunk-4VTDNX5T.js} +2 -2
  14. package/build/{chunk-QW4WBWJK.js → chunk-5QZS3HT7.js} +3 -3
  15. package/build/{chunk-FHMCCDCY.js → chunk-7CGRTCDC.js} +3 -3
  16. package/build/{chunk-OCC6MO6R.js → chunk-CNZ3Q5PF.js} +5 -5
  17. package/build/{chunk-FMM24YL4.js → chunk-DGTJGIY2.js} +233 -74
  18. package/build/chunk-DGTJGIY2.js.map +1 -0
  19. package/build/{chunk-ZXHKA32C.js → chunk-FTC5AK3Y.js} +7 -7
  20. package/build/{chunk-PAWIUC26.js → chunk-HUWYF2ET.js} +8 -8
  21. package/build/{chunk-U72IPCQR.js → chunk-IG6IV6VM.js} +3 -3
  22. package/build/{chunk-4JDHJDA5.js → chunk-O42QDBJU.js} +2 -2
  23. package/build/{chunk-EZLVJJON.js → chunk-PKSGXFYA.js} +3 -3
  24. package/build/{chunk-ZJYRE4BT.js → chunk-USAOCISL.js} +3 -3
  25. package/build/{chunk-W4HI7DI3.js → chunk-VXE3IWKR.js} +2 -2
  26. package/build/{chunk-ACN6EZGH.js → chunk-VZJZSWRE.js} +3 -3
  27. package/build/{chunk-AQKGIDJO.js → chunk-WRPV7SLY.js} +242 -172
  28. package/build/chunk-WRPV7SLY.js.map +1 -0
  29. package/build/{chunk-UQBZVJDQ.js → chunk-WRWNJYKZ.js} +3 -3
  30. package/build/cloudflare-runtime/entry.js +8 -1
  31. package/build/index.js +19 -19
  32. package/build/platform-sdk/chunk-42XIZ4MH.js +2 -0
  33. package/build/platform-sdk/chunk-42XIZ4MH.js.map +1 -0
  34. package/build/platform-sdk/chunk-EERHWVVD.js +2 -0
  35. package/build/platform-sdk/chunk-EERHWVVD.js.map +1 -0
  36. package/build/platform-sdk/{chunk-LO6MZPZE.js → chunk-QV4VBCJB.js} +2 -2
  37. package/build/platform-sdk/dashboard.js +1 -1
  38. package/build/platform-sdk/dashboard.js.map +1 -1
  39. package/build/platform-sdk/editor.js +2 -2
  40. package/build/platform-sdk/editor.js.map +1 -1
  41. package/build/platform-sdk/sdk-context.js +2 -0
  42. package/build/platform-sdk/sdk-context.js.map +1 -0
  43. package/build/platform-sdk/site.js +1 -1
  44. package/build/platform-sdk/site.js.map +1 -1
  45. package/build/{preview-FI6WYZUP.js → preview-VAHHFTRZ.js} +12 -12
  46. package/build/{render-command-UKYXN7C7.js → render-command-3AYSQXHN.js} +5 -5
  47. package/package.json +3 -3
  48. package/schemas/site-plugin.json +1 -1
  49. package/schemas/wix-config.json +1 -1
  50. package/build/PreviewCommand-ZQ3OUOKW.js +0 -23
  51. package/build/chunk-AQKGIDJO.js.map +0 -1
  52. package/build/chunk-DXNFLVQP.js.map +0 -1
  53. package/build/chunk-FMM24YL4.js.map +0 -1
  54. package/build/platform-sdk/chunk-EVF6HSFE.js +0 -2
  55. package/build/platform-sdk/chunk-EVF6HSFE.js.map +0 -1
  56. /package/build/{CreateVersionCommand-6HJGN4WS.js.map → CreateVersionCommand-Z6F5IKH5.js.map} +0 -0
  57. /package/build/{DevCommand-U7PV4HW6.js.map → DevCommand-YFEZ4QV5.js.map} +0 -0
  58. /package/build/{LogsCommand-ECPZQ3LE.js.map → LogsCommand-VBMGVYNU.js.map} +0 -0
  59. /package/build/{PreviewCommand-ZQ3OUOKW.js.map → PreviewCommand-3OMHWDW6.js.map} +0 -0
  60. /package/build/{ReleaseCommand-KLZWNOVY.js.map → ReleaseCommand-5F3FPBXT.js.map} +0 -0
  61. /package/build/{ServeCommand-I65XXTLM.js.map → ServeCommand-G4FF4PT3.js.map} +0 -0
  62. /package/build/{build-HZ5LVFAS.js.map → build-XZI3USNB.js.map} +0 -0
  63. /package/build/{chunk-BNROT2BN.js.map → chunk-2PTCXTKF.js.map} +0 -0
  64. /package/build/{chunk-IDWDZWLM.js.map → chunk-4VTDNX5T.js.map} +0 -0
  65. /package/build/{chunk-QW4WBWJK.js.map → chunk-5QZS3HT7.js.map} +0 -0
  66. /package/build/{chunk-FHMCCDCY.js.map → chunk-7CGRTCDC.js.map} +0 -0
  67. /package/build/{chunk-OCC6MO6R.js.map → chunk-CNZ3Q5PF.js.map} +0 -0
  68. /package/build/{chunk-ZXHKA32C.js.map → chunk-FTC5AK3Y.js.map} +0 -0
  69. /package/build/{chunk-PAWIUC26.js.map → chunk-HUWYF2ET.js.map} +0 -0
  70. /package/build/{chunk-U72IPCQR.js.map → chunk-IG6IV6VM.js.map} +0 -0
  71. /package/build/{chunk-4JDHJDA5.js.map → chunk-O42QDBJU.js.map} +0 -0
  72. /package/build/{chunk-EZLVJJON.js.map → chunk-PKSGXFYA.js.map} +0 -0
  73. /package/build/{chunk-ZJYRE4BT.js.map → chunk-USAOCISL.js.map} +0 -0
  74. /package/build/{chunk-W4HI7DI3.js.map → chunk-VXE3IWKR.js.map} +0 -0
  75. /package/build/{chunk-ACN6EZGH.js.map → chunk-VZJZSWRE.js.map} +0 -0
  76. /package/build/{chunk-UQBZVJDQ.js.map → chunk-WRWNJYKZ.js.map} +0 -0
  77. /package/build/platform-sdk/{chunk-LO6MZPZE.js.map → chunk-QV4VBCJB.js.map} +0 -0
  78. /package/build/{preview-FI6WYZUP.js.map → preview-VAHHFTRZ.js.map} +0 -0
  79. /package/build/{render-command-UKYXN7C7.js.map → render-command-3AYSQXHN.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{b as n}from"./chunk-42XIZ4MH.js";import"./chunk-7EYXEF6M.js";import"./chunk-SBZEOPXX.js";function o(e,t=!1){return n(e,t)}var i=["wix.com","editorx.com"];var _=new RegExp(`\\.(${i.join("|")})$`),s=["42.wixprod.net","uw2-edt-1.wixprod.net"],a="dev.wix-code.com";var u=new RegExp(`\\.(${s.join("|")})$`),p=new RegExp(`.*\\.${a}$`);import{wixContext as f}from"@wix/sdk-context";function r(e,t){t==="global"?globalThis.__wix_context__!=null?globalThis.__wix_context__.client=e:globalThis.__wix_context__={client:e}:f.client=e}var b=o(e=>(t,c)=>e.fetchWithAuth(t,c));export{r as enableContext};
2
+ //# sourceMappingURL=sdk-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../node_modules/@wix/sdk-runtime/build/rest-modules.js","../../../node_modules/@wix/sdk/build/enable-context.js","../../../node_modules/@wix/sdk/build/context.js"],"sourcesContent":["import { contextualizeRESTModuleV2 } from './context-v2.js';\nexport function createRESTModule(descriptor, elevated = false) {\n return contextualizeRESTModuleV2(descriptor, elevated);\n}\nexport function toURLSearchParams(params, isComplexRequest) {\n const flatten = flattenParams(params);\n const searchParams = Object.entries(flatten).reduce((urlSearchParams, [key, value]) => {\n // inorder to make `foo: [1,2]` turn into `foo=1&foo=2` and not `foo[]=1&foo[]=2`\n const keyParams = Array.isArray(value) ? value : [value];\n keyParams.forEach((param) => {\n if (param === undefined || param === null) {\n return;\n }\n urlSearchParams.append(key, param);\n });\n return urlSearchParams;\n }, new URLSearchParams());\n if (isComplexRequest) {\n searchParams.append('.r', base64Encode(JSON.stringify(params)));\n }\n return searchParams;\n}\nexport function resolveUrl(opts) {\n const domain = resolveDomain(opts.host);\n const mappings = resolveMappingsByDomain(domain, opts.domainToMappings);\n const path = injectDataIntoProtoPath(opts.protoPath, opts.data || {});\n return resolvePathFromMappings(path, mappings);\n}\nfunction flattenParams(data, path = '') {\n const params = {};\n Object.entries(data).forEach(([key, value]) => {\n const isObject = value !== null && typeof value === 'object' && !Array.isArray(value);\n const fieldPath = resolvePath(path, key);\n if (isObject) {\n const serializedObject = flattenParams(value, fieldPath);\n Object.assign(params, serializedObject);\n }\n else {\n params[fieldPath] = value;\n }\n });\n return params;\n}\nfunction resolvePath(path, key) {\n return `${path}${path ? '.' : ''}${key}`;\n}\nconst base64Encode = (value) => {\n const base64 = typeof btoa !== 'undefined'\n ? btoa(value)\n : Buffer.from(value, 'utf-8').toString('base64');\n return base64.replace(/=/g, '').replace(/\\+/g, '-').replace(/\\//g, '_');\n};\nconst DOMAINS = ['wix.com', 'editorx.com'];\nconst USER_DOMAIN = '_';\nconst REGEX_CAPTURE_DOMAINS = new RegExp(`\\\\.(${DOMAINS.join('|')})$`);\nconst WIX_API_DOMAINS = ['42.wixprod.net', 'uw2-edt-1.wixprod.net'];\nconst DEV_WIX_CODE_DOMAIN = 'dev.wix-code.com';\nconst REGEX_CAPTURE_PROTO_FIELD = /{(.*)}/;\nconst REGEX_CAPTURE_API_DOMAINS = new RegExp(`\\\\.(${WIX_API_DOMAINS.join('|')})$`);\nconst REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN = new RegExp(`.*\\\\.${DEV_WIX_CODE_DOMAIN}$`);\nfunction resolveDomain(host) {\n const resolvedHost = fixHostExceptions(host);\n return resolvedHost\n .replace(REGEX_CAPTURE_DOMAINS, '._base_domain_')\n .replace(REGEX_CAPTURE_API_DOMAINS, '._api_base_domain_')\n .replace(REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN, '*.dev.wix-code.com');\n}\n// hosts which standard string replacing doesn't apply to them, will be fixed here.\nfunction fixHostExceptions(host) {\n // https://system-kb.wixanswers.com/kb/en/article/editorx-domains-matching-to-wixcom\n return host.replace('create.editorx.com', 'editor.editorx.com');\n}\nfunction resolveMappingsByDomain(domain, domainToMappings) {\n const mappings = domainToMappings[domain] || domainToMappings[USER_DOMAIN];\n if (!mappings) {\n if (isBaseDomain(domain)) {\n // fallback <lang>.wix.com sub domains to www.wix.com\n // since all of the languages subdomain are not mapped automatically in FP and we want to support those kind of calls\n // for example: fr.wix.com\n return domainToMappings[wwwBaseDomain];\n }\n }\n return mappings;\n}\nfunction isBaseDomain(domain) {\n return !!domain.match(/\\._base_domain_$/);\n}\nconst wwwBaseDomain = 'www._base_domain_';\nfunction injectDataIntoProtoPath(protoPath, data) {\n return protoPath\n .split('/')\n .map((path) => maybeProtoPathToData(path, data))\n .join('/');\n}\nfunction maybeProtoPathToData(protoPath, data) {\n const protoRegExpMatch = protoPath.match(REGEX_CAPTURE_PROTO_FIELD) || [];\n const field = protoRegExpMatch[1];\n if (field) {\n const suffix = protoPath.replace(protoRegExpMatch[0], '');\n return findByPath(data, field, protoPath, suffix);\n }\n return protoPath;\n}\nfunction findByPath(obj, path, defaultValue, suffix) {\n let result = obj;\n for (const field of path.split('.')) {\n if (!result) {\n return defaultValue;\n }\n result = result[field];\n }\n return `${result}${suffix}`;\n}\nfunction resolvePathFromMappings(protoPath, mappings) {\n const mapping = mappings?.find((m) => protoPath.startsWith(m.destPath));\n if (!mapping) {\n // todo: should we return the path? if no - what should we do in case of testings?\n return protoPath;\n }\n return mapping.srcPath + protoPath.slice(mapping.destPath.length);\n}\n","import { wixContext } from '@wix/sdk-context';\nexport function enableContext(wixClient, contextType) {\n if (contextType === 'global') {\n if (globalThis.__wix_context__ != null) {\n globalThis.__wix_context__.client = wixClient;\n }\n else {\n globalThis.__wix_context__ = { client: wixClient };\n }\n }\n else {\n wixContext.client = wixClient;\n }\n}\n","import { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nexport function elevate(restModule) {\n return createRESTModule(restModule, true);\n}\nexport const fetchWithAuth = createRESTModule((restModuleOpts) => {\n return ((url, options) => restModuleOpts.fetchWithAuth(url, options));\n});\nexport { graphql } from './graphql.js';\nexport { setGlobalWixContext } from './wix-context.js';\nexport { enableContext } from './enable-context.js';\n"],"mappings":"gGACO,SAASA,EAAiBC,EAAYC,EAAW,GAAO,CAC3D,OAAOC,EAA0BF,EAAYC,CAAQ,CACzD,CAiDA,IAAME,EAAU,CAAC,UAAW,aAAa,EAEzC,IAAMC,EAAwB,IAAI,OAAO,OAAOC,EAAQ,KAAK,GAAG,CAAC,IAAI,EAC/DC,EAAkB,CAAC,iBAAkB,uBAAuB,EAC5DC,EAAsB,mBAE5B,IAAMC,EAA4B,IAAI,OAAO,OAAOC,EAAgB,KAAK,GAAG,CAAC,IAAI,EAC3EC,EAAoC,IAAI,OAAO,QAAQC,CAAmB,GAAG,EC3DnF,OAAS,cAAAC,MAAkB,mBACpB,SAASC,EAAcC,EAAWC,EAAa,CAC9CA,IAAgB,SACZ,WAAW,iBAAmB,KAC9B,WAAW,gBAAgB,OAASD,EAGpC,WAAW,gBAAkB,CAAE,OAAQA,CAAU,EAIrDF,EAAW,OAASE,CAE5B,CCTO,IAAME,EAAgBC,EAAkBC,GACnC,CAACC,EAAKC,IAAYF,EAAe,cAAcC,EAAKC,CAAO,CACtE","names":["createRESTModule","descriptor","elevated","contextualizeRESTModuleV2","DOMAINS","REGEX_CAPTURE_DOMAINS","DOMAINS","WIX_API_DOMAINS","DEV_WIX_CODE_DOMAIN","REGEX_CAPTURE_API_DOMAINS","WIX_API_DOMAINS","REGEX_CAPTURE_DEV_WIX_CODE_DOMAIN","DEV_WIX_CODE_DOMAIN","wixContext","enableContext","wixClient","contextType","fetchWithAuth","createRESTModule","restModuleOpts","url","options"]}
@@ -1,2 +1,2 @@
1
- import{b as a}from"./chunk-EVF6HSFE.js";import"./chunk-7EYXEF6M.js";import"./chunk-SBZEOPXX.js";function c(){let t=null,n=null;return{promise:new Promise((o,r)=>{t=o,n=r}),resolve:t,reject:n}}var d=t=>{let{createHost:n}=t;return{__type:"host",create:e=>({}),host:e=>{var o,r;let i=n(e),s=p();return{...i,apiBaseUrl:s,essentials:{language:typeof window<"u"?(o=window.commonConfig)==null?void 0:o.language:void 0,locale:typeof window<"u"?(r=window.commonConfig)==null?void 0:r.locale:void 0}}},auth:e=>{let o=typeof window<"u"?window.wixEmbedsAPI:void 0;e||(e=o==null||o.getAccessTokenFunction==null?void 0:o.getAccessTokenFunction());let r=!1,{resolve:i,promise:s}=c();return{getAuthHeaders:async()=>{if(!e&&r&&(e=await s),!e)throw new Error("Failed to resolve auth token");return{headers:{Authorization:await e()}}},getAccessTokenInjector:()=>(r=!0,m=>{i(m)})}}}};function p(){let t=typeof window<"u"?window.wixEmbedsAPI:void 0,n=t==null||t.getExternalBaseUrl==null?void 0:t.getExternalBaseUrl();if(!n)return;let e=new URL(n);return e!=null&&e.pathname&&e.pathname!=="/"?""+e.hostname+e.pathname:e.hostname}var u=t=>{let{clientSdk:n,applicationId:e}=t;return{invoke:async o=>{let{namespace:r,method:i,args:s}=o;if(!n)throw new Error("Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction");return n.invoke({namespace:r,method:i,args:s,applicationId:e,accessToken:"accessToken"})},getAccessToken:()=>{throw new Error("Not implemented")},observeState:()=>({disconnect:()=>{}})}};var w=function(t){let n=typeof $wixContext<"u"&&$wixContext.clientSdk||t?.clientSdk||window.clientSdk,{applicationId:e}=t||{};if(!e)throw new Error('"createHost" was called without a required field "applicationId"');return{channel:u({clientSdk:n,applicationId:e}),close:()=>{}}};var l=d({createHost:w});var S=t=>{let n=l.host({applicationId:t}),e=l.auth(),o=e.getAccessTokenInjector();return a({auth:e,host:n}).enableContext("module"),{injectGetAccessToken:o}};export{S as enableClient};
1
+ import{a}from"./chunk-EERHWVVD.js";import"./chunk-42XIZ4MH.js";import"./chunk-7EYXEF6M.js";import"./chunk-SBZEOPXX.js";function c(){let t=null,n=null;return{promise:new Promise((o,r)=>{t=o,n=r}),resolve:t,reject:n}}var d=t=>{let{createHost:n}=t;return{__type:"host",create:e=>({}),host:e=>{var o,r;let i=n(e),s=p();return{...i,apiBaseUrl:s,essentials:{language:typeof window<"u"?(o=window.commonConfig)==null?void 0:o.language:void 0,locale:typeof window<"u"?(r=window.commonConfig)==null?void 0:r.locale:void 0}}},auth:e=>{let o=typeof window<"u"?window.wixEmbedsAPI:void 0;e||(e=o==null||o.getAccessTokenFunction==null?void 0:o.getAccessTokenFunction());let r=!1,{resolve:i,promise:s}=c();return{getAuthHeaders:async()=>{if(!e&&r&&(e=await s),!e)throw new Error("Failed to resolve auth token");return{headers:{Authorization:await e()}}},getAccessTokenInjector:()=>(r=!0,m=>{i(m)})}}}};function p(){let t=typeof window<"u"?window.wixEmbedsAPI:void 0,n=t==null||t.getExternalBaseUrl==null?void 0:t.getExternalBaseUrl();if(!n)return;let e=new URL(n);return e!=null&&e.pathname&&e.pathname!=="/"?""+e.hostname+e.pathname:e.hostname}var u=t=>{let{clientSdk:n,applicationId:e}=t;return{invoke:async o=>{let{namespace:r,method:i,args:s}=o;if(!n)throw new Error("Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction");return n.invoke({namespace:r,method:i,args:s,applicationId:e,accessToken:"accessToken"})},getAccessToken:()=>{throw new Error("Not implemented")},observeState:()=>({disconnect:()=>{}})}};var w=function(t){let n=typeof $wixContext<"u"&&$wixContext.clientSdk||t?.clientSdk||window.clientSdk,{applicationId:e}=t||{};if(!e)throw new Error('"createHost" was called without a required field "applicationId"');return{channel:u({clientSdk:n,applicationId:e}),close:()=>{}}};var l=d({createHost:w});var S=t=>{let n=l.host({applicationId:t}),e=l.auth(),o=e.getAccessTokenInjector();return a({auth:e,host:n}).enableContext("module"),{injectGetAccessToken:o}};export{S as enableClient};
2
2
  //# sourceMappingURL=site.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../node_modules/@wix/site/src/utils.ts","../../../node_modules/@wix/site/src/websiteHostModule.ts","../../../node_modules/@wix/site/src/channel.ts","../../../node_modules/@wix/site/src/hostPlatform.ts","../../../node_modules/@wix/site/src/index.ts","../src/site.ts"],"sourcesContent":["export function withResolvers<T>(): {\n resolve: (value: T | PromiseLike<T>) => void;\n reject: (reason?: any) => void;\n promise: Promise<T>;\n} {\n let resolve = null as any;\n let reject = null as any;\n\n const promise = new Promise<T>((resolveFn, rejectFn) => {\n resolve = resolveFn;\n reject = rejectFn;\n });\n\n return { promise, resolve, reject };\n}\n","import type { HostModule } from '@wix/sdk-types';\nimport { withResolvers } from './utils';\nimport {\n AccessTokenFn,\n CreateAuthStrategy,\n CreateWebsiteHost,\n Host,\n SDK,\n SDKOptions,\n WixEmbedsAPI,\n} from './types';\n\ndeclare global {\n interface Window {\n wixEmbedsAPI?: WixEmbedsAPI;\n commonConfig?: {\n language?: string;\n locale?: string;\n };\n }\n}\n\nexport const createWebsiteModule = ({\n createHost,\n}: {\n createHost: CreateWebsiteHost;\n}): HostModule<SDK, Host> & {\n host: CreateWebsiteHost;\n auth: CreateAuthStrategy;\n} => {\n return {\n __type: 'host',\n create: (_host) => {\n // Here we can implement module methods that could be used by the SDK via \"wixClient.use(website)\" api.\n // We don't have any for now, so we just return an empty object.\n return {};\n },\n host: (options?: SDKOptions) => {\n const host = createHost(options);\n const apiBaseUrl = getApiBaseUrl();\n\n return {\n ...host,\n apiBaseUrl,\n essentials: {\n language:\n typeof window !== 'undefined'\n ? window.commonConfig?.language\n : undefined,\n locale:\n typeof window !== 'undefined'\n ? window.commonConfig?.locale\n : undefined,\n },\n };\n },\n auth: (getAccessTokenFn?: AccessTokenFn) => {\n const wixEmbedsAPI =\n typeof window !== 'undefined' ? window.wixEmbedsAPI : undefined;\n\n if (!getAccessTokenFn) {\n /*\n We must call wixEmbedsAPI.getAccessTokenFunction() in the main frame and not from async callbacks / setTimeout calls\n since it uses document.currentScript API behind the scenes\n https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript\n * */\n getAccessTokenFn = wixEmbedsAPI?.getAccessTokenFunction?.();\n }\n\n let injectorCreated = false;\n\n const { resolve: resolveAccessTokenFn, promise: accessTokenFnPromise } =\n withResolvers<AccessTokenFn>();\n\n return {\n getAuthHeaders: async () => {\n if (!getAccessTokenFn && injectorCreated) {\n getAccessTokenFn = await accessTokenFnPromise;\n }\n\n if (!getAccessTokenFn) {\n throw new Error('Failed to resolve auth token');\n }\n\n return {\n headers: {\n Authorization: await getAccessTokenFn(),\n },\n };\n },\n getAccessTokenInjector: () => {\n injectorCreated = true;\n\n return (_getAccessTokenFn: AccessTokenFn) => {\n resolveAccessTokenFn(_getAccessTokenFn);\n };\n },\n };\n },\n };\n};\n\nfunction getApiBaseUrl() {\n const wixEmbedsAPI =\n typeof window !== 'undefined' ? window.wixEmbedsAPI : undefined;\n const apiBaseUrl = wixEmbedsAPI?.getExternalBaseUrl?.();\n if (!apiBaseUrl) {\n return;\n }\n\n // clean the protocol from the URL\n const parsedUrlObject = new URL(apiBaseUrl);\n if (parsedUrlObject?.pathname && parsedUrlObject.pathname !== '/') {\n return `${parsedUrlObject.hostname}${parsedUrlObject.pathname}`;\n }\n\n return parsedUrlObject.hostname;\n}\n","import { ClientSDK, WebsiteChannel } from './types';\n\nexport const createWebsiteChannel = ({\n clientSdk,\n applicationId,\n}: {\n clientSdk?: ClientSDK;\n applicationId: string;\n}): WebsiteChannel => {\n return {\n invoke: async ({ namespace, method, args }) => {\n if (!clientSdk) {\n throw new Error(\n 'Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction',\n );\n }\n\n return clientSdk.invoke({\n namespace,\n method,\n args,\n applicationId,\n accessToken: 'accessToken',\n });\n },\n getAccessToken: () => {\n throw new Error('Not implemented');\n },\n observeState: () => ({\n disconnect: () => {},\n }),\n };\n};\n","import { createWebsiteChannel } from './channel';\nimport type { CreateWebsiteHost, ClientSDK } from './types';\n\ndeclare global {\n interface Window {\n clientSdk?: ClientSDK;\n }\n}\n\ndeclare const $wixContext: {\n clientSdk: ClientSDK;\n};\n\nexport const createHost: CreateWebsiteHost = function (config) {\n const clientSdk =\n (typeof $wixContext !== 'undefined' && $wixContext.clientSdk) ||\n config?.clientSdk ||\n window.clientSdk;\n const { applicationId } = config || {};\n\n if (!applicationId) {\n throw new Error(\n '\"createHost\" was called without a required field \"applicationId\"',\n );\n }\n\n return {\n // environment: {},\n channel: createWebsiteChannel({ clientSdk, applicationId }),\n close: () => {},\n };\n};\n","import { createWebsiteModule } from './websiteHostModule';\nimport { createHost } from './hostPlatform';\n\nexport const site = createWebsiteModule({ createHost });\n\nexport * from './types';\n","import { site } from '@wix/site';\nimport { createClient } from '@wix/sdk';\n\nexport const enableClient = (applicationId: string) => {\n const host = site.host({ applicationId });\n const auth = site.auth();\n const injectGetAccessToken = auth.getAccessTokenInjector();\n\n const wixClient = createClient({\n auth,\n host,\n });\n wixClient.enableContext('module');\n\n return {\n injectGetAccessToken,\n };\n};\n"],"mappings":"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","names":["withResolvers","resolve","reject","promise","Promise","resolveFn","rejectFn","createWebsiteModule","_ref","createHost","__type","create","_host","host","options","_window$commonConfig","_window$commonConfig2","apiBaseUrl","getApiBaseUrl","essentials","language","window","commonConfig","undefined","locale","auth","getAccessTokenFn","wixEmbedsAPI","getAccessTokenFunction","injectorCreated","resolve","resolveAccessTokenFn","promise","accessTokenFnPromise","withResolvers","getAuthHeaders","Error","headers","Authorization","getAccessTokenInjector","_getAccessTokenFn","getExternalBaseUrl","parsedUrlObject","URL","pathname","hostname","createWebsiteChannel","_ref","clientSdk","applicationId","invoke","_ref2","namespace","method","args","Error","accessToken","getAccessToken","observeState","disconnect","createHost","config","clientSdk","$wixContext","window","applicationId","Error","channel","createWebsiteChannel","close","site","createWebsiteModule","createHost","enableClient","applicationId","host","site","auth","injectGetAccessToken","createClient"]}
1
+ {"version":3,"sources":["../../../node_modules/@wix/site/src/utils.ts","../../../node_modules/@wix/site/src/websiteHostModule.ts","../../../node_modules/@wix/site/src/channel.ts","../../../node_modules/@wix/site/src/hostPlatform.ts","../../../node_modules/@wix/site/src/index.ts","../src/site.ts"],"sourcesContent":["export function withResolvers<T>(): {\n resolve: (value: T | PromiseLike<T>) => void;\n reject: (reason?: any) => void;\n promise: Promise<T>;\n} {\n let resolve = null as any;\n let reject = null as any;\n\n const promise = new Promise<T>((resolveFn, rejectFn) => {\n resolve = resolveFn;\n reject = rejectFn;\n });\n\n return { promise, resolve, reject };\n}\n","import type { HostModule } from '@wix/sdk-types';\nimport { withResolvers } from './utils';\nimport {\n AccessTokenFn,\n CreateAuthStrategy,\n CreateWebsiteHost,\n Host,\n SDK,\n SDKOptions,\n WixEmbedsAPI,\n} from './types';\n\ndeclare global {\n interface Window {\n wixEmbedsAPI?: WixEmbedsAPI;\n commonConfig?: {\n language?: string;\n locale?: string;\n };\n }\n}\n\nexport const createWebsiteModule = ({\n createHost,\n}: {\n createHost: CreateWebsiteHost;\n}): HostModule<SDK, Host> & {\n host: CreateWebsiteHost;\n auth: CreateAuthStrategy;\n} => {\n return {\n __type: 'host',\n create: (_host) => {\n // Here we can implement module methods that could be used by the SDK via \"wixClient.use(website)\" api.\n // We don't have any for now, so we just return an empty object.\n return {};\n },\n host: (options?: SDKOptions) => {\n const host = createHost(options);\n const apiBaseUrl = getApiBaseUrl();\n\n return {\n ...host,\n apiBaseUrl,\n essentials: {\n language:\n typeof window !== 'undefined'\n ? window.commonConfig?.language\n : undefined,\n locale:\n typeof window !== 'undefined'\n ? window.commonConfig?.locale\n : undefined,\n },\n };\n },\n auth: (getAccessTokenFn?: AccessTokenFn) => {\n const wixEmbedsAPI =\n typeof window !== 'undefined' ? window.wixEmbedsAPI : undefined;\n\n if (!getAccessTokenFn) {\n /*\n We must call wixEmbedsAPI.getAccessTokenFunction() in the main frame and not from async callbacks / setTimeout calls\n since it uses document.currentScript API behind the scenes\n https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript\n * */\n getAccessTokenFn = wixEmbedsAPI?.getAccessTokenFunction?.();\n }\n\n let injectorCreated = false;\n\n const { resolve: resolveAccessTokenFn, promise: accessTokenFnPromise } =\n withResolvers<AccessTokenFn>();\n\n return {\n getAuthHeaders: async () => {\n if (!getAccessTokenFn && injectorCreated) {\n getAccessTokenFn = await accessTokenFnPromise;\n }\n\n if (!getAccessTokenFn) {\n throw new Error('Failed to resolve auth token');\n }\n\n return {\n headers: {\n Authorization: await getAccessTokenFn(),\n },\n };\n },\n getAccessTokenInjector: () => {\n injectorCreated = true;\n\n return (_getAccessTokenFn: AccessTokenFn) => {\n resolveAccessTokenFn(_getAccessTokenFn);\n };\n },\n };\n },\n };\n};\n\nfunction getApiBaseUrl() {\n const wixEmbedsAPI =\n typeof window !== 'undefined' ? window.wixEmbedsAPI : undefined;\n const apiBaseUrl = wixEmbedsAPI?.getExternalBaseUrl?.();\n if (!apiBaseUrl) {\n return;\n }\n\n // clean the protocol from the URL\n const parsedUrlObject = new URL(apiBaseUrl);\n if (parsedUrlObject?.pathname && parsedUrlObject.pathname !== '/') {\n return `${parsedUrlObject.hostname}${parsedUrlObject.pathname}`;\n }\n\n return parsedUrlObject.hostname;\n}\n","import { ClientSDK, WebsiteChannel } from './types';\n\nexport const createWebsiteChannel = ({\n clientSdk,\n applicationId,\n}: {\n clientSdk?: ClientSDK;\n applicationId: string;\n}): WebsiteChannel => {\n return {\n invoke: async ({ namespace, method, args }) => {\n if (!clientSdk) {\n throw new Error(\n 'Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction',\n );\n }\n\n return clientSdk.invoke({\n namespace,\n method,\n args,\n applicationId,\n accessToken: 'accessToken',\n });\n },\n getAccessToken: () => {\n throw new Error('Not implemented');\n },\n observeState: () => ({\n disconnect: () => {},\n }),\n };\n};\n","import { createWebsiteChannel } from './channel';\nimport type { CreateWebsiteHost, ClientSDK } from './types';\n\ndeclare global {\n interface Window {\n clientSdk?: ClientSDK;\n }\n}\n\ndeclare const $wixContext: {\n clientSdk: ClientSDK;\n};\n\nexport const createHost: CreateWebsiteHost = function (config) {\n const clientSdk =\n (typeof $wixContext !== 'undefined' && $wixContext.clientSdk) ||\n config?.clientSdk ||\n window.clientSdk;\n const { applicationId } = config || {};\n\n if (!applicationId) {\n throw new Error(\n '\"createHost\" was called without a required field \"applicationId\"',\n );\n }\n\n return {\n // environment: {},\n channel: createWebsiteChannel({ clientSdk, applicationId }),\n close: () => {},\n };\n};\n","import { createWebsiteModule } from './websiteHostModule';\nimport { createHost } from './hostPlatform';\n\nexport const site = createWebsiteModule({ createHost });\n\nexport * from './types';\n","import { site } from '@wix/site';\nimport { createClient } from '@wix/sdk';\n\nexport const enableClient = (applicationId: string) => {\n const host = site.host({ applicationId });\n const auth = site.auth();\n const injectGetAccessToken = auth.getAccessTokenInjector();\n\n const wixClient = createClient({\n auth,\n host,\n });\n wixClient.enableContext('module');\n\n return {\n injectGetAccessToken,\n };\n};\n"],"mappings":"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","names":["withResolvers","resolve","reject","promise","Promise","resolveFn","rejectFn","createWebsiteModule","_ref","createHost","__type","create","_host","host","options","_window$commonConfig","_window$commonConfig2","apiBaseUrl","getApiBaseUrl","essentials","language","window","commonConfig","undefined","locale","auth","getAccessTokenFn","wixEmbedsAPI","getAccessTokenFunction","injectorCreated","resolve","resolveAccessTokenFn","promise","accessTokenFnPromise","withResolvers","getAuthHeaders","Error","headers","Authorization","getAccessTokenInjector","_getAccessTokenFn","getExternalBaseUrl","parsedUrlObject","URL","pathname","hostname","createWebsiteChannel","_ref","clientSdk","applicationId","invoke","_ref2","namespace","method","args","Error","accessToken","getAccessToken","observeState","disconnect","createHost","config","clientSdk","$wixContext","window","applicationId","Error","channel","createWebsiteChannel","close","site","createWebsiteModule","createHost","enableClient","applicationId","host","site","auth","injectGetAccessToken","createClient"]}
@@ -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-ACN6EZGH.js";
5
+ } from "./chunk-VZJZSWRE.js";
6
6
  import {
7
7
  addUserFields
8
- } from "./chunk-FHMCCDCY.js";
9
- import "./chunk-U72IPCQR.js";
8
+ } from "./chunk-7CGRTCDC.js";
9
+ import "./chunk-IG6IV6VM.js";
10
10
  import {
11
11
  ARMClient,
12
12
  SiteListClient,
13
13
  resolveConfiguredSite,
14
14
  resolveDashboardExtensionUrl,
15
15
  resolvePlatformUrl
16
- } from "./chunk-ZXHKA32C.js";
17
- import "./chunk-UQBZVJDQ.js";
18
- import "./chunk-ZJYRE4BT.js";
16
+ } from "./chunk-FTC5AK3Y.js";
17
+ import "./chunk-WRWNJYKZ.js";
18
+ import "./chunk-USAOCISL.js";
19
19
  import "./chunk-QZOQAFHK.js";
20
- import "./chunk-QW4WBWJK.js";
21
- import "./chunk-AQKGIDJO.js";
22
- import "./chunk-W4HI7DI3.js";
20
+ import "./chunk-5QZS3HT7.js";
21
+ import "./chunk-WRPV7SLY.js";
22
+ import "./chunk-VXE3IWKR.js";
23
23
  import {
24
24
  DevCenterComponent,
25
25
  PlatformType,
26
26
  createHttpClient,
27
27
  isLoggedInToAccount,
28
28
  uploadApplication
29
- } from "./chunk-FMM24YL4.js";
29
+ } from "./chunk-DGTJGIY2.js";
30
30
  import {
31
31
  CliError,
32
32
  CliErrorCode,
33
33
  require_lib
34
- } from "./chunk-DXNFLVQP.js";
34
+ } from "./chunk-36W5H7IG.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-FI6WYZUP.js.map
138
+ //# sourceMappingURL=preview-VAHHFTRZ.js.map
@@ -6,10 +6,10 @@ import {
6
6
  import {
7
7
  addUserFields,
8
8
  reportCommandStartEvent
9
- } from "./chunk-FHMCCDCY.js";
9
+ } from "./chunk-7CGRTCDC.js";
10
10
  import {
11
11
  DebugLogProvider
12
- } from "./chunk-QW4WBWJK.js";
12
+ } from "./chunk-5QZS3HT7.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-FMM24YL4.js";
20
+ } from "./chunk-DGTJGIY2.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-DXNFLVQP.js";
28
+ } from "./chunk-36W5H7IG.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-UKYXN7C7.js.map
117
+ //# sourceMappingURL=render-command-3AYSQXHN.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.59",
4
+ "version": "1.1.60",
5
5
  "author": "Amit Dahan",
6
6
  "dependencies": {
7
7
  "esbuild": "^0.21.3",
@@ -59,7 +59,7 @@
59
59
  "chokidar": "^3.6.0",
60
60
  "commander": "^13.0.0",
61
61
  "es-module-lexer": "^1.5.4",
62
- "fast-equals": "^5.0.1",
62
+ "fast-equals": "^5.2.2",
63
63
  "globby": "^14.0.2",
64
64
  "lodash": "^4.17.21",
65
65
  "magic-string": "^0.30.11",
@@ -148,5 +148,5 @@
148
148
  ]
149
149
  }
150
150
  },
151
- "falconPackageHash": "a81e990dc8b66bd1ceb4ede4e3042af4feaddf367cb22d26bdb380ba"
151
+ "falconPackageHash": "8a63701ca5292cc4ccc25961b1740baa047ec13152cab621ceb5fa38"
152
152
  }
@@ -1 +1 @@
1
- {"type":"object","properties":{"$schema":{"type":"string"},"id":{"type":"string","format":"uuid","description":"The ID (GUID) is a unique identifier for your plugin."},"referenceComponentId":{"type":"string","format":"uuid","description":"The referenceComponentId (GUID) is a unique identifier for your element."},"marketData":{"type":"object","properties":{"name":{"type":"string","maxLength":30,"description":"The name of your plugin as it will appear in the plugin explorer"},"description":{"type":"string","description":"The description of your plugin as it will appear in the plugin explorer"},"logoUrl":{"anyOf":[{"type":"string","pattern":"^(https?):\\/\\/[^\\s/$.?#].[^\\s]*$"},{"type":"string","pattern":"^\\{\\{\\s*(PUBLIC_URL|public_url)\\s*\\}\\}\\/[\\w\\-+]+(\\/[\\w\\-+]+)*\\.[\\w\\-+]+$$"}],"description":"The logo of your plugin as it will appear in the plugin explorer"}},"required":["name"],"additionalProperties":false},"placements":{"type":"array","items":{"type":"object","properties":{"appDefinitionId":{"type":"string","format":"uuid"},"widgetId":{"type":"string","format":"uuid"},"slotId":{"type":"string"}},"required":["appDefinitionId","widgetId","slotId"],"additionalProperties":false}},"installation":{"type":"object","properties":{"autoAddToSite":{"type":"boolean","description":"Automatically adds the plugin to a site selected slot upon installation if true"}},"additionalProperties":false}},"required":["id","referenceComponentId","marketData","placements"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}
1
+ {"type":"object","properties":{"$schema":{"type":"string"},"id":{"type":"string","format":"uuid","description":"The ID (GUID) is a unique identifier for your plugin."},"referenceComponentId":{"type":"string","format":"uuid","description":"The referenceComponentId (GUID) is a unique identifier for your element."},"marketData":{"type":"object","properties":{"name":{"type":"string","maxLength":30,"description":"The name of your plugin as it will appear in the plugin explorer"},"description":{"type":"string","description":"The description of your plugin as it will appear in the plugin explorer"},"logoUrl":{"anyOf":[{"type":"string","pattern":"^(https?):\\/\\/[^\\s/$.?#].[^\\s]*$"},{"type":"string","pattern":"^(?:\\.\\.?\\/)*[\\w\\-+]+(\\/[\\w\\-+]+)*\\.(jpg|svg|png)$"}],"description":"The logo of your plugin as it will appear in the plugin explorer"}},"required":["name"],"additionalProperties":false},"placements":{"type":"array","items":{"type":"object","properties":{"appDefinitionId":{"type":"string","format":"uuid"},"widgetId":{"type":"string","format":"uuid"},"slotId":{"type":"string"}},"required":["appDefinitionId","widgetId","slotId"],"additionalProperties":false}},"installation":{"type":"object","properties":{"autoAddToSite":{"type":"boolean","description":"Automatically adds the plugin to a site selected slot upon installation if true"}},"additionalProperties":false}},"required":["id","referenceComponentId","marketData","placements"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}
@@ -1 +1 @@
1
- {"type":"object","properties":{"$schema":{"type":"string"},"appId":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"dashboard":{"type":"object","properties":{"sidebar":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"priority":{"type":"integer"}},"required":["id","label"],"additionalProperties":true}}},"additionalProperties":true}},"additionalProperties":true},"monitoring":{"type":"object","properties":{"sentry":{"type":"object","properties":{"dsn":{"type":"string","format":"uri"}},"required":["dsn"],"additionalProperties":true}},"required":["sentry"],"additionalProperties":true}},"required":["appId","projectId"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}
1
+ {"type":"object","properties":{"$schema":{"type":"string"},"appId":{"type":"string","format":"uuid"},"projectId":{"type":"string"},"dashboard":{"type":"object","properties":{"sidebar":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"priority":{"type":"integer"}},"required":["id","label"],"additionalProperties":true}}},"additionalProperties":true}},"additionalProperties":true},"monitoring":{"type":"object","properties":{"sentry":{"type":"object","properties":{"dsn":{"type":"string","format":"uri"}},"required":["dsn"],"additionalProperties":true}},"required":["sentry"],"additionalProperties":true},"blocks":{"type":"object","properties":{"revisionId":{"type":"string"}},"required":["revisionId"],"additionalProperties":true}},"required":["appId","projectId"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}
@@ -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-PAWIUC26.js";
6
- import "./chunk-BNROT2BN.js";
7
- import "./chunk-OCC6MO6R.js";
8
- import "./chunk-ACN6EZGH.js";
9
- import "./chunk-U72IPCQR.js";
10
- import "./chunk-ZXHKA32C.js";
11
- import "./chunk-UQBZVJDQ.js";
12
- import "./chunk-ZJYRE4BT.js";
13
- import "./chunk-QZOQAFHK.js";
14
- import "./chunk-QW4WBWJK.js";
15
- import "./chunk-AQKGIDJO.js";
16
- import "./chunk-W4HI7DI3.js";
17
- import "./chunk-FMM24YL4.js";
18
- import "./chunk-DXNFLVQP.js";
19
- import "./chunk-PYIAC2GK.js";
20
- export {
21
- PreviewCommand
22
- };
23
- //# sourceMappingURL=PreviewCommand-ZQ3OUOKW.js.map