@wix/cli 1.1.192 → 1.1.193
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/{ConnectWixVibeCommand-3P7PBLJG.js → ConnectWixVibeCommand-O7YJANYT.js} +13 -14
- package/build/{ConnectWixVibeCommand-3P7PBLJG.js.map → ConnectWixVibeCommand-O7YJANYT.js.map} +1 -1
- package/build/{DevCommand-JOXVIWR5.js → DevCommand-56MWW4BP.js} +10 -10
- package/build/{DevCommand-3WHXKKMP.js → DevCommand-LN7SN46O.js} +13 -14
- package/build/{DevCommand-3WHXKKMP.js.map → DevCommand-LN7SN46O.js.map} +1 -1
- package/build/{DevCommand-QCK6MTZB.js → DevCommand-TE24F5Z4.js} +18 -19
- package/build/{DevCommand-QCK6MTZB.js.map → DevCommand-TE24F5Z4.js.map} +1 -1
- package/build/{EnvPullCommand-QDH5UOTM.js → EnvPullCommand-E4A5WMAN.js} +7 -7
- package/build/{EnvRemoveCommand-NM5UW3ZV.js → EnvRemoveCommand-GACPHZ34.js} +6 -6
- package/build/{EnvSetCommand-CKOZZQE6.js → EnvSetCommand-T6AD55XO.js} +6 -6
- package/build/{GenerateCommand-ULEJSNH4.js → GenerateCommand-QLX4Z5WF.js} +10 -11
- package/build/{GenerateCommand-ULEJSNH4.js.map → GenerateCommand-QLX4Z5WF.js.map} +1 -1
- package/build/{GenerateManifestCommand-IPGAFK5M.js → GenerateManifestCommand-IKAZBMGS.js} +2 -2
- package/build/{InstallCommand-EVXIWQOB.js → InstallCommand-RWG5KMCI.js} +12 -13
- package/build/{InstallCommand-EVXIWQOB.js.map → InstallCommand-RWG5KMCI.js.map} +1 -1
- package/build/{LoginCommand-OM3HFWOR.js → LoginCommand-VPEG5OA6.js} +5 -5
- package/build/{LogoutCommand-IS5AREW4.js → LogoutCommand-GWRIMI72.js} +4 -4
- package/build/{PreviewCommand-UDDUS57Y.js → PreviewCommand-5GPE2AH4.js} +12 -12
- package/build/{PreviewCommand-QYL45MHX.js → PreviewCommand-BJ4XPUUN.js} +15 -16
- package/build/{PreviewCommand-BT7G5VP6.js → PreviewCommand-PHLNAFZ7.js} +15 -16
- package/build/{PreviewCommand-BT7G5VP6.js.map → PreviewCommand-PHLNAFZ7.js.map} +1 -1
- package/build/{PromoteCommand-5JUNVKOF.js → PromoteCommand-3426UDFS.js} +15 -16
- package/build/{PromoteCommand-5JUNVKOF.js.map → PromoteCommand-3426UDFS.js.map} +1 -1
- package/build/{PublishCommand-EE2BRQEE.js → PublishCommand-IZ23KV5P.js} +12 -12
- package/build/{ReleaseCommand-VGVMXRTR.js → ReleaseCommand-QMEGRHKA.js} +16 -17
- package/build/{ReleaseCommand-VGVMXRTR.js.map → ReleaseCommand-QMEGRHKA.js.map} +1 -1
- package/build/{TranslationPullCommand-O5OWM43G.js → TranslationPullCommand-YEWWWSBZ.js} +7 -7
- package/build/{TranslationPushCommand-6UFOYSCK.js → TranslationPushCommand-NJ4IDA64.js} +8 -8
- package/build/{UninstallCommand-NSLO3G5O.js → UninstallCommand-F7NNP3QJ.js} +12 -13
- package/build/{UninstallCommand-NSLO3G5O.js.map → UninstallCommand-F7NNP3QJ.js.map} +1 -1
- package/build/{WhoamiCommand-TRMTXQ3W.js → WhoamiCommand-VUSN36FZ.js} +2 -2
- package/build/{chunk-QCCN5EZ7.js → chunk-2IO2I76S.js} +4 -4
- package/build/{chunk-6ONWG3JF.js → chunk-3QMRQKKR.js} +280 -28
- package/build/chunk-3QMRQKKR.js.map +1 -0
- package/build/{chunk-COIX5PKT.js → chunk-3R4ZCVMN.js} +6 -6
- package/build/{chunk-3BZKRZ24.js → chunk-44LHW2E2.js} +5 -5
- package/build/{chunk-ZGTSAVNS.js → chunk-5V3FLVHI.js} +2 -2
- package/build/{chunk-VPXI5KGM.js → chunk-5WSVS74K.js} +2 -2
- package/build/{chunk-7PWQRR7W.js → chunk-6GZ2BQEV.js} +2 -2
- package/build/{chunk-GPME2H2X.js → chunk-6IIV4LPX.js} +3 -3
- package/build/{chunk-3ANXB4Z7.js → chunk-73MIK3LY.js} +3 -3
- package/build/{chunk-ZYAFLP5Z.js → chunk-7A4DW6ND.js} +2 -2
- package/build/{chunk-7GTQ3JMB.js → chunk-7THNQBCZ.js} +4 -4
- package/build/{chunk-NWVEIJ2N.js → chunk-7UVUURDJ.js} +2 -2
- package/build/{chunk-NUAGGG3G.js → chunk-CZJWKS2W.js} +2 -2
- package/build/{chunk-NUAGGG3G.js.map → chunk-CZJWKS2W.js.map} +1 -1
- package/build/{chunk-VU6FJUMG.js → chunk-F5A2UKXZ.js} +3 -3
- package/build/{chunk-I7EWBEK3.js → chunk-FFER3PLE.js} +2 -2
- package/build/{chunk-LLU52S3V.js → chunk-FLRYG53Q.js} +3 -3
- package/build/{chunk-W7NW6EJN.js → chunk-FNQ6J7LZ.js} +2 -2
- package/build/{chunk-GCCNCRV7.js → chunk-I6ND4HKL.js} +7 -7
- package/build/{chunk-SPQE45WW.js → chunk-ICWL3WXV.js} +2 -2
- package/build/{chunk-KG5QMLRF.js → chunk-K5QDT25A.js} +3 -3
- package/build/{chunk-LWFQJV2I.js → chunk-KUSCYV4K.js} +2 -2
- package/build/{chunk-APHSSUKH.js → chunk-L6WHYOLB.js} +2 -2
- package/build/{chunk-CQH56H7N.js → chunk-LTVZM4MD.js} +5 -5
- package/build/{chunk-OAKOFEGL.js → chunk-M47ZTJLD.js} +3 -3
- package/build/{chunk-RWKD452T.js → chunk-MAFFNC5G.js} +2 -2
- package/build/{chunk-PN6PE6J4.js → chunk-MDUBZZTI.js} +2 -2
- package/build/{chunk-UBPZLH7Z.js → chunk-ME2WCIDZ.js} +7 -7
- package/build/{chunk-MZZDO7K5.js → chunk-MS3NOGHC.js} +5 -5
- package/build/{chunk-OTI5IGNM.js → chunk-NFHBUMWP.js} +4 -4
- package/build/{chunk-R7IG36VL.js → chunk-NJ7DBBZC.js} +2 -2
- package/build/{chunk-WSX7GEXO.js → chunk-NMCF7XG5.js} +278 -24
- package/build/chunk-NMCF7XG5.js.map +1 -0
- package/build/{chunk-D3Q2ZFJN.js → chunk-OCFN4HLY.js} +8 -8
- package/build/{chunk-DBNPQH4V.js → chunk-OJXRWGTQ.js} +3 -3
- package/build/{chunk-XGQRI27L.js → chunk-QK47PIWK.js} +5 -5
- package/build/chunk-QK47PIWK.js.map +1 -0
- package/build/{chunk-ZUMSUGJ4.js → chunk-S25ZY7D6.js} +2 -2
- package/build/{chunk-YFG6PTOO.js → chunk-SGNEANHH.js} +2 -2
- package/build/{chunk-FY66RMHI.js → chunk-SJPRETVW.js} +4 -4
- package/build/{chunk-4TUGTRRW.js → chunk-SKISRIW7.js} +3 -3
- package/build/{chunk-VASC7TUW.js → chunk-ULZWYZLP.js} +3 -3
- package/build/{chunk-V7OPHVQK.js → chunk-VCRB3FYZ.js} +4 -4
- package/build/{chunk-K6NIZP57.js → chunk-XFYZQY3L.js} +5 -5
- package/build/{chunk-NICNGBOU.js → chunk-XNO3B57J.js} +4 -4
- package/build/{chunk-PSQBVMEH.js → chunk-ZTLE7UU2.js} +3 -3
- package/build/{dev-K7X64NJC.js → dev-NBKB37XS.js} +18 -19
- package/build/{dev-K7X64NJC.js.map → dev-NBKB37XS.js.map} +1 -1
- package/build/{env-pull-RFFPFKBY.js → env-pull-SZ3PTTLF.js} +8 -8
- package/build/{execa-5IKZPVFV.js → execa-CMKY4VHZ.js} +2 -3
- package/build/{generate-extensions-B2E3Z7C3.js → generate-extensions-OZEFV5CK.js} +11 -12
- package/build/{generate-extensions-B2E3Z7C3.js.map → generate-extensions-OZEFV5CK.js.map} +1 -1
- package/build/index.js +21 -21
- package/build/{install-U2MGK3QT.js → install-7WSMEXYM.js} +13 -14
- package/build/{install-U2MGK3QT.js.map → install-7WSMEXYM.js.map} +1 -1
- package/build/{preview-46WC4MTB.js → preview-2OVCCIKQ.js} +16 -17
- package/build/{preview-46WC4MTB.js.map → preview-2OVCCIKQ.js.map} +1 -1
- package/build/{publish-F42DOFUH.js → publish-WPBJWYAT.js} +14 -15
- package/build/{publish-F42DOFUH.js.map → publish-WPBJWYAT.js.map} +1 -1
- package/build/{render-command-5KYNJSW3.js → render-command-DYINW4QE.js} +5 -5
- package/build/{render-command-CJ3ZFH2Y.js → render-command-MMNIV7ZL.js} +7 -7
- package/build/{render-command-XUD2G4K2.js → render-command-O3YEBAGJ.js} +5 -5
- package/build/{render-command-TAM4TB4N.js → render-command-TZVZOSRG.js} +5 -5
- package/build/{render-command-TGADAOOP.js → render-command-XO7JGDCD.js} +6 -6
- package/build/{schema-generate-extensions-YCA4HDWJ.js → schema-generate-extensions-PVMLSQIN.js} +11 -12
- package/build/{schema-generate-extensions-YCA4HDWJ.js.map → schema-generate-extensions-PVMLSQIN.js.map} +1 -1
- package/build/{src-3VOLVHCC.js → src-552KA43I.js} +3 -4
- package/build/{src-ZFNDOHTH.js → src-63GFH6HZ.js} +2 -3
- package/build/{src-HBRDRWDY.js → src-O2KEZJF5.js} +38 -39
- package/build/{src-HBRDRWDY.js.map → src-O2KEZJF5.js.map} +1 -1
- package/build/{src-I6ULNDCL.js → src-OD6PIW3U.js} +11 -11
- package/build/{src-2D5YOYZQ.js → src-P4SPMGXF.js} +13 -13
- package/build/{src-VVIMO2DF.js → src-QBUTQBGB.js} +5 -5
- package/build/{src-PCP52L7J.js → src-ZDFXIHBF.js} +4 -4
- package/build/{sync-types-HVDBTAIG.js → sync-types-QSPNP5CV.js} +7 -7
- package/build/{translation-pull-AVJWAA7U.js → translation-pull-DKGW76BR.js} +8 -8
- package/build/{translation-push-VD6C5FYS.js → translation-push-Z5NPAA4Q.js} +9 -9
- package/build/{uninstall-HVR2BATP.js → uninstall-YNGG76FW.js} +13 -14
- package/build/{uninstall-HVR2BATP.js.map → uninstall-YNGG76FW.js.map} +1 -1
- package/package.json +2 -2
- package/build/chunk-6ONWG3JF.js.map +0 -1
- package/build/chunk-IBOXARGJ.js +0 -265
- package/build/chunk-IBOXARGJ.js.map +0 -1
- package/build/chunk-WSX7GEXO.js.map +0 -1
- package/build/chunk-XGQRI27L.js.map +0 -1
- /package/build/{DevCommand-JOXVIWR5.js.map → DevCommand-56MWW4BP.js.map} +0 -0
- /package/build/{EnvPullCommand-QDH5UOTM.js.map → EnvPullCommand-E4A5WMAN.js.map} +0 -0
- /package/build/{EnvRemoveCommand-NM5UW3ZV.js.map → EnvRemoveCommand-GACPHZ34.js.map} +0 -0
- /package/build/{EnvSetCommand-CKOZZQE6.js.map → EnvSetCommand-T6AD55XO.js.map} +0 -0
- /package/build/{GenerateManifestCommand-IPGAFK5M.js.map → GenerateManifestCommand-IKAZBMGS.js.map} +0 -0
- /package/build/{LoginCommand-OM3HFWOR.js.map → LoginCommand-VPEG5OA6.js.map} +0 -0
- /package/build/{LogoutCommand-IS5AREW4.js.map → LogoutCommand-GWRIMI72.js.map} +0 -0
- /package/build/{PreviewCommand-UDDUS57Y.js.map → PreviewCommand-5GPE2AH4.js.map} +0 -0
- /package/build/{PreviewCommand-QYL45MHX.js.map → PreviewCommand-BJ4XPUUN.js.map} +0 -0
- /package/build/{PublishCommand-EE2BRQEE.js.map → PublishCommand-IZ23KV5P.js.map} +0 -0
- /package/build/{TranslationPullCommand-O5OWM43G.js.map → TranslationPullCommand-YEWWWSBZ.js.map} +0 -0
- /package/build/{TranslationPushCommand-6UFOYSCK.js.map → TranslationPushCommand-NJ4IDA64.js.map} +0 -0
- /package/build/{WhoamiCommand-TRMTXQ3W.js.map → WhoamiCommand-VUSN36FZ.js.map} +0 -0
- /package/build/{chunk-QCCN5EZ7.js.map → chunk-2IO2I76S.js.map} +0 -0
- /package/build/{chunk-COIX5PKT.js.map → chunk-3R4ZCVMN.js.map} +0 -0
- /package/build/{chunk-3BZKRZ24.js.map → chunk-44LHW2E2.js.map} +0 -0
- /package/build/{chunk-ZGTSAVNS.js.map → chunk-5V3FLVHI.js.map} +0 -0
- /package/build/{chunk-VPXI5KGM.js.map → chunk-5WSVS74K.js.map} +0 -0
- /package/build/{chunk-7PWQRR7W.js.map → chunk-6GZ2BQEV.js.map} +0 -0
- /package/build/{chunk-GPME2H2X.js.map → chunk-6IIV4LPX.js.map} +0 -0
- /package/build/{chunk-3ANXB4Z7.js.map → chunk-73MIK3LY.js.map} +0 -0
- /package/build/{chunk-ZYAFLP5Z.js.map → chunk-7A4DW6ND.js.map} +0 -0
- /package/build/{chunk-7GTQ3JMB.js.map → chunk-7THNQBCZ.js.map} +0 -0
- /package/build/{chunk-NWVEIJ2N.js.map → chunk-7UVUURDJ.js.map} +0 -0
- /package/build/{chunk-VU6FJUMG.js.map → chunk-F5A2UKXZ.js.map} +0 -0
- /package/build/{chunk-I7EWBEK3.js.map → chunk-FFER3PLE.js.map} +0 -0
- /package/build/{chunk-LLU52S3V.js.map → chunk-FLRYG53Q.js.map} +0 -0
- /package/build/{chunk-W7NW6EJN.js.map → chunk-FNQ6J7LZ.js.map} +0 -0
- /package/build/{chunk-GCCNCRV7.js.map → chunk-I6ND4HKL.js.map} +0 -0
- /package/build/{chunk-SPQE45WW.js.map → chunk-ICWL3WXV.js.map} +0 -0
- /package/build/{chunk-KG5QMLRF.js.map → chunk-K5QDT25A.js.map} +0 -0
- /package/build/{chunk-LWFQJV2I.js.map → chunk-KUSCYV4K.js.map} +0 -0
- /package/build/{chunk-APHSSUKH.js.map → chunk-L6WHYOLB.js.map} +0 -0
- /package/build/{chunk-CQH56H7N.js.map → chunk-LTVZM4MD.js.map} +0 -0
- /package/build/{chunk-OAKOFEGL.js.map → chunk-M47ZTJLD.js.map} +0 -0
- /package/build/{chunk-RWKD452T.js.map → chunk-MAFFNC5G.js.map} +0 -0
- /package/build/{chunk-PN6PE6J4.js.map → chunk-MDUBZZTI.js.map} +0 -0
- /package/build/{chunk-UBPZLH7Z.js.map → chunk-ME2WCIDZ.js.map} +0 -0
- /package/build/{chunk-MZZDO7K5.js.map → chunk-MS3NOGHC.js.map} +0 -0
- /package/build/{chunk-OTI5IGNM.js.map → chunk-NFHBUMWP.js.map} +0 -0
- /package/build/{chunk-R7IG36VL.js.map → chunk-NJ7DBBZC.js.map} +0 -0
- /package/build/{chunk-D3Q2ZFJN.js.map → chunk-OCFN4HLY.js.map} +0 -0
- /package/build/{chunk-DBNPQH4V.js.map → chunk-OJXRWGTQ.js.map} +0 -0
- /package/build/{chunk-ZUMSUGJ4.js.map → chunk-S25ZY7D6.js.map} +0 -0
- /package/build/{chunk-YFG6PTOO.js.map → chunk-SGNEANHH.js.map} +0 -0
- /package/build/{chunk-FY66RMHI.js.map → chunk-SJPRETVW.js.map} +0 -0
- /package/build/{chunk-4TUGTRRW.js.map → chunk-SKISRIW7.js.map} +0 -0
- /package/build/{chunk-VASC7TUW.js.map → chunk-ULZWYZLP.js.map} +0 -0
- /package/build/{chunk-V7OPHVQK.js.map → chunk-VCRB3FYZ.js.map} +0 -0
- /package/build/{chunk-K6NIZP57.js.map → chunk-XFYZQY3L.js.map} +0 -0
- /package/build/{chunk-NICNGBOU.js.map → chunk-XNO3B57J.js.map} +0 -0
- /package/build/{chunk-PSQBVMEH.js.map → chunk-ZTLE7UU2.js.map} +0 -0
- /package/build/{env-pull-RFFPFKBY.js.map → env-pull-SZ3PTTLF.js.map} +0 -0
- /package/build/{execa-5IKZPVFV.js.map → execa-CMKY4VHZ.js.map} +0 -0
- /package/build/{render-command-5KYNJSW3.js.map → render-command-DYINW4QE.js.map} +0 -0
- /package/build/{render-command-CJ3ZFH2Y.js.map → render-command-MMNIV7ZL.js.map} +0 -0
- /package/build/{render-command-XUD2G4K2.js.map → render-command-O3YEBAGJ.js.map} +0 -0
- /package/build/{render-command-TAM4TB4N.js.map → render-command-TZVZOSRG.js.map} +0 -0
- /package/build/{render-command-TGADAOOP.js.map → render-command-XO7JGDCD.js.map} +0 -0
- /package/build/{src-3VOLVHCC.js.map → src-552KA43I.js.map} +0 -0
- /package/build/{src-PCP52L7J.js.map → src-63GFH6HZ.js.map} +0 -0
- /package/build/{src-I6ULNDCL.js.map → src-OD6PIW3U.js.map} +0 -0
- /package/build/{src-2D5YOYZQ.js.map → src-P4SPMGXF.js.map} +0 -0
- /package/build/{src-VVIMO2DF.js.map → src-QBUTQBGB.js.map} +0 -0
- /package/build/{src-ZFNDOHTH.js.map → src-ZDFXIHBF.js.map} +0 -0
- /package/build/{sync-types-HVDBTAIG.js.map → sync-types-QSPNP5CV.js.map} +0 -0
- /package/build/{translation-pull-AVJWAA7U.js.map → translation-pull-DKGW76BR.js.map} +0 -0
- /package/build/{translation-push-VD6C5FYS.js.map → translation-push-Z5NPAA4Q.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../cli-astro-commands/src/non-interactive/generate-extensions.ts"],"sourcesContent":["import { relative } from 'node:path';\nimport type { CommandServices } from '@wix/cli-command-contract';\nimport { isLoggedInToAccount } from '@wix/cli-auth';\nimport { createHttpClient } from '@wix/cli-http-client';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\nimport type { ProjectModel } from '../model.js';\nimport { extensionHandlers } from '../components/GenerateCommand/extensionHandlers.js';\nimport { extensionTypeSchema } from '../components/GenerateCommand/generate-schema/types.js';\n\ninterface GenerateSuccess {\n extensionType: string;\n newFiles: string[];\n}\n\nasync function assertAuth() {\n const authData = await isLoggedInToAccount();\n if (!authData) {\n throw new CliError({\n code: CliErrorCode.AuthenticationRequired(),\n cause: null,\n });\n }\n return authData;\n}\n\nfunction parseExtensionType(params: Record<string, unknown>): string {\n const extensionTypeResult = extensionTypeSchema.safeParse(params);\n\n if (!extensionTypeResult.success) {\n throw new Error(\n `'extensionType' must be specified. Run 'wix schema generate' to see available types.`\n );\n }\n\n const { extensionType } = extensionTypeResult.data;\n\n if (!Object.hasOwn(extensionHandlers, extensionType)) {\n throw new Error(\n `Unknown extension type: '${extensionType}'. Run 'wix schema generate' to see available types.`\n );\n }\n\n return extensionType;\n}\n\nexport async function nonInteractiveGenerateExtension(\n _services: CommandServices,\n model: ProjectModel,\n params: Record<string, unknown>\n): Promise<GenerateSuccess> {\n const authData = await assertAuth();\n const extensionType = parseExtensionType(params);\n\n const handler =\n extensionHandlers[extensionType as keyof typeof extensionHandlers];\n\n const httpClient = createHttpClient({\n type: 'backoffice',\n getAppToken: () => authData.getAccessToken({}),\n });\n\n const zodSchema =\n typeof handler.zodSchema === 'function'\n ? await handler.zodSchema(httpClient)\n : handler.zodSchema;\n\n const result = zodSchema.safeParse(params);\n\n if (!result.success) {\n throw new Error(\n result.error.errors\n .map((e) =>\n e.path.length > 0 ? `${e.path.join('.')}: ${e.message}` : e.message\n )\n .join('\\n')\n );\n }\n\n if (handler.validate) {\n const validationError = await handler.validate(\n model.projectFolder,\n result.data\n );\n if (validationError) {\n throw new Error(validationError);\n }\n }\n\n const generationResult = await handler.generate({\n projectFolder: model.projectFolder,\n appId: model.config.appId,\n model,\n data: result.data,\n httpClient,\n });\n\n return {\n extensionType,\n newFiles: (generationResult?.newFiles ?? []).map((f: string) =>\n relative(model.projectFolder, f)\n ),\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../cli-astro-commands/src/non-interactive/generate-extensions.ts"],"sourcesContent":["import { relative } from 'node:path';\nimport type { CommandServices } from '@wix/cli-command-contract';\nimport { isLoggedInToAccount } from '@wix/cli-auth';\nimport { createHttpClient } from '@wix/cli-http-client';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\nimport type { ProjectModel } from '../model.js';\nimport { extensionHandlers } from '../components/GenerateCommand/extensionHandlers.js';\nimport { extensionTypeSchema } from '../components/GenerateCommand/generate-schema/types.js';\n\ninterface GenerateSuccess {\n extensionType: string;\n newFiles: string[];\n}\n\nasync function assertAuth() {\n const authData = await isLoggedInToAccount();\n if (!authData) {\n throw new CliError({\n code: CliErrorCode.AuthenticationRequired(),\n cause: null,\n });\n }\n return authData;\n}\n\nfunction parseExtensionType(params: Record<string, unknown>): string {\n const extensionTypeResult = extensionTypeSchema.safeParse(params);\n\n if (!extensionTypeResult.success) {\n throw new Error(\n `'extensionType' must be specified. Run 'wix schema generate' to see available types.`\n );\n }\n\n const { extensionType } = extensionTypeResult.data;\n\n if (!Object.hasOwn(extensionHandlers, extensionType)) {\n throw new Error(\n `Unknown extension type: '${extensionType}'. Run 'wix schema generate' to see available types.`\n );\n }\n\n return extensionType;\n}\n\nexport async function nonInteractiveGenerateExtension(\n _services: CommandServices,\n model: ProjectModel,\n params: Record<string, unknown>\n): Promise<GenerateSuccess> {\n const authData = await assertAuth();\n const extensionType = parseExtensionType(params);\n\n const handler =\n extensionHandlers[extensionType as keyof typeof extensionHandlers];\n\n const httpClient = createHttpClient({\n type: 'backoffice',\n getAppToken: () => authData.getAccessToken({}),\n });\n\n const zodSchema =\n typeof handler.zodSchema === 'function'\n ? await handler.zodSchema(httpClient)\n : handler.zodSchema;\n\n const result = zodSchema.safeParse(params);\n\n if (!result.success) {\n throw new Error(\n result.error.errors\n .map((e) =>\n e.path.length > 0 ? `${e.path.join('.')}: ${e.message}` : e.message\n )\n .join('\\n')\n );\n }\n\n if (handler.validate) {\n const validationError = await handler.validate(\n model.projectFolder,\n result.data\n );\n if (validationError) {\n throw new Error(validationError);\n }\n }\n\n const generationResult = await handler.generate({\n projectFolder: model.projectFolder,\n appId: model.config.appId,\n model,\n data: result.data,\n httpClient,\n });\n\n return {\n extensionType,\n newFiles: (generationResult?.newFiles ?? []).map((f: string) =>\n relative(model.projectFolder, f)\n ),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,SAAS,gBAAgB;AAczB,eAAe,aAAa;AAC1B,QAAM,WAAW,MAAM,oBAAoB;AAC3C,MAAI,CAAC,UAAU;AACb,UAAM,IAAI,SAAS;AAAA,MACjB,MAAM,aAAa,uBAAuB;AAAA,MAC1C,OAAO;AAAA,IACT,CAAC;AAAA,EACH;AACA,SAAO;AACT;AAEA,SAAS,mBAAmB,QAAyC;AACnE,QAAM,sBAAsB,oBAAoB,UAAU,MAAM;AAEhE,MAAI,CAAC,oBAAoB,SAAS;AAChC,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEA,QAAM,EAAE,cAAc,IAAI,oBAAoB;AAE9C,MAAI,CAAC,OAAO,OAAO,mBAAmB,aAAa,GAAG;AACpD,UAAM,IAAI;AAAA,MACR,4BAA4B,aAAa;AAAA,IAC3C;AAAA,EACF;AAEA,SAAO;AACT;AAEA,eAAsB,gCACpB,WACA,OACA,QAC0B;AAC1B,QAAM,WAAW,MAAM,WAAW;AAClC,QAAM,gBAAgB,mBAAmB,MAAM;AAE/C,QAAM,UACJ,kBAAkB,aAA+C;AAEnE,QAAM,aAAa,iBAAiB;AAAA,IAClC,MAAM;AAAA,IACN,aAAa,MAAM,SAAS,eAAe,CAAC,CAAC;AAAA,EAC/C,CAAC;AAED,QAAM,YACJ,OAAO,QAAQ,cAAc,aACzB,MAAM,QAAQ,UAAU,UAAU,IAClC,QAAQ;AAEd,QAAM,SAAS,UAAU,UAAU,MAAM;AAEzC,MAAI,CAAC,OAAO,SAAS;AACnB,UAAM,IAAI;AAAA,MACR,OAAO,MAAM,OACV;AAAA,QAAI,CAAC,MACJ,EAAE,KAAK,SAAS,IAAI,GAAG,EAAE,KAAK,KAAK,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,EAAE;AAAA,MAC9D,EACC,KAAK,IAAI;AAAA,IACd;AAAA,EACF;AAEA,MAAI,QAAQ,UAAU;AACpB,UAAM,kBAAkB,MAAM,QAAQ;AAAA,MACpC,MAAM;AAAA,MACN,OAAO;AAAA,IACT;AACA,QAAI,iBAAiB;AACnB,YAAM,IAAI,MAAM,eAAe;AAAA,IACjC;AAAA,EACF;AAEA,QAAM,mBAAmB,MAAM,QAAQ,SAAS;AAAA,IAC9C,eAAe,MAAM;AAAA,IACrB,OAAO,MAAM,OAAO;AAAA,IACpB;AAAA,IACA,MAAM,OAAO;AAAA,IACb;AAAA,EACF,CAAC;AAED,SAAO;AAAA,IACL;AAAA,IACA,WAAW,kBAAkB,YAAY,CAAC,GAAG;AAAA,MAAI,CAAC,MAChD,SAAS,MAAM,eAAe,CAAC;AAAA,IACjC;AAAA,EACF;AACF;","names":[]}
|
package/build/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import "./chunk-K6JLY75P.js";
|
|
10
10
|
import {
|
|
11
11
|
runCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MS3NOGHC.js";
|
|
13
13
|
import {
|
|
14
14
|
Argument,
|
|
15
15
|
Command,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
Option,
|
|
18
18
|
createCommand
|
|
19
19
|
} from "./chunk-4CMTZJ25.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-5V3FLVHI.js";
|
|
21
21
|
import {
|
|
22
22
|
createPanorama
|
|
23
23
|
} from "./chunk-FQN4UJ3S.js";
|
|
@@ -25,7 +25,7 @@ import "./chunk-YNEGRO3E.js";
|
|
|
25
25
|
import {
|
|
26
26
|
createBiLogger,
|
|
27
27
|
package_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-CZJWKS2W.js";
|
|
29
29
|
import "./chunk-GJXAHGEW.js";
|
|
30
30
|
import {
|
|
31
31
|
OutdatedVersionMessage,
|
|
@@ -37,13 +37,13 @@ import {
|
|
|
37
37
|
require_prerelease,
|
|
38
38
|
require_semver,
|
|
39
39
|
writeCrashReport
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-F5A2UKXZ.js";
|
|
41
41
|
import "./chunk-CJVRU5LZ.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-MDUBZZTI.js";
|
|
43
43
|
import "./chunk-RPTAJN5Y.js";
|
|
44
44
|
import {
|
|
45
45
|
render
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-QK47PIWK.js";
|
|
47
47
|
import {
|
|
48
48
|
require_react
|
|
49
49
|
} from "./chunk-TODKQSCF.js";
|
|
@@ -4350,9 +4350,9 @@ var login = (services) => {
|
|
|
4350
4350
|
).hideHelp().conflicts("apiKey")
|
|
4351
4351
|
).action(async (options, command) => {
|
|
4352
4352
|
const { apiKey, refreshToken } = options;
|
|
4353
|
-
const { getUserInfo: getUserInfo2 } = await import("./src-
|
|
4354
|
-
const { LoginCommand } = await import("./LoginCommand-
|
|
4355
|
-
const { renderCommand } = await import("./render-command-
|
|
4353
|
+
const { getUserInfo: getUserInfo2 } = await import("./src-ZDFXIHBF.js");
|
|
4354
|
+
const { LoginCommand } = await import("./LoginCommand-VPEG5OA6.js");
|
|
4355
|
+
const { renderCommand } = await import("./render-command-MMNIV7ZL.js");
|
|
4356
4356
|
const userInfo = await getUserInfo2();
|
|
4357
4357
|
await renderCommand(
|
|
4358
4358
|
command,
|
|
@@ -4374,9 +4374,9 @@ init_esm_shims();
|
|
|
4374
4374
|
var import_react2 = __toESM(require_react(), 1);
|
|
4375
4375
|
var logout = (services) => {
|
|
4376
4376
|
return createCommand("logout").description("Log out of your Wix account").action(async (_, command) => {
|
|
4377
|
-
const { getUserInfo: getUserInfo2 } = await import("./src-
|
|
4378
|
-
const { LogoutCommand } = await import("./LogoutCommand-
|
|
4379
|
-
const { renderCommand } = await import("./render-command-
|
|
4377
|
+
const { getUserInfo: getUserInfo2 } = await import("./src-ZDFXIHBF.js");
|
|
4378
|
+
const { LogoutCommand } = await import("./LogoutCommand-GWRIMI72.js");
|
|
4379
|
+
const { renderCommand } = await import("./render-command-MMNIV7ZL.js");
|
|
4380
4380
|
const userInfo = await getUserInfo2();
|
|
4381
4381
|
await renderCommand(
|
|
4382
4382
|
command,
|
|
@@ -4394,7 +4394,7 @@ var telemetry = () => {
|
|
|
4394
4394
|
).addArgument(new Argument("<state>", "").choices(["on", "off"])).action(async (state) => {
|
|
4395
4395
|
const { updateUserConfig } = await import("./src-S2K3P56P.js");
|
|
4396
4396
|
const { CliError: CliError2, CliErrorCode: CliErrorCode2 } = await import("./src-G6HWQTL6.js");
|
|
4397
|
-
const { createLogger } = await import("./src-
|
|
4397
|
+
const { createLogger } = await import("./src-63GFH6HZ.js");
|
|
4398
4398
|
const logger = createLogger();
|
|
4399
4399
|
try {
|
|
4400
4400
|
const telemetryEnabled = state === "on";
|
|
@@ -4420,7 +4420,7 @@ var token = (services) => {
|
|
|
4420
4420
|
new Option(NO_TTY_JSON_OUTPUT_OPTION, "Output in JSON format").hideHelp()
|
|
4421
4421
|
).action(async (options, command) => {
|
|
4422
4422
|
const { CliError: CliError2, CliErrorCode: CliErrorCode2 } = await import("./src-G6HWQTL6.js");
|
|
4423
|
-
const { isLoggedInToAccount } = await import("./src-
|
|
4423
|
+
const { isLoggedInToAccount } = await import("./src-ZDFXIHBF.js");
|
|
4424
4424
|
await runCommand(command, services, async () => {
|
|
4425
4425
|
const authState = await isLoggedInToAccount();
|
|
4426
4426
|
if (!authState) {
|
|
@@ -4455,9 +4455,9 @@ init_esm_shims();
|
|
|
4455
4455
|
var import_react3 = __toESM(require_react(), 1);
|
|
4456
4456
|
var whoami = (services) => {
|
|
4457
4457
|
return createCommand("whoami").description("Display the email of the logged in Wix user").action(async (_, command) => {
|
|
4458
|
-
const { getUserInfo: getUserInfo2 } = await import("./src-
|
|
4459
|
-
const { WhoamiCommand } = await import("./WhoamiCommand-
|
|
4460
|
-
const { renderCommand } = await import("./render-command-
|
|
4458
|
+
const { getUserInfo: getUserInfo2 } = await import("./src-ZDFXIHBF.js");
|
|
4459
|
+
const { WhoamiCommand } = await import("./WhoamiCommand-VUSN36FZ.js");
|
|
4460
|
+
const { renderCommand } = await import("./render-command-MMNIV7ZL.js");
|
|
4461
4461
|
const userInfo = await getUserInfo2();
|
|
4462
4462
|
await renderCommand(
|
|
4463
4463
|
command,
|
|
@@ -4598,7 +4598,7 @@ async function importCliAstro(config, projectFolder2) {
|
|
|
4598
4598
|
if (Object.hasOwn(config, "appId")) {
|
|
4599
4599
|
const astroExists = await hasAstroConfigurationFile(projectFolder2);
|
|
4600
4600
|
if (astroExists) {
|
|
4601
|
-
return import("./src-
|
|
4601
|
+
return import("./src-O2KEZJF5.js");
|
|
4602
4602
|
}
|
|
4603
4603
|
}
|
|
4604
4604
|
return null;
|
|
@@ -4619,12 +4619,12 @@ async function importCliSite(config) {
|
|
|
4619
4619
|
return null;
|
|
4620
4620
|
}
|
|
4621
4621
|
if (env.WIX_CLI_SITE_LIVE === "true" && Object.hasOwn(config, "veloAppId")) {
|
|
4622
|
-
return import("./src-
|
|
4622
|
+
return import("./src-QBUTQBGB.js");
|
|
4623
4623
|
}
|
|
4624
4624
|
if (!Object.hasOwn(config, "uiVersion")) {
|
|
4625
|
-
return import("./src-
|
|
4625
|
+
return import("./src-P4SPMGXF.js");
|
|
4626
4626
|
}
|
|
4627
|
-
return import("./src-
|
|
4627
|
+
return import("./src-OD6PIW3U.js");
|
|
4628
4628
|
}
|
|
4629
4629
|
|
|
4630
4630
|
// src/files/wix.config.ts
|
|
@@ -4,33 +4,32 @@ import {
|
|
|
4
4
|
migrateToAnyNpmIfNeeded,
|
|
5
5
|
resolveNpmDependencies,
|
|
6
6
|
resolvePackageManager
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LTVZM4MD.js";
|
|
8
8
|
import "./chunk-KB3GWH37.js";
|
|
9
9
|
import "./chunk-MYWHJYA3.js";
|
|
10
10
|
import {
|
|
11
11
|
createLogger
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-OJXRWGTQ.js";
|
|
13
|
+
import "./chunk-S25ZY7D6.js";
|
|
14
14
|
import {
|
|
15
15
|
createI18nT
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-L6WHYOLB.js";
|
|
17
17
|
import "./chunk-HEANTKSX.js";
|
|
18
18
|
import "./chunk-4BLGYECY.js";
|
|
19
19
|
import {
|
|
20
20
|
authenticate
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-SGNEANHH.js";
|
|
22
|
+
import "./chunk-3QMRQKKR.js";
|
|
23
|
+
import "./chunk-6GZ2BQEV.js";
|
|
24
|
+
import "./chunk-KUSCYV4K.js";
|
|
25
|
+
import "./chunk-NMCF7XG5.js";
|
|
26
26
|
import "./chunk-MHV22UIU.js";
|
|
27
|
-
import "./chunk-IBOXARGJ.js";
|
|
28
27
|
import "./chunk-GJXAHGEW.js";
|
|
29
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-F5A2UKXZ.js";
|
|
30
29
|
import "./chunk-CJVRU5LZ.js";
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-MDUBZZTI.js";
|
|
32
31
|
import "./chunk-RPTAJN5Y.js";
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-QK47PIWK.js";
|
|
34
33
|
import "./chunk-TODKQSCF.js";
|
|
35
34
|
import "./chunk-AFPDHQYI.js";
|
|
36
35
|
import "./chunk-HYKBBZLS.js";
|
|
@@ -82,4 +81,4 @@ async function install(model, { biLogger, errorReporter }, options, initialPacka
|
|
|
82
81
|
export {
|
|
83
82
|
install
|
|
84
83
|
};
|
|
85
|
-
//# sourceMappingURL=install-
|
|
84
|
+
//# sourceMappingURL=install-7WSMEXYM.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../cli-site-old/src/install/index.ts","../../cli-site-old/src/install/install.ts"],"sourcesContent":["export { install } from './install.js';\n","import type { CommandServices } from '@wix/cli-command-contract';\nimport { createI18nT } from '../i18n.js';\nimport { createLogger } from '../logger.js';\nimport type { ProjectModel } from '../model.js';\nimport { authenticate } from '../authentication.js';\nimport {\n resolvePackageManager,\n resolveNpmDependencies,\n migrateToAnyNpmIfNeeded,\n} from '../velo-npm/index.js';\n\nexport async function install(\n model: ProjectModel,\n { biLogger, errorReporter }: CommandServices,\n options: {\n yarn?: boolean;\n npm?: boolean;\n },\n initialPackageName?: string\n) {\n const authState = await authenticate({\n metaSiteId: model.metaSiteId,\n biLogger,\n errorReporter,\n });\n\n const t = createI18nT();\n const logger = createLogger({ t });\n const packageName = initialPackageName?.trim() ?? null;\n\n await migrateToAnyNpmIfNeeded(model.projectFolder, logger);\n\n const logInstalled = packageName\n ? logger.logDependencyInstalling(packageName)\n : logger.logAllDependenciesInstalling();\n\n try {\n const packageManager = await resolvePackageManager(\n model.projectFolder,\n options\n );\n\n if (packageName) {\n await packageManager.runInstallPackage(model.projectFolder, packageName);\n } else {\n await packageManager.runInstall(model.projectFolder);\n }\n\n await resolveNpmDependencies(model.projectFolder, { authState });\n\n logInstalled.success();\n } catch (error) {\n logInstalled.fail();\n throw error;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../cli-site-old/src/install/index.ts","../../cli-site-old/src/install/install.ts"],"sourcesContent":["export { install } from './install.js';\n","import type { CommandServices } from '@wix/cli-command-contract';\nimport { createI18nT } from '../i18n.js';\nimport { createLogger } from '../logger.js';\nimport type { ProjectModel } from '../model.js';\nimport { authenticate } from '../authentication.js';\nimport {\n resolvePackageManager,\n resolveNpmDependencies,\n migrateToAnyNpmIfNeeded,\n} from '../velo-npm/index.js';\n\nexport async function install(\n model: ProjectModel,\n { biLogger, errorReporter }: CommandServices,\n options: {\n yarn?: boolean;\n npm?: boolean;\n },\n initialPackageName?: string\n) {\n const authState = await authenticate({\n metaSiteId: model.metaSiteId,\n biLogger,\n errorReporter,\n });\n\n const t = createI18nT();\n const logger = createLogger({ t });\n const packageName = initialPackageName?.trim() ?? null;\n\n await migrateToAnyNpmIfNeeded(model.projectFolder, logger);\n\n const logInstalled = packageName\n ? logger.logDependencyInstalling(packageName)\n : logger.logAllDependenciesInstalling();\n\n try {\n const packageManager = await resolvePackageManager(\n model.projectFolder,\n options\n );\n\n if (packageName) {\n await packageManager.runInstallPackage(model.projectFolder, packageName);\n } else {\n await packageManager.runInstall(model.projectFolder);\n }\n\n await resolveNpmDependencies(model.projectFolder, { authState });\n\n logInstalled.success();\n } catch (error) {\n logInstalled.fail();\n throw error;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;ACAA;AAWA,eAAsB,QACpB,OACA,EAAE,UAAU,cAAc,GAC1B,SAIA,oBACA;AACA,QAAM,YAAY,MAAM,aAAa;AAAA,IACnC,YAAY,MAAM;AAAA,IAClB;AAAA,IACA;AAAA,EACF,CAAC;AAED,QAAM,IAAI,YAAY;AACtB,QAAM,SAAS,aAAa,EAAE,EAAE,CAAC;AACjC,QAAM,cAAc,oBAAoB,KAAK,KAAK;AAElD,QAAM,wBAAwB,MAAM,eAAe,MAAM;AAEzD,QAAM,eAAe,cACjB,OAAO,wBAAwB,WAAW,IAC1C,OAAO,6BAA6B;AAExC,MAAI;AACF,UAAM,iBAAiB,MAAM;AAAA,MAC3B,MAAM;AAAA,MACN;AAAA,IACF;AAEA,QAAI,aAAa;AACf,YAAM,eAAe,kBAAkB,MAAM,eAAe,WAAW;AAAA,IACzE,OAAO;AACL,YAAM,eAAe,WAAW,MAAM,aAAa;AAAA,IACrD;AAEA,UAAM,uBAAuB,MAAM,eAAe,EAAE,UAAU,CAAC;AAE/D,iBAAa,QAAQ;AAAA,EACvB,SAAS,OAAO;AACd,iBAAa,KAAK;AAClB,UAAM;AAAA,EACR;AACF;","names":[]}
|
|
@@ -2,38 +2,37 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
executeCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-K5QDT25A.js";
|
|
6
6
|
import {
|
|
7
7
|
log
|
|
8
8
|
} from "./chunk-35LXVE2A.js";
|
|
9
9
|
import {
|
|
10
10
|
PreviewCommand
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-OCFN4HLY.js";
|
|
12
|
+
import "./chunk-44LHW2E2.js";
|
|
13
13
|
import "./chunk-ASZD67F4.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-ULZWYZLP.js";
|
|
15
|
+
import "./chunk-ICWL3WXV.js";
|
|
16
|
+
import "./chunk-3R4ZCVMN.js";
|
|
17
|
+
import "./chunk-6GZ2BQEV.js";
|
|
18
|
+
import "./chunk-7UVUURDJ.js";
|
|
19
|
+
import "./chunk-FNQ6J7LZ.js";
|
|
20
20
|
import "./chunk-QRGKMYDD.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-KUSCYV4K.js";
|
|
22
|
+
import "./chunk-NMCF7XG5.js";
|
|
23
23
|
import "./chunk-MHV22UIU.js";
|
|
24
|
-
import "./chunk-IBOXARGJ.js";
|
|
25
24
|
import "./chunk-DKFM27EE.js";
|
|
26
25
|
import "./chunk-AAUVYJJT.js";
|
|
27
26
|
import "./chunk-K6JLY75P.js";
|
|
28
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-5V3FLVHI.js";
|
|
29
28
|
import "./chunk-FQN4UJ3S.js";
|
|
30
29
|
import "./chunk-YNEGRO3E.js";
|
|
31
30
|
import "./chunk-GJXAHGEW.js";
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-F5A2UKXZ.js";
|
|
33
32
|
import "./chunk-CJVRU5LZ.js";
|
|
34
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-MDUBZZTI.js";
|
|
35
34
|
import "./chunk-RPTAJN5Y.js";
|
|
36
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-QK47PIWK.js";
|
|
37
36
|
import {
|
|
38
37
|
require_react
|
|
39
38
|
} from "./chunk-TODKQSCF.js";
|
|
@@ -71,4 +70,4 @@ async function nonInteractivePreview(services, model, options) {
|
|
|
71
70
|
export {
|
|
72
71
|
nonInteractivePreview
|
|
73
72
|
};
|
|
74
|
-
//# sourceMappingURL=preview-
|
|
73
|
+
//# sourceMappingURL=preview-2OVCCIKQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../cli-astro-commands/src/non-interactive/preview.tsx"],"sourcesContent":["import React from 'react';\nimport type { CommandServices } from '@wix/cli-command-contract';\nimport { PreviewCommand } from '../components/PreviewCommand/index.js';\nimport type { ProjectModel } from '../model.js';\nimport { log } from './logger.js';\nimport { executeCommand } from './execute-command.js';\n\nexport async function nonInteractivePreview(\n services: CommandServices,\n model: ProjectModel,\n options: { baseUrl?: string; label?: string }\n) {\n const { baseUrl, label } = options;\n\n const result = await executeCommand<{\n previewId: string;\n previewUrl?: string;\n }>(services, model, (resolve) => (\n <PreviewCommand\n baseUrl={baseUrl}\n onPreviewCreated={resolve}\n environment=\"preview\"\n label={label}\n />\n ));\n\n log(JSON.stringify(result, null, 2));\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../cli-astro-commands/src/non-interactive/preview.tsx"],"sourcesContent":["import React from 'react';\nimport type { CommandServices } from '@wix/cli-command-contract';\nimport { PreviewCommand } from '../components/PreviewCommand/index.js';\nimport type { ProjectModel } from '../model.js';\nimport { log } from './logger.js';\nimport { executeCommand } from './execute-command.js';\n\nexport async function nonInteractivePreview(\n services: CommandServices,\n model: ProjectModel,\n options: { baseUrl?: string; label?: string }\n) {\n const { baseUrl, label } = options;\n\n const result = await executeCommand<{\n previewId: string;\n previewUrl?: string;\n }>(services, model, (resolve) => (\n <PreviewCommand\n baseUrl={baseUrl}\n onPreviewCreated={resolve}\n environment=\"preview\"\n label={label}\n />\n ));\n\n log(JSON.stringify(result, null, 2));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,mBAAkB;AAOlB,eAAsB,sBACpB,UACA,OACA,SACA;AACA,QAAM,EAAE,SAAS,MAAM,IAAI;AAE3B,QAAM,SAAS,MAAM,eAGlB,UAAU,OAAO,CAAC,YACnB,6BAAAA,QAAA;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,kBAAkB;AAAA,MAClB,aAAY;AAAA,MACZ;AAAA;AAAA,EACF,CACD;AAED,MAAI,KAAK,UAAU,QAAQ,MAAM,CAAC,CAAC;AACrC;","names":["React"]}
|
|
@@ -5,52 +5,51 @@ import {
|
|
|
5
5
|
deployGridApp,
|
|
6
6
|
getDefaultBranch,
|
|
7
7
|
getDeploymentStatus
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-I6ND4HKL.js";
|
|
9
9
|
import "./chunk-KB3GWH37.js";
|
|
10
10
|
import {
|
|
11
11
|
getDeploymentPipelineDescription,
|
|
12
12
|
publishDeployment
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5WSVS74K.js";
|
|
14
14
|
import {
|
|
15
15
|
DeploymentPipelinesStatus
|
|
16
16
|
} from "./chunk-MYWHJYA3.js";
|
|
17
17
|
import {
|
|
18
18
|
isSiteNotPublishedError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZTLE7UU2.js";
|
|
20
20
|
import {
|
|
21
21
|
createLogger
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OJXRWGTQ.js";
|
|
23
23
|
import {
|
|
24
24
|
httpRequest
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-S25ZY7D6.js";
|
|
26
26
|
import {
|
|
27
27
|
createI18nT
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-L6WHYOLB.js";
|
|
29
29
|
import "./chunk-HEANTKSX.js";
|
|
30
30
|
import "./chunk-4BLGYECY.js";
|
|
31
31
|
import {
|
|
32
32
|
authenticate
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-SGNEANHH.js";
|
|
34
34
|
import "./chunk-ICJSZGEK.js";
|
|
35
35
|
import "./chunk-DZ3U3XXP.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-3QMRQKKR.js";
|
|
37
37
|
import {
|
|
38
38
|
DeploymentOperation
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-FNQ6J7LZ.js";
|
|
40
|
+
import "./chunk-NMCF7XG5.js";
|
|
41
41
|
import "./chunk-MHV22UIU.js";
|
|
42
|
-
import "./chunk-IBOXARGJ.js";
|
|
43
42
|
import "./chunk-GJXAHGEW.js";
|
|
44
43
|
import {
|
|
45
44
|
resolveUrl,
|
|
46
45
|
serializer,
|
|
47
46
|
toURLSearchParams,
|
|
48
47
|
writeCrashReport
|
|
49
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-F5A2UKXZ.js";
|
|
50
49
|
import "./chunk-CJVRU5LZ.js";
|
|
51
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-MDUBZZTI.js";
|
|
52
51
|
import "./chunk-RPTAJN5Y.js";
|
|
53
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-QK47PIWK.js";
|
|
54
53
|
import "./chunk-TODKQSCF.js";
|
|
55
54
|
import {
|
|
56
55
|
source_default
|
|
@@ -5280,4 +5279,4 @@ async function publish(model, { biLogger, errorReporter }, options) {
|
|
|
5280
5279
|
export {
|
|
5281
5280
|
publish
|
|
5282
5281
|
};
|
|
5283
|
-
//# sourceMappingURL=publish-
|
|
5282
|
+
//# sourceMappingURL=publish-WPBJWYAT.js.map
|