@wix/astro 2.7.0 → 2.9.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/builders.d.ts +1 -0
- package/build/builders.js +2 -0
- package/build/builders.js.map +1 -1
- package/build/index.js +5 -1
- package/build/index.js.map +1 -1
- package/package.json +13 -11
package/build/builders.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ export { backofficeExtensionMenuPlugin, backofficeExtensionWidget, backofficeMod
|
|
|
3
3
|
export { app, genericExtension } from '@wix/astro-core';
|
|
4
4
|
export { customElement } from '@wix/astro-custom-elements-extensions';
|
|
5
5
|
export { embeddedScript } from '@wix/astro-embedded-scripts-extensions';
|
|
6
|
+
export { siteComponent } from '@wix/astro-site-components-extensions';
|
|
6
7
|
export { sitePlugin } from '@wix/astro-site-plugins-extensions';
|
package/build/builders.js
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
import { app, genericExtension } from "@wix/astro-core";
|
|
21
21
|
import { customElement } from "@wix/astro-custom-elements-extensions";
|
|
22
22
|
import { embeddedScript } from "@wix/astro-embedded-scripts-extensions";
|
|
23
|
+
import { siteComponent } from "@wix/astro-site-components-extensions";
|
|
23
24
|
import { sitePlugin } from "@wix/astro-site-plugins-extensions";
|
|
24
25
|
export {
|
|
25
26
|
app,
|
|
@@ -36,6 +37,7 @@ export {
|
|
|
36
37
|
ecomValidations,
|
|
37
38
|
embeddedScript,
|
|
38
39
|
genericExtension,
|
|
40
|
+
siteComponent,
|
|
39
41
|
sitePlugin,
|
|
40
42
|
webhook
|
|
41
43
|
};
|
package/build/builders.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/builders.ts"],"sourcesContent":["export {\n ecomAdditionalFees,\n ecomDiscountsTrigger,\n ecomGiftCardsProvider,\n ecomPaymentSettings,\n ecomShippingRates,\n ecomValidations,\n webhook,\n} from '@wix/astro-backend-extensions';\nexport {\n backofficeExtensionMenuPlugin,\n backofficeExtensionWidget,\n backofficeModal,\n backofficePage,\n} from '@wix/astro-backoffice-extensions';\nexport { app, genericExtension } from '@wix/astro-core';\nexport { customElement } from '@wix/astro-custom-elements-extensions';\nexport { embeddedScript } from '@wix/astro-embedded-scripts-extensions';\nexport { sitePlugin } from '@wix/astro-site-plugins-extensions';\n"],"mappings":";;;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,KAAK,wBAAwB;AACtC,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/builders.ts"],"sourcesContent":["export {\n ecomAdditionalFees,\n ecomDiscountsTrigger,\n ecomGiftCardsProvider,\n ecomPaymentSettings,\n ecomShippingRates,\n ecomValidations,\n webhook,\n} from '@wix/astro-backend-extensions';\nexport {\n backofficeExtensionMenuPlugin,\n backofficeExtensionWidget,\n backofficeModal,\n backofficePage,\n} from '@wix/astro-backoffice-extensions';\nexport { app, genericExtension } from '@wix/astro-core';\nexport { customElement } from '@wix/astro-custom-elements-extensions';\nexport { embeddedScript } from '@wix/astro-embedded-scripts-extensions';\nexport { siteComponent } from '@wix/astro-site-components-extensions';\nexport { sitePlugin } from '@wix/astro-site-plugins-extensions';\n"],"mappings":";;;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,KAAK,wBAAwB;AACtC,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;","names":[]}
|
package/build/index.js
CHANGED
|
@@ -11,7 +11,9 @@ import embeddedScripts from "@wix/astro-embedded-scripts-extensions";
|
|
|
11
11
|
import htmlEmbeds from "@wix/astro-html-embeds";
|
|
12
12
|
import paymentLinks from "@wix/astro-payment-links";
|
|
13
13
|
import robots from "@wix/astro-robots";
|
|
14
|
+
import siteComponents from "@wix/astro-site-components-extensions";
|
|
14
15
|
import sitePlugins from "@wix/astro-site-plugins-extensions";
|
|
16
|
+
import viewerApi from "@wix/astro-viewer-api";
|
|
15
17
|
function isEnabled(value) {
|
|
16
18
|
if (typeof value === "boolean") {
|
|
17
19
|
return value;
|
|
@@ -38,7 +40,9 @@ var createIntegration = (config) => {
|
|
|
38
40
|
...enableHtmlEmbeds ? [htmlEmbeds()] : [],
|
|
39
41
|
paymentLinks(),
|
|
40
42
|
embeddedScripts(),
|
|
41
|
-
|
|
43
|
+
siteComponents(),
|
|
44
|
+
...enableRobots ? [robots()] : [],
|
|
45
|
+
viewerApi()
|
|
42
46
|
]
|
|
43
47
|
})
|
|
44
48
|
]
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { AstroIntegration } from 'astro';\nimport auth from '@wix/astro-auth';\nimport backend from '@wix/astro-backend-extensions';\nimport backoffice from '@wix/astro-backoffice-extensions';\nimport core from '@wix/astro-core';\nimport customElements from '@wix/astro-custom-elements-extensions';\nimport embeddedScripts from '@wix/astro-embedded-scripts-extensions';\nimport htmlEmbeds from '@wix/astro-html-embeds';\nimport paymentLinks from '@wix/astro-payment-links';\nimport robots from '@wix/astro-robots';\nimport sitePlugins from '@wix/astro-site-plugins-extensions';\n\ninterface WixAstroConfig {\n auth?: boolean | { enable?: boolean };\n htmlEmbeds?: boolean | { enable?: boolean };\n robots?: boolean | { enable?: boolean };\n}\n\nfunction isEnabled(value?: boolean | { enable?: boolean }): boolean {\n if (typeof value === 'boolean') {\n return value;\n }\n return value?.enable ?? true;\n}\n\nconst createIntegration = (config?: WixAstroConfig): AstroIntegration => {\n const enableAuthRoutes = isEnabled(config?.auth);\n const enableHtmlEmbeds = isEnabled(config?.htmlEmbeds);\n const enableRobots = isEnabled(config?.robots);\n\n return {\n name: '@wix/astro',\n hooks: {\n async 'astro:config:setup'({ updateConfig }) {\n updateConfig({\n integrations: [\n core({\n integrations: [\n auth({ enableAuthRoutes }),\n backend(),\n backoffice(),\n sitePlugins(),\n customElements(),\n ...(enableHtmlEmbeds ? [htmlEmbeds()] : []),\n paymentLinks(),\n embeddedScripts(),\n ...(enableRobots ? [robots()] : []),\n ],\n }),\n ],\n });\n },\n },\n };\n};\n\nexport default createIntegration;\n"],"mappings":";;;;AACA,OAAO,UAAU;AACjB,OAAO,aAAa;AACpB,OAAO,gBAAgB;AACvB,OAAO,UAAU;AACjB,OAAO,oBAAoB;AAC3B,OAAO,qBAAqB;AAC5B,OAAO,gBAAgB;AACvB,OAAO,kBAAkB;AACzB,OAAO,YAAY;AACnB,OAAO,iBAAiB;
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { AstroIntegration } from 'astro';\nimport auth from '@wix/astro-auth';\nimport backend from '@wix/astro-backend-extensions';\nimport backoffice from '@wix/astro-backoffice-extensions';\nimport core from '@wix/astro-core';\nimport customElements from '@wix/astro-custom-elements-extensions';\nimport embeddedScripts from '@wix/astro-embedded-scripts-extensions';\nimport htmlEmbeds from '@wix/astro-html-embeds';\nimport paymentLinks from '@wix/astro-payment-links';\nimport robots from '@wix/astro-robots';\nimport siteComponents from '@wix/astro-site-components-extensions';\nimport sitePlugins from '@wix/astro-site-plugins-extensions';\nimport viewerApi from '@wix/astro-viewer-api';\n\ninterface WixAstroConfig {\n auth?: boolean | { enable?: boolean };\n htmlEmbeds?: boolean | { enable?: boolean };\n robots?: boolean | { enable?: boolean };\n}\n\nfunction isEnabled(value?: boolean | { enable?: boolean }): boolean {\n if (typeof value === 'boolean') {\n return value;\n }\n return value?.enable ?? true;\n}\n\nconst createIntegration = (config?: WixAstroConfig): AstroIntegration => {\n const enableAuthRoutes = isEnabled(config?.auth);\n const enableHtmlEmbeds = isEnabled(config?.htmlEmbeds);\n const enableRobots = isEnabled(config?.robots);\n\n return {\n name: '@wix/astro',\n hooks: {\n async 'astro:config:setup'({ updateConfig }) {\n updateConfig({\n integrations: [\n core({\n integrations: [\n auth({ enableAuthRoutes }),\n backend(),\n backoffice(),\n sitePlugins(),\n customElements(),\n ...(enableHtmlEmbeds ? [htmlEmbeds()] : []),\n paymentLinks(),\n embeddedScripts(),\n siteComponents(),\n ...(enableRobots ? [robots()] : []),\n viewerApi(),\n ],\n }),\n ],\n });\n },\n },\n };\n};\n\nexport default createIntegration;\n"],"mappings":";;;;AACA,OAAO,UAAU;AACjB,OAAO,aAAa;AACpB,OAAO,gBAAgB;AACvB,OAAO,UAAU;AACjB,OAAO,oBAAoB;AAC3B,OAAO,qBAAqB;AAC5B,OAAO,gBAAgB;AACvB,OAAO,kBAAkB;AACzB,OAAO,YAAY;AACnB,OAAO,oBAAoB;AAC3B,OAAO,iBAAiB;AACxB,OAAO,eAAe;AAQtB,SAAS,UAAU,OAAiD;AAClE,MAAI,OAAO,UAAU,WAAW;AAC9B,WAAO;AAAA,EACT;AACA,SAAO,OAAO,UAAU;AAC1B;AAEA,IAAM,oBAAoB,CAAC,WAA8C;AACvE,QAAM,mBAAmB,UAAU,QAAQ,IAAI;AAC/C,QAAM,mBAAmB,UAAU,QAAQ,UAAU;AACrD,QAAM,eAAe,UAAU,QAAQ,MAAM;AAE7C,SAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,MACL,MAAM,qBAAqB,EAAE,aAAa,GAAG;AAC3C,qBAAa;AAAA,UACX,cAAc;AAAA,YACZ,KAAK;AAAA,cACH,cAAc;AAAA,gBACZ,KAAK,EAAE,iBAAiB,CAAC;AAAA,gBACzB,QAAQ;AAAA,gBACR,WAAW;AAAA,gBACX,YAAY;AAAA,gBACZ,eAAe;AAAA,gBACf,GAAI,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC;AAAA,gBACzC,aAAa;AAAA,gBACb,gBAAgB;AAAA,gBAChB,eAAe;AAAA,gBACf,GAAI,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC;AAAA,gBACjC,UAAU;AAAA,cACZ;AAAA,YACF,CAAC;AAAA,UACH;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,gBAAQ;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/astro",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@wix/astro-auth": "^2.3.
|
|
6
|
-
"@wix/astro-backend-extensions": "^2.3.
|
|
7
|
-
"@wix/astro-backoffice-extensions": "^2.
|
|
8
|
-
"@wix/astro-core": "^2.
|
|
9
|
-
"@wix/astro-custom-elements-extensions": "^2.
|
|
10
|
-
"@wix/astro-embedded-scripts-extensions": "^2.
|
|
11
|
-
"@wix/astro-html-embeds": "^2.3.
|
|
12
|
-
"@wix/astro-payment-links": "^2.3.
|
|
13
|
-
"@wix/astro-robots": "^2.3.
|
|
14
|
-
"@wix/astro-site-
|
|
5
|
+
"@wix/astro-auth": "^2.3.1",
|
|
6
|
+
"@wix/astro-backend-extensions": "^2.3.1",
|
|
7
|
+
"@wix/astro-backoffice-extensions": "^2.4.1",
|
|
8
|
+
"@wix/astro-core": "^2.4.0",
|
|
9
|
+
"@wix/astro-custom-elements-extensions": "^2.4.0",
|
|
10
|
+
"@wix/astro-embedded-scripts-extensions": "^2.4.0",
|
|
11
|
+
"@wix/astro-html-embeds": "^2.3.1",
|
|
12
|
+
"@wix/astro-payment-links": "^2.3.1",
|
|
13
|
+
"@wix/astro-robots": "^2.3.1",
|
|
14
|
+
"@wix/astro-site-components-extensions": "^2.3.1",
|
|
15
|
+
"@wix/astro-site-plugins-extensions": "^2.3.1",
|
|
16
|
+
"@wix/astro-viewer-api": "^3.0.0"
|
|
15
17
|
},
|
|
16
18
|
"devDependencies": {
|
|
17
19
|
"astro": "^5.10.1",
|