@wix/astro 2.1.0 → 2.2.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.
@@ -5,12 +5,12 @@
5
5
  CLI Target: node20.9
6
6
  CLI Cleaning output folder
7
7
  ESM Build start
8
- ESM build/builders.js 791.00 B
9
- ESM build/index.js 995.00 B
10
- ESM build/builders.js.map 601.00 B
11
- ESM build/index.js.map 1.54 KB
12
- ESM ⚡️ Build success in 22ms
8
+ ESM build/builders.js 850.00 B
9
+ ESM build/index.js 1.06 KB
10
+ ESM build/builders.js.map 677.00 B
11
+ ESM build/index.js.map 1.66 KB
12
+ ESM ⚡️ Build success in 23ms
13
13
  DTS Build start
14
- DTS ⚡️ Build success in 4435ms
15
- DTS build/builders.d.ts 319.00 B
14
+ DTS ⚡️ Build success in 4154ms
15
+ DTS build/builders.d.ts 378.00 B
16
16
  DTS build/index.d.ts 251.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @wix/astro
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#121](https://github.com/wix-incubator/headless-integrations/pull/121) [`903244c`](https://github.com/wix-incubator/headless-integrations/commit/903244ce7aae605eedd187ceecedc2c65796817e) Thanks [@ronami](https://github.com/ronami)! - Release minor version of packages after recently failed releases
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`903244c`](https://github.com/wix-incubator/headless-integrations/commit/903244ce7aae605eedd187ceecedc2c65796817e), [`d5f3624`](https://github.com/wix-incubator/headless-integrations/commit/d5f36244bc5b424702825631df8e1a91b6cf3359)]:
12
+ - @wix/astro-auth@2.1.0
13
+ - @wix/astro-backend-extensions@2.1.0
14
+ - @wix/astro-backoffice-extensions@2.1.0
15
+ - @wix/astro-core@2.1.0
16
+ - @wix/astro-html-embeds@2.1.0
17
+ - @wix/astro-payment-links@2.1.0
18
+
3
19
  ## 2.1.0
4
20
 
5
21
  ### Minor Changes
@@ -1,2 +1,3 @@
1
+ export { ecomAdditionalFees, ecomDiscountsTrigger, ecomGiftCardsProvider, ecomPaymentSettings, ecomShippingRates, ecomValidations, webhook } from '@wix/astro-backend-extensions';
2
+ export { backofficeExtensionMenuPlugin, backofficeExtensionWidget, backofficeModal, backofficePage } from '@wix/astro-backoffice-extensions';
1
3
  export { app, genericExtension } from '@wix/astro-core';
2
- export { backofficeExtensionMenuPlugin, backofficeExtensionWidget, backofficeModal, backofficePage, ecomAdditionalFees, ecomDiscountsTrigger, ecomGiftCardsProvider, ecomPaymentSettings, ecomShippingRates, ecomValidations, webhook } from '@wix/astro-extensions';
package/build/builders.js CHANGED
@@ -2,12 +2,7 @@ import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
3
 
4
4
  // src/builders.ts
5
- import { app, genericExtension } from "@wix/astro-core";
6
5
  import {
7
- backofficeExtensionMenuPlugin,
8
- backofficeExtensionWidget,
9
- backofficeModal,
10
- backofficePage,
11
6
  ecomAdditionalFees,
12
7
  ecomDiscountsTrigger,
13
8
  ecomGiftCardsProvider,
@@ -15,7 +10,14 @@ import {
15
10
  ecomShippingRates,
16
11
  ecomValidations,
17
12
  webhook
18
- } from "@wix/astro-extensions";
13
+ } from "@wix/astro-backend-extensions";
14
+ import {
15
+ backofficeExtensionMenuPlugin,
16
+ backofficeExtensionWidget,
17
+ backofficeModal,
18
+ backofficePage
19
+ } from "@wix/astro-backoffice-extensions";
20
+ import { app, genericExtension } from "@wix/astro-core";
19
21
  export {
20
22
  app,
21
23
  backofficeExtensionMenuPlugin,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/builders.ts"],"sourcesContent":["export { app, genericExtension } from '@wix/astro-core';\nexport {\n backofficeExtensionMenuPlugin,\n backofficeExtensionWidget,\n backofficeModal,\n backofficePage,\n ecomAdditionalFees,\n ecomDiscountsTrigger,\n ecomGiftCardsProvider,\n ecomPaymentSettings,\n ecomShippingRates,\n ecomValidations,\n webhook,\n} from '@wix/astro-extensions';\n"],"mappings":";;;;AAAA,SAAS,KAAK,wBAAwB;AACtC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","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';\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;","names":[]}
package/build/index.js CHANGED
@@ -3,8 +3,9 @@ const require = _createRequire(import.meta.url);
3
3
 
4
4
  // src/index.ts
5
5
  import auth from "@wix/astro-auth";
6
+ import backend from "@wix/astro-backend-extensions";
7
+ import backoffice from "@wix/astro-backoffice-extensions";
6
8
  import core from "@wix/astro-core";
7
- import extensions from "@wix/astro-extensions";
8
9
  import htmlEmbeds from "@wix/astro-html-embeds";
9
10
  import paymentLinks from "@wix/astro-payment-links";
10
11
  var createIntegration = ({
@@ -19,7 +20,8 @@ var createIntegration = ({
19
20
  core({
20
21
  integrations: [
21
22
  auth({ enableAuthRoutes }),
22
- extensions(),
23
+ backend(),
24
+ backoffice(),
23
25
  ...enableHtmlEmbeds ? [htmlEmbeds()] : [],
24
26
  paymentLinks()
25
27
  ]
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { AstroIntegration } from 'astro';\nimport auth from '@wix/astro-auth';\nimport core from '@wix/astro-core';\nimport extensions from '@wix/astro-extensions';\nimport htmlEmbeds from '@wix/astro-html-embeds';\nimport paymentLinks from '@wix/astro-payment-links';\n\nconst createIntegration = ({\n enableAuthRoutes = true,\n enableHtmlEmbeds = true,\n}: {\n enableAuthRoutes?: boolean;\n enableHtmlEmbeds?: boolean;\n} = {}): AstroIntegration => {\n return {\n hooks: {\n async 'astro:config:setup'({ updateConfig }) {\n updateConfig({\n integrations: [\n core({\n integrations: [\n auth({ enableAuthRoutes }),\n extensions(),\n ...(enableHtmlEmbeds ? [htmlEmbeds()] : []),\n paymentLinks(),\n ],\n }),\n ],\n });\n },\n },\n name: '@wix/astro',\n };\n};\n\nexport default createIntegration;\n"],"mappings":";;;;AACA,OAAO,UAAU;AACjB,OAAO,UAAU;AACjB,OAAO,gBAAgB;AACvB,OAAO,gBAAgB;AACvB,OAAO,kBAAkB;AAEzB,IAAM,oBAAoB,CAAC;AAAA,EACzB,mBAAmB;AAAA,EACnB,mBAAmB;AACrB,IAGI,CAAC,MAAwB;AAC3B,SAAO;AAAA,IACL,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,WAAW;AAAA,gBACX,GAAI,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC;AAAA,gBACzC,aAAa;AAAA,cACf;AAAA,YACF,CAAC;AAAA,UACH;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF;AAAA,IACA,MAAM;AAAA,EACR;AACF;AAEA,IAAO,gBAAQ;","names":[]}
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 htmlEmbeds from '@wix/astro-html-embeds';\nimport paymentLinks from '@wix/astro-payment-links';\n\nconst createIntegration = ({\n enableAuthRoutes = true,\n enableHtmlEmbeds = true,\n}: {\n enableAuthRoutes?: boolean;\n enableHtmlEmbeds?: boolean;\n} = {}): AstroIntegration => {\n return {\n hooks: {\n async 'astro:config:setup'({ updateConfig }) {\n updateConfig({\n integrations: [\n core({\n integrations: [\n auth({ enableAuthRoutes }),\n backend(),\n backoffice(),\n ...(enableHtmlEmbeds ? [htmlEmbeds()] : []),\n paymentLinks(),\n ],\n }),\n ],\n });\n },\n },\n name: '@wix/astro',\n };\n};\n\nexport default createIntegration;\n"],"mappings":";;;;AACA,OAAO,UAAU;AACjB,OAAO,aAAa;AACpB,OAAO,gBAAgB;AACvB,OAAO,UAAU;AACjB,OAAO,gBAAgB;AACvB,OAAO,kBAAkB;AAEzB,IAAM,oBAAoB,CAAC;AAAA,EACzB,mBAAmB;AAAA,EACnB,mBAAmB;AACrB,IAGI,CAAC,MAAwB;AAC3B,SAAO;AAAA,IACL,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,GAAI,mBAAmB,CAAC,WAAW,CAAC,IAAI,CAAC;AAAA,gBACzC,aAAa;AAAA,cACf;AAAA,YACF,CAAC;AAAA,UACH;AAAA,QACF,CAAC;AAAA,MACH;AAAA,IACF;AAAA,IACA,MAAM;AAAA,EACR;AACF;AAEA,IAAO,gBAAQ;","names":[]}
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@wix/astro",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "dependencies": {
5
- "@wix/astro-auth": "^2.0.1",
6
- "@wix/astro-core": "^2.0.0",
7
- "@wix/astro-extensions": "^2.1.0",
8
- "@wix/astro-html-embeds": "^2.0.1",
9
- "@wix/astro-payment-links": "^2.0.1"
5
+ "@wix/astro-auth": "^2.1.0",
6
+ "@wix/astro-backend-extensions": "^2.1.0",
7
+ "@wix/astro-backoffice-extensions": "^2.1.0",
8
+ "@wix/astro-core": "^2.1.0",
9
+ "@wix/astro-html-embeds": "^2.1.0",
10
+ "@wix/astro-payment-links": "^2.1.0"
10
11
  },
11
12
  "devDependencies": {
12
13
  "astro": "^5.10.1",
@@ -29,7 +30,7 @@
29
30
  },
30
31
  "scripts": {
31
32
  "build": "tsup",
32
- "typecheck": "run -T tsc --noEmit"
33
+ "typecheck": "tsc --noEmit"
33
34
  },
34
35
  "sideEffects": false,
35
36
  "type": "module"
package/src/builders.ts CHANGED
@@ -1,9 +1,4 @@
1
- export { app, genericExtension } from '@wix/astro-core';
2
1
  export {
3
- backofficeExtensionMenuPlugin,
4
- backofficeExtensionWidget,
5
- backofficeModal,
6
- backofficePage,
7
2
  ecomAdditionalFees,
8
3
  ecomDiscountsTrigger,
9
4
  ecomGiftCardsProvider,
@@ -11,4 +6,11 @@ export {
11
6
  ecomShippingRates,
12
7
  ecomValidations,
13
8
  webhook,
14
- } from '@wix/astro-extensions';
9
+ } from '@wix/astro-backend-extensions';
10
+ export {
11
+ backofficeExtensionMenuPlugin,
12
+ backofficeExtensionWidget,
13
+ backofficeModal,
14
+ backofficePage,
15
+ } from '@wix/astro-backoffice-extensions';
16
+ export { app, genericExtension } from '@wix/astro-core';
package/src/index.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import type { AstroIntegration } from 'astro';
2
2
  import auth from '@wix/astro-auth';
3
+ import backend from '@wix/astro-backend-extensions';
4
+ import backoffice from '@wix/astro-backoffice-extensions';
3
5
  import core from '@wix/astro-core';
4
- import extensions from '@wix/astro-extensions';
5
6
  import htmlEmbeds from '@wix/astro-html-embeds';
6
7
  import paymentLinks from '@wix/astro-payment-links';
7
8
 
@@ -20,7 +21,8 @@ const createIntegration = ({
20
21
  core({
21
22
  integrations: [
22
23
  auth({ enableAuthRoutes }),
23
- extensions(),
24
+ backend(),
25
+ backoffice(),
24
26
  ...(enableHtmlEmbeds ? [htmlEmbeds()] : []),
25
27
  paymentLinks(),
26
28
  ],
package/tsup.config.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ // @ts-check
1
2
  import isCI from 'is-ci';
2
3
  import { outdent } from 'outdent';
3
4
  import { defineConfig } from 'tsup';