@wix/astro 2.21.0 → 2.22.0
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/dependencies/astro-trusted-backoffice-extensions/types/index.d.ts +7 -0
- package/build/integration/builders-trusted.d.ts +7 -0
- package/build/integration/builders-trusted.js +2 -2
- package/build/integration/builders.js +2 -2
- package/build/integration/{chunk-P4K55M3B.js → chunk-2K65FTYR.js} +9 -2
- package/build/integration/chunk-2K65FTYR.js.map +1 -0
- package/build/integration/{chunk-UD4RG5I6.js → chunk-C2WQBOJF.js} +8 -5
- package/build/integration/chunk-C2WQBOJF.js.map +1 -0
- package/build/integration/{chunk-ZJHY3W6B.js → chunk-LKZKWQSB.js} +2 -2
- package/build/integration/index.js +3 -3
- package/package.json +2 -2
- package/build/integration/chunk-P4K55M3B.js.map +0 -1
- package/build/integration/chunk-UD4RG5I6.js.map +0 -1
- /package/build/integration/{chunk-ZJHY3W6B.js.map → chunk-LKZKWQSB.js.map} +0 -0
|
@@ -8,7 +8,14 @@ interface TrustedBackofficePage {
|
|
|
8
8
|
}
|
|
9
9
|
interface Options {
|
|
10
10
|
id: string;
|
|
11
|
+
activeSidebarPageId?: string;
|
|
11
12
|
component: string;
|
|
13
|
+
fullPage?: boolean;
|
|
14
|
+
hideInSidebar?: boolean;
|
|
15
|
+
pageCategoryId?: string;
|
|
16
|
+
previousRoutePaths?: string[];
|
|
17
|
+
priority?: number;
|
|
18
|
+
requiredPermission?: string;
|
|
12
19
|
routePath: string;
|
|
13
20
|
title: string;
|
|
14
21
|
}
|
|
@@ -8,7 +8,14 @@ interface TrustedBackofficePage {
|
|
|
8
8
|
}
|
|
9
9
|
interface Options {
|
|
10
10
|
id: string;
|
|
11
|
+
activeSidebarPageId?: string;
|
|
11
12
|
component: string;
|
|
13
|
+
fullPage?: boolean;
|
|
14
|
+
hideInSidebar?: boolean;
|
|
15
|
+
pageCategoryId?: string;
|
|
16
|
+
previousRoutePaths?: string[];
|
|
17
|
+
priority?: number;
|
|
18
|
+
requiredPermission?: string;
|
|
12
19
|
routePath: string;
|
|
13
20
|
title: string;
|
|
14
21
|
}
|
|
@@ -2,7 +2,7 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
trustedBackofficePage
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2K65FTYR.js";
|
|
6
6
|
import {
|
|
7
7
|
app,
|
|
8
8
|
customElement,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
siteComponentPanel,
|
|
19
19
|
sitePlugin,
|
|
20
20
|
webhook
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-C2WQBOJF.js";
|
|
22
22
|
import {
|
|
23
23
|
init_esm_shims
|
|
24
24
|
} from "./chunk-2K4KOKVV.js";
|
|
@@ -2,10 +2,10 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
extensions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LKZKWQSB.js";
|
|
6
6
|
import {
|
|
7
7
|
app
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-C2WQBOJF.js";
|
|
9
9
|
import "./chunk-2K4KOKVV.js";
|
|
10
10
|
export {
|
|
11
11
|
app,
|
|
@@ -2,7 +2,7 @@ import { createRequire as _createRequire } from 'node:module';
|
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
viteExternalsPlugin
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C2WQBOJF.js";
|
|
6
6
|
import {
|
|
7
7
|
appendToDevServerUrl,
|
|
8
8
|
build,
|
|
@@ -310,7 +310,14 @@ var createIntegration = () => {
|
|
|
310
310
|
compType: "BACK_OFFICE_PAGE",
|
|
311
311
|
compData: {
|
|
312
312
|
backOfficePage: {
|
|
313
|
+
activeSidebarPageId: extension.options.activeSidebarPageId,
|
|
314
|
+
fullPage: extension.options.fullPage,
|
|
315
|
+
hideInSidebar: extension.options.hideInSidebar,
|
|
313
316
|
hostingPlatform: "BUSINESS_MANAGER",
|
|
317
|
+
pageCategoryId: extension.options.pageCategoryId,
|
|
318
|
+
previousRoutePaths: extension.options.previousRoutePaths,
|
|
319
|
+
priority: extension.options.priority,
|
|
320
|
+
requiredPermission: extension.options.requiredPermission,
|
|
314
321
|
routePath: extension.options.routePath,
|
|
315
322
|
scriptAsset: {
|
|
316
323
|
containerId: model.appId,
|
|
@@ -352,4 +359,4 @@ export {
|
|
|
352
359
|
createIntegration,
|
|
353
360
|
trustedBackofficePage
|
|
354
361
|
};
|
|
355
|
-
//# sourceMappingURL=chunk-
|
|
362
|
+
//# sourceMappingURL=chunk-2K65FTYR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../astro-trusted-backoffice-extensions/src/integration.ts","../../../astro-trusted-backoffice-extensions/src/utils/getAssetUrl.ts","../../../astro-trusted-backoffice-extensions/src/utils/getSupportedExtensions.ts","../../../astro-trusted-backoffice-extensions/src/vite/getViteConfig.ts","../../../astro-trusted-backoffice-extensions/src/vite/registerComponentEntryVirtualRoute.ts","../../../astro-trusted-backoffice-extensions/src/utils/getTrustedBackofficeComponent.ts","../../../astro-trusted-backoffice-extensions/src/vite/registerComponentWrapperVirtualRoute.ts","../../../astro-trusted-backoffice-extensions/src/vite/virtualModulesPlugin.ts","../../../astro-trusted-backoffice-extensions/src/builders/trustedBackofficePage.ts","../../../astro-trusted-backoffice-extensions/src/index.ts"],"sourcesContent":["import { ok } from 'node:assert';\nimport type { Model, WixIntegration } from '@wix/astro-core';\nimport type { DevCenterBackofficePage } from '@wix/dev-center-schemas';\nimport type { RollupBuildOutput } from '@wix/vite-utils';\nimport type { ViteDevServer } from 'vite';\nimport { build } from '@wix/vite-utils';\nimport { createServer } from 'vite';\nimport { getAssetUrl } from './utils/getAssetUrl.js';\nimport { getSupportedExtensions } from './utils/getSupportedExtensions.js';\nimport { getViteConfig } from './vite/getViteConfig.js';\nimport { getVirtualModuleIdForComponentEntry } from './vite/registerComponentEntryVirtualRoute.js';\n\nexport const createIntegration = (): WixIntegration => {\n let model: Model | null = null;\n let customBuildOutput: null | RollupBuildOutput = null;\n let customDevServer: null | ViteDevServer = null;\n\n return {\n name: '@wix/astro/trusted-backoffice-extensions',\n hooks: {\n 'wix:model:setup'({ model: newModel }) {\n model = newModel;\n },\n async 'wix:server:start'({\n createExtensionViteConfig,\n setupExtensionProxy,\n }) {\n ok(model);\n customDevServer = await createServer(\n getViteConfig({ createExtensionViteConfig, model })\n );\n\n await customDevServer.listen();\n\n setupExtensionProxy(customDevServer);\n },\n async 'astro:server:done'() {\n ok(customDevServer);\n await customDevServer.close();\n },\n async 'wix:build:setup'({ createExtensionViteConfig, target }) {\n if (target === 'server') {\n return;\n }\n\n ok(model);\n const extensions = getSupportedExtensions(model);\n\n if (extensions.length === 0) {\n return;\n }\n\n customBuildOutput = await build(\n getViteConfig({\n createExtensionViteConfig,\n model,\n })\n );\n },\n async 'wix:app-manifest:setup'({\n staticsUrlPlaceholder,\n updateAppManifest,\n }) {\n ok(model);\n\n const components: DevCenterBackofficePage[] = [];\n\n for (const extension of getSupportedExtensions(model)) {\n const virtualModuleId = getVirtualModuleIdForComponentEntry(\n extension.options.id\n );\n\n components.push({\n compId: extension.options.id,\n compType: 'BACK_OFFICE_PAGE',\n compData: {\n backOfficePage: {\n activeSidebarPageId: extension.options.activeSidebarPageId,\n fullPage: extension.options.fullPage,\n hideInSidebar: extension.options.hideInSidebar,\n hostingPlatform: 'BUSINESS_MANAGER',\n pageCategoryId: extension.options.pageCategoryId,\n previousRoutePaths: extension.options.previousRoutePaths,\n priority: extension.options.priority,\n requiredPermission: extension.options.requiredPermission,\n routePath: extension.options.routePath,\n scriptAsset: {\n containerId: model.appId,\n exportedName: extension.options.id,\n scriptType: 'MODULE',\n url: getAssetUrl({\n baseUrl: staticsUrlPlaceholder,\n buildOutput: customBuildOutput,\n fileName: virtualModuleId,\n viteDevServer: customDevServer,\n }),\n },\n title: extension.options.title,\n },\n },\n });\n }\n\n updateAppManifest({\n components,\n });\n },\n },\n };\n};\n","import type { RollupBuildOutput } from '@wix/vite-utils';\nimport type { ViteDevServer } from 'vite';\nimport {\n appendToDevServerUrl,\n getAssetUrlForModuleId,\n getChunkForModuleId,\n} from '@wix/vite-utils';\n\nexport function getAssetUrl({\n baseUrl,\n buildOutput,\n fileName,\n viteDevServer,\n}: {\n baseUrl: string;\n buildOutput: null | RollupBuildOutput;\n fileName: string;\n viteDevServer: null | ViteDevServer;\n}) {\n if (buildOutput) {\n const chunk = getChunkForModuleId({\n buildOutput,\n moduleId: `\\0${fileName}`,\n });\n\n return appendToDevServerUrl(baseUrl, chunk.fileName);\n }\n\n if (viteDevServer) {\n return getAssetUrlForModuleId({\n baseUrl,\n devServer: viteDevServer,\n moduleId: fileName,\n });\n }\n\n throw new Error('Unknown error: no build output or vite dev server');\n}\n","import type { BaseExtension, Model } from '@wix/astro-core';\nimport type { SupportedExtension } from '../types.js';\n\nexport function getSupportedExtensions(model: Model) {\n return model.extensions.filter(isSupportedExtensions);\n}\n\nfunction isSupportedExtensions(\n extension: BaseExtension\n): extension is SupportedExtension {\n return extension.type === 'TrustedBackofficePage';\n}\n","import type { CreateExtensionViteConfig, Model } from '@wix/astro-core';\nimport { viteExternalsPlugin } from 'vite-plugin-externals';\nimport { getSupportedExtensions } from '../utils/getSupportedExtensions.js';\nimport {\n getVirtualModuleIdForComponentEntry,\n wrapComponentRuntimePath,\n} from './registerComponentEntryVirtualRoute.js';\nimport { hmrRuntimePath } from './registerComponentWrapperVirtualRoute.js';\nimport { virtualModulesPlugin } from './virtualModulesPlugin.js';\n\nexport function getViteConfig({\n createExtensionViteConfig,\n model,\n}: {\n createExtensionViteConfig: CreateExtensionViteConfig;\n model: Model;\n}) {\n const componentEntries = getSupportedExtensions(model).map((x) =>\n getVirtualModuleIdForComponentEntry(x.options.id)\n );\n\n return createExtensionViteConfig({\n name: 'trusted-backoffice',\n config: {\n build: {\n rollupOptions: {\n input: componentEntries,\n },\n },\n experimental: {\n renderBuiltUrl(filename, { hostId, hostType }) {\n if (hostType !== 'js') {\n return { relative: true };\n }\n\n return {\n runtime: `import.meta.url.replace(\"${hostId}\", \"${filename}\")`,\n };\n },\n },\n optimizeDeps: {\n entries: [\n wrapComponentRuntimePath,\n hmrRuntimePath,\n ...componentEntries,\n ],\n },\n plugins: [\n virtualModulesPlugin({ model }),\n viteExternalsPlugin({\n react: 'React',\n 'react-dom': 'ReactDOM',\n }),\n ],\n },\n });\n}\n","import type { Model } from '@wix/astro-core';\nimport type { ParamData, VirtualRouter } from '@wix/vite-virtual-router-plugin';\nimport { normalizePath } from '@wix/vite-utils';\nimport { outdent } from 'outdent';\nimport { getTrustedBackofficeComponent } from '../utils/getTrustedBackofficeComponent.js';\nimport { getVirtualModuleIdForComponentWrapper } from './registerComponentWrapperVirtualRoute.js';\n\ninterface Params extends ParamData {\n id: string;\n}\n\nexport const wrapComponentRuntimePath = normalizePath(\n new URL(\n '../dependencies/astro-trusted-backoffice-extensions/browser-runtime/wrapComponent.js',\n import.meta.url\n )\n);\n\nexport function getVirtualModuleIdForComponentEntry(componentId: string) {\n return `wix/component/backoffice/entries/${componentId}`;\n}\n\nexport function registerComponentEntryVirtualRoute({\n model,\n router,\n}: {\n model: Model;\n router: VirtualRouter;\n}) {\n router.route<Params>(\n getVirtualModuleIdForComponentEntry(':id'),\n ({ id }, { command }) => {\n const extension = getTrustedBackofficeComponent(model, id);\n\n if (extension) {\n const componentPath = getVirtualModuleIdForComponentWrapper(\n extension.options.id\n );\n\n if (command === 'build') {\n return getComponentBuildTemplate({\n componentId: extension.options.id,\n componentPath,\n });\n }\n\n return getComponentServeTemplate({\n componentId: extension.options.id,\n componentPath,\n });\n }\n\n return null;\n }\n );\n}\n\nfunction getComponentBuildTemplate({\n componentId,\n componentPath,\n}: {\n componentId: string;\n componentPath: string;\n}) {\n return outdent`\n import { wrapComponent } from '${wrapComponentRuntimePath}'\n\n wrapComponent({\n componentId: '${componentId}',\n loadComponent: () => import('${componentPath}'),\n });\n `;\n}\n\nfunction getComponentServeTemplate({\n componentId,\n componentPath,\n}: {\n componentId: string;\n componentPath: string;\n}) {\n return outdent`\n import { wrapComponent } from '${wrapComponentRuntimePath}'\n\n wrapComponent({\n componentId: '${componentId}',\n loadComponent: () => import('${componentPath}'),\n });\n `;\n}\n","import type { Model } from '@wix/astro-core';\nimport { getSupportedExtensions } from './getSupportedExtensions.js';\n\nexport function getTrustedBackofficeComponent(model: Model, id: string) {\n return getSupportedExtensions(model).find((ext) => ext.options.id === id);\n}\n","import { join } from 'node:path';\nimport type { Model } from '@wix/astro-core';\nimport type { ParamData, VirtualRouter } from '@wix/vite-virtual-router-plugin';\nimport { normalizePath } from '@wix/vite-utils';\nimport { outdent } from 'outdent';\nimport { getTrustedBackofficeComponent } from '../utils/getTrustedBackofficeComponent.js';\n\ninterface Params extends ParamData {\n id: string;\n}\n\nexport const hmrRuntimePath = normalizePath(\n new URL(\n '../dependencies/astro-trusted-backoffice-extensions/browser-runtime/hmr.js',\n import.meta.url\n )\n);\n\nexport function getVirtualModuleIdForComponentWrapper(componentId: string) {\n return `wix/component/backoffice/wrappers/${componentId}`;\n}\n\nexport function registerComponentWrapperVirtualRoute({\n model,\n router,\n}: {\n model: Model;\n router: VirtualRouter;\n}) {\n router.route<Params>(\n getVirtualModuleIdForComponentWrapper(':id'),\n ({ id }, { command }) => {\n const extension = getTrustedBackofficeComponent(model, id);\n\n if (extension) {\n const componentPath = normalizePath(\n join(model.srcDir, extension.options.component)\n );\n\n if (command === 'build') {\n return getComponentBuildTemplate({\n componentPath,\n });\n }\n\n return getComponentServeTemplate({\n componentPath,\n });\n }\n\n return null;\n }\n );\n}\n\nfunction getComponentBuildTemplate({\n componentPath,\n}: {\n componentPath: string;\n}) {\n return outdent`\n export { default } from '${componentPath}';\n `;\n}\n\nfunction getComponentServeTemplate({\n componentPath,\n}: {\n componentPath: string;\n}) {\n return outdent`\n import { createComponentHmrWrapper } from '${hmrRuntimePath}';\n import OriginalComponent from '${componentPath}';\n\n let WrappedComponent = OriginalComponent;\n\n if (import.meta.hot) {\n import.meta.hot.accept('${componentPath}', (newModule) => {\n if (newModule?.default) {\n import.meta.hot.data.setComponent?.(newModule?.default);\n }\n });\n\n WrappedComponent = createComponentHmrWrapper(OriginalComponent, import.meta.hot.data);\n }\n\n export default WrappedComponent;\n `;\n}\n","import type { Model } from '@wix/astro-core';\nimport {\n createVirtualRouter,\n viteVirtualRouterPlugin,\n} from '@wix/vite-virtual-router-plugin';\nimport { registerComponentEntryVirtualRoute } from './registerComponentEntryVirtualRoute.js';\nimport { registerComponentWrapperVirtualRoute } from './registerComponentWrapperVirtualRoute.js';\n\nexport function virtualModulesPlugin({ model }: { model: Model }) {\n const router = createVirtualRouter();\n\n registerComponentEntryVirtualRoute({ model, router });\n registerComponentWrapperVirtualRoute({ model, router });\n\n return viteVirtualRouterPlugin({\n name: 'wix:trusted-backoffice-virtual-modules-plugin',\n router,\n });\n}\n","export interface TrustedBackofficePage {\n type: 'TrustedBackofficePage';\n options: Options;\n}\n\ninterface Options {\n id: string;\n activeSidebarPageId?: string;\n component: string;\n fullPage?: boolean;\n hideInSidebar?: boolean;\n pageCategoryId?: string;\n previousRoutePaths?: string[];\n priority?: number;\n requiredPermission?: string;\n routePath: string;\n title: string;\n}\n\nexport function trustedBackofficePage(options: Options): TrustedBackofficePage {\n return {\n type: 'TrustedBackofficePage',\n options,\n };\n}\n","export { createIntegration as default } from './integration.js';\n\n// builders\nexport { trustedBackofficePage } from './builders/trustedBackofficePage.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA,SAAS,UAAU;AAMnB,SAAS,oBAAoB;;;ACN7B;AAQO,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AAA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,UAAU,QAAQ;AAAA,gBAC7B,aAAa;AAAA,kBACX,aAAa,MAAM;AAAA,kBACnB,cAAc,UAAU,QAAQ;AAAA,kBAChC,YAAY;AAAA,kBACZ,KAAK,YAAY;AAAA,oBACf,SAAS;AAAA,oBACT,aAAa;AAAA,oBACb,UAAU;AAAA,oBACV,eAAe;AAAA,kBACjB,CAAC;AAAA,gBACH;AAAA,gBACA,OAAO,UAAU,QAAQ;AAAA,cAC3B;AAAA,YACF;AAAA,UACF,CAAC;AAAA,QACH;AAEA,0BAAkB;AAAA,UAChB;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;;;AQ7GA;AAmBO,SAAS,sBAAsB,SAAyC;AAC7E,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,EACF;AACF;;;ACxBA;","names":["getComponentBuildTemplate","getComponentServeTemplate"]}
|
|
@@ -5217,9 +5217,6 @@ function getViteConfig({
|
|
|
5217
5217
|
entries: [setupWebhookPath, setupServicePluginPath, ...webhookEntries]
|
|
5218
5218
|
},
|
|
5219
5219
|
plugins: [virtualModulesPlugin({ model })],
|
|
5220
|
-
resolve: {
|
|
5221
|
-
dedupe: ["@wix/sdk-context"]
|
|
5222
|
-
},
|
|
5223
5220
|
server: { middlewareMode: true },
|
|
5224
5221
|
ssr: {
|
|
5225
5222
|
noExternal: true
|
|
@@ -5716,6 +5713,13 @@ function createExtensionViteConfigFactory({
|
|
|
5716
5713
|
define: {
|
|
5717
5714
|
"import.meta.env.WIX_CLIENT_ID": JSON.stringify(env2.WIX_CLIENT_ID)
|
|
5718
5715
|
},
|
|
5716
|
+
publicDir: false,
|
|
5717
|
+
resolve: {
|
|
5718
|
+
// normally there should only be a single copy of `@wix/sdk-context` in a
|
|
5719
|
+
// bundle, but there can be exceptions like using a symlinked `@wix/astro`
|
|
5720
|
+
// on another package
|
|
5721
|
+
dedupe: ["@wix/sdk-context"]
|
|
5722
|
+
},
|
|
5719
5723
|
root: astroConfig.root,
|
|
5720
5724
|
server: {
|
|
5721
5725
|
cors: true,
|
|
@@ -6395,7 +6399,6 @@ var createIntegration2 = ({
|
|
|
6395
6399
|
include: [
|
|
6396
6400
|
"@wix/sdk-runtime/context",
|
|
6397
6401
|
"@wix/dashboard/internal",
|
|
6398
|
-
"@wix/sdk-context",
|
|
6399
6402
|
"@wix/sdk",
|
|
6400
6403
|
"@wix/sdk/auth/site-session",
|
|
6401
6404
|
"@wix/headless-site",
|
|
@@ -23705,4 +23708,4 @@ export {
|
|
|
23705
23708
|
createIntegration6,
|
|
23706
23709
|
siteComponent
|
|
23707
23710
|
};
|
|
23708
|
-
//# sourceMappingURL=chunk-
|
|
23711
|
+
//# sourceMappingURL=chunk-C2WQBOJF.js.map
|