@wix/cli-app 1.1.8 → 1.1.10
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-XY77M77G.js → CreateVersionCommand-ZED4C5IK.js} +2 -2
- package/build/DevCommand-EOGURH5I.js +4 -0
- package/build/DevCommand-EOGURH5I.js.map +1 -0
- package/build/GenerateCommand-2GP5ZDIG.js +99 -0
- package/build/GenerateCommand-2GP5ZDIG.js.map +1 -0
- package/build/PreviewCommand-KR2XGCFF.js +4 -0
- package/build/{ServeCommand-T7ONJGTT.js → ServeCommand-UAJS2PA6.js} +2 -2
- package/build/{build-L5SDRJ7I.js → build-3JHPJZJI.js} +2 -2
- package/build/{chunk-L2O2VHQ5.js → chunk-355OHM37.js} +2 -2
- package/build/chunk-3RXBIY4X.js +25 -0
- package/build/chunk-3RXBIY4X.js.map +1 -0
- package/build/{chunk-UMDJRPVA.js → chunk-BASMMNVW.js} +2 -2
- package/build/{chunk-VIS32XQB.js → chunk-BSEV5LHK.js} +2 -2
- package/build/chunk-BYI27HUJ.js +4 -0
- package/build/chunk-BYI27HUJ.js.map +1 -0
- package/build/chunk-DYVKPZDH.js +75 -0
- package/build/chunk-DYVKPZDH.js.map +1 -0
- package/build/chunk-F35NSBUP.js +4 -0
- package/build/chunk-F35NSBUP.js.map +1 -0
- package/build/chunk-J3Q3DHMD.js +4 -0
- package/build/chunk-J3Q3DHMD.js.map +1 -0
- package/build/{chunk-PFA6M6ZX.js → chunk-JBF5X4QY.js} +2 -2
- package/build/chunk-JCBXLFRW.js +4 -0
- package/build/chunk-JCBXLFRW.js.map +1 -0
- package/build/{chunk-33ZJLOBS.js → chunk-LIHTNDQX.js} +2 -2
- package/build/chunk-LIHTNDQX.js.map +1 -0
- package/build/{chunk-HUG7YXDC.js → chunk-LW6L3WY3.js} +3 -3
- package/build/chunk-LW6L3WY3.js.map +1 -0
- package/build/{chunk-HFRTZDJK.js → chunk-M4WZBOPY.js} +9 -11
- package/build/{chunk-HFRTZDJK.js.map → chunk-M4WZBOPY.js.map} +1 -1
- package/build/chunk-NXZW6FWB.js +27 -0
- package/build/chunk-NXZW6FWB.js.map +1 -0
- package/build/chunk-OTVLQNCK.js +4 -0
- package/build/chunk-OXEFT2HH.js +4 -0
- package/build/chunk-OXEFT2HH.js.map +1 -0
- package/build/{chunk-YISUVMX6.js → chunk-QE2ZMSXG.js} +27 -27
- package/build/chunk-QE2ZMSXG.js.map +1 -0
- package/build/chunk-T2HZ7OVC.js +4 -0
- package/build/chunk-T2HZ7OVC.js.map +1 -0
- package/build/{chunk-NEFKMKKG.js → chunk-WK54N4GD.js} +2 -2
- package/build/index.js +1 -1
- package/build/{preview-RVEH4SWT.js → preview-EFIEGFXF.js} +2 -2
- package/build/render-command-UUN7DFLA.js +4 -0
- package/build/render-command-UUN7DFLA.js.map +1 -0
- package/package.json +8 -7
- package/templates/dashboard-menu-plugin/menu.json.ejs +4 -0
- package/templates/dashboard-modal/modal.json.ejs +4 -0
- package/templates/dashboard-modal/modal.tsx.ejs +39 -0
- package/templates/dashboard-page-plugin/plugin.json.ejs +4 -0
- package/templates/dashboard-page-plugin/plugin.tsx.ejs +44 -0
- package/build/DevCommand-KYMGVTJK.js +0 -4
- package/build/DevCommand-KYMGVTJK.js.map +0 -1
- package/build/GenerateCommand-YY3VLI6F.js +0 -99
- package/build/GenerateCommand-YY3VLI6F.js.map +0 -1
- package/build/PreviewCommand-JQCZICOM.js +0 -4
- package/build/chunk-33ZJLOBS.js.map +0 -1
- package/build/chunk-3B3FUXMB.js +0 -24
- package/build/chunk-3B3FUXMB.js.map +0 -1
- package/build/chunk-74DPMRN2.js +0 -4
- package/build/chunk-74DPMRN2.js.map +0 -1
- package/build/chunk-E672MUDP.js +0 -27
- package/build/chunk-E672MUDP.js.map +0 -1
- package/build/chunk-G6WJ564G.js +0 -4
- package/build/chunk-G6WJ564G.js.map +0 -1
- package/build/chunk-HEUTIIWU.js +0 -4
- package/build/chunk-HEUTIIWU.js.map +0 -1
- package/build/chunk-HUG7YXDC.js.map +0 -1
- package/build/chunk-JRFCSA2V.js +0 -75
- package/build/chunk-JRFCSA2V.js.map +0 -1
- package/build/chunk-KHVNOWQT.js +0 -4
- package/build/chunk-KHVNOWQT.js.map +0 -1
- package/build/chunk-MMDHW54Y.js +0 -4
- package/build/chunk-MMDHW54Y.js.map +0 -1
- package/build/chunk-UD5LSB7X.js +0 -4
- package/build/chunk-UD5LSB7X.js.map +0 -1
- package/build/chunk-YISUVMX6.js.map +0 -1
- package/build/chunk-ZBKHOEDJ.js +0 -4
- package/build/render-command-ZO2JM5KO.js +0 -4
- package/build/render-command-ZO2JM5KO.js.map +0 -1
- /package/build/{CreateVersionCommand-XY77M77G.js.map → CreateVersionCommand-ZED4C5IK.js.map} +0 -0
- /package/build/{PreviewCommand-JQCZICOM.js.map → PreviewCommand-KR2XGCFF.js.map} +0 -0
- /package/build/{ServeCommand-T7ONJGTT.js.map → ServeCommand-UAJS2PA6.js.map} +0 -0
- /package/build/{build-L5SDRJ7I.js.map → build-3JHPJZJI.js.map} +0 -0
- /package/build/{chunk-L2O2VHQ5.js.map → chunk-355OHM37.js.map} +0 -0
- /package/build/{chunk-UMDJRPVA.js.map → chunk-BASMMNVW.js.map} +0 -0
- /package/build/{chunk-VIS32XQB.js.map → chunk-BSEV5LHK.js.map} +0 -0
- /package/build/{chunk-PFA6M6ZX.js.map → chunk-JBF5X4QY.js.map} +0 -0
- /package/build/{chunk-ZBKHOEDJ.js.map → chunk-OTVLQNCK.js.map} +0 -0
- /package/build/{chunk-NEFKMKKG.js.map → chunk-WK54N4GD.js.map} +0 -0
- /package/build/{preview-RVEH4SWT.js.map → preview-EFIEGFXF.js.map} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import{a as n}from"./chunk-LW6L3WY3.js";import{C as t}from"./chunk-QE2ZMSXG.js";import{h as r}from"./chunk-HFDLXX7R.js";r();function s(){let e=t(n);return e.t.bind(e)}export{s as a};
|
|
4
|
+
//# sourceMappingURL=chunk-OTVLQNCK.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as _createRequire } from 'node:module';
|
|
2
|
+
const require = _createRequire(import.meta.url);
|
|
3
|
+
import{d as w}from"./chunk-JCBXLFRW.js";import{m as E,n as y}from"./chunk-J3Q3DHMD.js";import{A as p,B as h,d as i,g as x,j as f,s as P}from"./chunk-QE2ZMSXG.js";import{O as b,R as B,T as t,c as d,d as g,n as m}from"./chunk-DYVKPZDH.js";import{h as s}from"./chunk-HFDLXX7R.js";s();async function _(o){let e=b(o),l=B(o);if(!await m(e)||!await m(l))throw new d({code:g.BuiltProjectNeeded()})}s();import r from"react";var a=({url:o,label:e,withPointer:l=!0})=>r.createElement(i,null,r.createElement(i,{marginRight:1},l&&r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(P,{url:o},e)))),O=()=>{let{t:o}=h(),{isPlatformExists:e,hasSinglePlatform:l}=w(),u=E(),n=C=>y({envConfig:u,platformType:C});return r.createElement(r.Fragment,null,l(t.Dashboard())?r.createElement(i,{flexDirection:"row"},r.createElement(p,{i18nKey:"general.open_preview.title_single"}),r.createElement(a,{withPointer:!1,url:n(t.Dashboard({route:"/"})),label:o("general.platform.dashboard")})):r.createElement(i,{flexDirection:"column"},r.createElement(p,{i18nKey:"general.open_preview.title_multiple"}),r.createElement(i,{paddingLeft:2,flexDirection:"column"},e(t.Site())&&(u.site.viewUrl?r.createElement(a,{url:n(t.Site()),label:o("general.platform.site")}):r.createElement(i,{marginRight:1},r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(x,{skin:"secondary",underline:!0},o("general.platform.unpublished_site"))))),e(t.Editor())&&r.createElement(a,{url:n(t.Editor()),label:o("general.platform.editor")}),e(t.Dashboard())&&r.createElement(a,{url:n(t.Dashboard({route:"/"})),label:o("general.platform.dashboard")}))))};export{O as a,_ as b};
|
|
4
|
+
//# sourceMappingURL=chunk-OXEFT2HH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/files/assert-build-output-exists.ts","../src/components/extensions/PlatformViewer.tsx"],"sourcesContent":["import { pathExists } from '@wix/cli-fs';\nimport {\n getAppBuildFolder,\n getAppManifestPath,\n} from '@wix/cli-app-definitions';\nimport { CliErrorCode, CliError } from '@wix/cli-error';\n\nexport async function assertBuildOutputExists(projectFolder: string) {\n const buildFolder = getAppBuildFolder(projectFolder);\n const manifestPath = getAppManifestPath(projectFolder);\n\n if (!(await pathExists(buildFolder)) || !(await pathExists(manifestPath))) {\n throw new CliError({\n code: CliErrorCode.BuiltProjectNeeded(),\n });\n }\n}\n","import React, { type FC } from 'react';\nimport { Trans, useTranslation } from '@wix/cli-i18n';\nimport { Box, Link, PointerSmallIcon, Text } from '@wix/cli-ui-kit';\nimport { PlatformType } from '@wix/cli-app-definitions';\nimport { useExtensions } from './useExtensions.js';\nimport { resolvePlatformUrl, useEnvConfig } from './utils.js';\n\ntype PlatformLinkProps = {\n url: string;\n label: string;\n withPointer?: boolean;\n};\n\nexport const PlatformLink: FC<PlatformLinkProps> = ({\n url,\n label,\n withPointer = true,\n}) => {\n return (\n <Box>\n <Box marginRight={1}>\n {withPointer && <PointerSmallIcon />}\n <Box marginLeft={1}>\n <Link url={url}>{label}</Link>\n </Box>\n </Box>\n </Box>\n );\n};\n\nexport const PlatformViewer: FC = () => {\n const { t } = useTranslation();\n const { isPlatformExists, hasSinglePlatform } = useExtensions();\n const envConfig = useEnvConfig();\n\n const getPlatformUrl = (platformType: PlatformType) =>\n resolvePlatformUrl({\n envConfig,\n platformType,\n });\n\n return (\n <>\n {hasSinglePlatform(PlatformType.Dashboard()) ? (\n <Box flexDirection=\"row\">\n <Trans i18nKey=\"general.open_preview.title_single\" />\n <PlatformLink\n withPointer={false}\n url={getPlatformUrl(PlatformType.Dashboard({ route: '/' }))}\n label={t('general.platform.dashboard')}\n />\n </Box>\n ) : (\n <Box flexDirection=\"column\">\n <Trans i18nKey=\"general.open_preview.title_multiple\" />\n <Box paddingLeft={2} flexDirection=\"column\">\n {isPlatformExists(PlatformType.Site()) &&\n (envConfig.site.viewUrl ? (\n <PlatformLink\n url={getPlatformUrl(PlatformType.Site())}\n label={t('general.platform.site')}\n />\n ) : (\n <Box marginRight={1}>\n <PointerSmallIcon />\n <Box marginLeft={1}>\n <Text skin=\"secondary\" underline>\n {t('general.platform.unpublished_site')}\n </Text>\n </Box>\n </Box>\n ))}\n {isPlatformExists(PlatformType.Editor()) && (\n <PlatformLink\n url={getPlatformUrl(PlatformType.Editor())}\n label={t('general.platform.editor')}\n />\n )}\n {isPlatformExists(PlatformType.Dashboard()) && (\n <PlatformLink\n url={getPlatformUrl(PlatformType.Dashboard({ route: '/' }))}\n label={t('general.platform.dashboard')}\n />\n )}\n </Box>\n </Box>\n )}\n </>\n );\n};\n"],"mappings":";;qRAAAA,IAOA,eAAsBC,EAAwBC,EAAuB,CACnE,IAAMC,EAAcC,EAAkBF,CAAa,EAC7CG,EAAeC,EAAmBJ,CAAa,EAErD,GAAI,CAAE,MAAMK,EAAWJ,CAAW,GAAM,CAAE,MAAMI,EAAWF,CAAY,EACrE,MAAM,IAAIG,EAAS,CACjB,KAAMC,EAAa,mBAAmB,CACxC,CAAC,CAEL,CChBAC,IAAA,OAAOC,MAAwB,QAaxB,IAAMC,EAAsC,CAAC,CAClD,IAAAC,EACA,MAAAC,EACA,YAAAC,EAAc,EAChB,IAEIC,EAAA,cAACC,EAAA,KACCD,EAAA,cAACC,EAAA,CAAI,YAAa,GACfF,GAAeC,EAAA,cAACE,EAAA,IAAiB,EAClCF,EAAA,cAACC,EAAA,CAAI,WAAY,GACfD,EAAA,cAACG,EAAA,CAAK,IAAKN,GAAMC,CAAM,CACzB,CACF,CACF,EAISM,EAAqB,IAAM,CACtC,GAAM,CAAE,EAAAC,CAAE,EAAIC,EAAe,EAC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EJ","names":["init_esm_shims","assertBuildOutputExists","projectFolder","buildFolder","getAppBuildFolder","manifestPath","getAppManifestPath","pathExists","CliError","CliErrorCode","init_esm_shims","React","PlatformLink","url","label","withPointer","React","Box_default","PointerSmallIcon","Link","PlatformViewer","t","useTranslation","isPlatformExists","hasSinglePlatform","useExtensions","envConfig","useEnvConfig","getPlatformUrl","platformType","resolvePlatformUrl","PlatformType","Trans","Text"]}
|