# @wix/astro

## 2.14.0

### Minor Changes

- [#438](https://github.com/wix-incubator/headless-integrations/pull/438) [`4213c9c`](https://github.com/wix-incubator/headless-integrations/commit/4213c9c5600ff0c20ec8e8234b9eb1539c3ba8f9) Thanks [@antonpodolsky](https://github.com/antonpodolsky)! - Use waitUntil when reporting logs to make sure the requests are finished before the worker is terminated

### Patch Changes

- [#442](https://github.com/wix-incubator/headless-integrations/pull/442) [`38278ac`](https://github.com/wix-incubator/headless-integrations/commit/38278acd05913ef51961bd3af4135119aef6308d) Thanks [@BrooklynKing](https://github.com/BrooklynKing)! - Changes in config for SiteComponents to have 100% compatibility with proto

## 2.13.1

### Patch Changes

- [#447](https://github.com/wix-incubator/headless-integrations/pull/447) [`8d06bb6`](https://github.com/wix-incubator/headless-integrations/commit/8d06bb6a5cfce7bde87eb90bfa89afc5f3db2cae) Thanks [@mastertheblaster](https://github.com/mastertheblaster)! - Automatically include all frontend modules in custom elements and embedded scripts.

## 2.13.0

### Minor Changes

- [#439](https://github.com/wix-incubator/headless-integrations/pull/439) [`4daf766`](https://github.com/wix-incubator/headless-integrations/commit/4daf766b905c006ba67236b63f9bea30d8553bc8) Thanks [@mastertheblaster](https://github.com/mastertheblaster)! - Rename dashboardWidget builder to dashboardPlugin.

### Patch Changes

- [#411](https://github.com/wix-incubator/headless-integrations/pull/411) [`5ef5acf`](https://github.com/wix-incubator/headless-integrations/commit/5ef5acfa01f42888d00db586cbb2ad3d92255869) Thanks [@fantua](https://github.com/fantua)! - Added server bundles support for Site Components extensions

## 2.12.0

### Minor Changes

- [#413](https://github.com/wix-incubator/headless-integrations/pull/413) [`c7d33d0`](https://github.com/wix-incubator/headless-integrations/commit/c7d33d0d84269be5d210d491315943c6242992ba) Thanks [@ronami](https://github.com/ronami)! - Add support for using a settings panel:

  ```ts
  import { app } from '@wix/astro/builders';
  import * as extensions from '@wix/astro/builders';

  export default app().use(
    extensions.customElement({
      id: '7e89117e-1e36-4e87-bf0e-fd4ba8570c91',
      name: 'custom-element',
      base: { name: 'custom-element' },
      behaviors: {},
      dependencies: [],
      element: './extensions/custom-element/element.ts',
      installation: { base: { autoAdd: true } },
      settings: './extensions/custom-element/settings.tsx',
      size: { height: { defaultHeight: 500 }, width: { defaultWidth: 500 } },
      tagName: 'custom-element',
    })
  );
  ```

## 2.11.1

### Patch Changes

- [#397](https://github.com/wix-incubator/headless-integrations/pull/397) [`305c73b`](https://github.com/wix-incubator/headless-integrations/commit/305c73bddf3634fe63b4399765c857011fb81dcd) Thanks [@BrooklynKing](https://github.com/BrooklynKing)! - Adding support for presets in Site Components

- [#412](https://github.com/wix-incubator/headless-integrations/pull/412) [`e892255`](https://github.com/wix-incubator/headless-integrations/commit/e8922555c5af076ce7c9e984fec2dbf3810cf584) Thanks [@BrooklynKing](https://github.com/BrooklynKing)! - Adding support for Editor Preview in Site Components

- [#399](https://github.com/wix-incubator/headless-integrations/pull/399) [`aad4bc4`](https://github.com/wix-incubator/headless-integrations/commit/aad4bc4ce45375e5a856274ff91ec188b53af5d2) Thanks [@BrooklynKing](https://github.com/BrooklynKing)! - Adding support for sdk in Site Components

## 2.11.0

### Minor Changes

- [#400](https://github.com/wix-incubator/headless-integrations/pull/400) [`30d11e8`](https://github.com/wix-incubator/headless-integrations/commit/30d11e879d9e8a7c3d637c4b683b0a01e6a2d8b6) Thanks [@mastertheblaster](https://github.com/mastertheblaster)! - Rename backofficeExtensionMenuPlugin > dashboardMenuPlugin, backofficeModal > dashboardModal, backofficePage > dashboardPage, backofficeExtensionWidget > dashboardWidget.

### Patch Changes

- [#386](https://github.com/wix-incubator/headless-integrations/pull/386) [`3f55571`](https://github.com/wix-incubator/headless-integrations/commit/3f55571d741afcbcd05c7545b00cc1386f62785e) Thanks [@BrooklynKing](https://github.com/BrooklynKing)! - Added support for Site Components Panels

- [#373](https://github.com/wix-incubator/headless-integrations/pull/373) [`af3fd17`](https://github.com/wix-incubator/headless-integrations/commit/af3fd1749be57dbdea7102eecb6ca3cc640d06e2) Thanks [@tomsa9](https://github.com/tomsa9)! - Update headless SDK

- [#398](https://github.com/wix-incubator/headless-integrations/pull/398) [`33510ca`](https://github.com/wix-incubator/headless-integrations/commit/33510ca7864fe0768f4f7cf2115f3dd39f023b55) Thanks [@kfirstri](https://github.com/kfirstri)! - Add custom component runtime and entries to the vite optimization list

- [#193](https://github.com/wix-incubator/headless-integrations/pull/193) [`44baa6c`](https://github.com/wix-incubator/headless-integrations/commit/44baa6cdaa2141f650d2e7c8a8cc371c8ebf50c7) Thanks [@fantua](https://github.com/fantua)! - Added SDK support for Site Components extensions

- [#393](https://github.com/wix-incubator/headless-integrations/pull/393) [`5384a4a`](https://github.com/wix-incubator/headless-integrations/commit/5384a4ac591e3a982d05e3526b7c9e903be050a7) Thanks [@mastertheblaster](https://github.com/mastertheblaster)! - Renamed builders ecomDiscountsTrigger and ecomGiftCardsProvider to ecomDiscountTriggers and ecomGiftCards.

## 2.10.1

### Patch Changes

- [#363](https://github.com/wix-incubator/headless-integrations/pull/363) [`d1ccad9`](https://github.com/wix-incubator/headless-integrations/commit/d1ccad960c7b7d530d330e0856e845a697145269) Thanks [@dor-chaouat](https://github.com/dor-chaouat)! - bypass auth middleware for app extensions

## 2.10.0

### Minor Changes

- [#345](https://github.com/wix-incubator/headless-integrations/pull/345) [`e6044ee`](https://github.com/wix-incubator/headless-integrations/commit/e6044ee4b99d2ad39e0e06c117ad4c7d5c7d6b9d) Thanks [@mastertheblaster](https://github.com/mastertheblaster)! - Refactored the codebase to consolidate everything into a single publishable package, removing all nested dependent packages.

## 2.9.0

### Minor Changes

- [#263](https://github.com/wix-incubator/headless-integrations/pull/263) [`76be268`](https://github.com/wix-incubator/headless-integrations/commit/76be268fdc1853ecda132a93c87fda8db6eb74b9) Thanks [@dor-chaouat](https://github.com/dor-chaouat)! - Add Viewer API route support for Wix services integration

  This release introduces a new Viewer API route handler that enables Wix services such as Invoices, Price Quotes, and other viewer-based APIs that are served from `_api` under the user's domain. The route automatically proxies requests from the user's Astro domain to their corresponding Wix domain.

  **Example Usage:**
  When a user visits:

  ```
  https://www.user-astro-domain.com/_api/invoice/33ad59bb-fb18-4515-80b9-2f630ad035e4/view?token=123
  ```

  The request is automatically redirected to:

  ```
  https://www.user-wix-domain.com/_api/invoice/33ad59bb-fb18-4515-80b9-2f630ad035e4/view?token=123
  ```

### Patch Changes

- [#145](https://github.com/wix-incubator/headless-integrations/pull/145) [`3ef6e99`](https://github.com/wix-incubator/headless-integrations/commit/3ef6e994a25c45adc3672926fbfe2f836acb58fd) Thanks [@fantua](https://github.com/fantua)! - Added Site Component extensions support

- [#320](https://github.com/wix-incubator/headless-integrations/pull/320) [`54a7fbf`](https://github.com/wix-incubator/headless-integrations/commit/54a7fbfce9062b301d005bb11489300b0e7905d4) Thanks [@mastertheblaster](https://github.com/mastertheblaster)! - Implement placeholders in the app manifest and introduce a development metadata endpoint to provide runtime metadata during dev.

- Updated dependencies [[`3ef6e99`](https://github.com/wix-incubator/headless-integrations/commit/3ef6e994a25c45adc3672926fbfe2f836acb58fd), [`54a7fbf`](https://github.com/wix-incubator/headless-integrations/commit/54a7fbfce9062b301d005bb11489300b0e7905d4), [`59add11`](https://github.com/wix-incubator/headless-integrations/commit/59add11c442ca649990c6594123132c3434c88d4), [`41c8148`](https://github.com/wix-incubator/headless-integrations/commit/41c8148bb2de5ef24c201409e0b40066434679b1), [`76be268`](https://github.com/wix-incubator/headless-integrations/commit/76be268fdc1853ecda132a93c87fda8db6eb74b9), [`0641ef9`](https://github.com/wix-incubator/headless-integrations/commit/0641ef94744b26f7c82a433d420805cfe476615a), [`d60d10a`](https://github.com/wix-incubator/headless-integrations/commit/d60d10a63a984732bd20b593ab648a776ca360c1)]:
  - @wix/astro-site-components-extensions@2.3.1
  - @wix/astro-auth@2.3.1
  - @wix/astro-backend-extensions@2.3.1
  - @wix/astro-backoffice-extensions@2.4.1
  - @wix/astro-core@2.4.0
  - @wix/astro-custom-elements-extensions@2.4.0
  - @wix/astro-embedded-scripts-extensions@2.4.0
  - @wix/astro-html-embeds@2.3.1
  - @wix/astro-payment-links@2.3.1
  - @wix/astro-robots@2.3.1
  - @wix/astro-site-plugins-extensions@2.3.1
  - @wix/astro-viewer-api@3.0.0

## 2.6.0

### Minor Changes

- [#269](https://github.com/wix-incubator/headless-integrations/pull/269) [`5420b6d`](https://github.com/wix-incubator/headless-integrations/commit/5420b6db5663933b7f44d3407f38393fff79605a) Thanks [@dor-chaouat](https://github.com/dor-chaouat)! - adjust app manifest to write required extension data

### Patch Changes

- Updated dependencies [[`5420b6d`](https://github.com/wix-incubator/headless-integrations/commit/5420b6db5663933b7f44d3407f38393fff79605a)]:
  - @wix/astro-custom-elements-extensions@2.2.0

## 2.5.0

### Minor Changes

- [#264](https://github.com/wix-incubator/headless-integrations/pull/264) [`d0e99bc`](https://github.com/wix-incubator/headless-integrations/commit/d0e99bc187193896f207a194e8753fc70bcbc897) Thanks [@dor-chaouat](https://github.com/dor-chaouat)! - add missing files property for `@wix/astro-site-plugins-extensions`

### Patch Changes

- Updated dependencies [[`d0e99bc`](https://github.com/wix-incubator/headless-integrations/commit/d0e99bc187193896f207a194e8753fc70bcbc897)]:
  - @wix/astro-site-plugins-extensions@2.2.0

## 2.4.0

### Minor Changes

- [#194](https://github.com/wix-incubator/headless-integrations/pull/194) [`bf6dc8a`](https://github.com/wix-incubator/headless-integrations/commit/bf6dc8aa6faef7c99549a9a782076eef23e5a4dc) Thanks [@ronami](https://github.com/ronami)! - add initial support for using site plugin extension:

  #### `src/extensions.ts`

  ```ts
  import { app } from '@wix/astro/builders';
  import * as extensions from '@wix/astro/builders';

  export default app().use(
    extensions.sitePlugin({
      id: '57512654-b94e-460b-91e4-88624b5afea3',
      marketData: { name: '' },
      placements: [],
      referenceComponentId: '',
    })
  );
  ```

### Patch Changes

- Updated dependencies [[`bf6dc8a`](https://github.com/wix-incubator/headless-integrations/commit/bf6dc8aa6faef7c99549a9a782076eef23e5a4dc)]:
  - @wix/astro-site-plugins-extensions@2.1.0

## 2.3.0

### Minor Changes

- [#139](https://github.com/wix-incubator/headless-integrations/pull/139) [`e86ec26`](https://github.com/wix-incubator/headless-integrations/commit/e86ec26db343d92c2bb9c436942ca3cedd429da1) Thanks [@ronami](https://github.com/ronami)! - add initial support for custom element extension:

  #### `src/extensions.ts`

  ```ts
  import { app } from '@wix/astro/builders';
  import * as extensions from '@wix/astro/builders';

  export default app().use(
    extensions.customElement({
      element: './extensions/custom-element/element.ts',
      id: '57512654-b94e-460b-91e4-88624b5afea3',
      name: 'custom-element',
      tagName: 'custom-element',
    })
  );
  ```

  #### `src/extensions/custom-element/element.ts`

  ```ts
  export default class extends HTMLElement {
    public connectedCallback() {
      this.innerHTML = `<div data-testid="custom-element">Hello from custom element!</div>`;
    }
  }
  ```

- [#168](https://github.com/wix-incubator/headless-integrations/pull/168) [`0c92d0a`](https://github.com/wix-incubator/headless-integrations/commit/0c92d0af2d8398716d530185246546dacaaa3851) Thanks [@mastertheblaster](https://github.com/mastertheblaster)! - Introduces built-in support for `robots.txt`. Here’s an example:

  ```ts
  import wix from '@wix/astro';
  import { defineConfig } from 'astro/config';

  export default defineConfig({
    integrations: [wix({ enableRobots: false })],
  });
  ```

- [#132](https://github.com/wix-incubator/headless-integrations/pull/132) [`f81e2fe`](https://github.com/wix-incubator/headless-integrations/commit/f81e2fe637867afb9f09c150229098a0f9bb4bb9) Thanks [@ronami](https://github.com/ronami)! - add initial support for embedded scripts

- [#196](https://github.com/wix-incubator/headless-integrations/pull/196) [`b2509de`](https://github.com/wix-incubator/headless-integrations/commit/b2509de8e9f30ab569a12f03c76cdb0e0e12daf5) Thanks [@mastertheblaster](https://github.com/mastertheblaster)! - The configuration for the Astro Wix extension has been changed.

  Previous API:

  ```ts
  import wix from '@wix/astro';

  wix({
    enableAuthRoutes: true,
    enableHtmlEmbeds: true,
    enableRobots: true,
  });
  ```

  Current API:

  ```ts
  import wix from '@wix/astro';

  wix({
    auth: true, // or auth: { enable: true }
    htmlEmbeds: true, // or htmlEmbeds: { enable: true }
    robots: true, // or robots: { enable: true }
  });
  ```

### Patch Changes

- Updated dependencies [[`e86ec26`](https://github.com/wix-incubator/headless-integrations/commit/e86ec26db343d92c2bb9c436942ca3cedd429da1), [`0c92d0a`](https://github.com/wix-incubator/headless-integrations/commit/0c92d0af2d8398716d530185246546dacaaa3851), [`8431423`](https://github.com/wix-incubator/headless-integrations/commit/84314238bba6ecb5278a39abce2c2d7c0245b2fe), [`f81e2fe`](https://github.com/wix-incubator/headless-integrations/commit/f81e2fe637867afb9f09c150229098a0f9bb4bb9), [`73c4c7f`](https://github.com/wix-incubator/headless-integrations/commit/73c4c7f548e7269eb509abb86443c79718e52143)]:
  - @wix/astro-custom-elements-extensions@2.1.0
  - @wix/astro-core@2.2.0
  - @wix/astro-robots@2.1.0
  - @wix/astro-payment-links@2.2.0
  - @wix/astro-embedded-scripts-extensions@2.1.0
  - @wix/astro-auth@2.2.0

## 2.2.0

### Minor Changes

- [#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

### Patch Changes

- Updated dependencies [[`903244c`](https://github.com/wix-incubator/headless-integrations/commit/903244ce7aae605eedd187ceecedc2c65796817e), [`d5f3624`](https://github.com/wix-incubator/headless-integrations/commit/d5f36244bc5b424702825631df8e1a91b6cf3359)]:
  - @wix/astro-auth@2.1.0
  - @wix/astro-backend-extensions@2.1.0
  - @wix/astro-backoffice-extensions@2.1.0
  - @wix/astro-core@2.1.0
  - @wix/astro-html-embeds@2.1.0
  - @wix/astro-payment-links@2.1.0

## 2.1.0

### Minor Changes

- [#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).

  The file let's developers define their app manifest programmatically:

  ```ts
  import { app, backofficePage, extension } from '@wix/astro/builders';

  export default app()
    .use(
      backofficePage({
        component: './extensions/my-page/page.tsx',
        id: '57512654-b94e-460b-91e4-88624b5afea3',
        routePath: 'hello',
        title: 'Trusted Index Page',
      })
    )
    .use(
      extension({
        compData: {
          webhook: {
            callbackUrl: 'https://www.wix.com',
          },
        },
        compId: 'f988e3bc-acaa-4aca-9cf8-2cd81cc39ee8',
        compType: 'WEBHOOK',
      })
    );
  ```

  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).

  Note that this is a breaking change.

### Patch Changes

- [#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.

- [#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

- [#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

- 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)]:
  - @wix/astro-payment-links@2.0.1
  - @wix/astro-html-embeds@2.0.1
  - @wix/astro-extensions@2.1.0
  - @wix/astro-auth@2.0.1

## 2.0.0

### Major Changes

- [#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`

### Patch Changes

- Updated dependencies [[`1a3450f`](https://github.com/wix-incubator/headless-integrations/commit/1a3450fe28cccf67de37e476710d1df90ed62fed), [`4a957b4`](https://github.com/wix-incubator/headless-integrations/commit/4a957b452e595727aae622af478528581dda8a5c)]:
  - @wix/astro-app-manifest@2.0.0
  - @wix/astro-auth@2.0.0
  - @wix/astro-extensions@2.0.0
  - @wix/astro-html-embeds@2.0.0
