@wix/astro 0.0.0-experimental-react-component → 0.0.1-experimental-react-component

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.
@@ -0,0 +1,5 @@
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';
3
+ export { app, genericExtension } from '@wix/astro-core';
4
+ export { embeddedScript } from '@wix/astro-embedded-scripts-extensions';
5
+ export { siteComponent } from '@wix/astro-site-components-extensions';
@@ -0,0 +1,40 @@
1
+ import { createRequire as _createRequire } from 'node:module';
2
+ const require = _createRequire(import.meta.url);
3
+
4
+ // src/builders.ts
5
+ import {
6
+ ecomAdditionalFees,
7
+ ecomDiscountsTrigger,
8
+ ecomGiftCardsProvider,
9
+ ecomPaymentSettings,
10
+ ecomShippingRates,
11
+ ecomValidations,
12
+ webhook
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";
21
+ import { embeddedScript } from "@wix/astro-embedded-scripts-extensions";
22
+ import { siteComponent } from "@wix/astro-site-components-extensions";
23
+ export {
24
+ app,
25
+ backofficeExtensionMenuPlugin,
26
+ backofficeExtensionWidget,
27
+ backofficeModal,
28
+ backofficePage,
29
+ ecomAdditionalFees,
30
+ ecomDiscountsTrigger,
31
+ ecomGiftCardsProvider,
32
+ ecomPaymentSettings,
33
+ ecomShippingRates,
34
+ ecomValidations,
35
+ embeddedScript,
36
+ genericExtension,
37
+ siteComponent,
38
+ webhook
39
+ };
40
+ //# sourceMappingURL=builders.js.map
@@ -0,0 +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 { embeddedScript } from '@wix/astro-embedded-scripts-extensions';\nexport { siteComponent } from '@wix/astro-site-components-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,sBAAsB;AAC/B,SAAS,qBAAqB;","names":[]}
@@ -0,0 +1,8 @@
1
+ import { AstroIntegration } from 'astro';
2
+
3
+ declare const createIntegration: ({ enableAuthRoutes, enableHtmlEmbeds, }?: {
4
+ enableAuthRoutes?: boolean;
5
+ enableHtmlEmbeds?: boolean;
6
+ }) => AstroIntegration;
7
+
8
+ export { createIntegration as default };
package/build/index.js ADDED
@@ -0,0 +1,44 @@
1
+ import { createRequire as _createRequire } from 'node:module';
2
+ const require = _createRequire(import.meta.url);
3
+
4
+ // src/index.ts
5
+ import auth from "@wix/astro-auth";
6
+ import backend from "@wix/astro-backend-extensions";
7
+ import backoffice from "@wix/astro-backoffice-extensions";
8
+ import core from "@wix/astro-core";
9
+ import embeddedScripts from "@wix/astro-embedded-scripts-extensions";
10
+ import htmlEmbeds from "@wix/astro-html-embeds";
11
+ import paymentLinks from "@wix/astro-payment-links";
12
+ import siteComponents from "@wix/astro-site-components-extensions";
13
+ var createIntegration = ({
14
+ enableAuthRoutes = true,
15
+ enableHtmlEmbeds = true
16
+ } = {}) => {
17
+ return {
18
+ hooks: {
19
+ async "astro:config:setup"({ updateConfig }) {
20
+ updateConfig({
21
+ integrations: [
22
+ core({
23
+ integrations: [
24
+ auth({ enableAuthRoutes }),
25
+ backend(),
26
+ backoffice(),
27
+ ...enableHtmlEmbeds ? [htmlEmbeds()] : [],
28
+ paymentLinks(),
29
+ embeddedScripts(),
30
+ siteComponents()
31
+ ]
32
+ })
33
+ ]
34
+ });
35
+ }
36
+ },
37
+ name: "@wix/astro"
38
+ };
39
+ };
40
+ var index_default = createIntegration;
41
+ export {
42
+ index_default as default
43
+ };
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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 embeddedScripts from '@wix/astro-embedded-scripts-extensions';\nimport htmlEmbeds from '@wix/astro-html-embeds';\nimport paymentLinks from '@wix/astro-payment-links';\nimport siteComponents from '@wix/astro-site-components-extensions';\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 embeddedScripts(),\n siteComponents(),\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,qBAAqB;AAC5B,OAAO,gBAAgB;AACvB,OAAO,kBAAkB;AACzB,OAAO,oBAAoB;AAE3B,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,gBACb,gBAAgB;AAAA,gBAChB,eAAe;AAAA,cACjB;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,15 +1,15 @@
1
1
  {
2
2
  "name": "@wix/astro",
3
- "version": "0.0.0-experimental-react-component",
3
+ "version": "0.0.1-experimental-react-component",
4
4
  "dependencies": {
5
- "@wix/astro-auth": "0.0.0-experimental-react-component",
6
- "@wix/astro-backend-extensions": "0.0.0-experimental-react-component",
7
- "@wix/astro-backoffice-extensions": "0.0.0-experimental-react-component",
8
- "@wix/astro-core": "0.0.0-experimental-react-component",
9
- "@wix/astro-embedded-scripts-extensions": "0.0.0-experimental-react-component",
10
- "@wix/astro-html-embeds": "0.0.0-experimental-react-component",
11
- "@wix/astro-payment-links": "0.0.0-experimental-react-component",
12
- "@wix/astro-site-components-extensions": "0.0.0-experimental-react-component"
5
+ "@wix/astro-auth": "0.0.1-experimental-react-component",
6
+ "@wix/astro-backend-extensions": "0.0.1-experimental-react-component",
7
+ "@wix/astro-backoffice-extensions": "0.0.1-experimental-react-component",
8
+ "@wix/astro-core": "0.0.1-experimental-react-component",
9
+ "@wix/astro-embedded-scripts-extensions": "0.0.1-experimental-react-component",
10
+ "@wix/astro-html-embeds": "0.0.1-experimental-react-component",
11
+ "@wix/astro-payment-links": "0.0.1-experimental-react-component",
12
+ "@wix/astro-site-components-extensions": "0.0.1-experimental-react-component"
13
13
  },
14
14
  "devDependencies": {
15
15
  "astro": "^5.10.1",
@@ -17,6 +17,9 @@
17
17
  "outdent": "^0.8.0",
18
18
  "tsup": "^8.5.0"
19
19
  },
20
+ "files": [
21
+ "build"
22
+ ],
20
23
  "exports": {
21
24
  ".": "./build/index.js",
22
25
  "./builders": "./build/builders.js",
package/CHANGELOG.md DELETED
@@ -1,82 +0,0 @@
1
- # @wix/astro
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
-
19
- ## 2.1.0
20
-
21
- ### Minor Changes
22
-
23
- - [#25](https://github.com/wix-incubator/headless-integrations/pull/25) [`4e0b6c2`](https://github.com/wix-incubator/headless-integrations/commit/4e0b6c23054bd2fb7230f437d59d45bb54b3bed0) Thanks [@ronami](https://github.com/ronami)! - Adjusts the way to define the Wix app manifest. Instead of the current convention of using a filesystem convention (e.g. `src/extensions/*/extension.json`), a single file is expected: `src/extensions.ts` (and it's optional).
24
-
25
- The file let's developers define their app manifest programmatically:
26
-
27
- ```ts
28
- import { app, backofficePage, extension } from '@wix/astro/builders';
29
-
30
- export default app()
31
- .use(
32
- backofficePage({
33
- component: './extensions/my-page/page.tsx',
34
- id: '57512654-b94e-460b-91e4-88624b5afea3',
35
- routePath: 'hello',
36
- title: 'Trusted Index Page',
37
- })
38
- )
39
- .use(
40
- extension({
41
- compData: {
42
- webhook: {
43
- callbackUrl: 'https://www.wix.com',
44
- },
45
- },
46
- compId: 'f988e3bc-acaa-4aca-9cf8-2cd81cc39ee8',
47
- compType: 'WEBHOOK',
48
- })
49
- );
50
- ```
51
-
52
- Some of the data is used to build each component correctly (and has a specific helper method to create it), along with a generic `extension()` method for purely-configuration extensions (or ones the developer built separately).
53
-
54
- Note that this is a breaking change.
55
-
56
- ### Patch Changes
57
-
58
- - [#113](https://github.com/wix-incubator/headless-integrations/pull/113) [`920410e`](https://github.com/wix-incubator/headless-integrations/commit/920410eec124488a35601b8e7e99895c385e3e94) Thanks [@ronami](https://github.com/ronami)! - Stop bundling SDK related packages to avoid multiple copies of these dependencies.
59
-
60
- - [#92](https://github.com/wix-incubator/headless-integrations/pull/92) [`2652759`](https://github.com/wix-incubator/headless-integrations/commit/2652759d29f0911d02b0f5b8be9a7d97a0208c65) Thanks [@ronami](https://github.com/ronami)! - Patch version bump to try and fix the release workflow
61
-
62
- - [#26](https://github.com/wix-incubator/headless-integrations/pull/26) [`948a404`](https://github.com/wix-incubator/headless-integrations/commit/948a4041161ae35876e507d70efb03ae40f9a6cd) Thanks [@kfirstri](https://github.com/kfirstri)! - Added wix paylink support
63
-
64
- - Updated dependencies [[`920410e`](https://github.com/wix-incubator/headless-integrations/commit/920410eec124488a35601b8e7e99895c385e3e94), [`2652759`](https://github.com/wix-incubator/headless-integrations/commit/2652759d29f0911d02b0f5b8be9a7d97a0208c65), [`4e0b6c2`](https://github.com/wix-incubator/headless-integrations/commit/4e0b6c23054bd2fb7230f437d59d45bb54b3bed0), [`83e191d`](https://github.com/wix-incubator/headless-integrations/commit/83e191d1d5e09dcf08ad82c2f8d973d2461add53)]:
65
- - @wix/astro-payment-links@2.0.1
66
- - @wix/astro-html-embeds@2.0.1
67
- - @wix/astro-extensions@2.1.0
68
- - @wix/astro-auth@2.0.1
69
-
70
- ## 2.0.0
71
-
72
- ### Major Changes
73
-
74
- - [#23](https://github.com/wix-incubator/headless-integrations/pull/23) [`1a3450f`](https://github.com/wix-incubator/headless-integrations/commit/1a3450fe28cccf67de37e476710d1df90ed62fed) Thanks [@ronami](https://github.com/ronami)! - add initial support for releasing via `changesets`
75
-
76
- ### Patch Changes
77
-
78
- - Updated dependencies [[`1a3450f`](https://github.com/wix-incubator/headless-integrations/commit/1a3450fe28cccf67de37e476710d1df90ed62fed), [`4a957b4`](https://github.com/wix-incubator/headless-integrations/commit/4a957b452e595727aae622af478528581dda8a5c)]:
79
- - @wix/astro-app-manifest@2.0.0
80
- - @wix/astro-auth@2.0.0
81
- - @wix/astro-extensions@2.0.0
82
- - @wix/astro-html-embeds@2.0.0
package/src/builders.ts DELETED
@@ -1,18 +0,0 @@
1
- export {
2
- ecomAdditionalFees,
3
- ecomDiscountsTrigger,
4
- ecomGiftCardsProvider,
5
- ecomPaymentSettings,
6
- ecomShippingRates,
7
- ecomValidations,
8
- webhook,
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';
17
- export { embeddedScript } from '@wix/astro-embedded-scripts-extensions';
18
- export { siteComponent } from '@wix/astro-site-components-extensions';
package/src/index.ts DELETED
@@ -1,42 +0,0 @@
1
- import type { AstroIntegration } from 'astro';
2
- import auth from '@wix/astro-auth';
3
- import backend from '@wix/astro-backend-extensions';
4
- import backoffice from '@wix/astro-backoffice-extensions';
5
- import core from '@wix/astro-core';
6
- import embeddedScripts from '@wix/astro-embedded-scripts-extensions';
7
- import htmlEmbeds from '@wix/astro-html-embeds';
8
- import paymentLinks from '@wix/astro-payment-links';
9
- import siteComponents from '@wix/astro-site-components-extensions';
10
-
11
- const createIntegration = ({
12
- enableAuthRoutes = true,
13
- enableHtmlEmbeds = true,
14
- }: {
15
- enableAuthRoutes?: boolean;
16
- enableHtmlEmbeds?: boolean;
17
- } = {}): AstroIntegration => {
18
- return {
19
- hooks: {
20
- async 'astro:config:setup'({ updateConfig }) {
21
- updateConfig({
22
- integrations: [
23
- core({
24
- integrations: [
25
- auth({ enableAuthRoutes }),
26
- backend(),
27
- backoffice(),
28
- ...(enableHtmlEmbeds ? [htmlEmbeds()] : []),
29
- paymentLinks(),
30
- embeddedScripts(),
31
- siteComponents(),
32
- ],
33
- }),
34
- ],
35
- });
36
- },
37
- },
38
- name: '@wix/astro',
39
- };
40
- };
41
-
42
- export default createIntegration;
package/tsconfig.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "include": ["src"],
4
- "compilerOptions": {
5
- "outDir": "build"
6
- }
7
- }
package/tsup.config.mjs DELETED
@@ -1,36 +0,0 @@
1
- // @ts-check
2
- import isCI from 'is-ci';
3
- import { outdent } from 'outdent';
4
- import { defineConfig } from 'tsup';
5
-
6
- const viteExternals = ['vite'];
7
- const astroExternals = ['astro', /^astro:/];
8
-
9
- export default defineConfig([
10
- // astro integration
11
- {
12
- clean: true,
13
- dts: {
14
- resolve: [...astroExternals, ...viteExternals],
15
- },
16
- entry: ['src/index.ts', 'src/builders.ts'],
17
- external: [...astroExternals, ...viteExternals],
18
- format: ['esm'],
19
- outDir: 'build',
20
- sourcemap: true,
21
- target: 'node20.9',
22
- // We specifically do not minify the code in packages **for node** in order to keep it readable for debugging purposes.
23
- env: {
24
- NODE_ENV: isCI ? 'production' : 'development',
25
- },
26
- minify: false,
27
- shims: true,
28
- // https://github.com/evanw/esbuild/issues/1921
29
- banner: {
30
- js: outdent`
31
- import { createRequire as _createRequire } from 'node:module';
32
- const require = _createRequire(import.meta.url);
33
- `,
34
- },
35
- },
36
- ]);