Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
bdd3f27
enrich astro integration README
netanelgilad Feb 19, 2025
8164e4b
Released 0.2.5 (#8)
yurynix Feb 19, 2025
591f51e
Output build metdata for the deploy CLI (#9)
yurynix Mar 5, 2025
938ae42
Move to client dir if artifact is static only (#10)
yurynix Mar 9, 2025
942cd75
Delegate unkown routes to assets (#12)
yurynix Mar 10, 2025
bf77a49
Better handling for 404 (#13)
yurynix Mar 12, 2025
b8fc51f
Merge branch 'master'
netanelgilad Mar 14, 2025
b1814e5
astro integration 0.2.12
netanelgilad Mar 14, 2025
d72c27b
astro integration: improve session management in auth routes
netanelgilad Mar 15, 2025
f3e1ebd
release @wix/astro 0.2.13
netanelgilad Mar 15, 2025
072dfe5
fix sdk usage in client scripts (#14)
netanelgilad Mar 18, 2025
a163bbd
Migrate wixstro-react-demo from wix-private/wixstro (#15)
nitayneeman Mar 23, 2025
a284b85
update local env
nitayneeman Mar 23, 2025
47b0884
remove local env
nitayneeman Mar 23, 2025
b70909d
update wix config
nitayneeman Mar 23, 2025
1da7664
test(wixstro-react-demo): implement sanity flow (#16)
nitayneeman Mar 24, 2025
f8a1421
test(wixstro-react-demo): update sanity flow to deploy on wix-sites.d…
nitayneeman Mar 24, 2025
36c9ecc
Client side login component (#18)
yurynix Apr 8, 2025
3517eb2
astro integration: optional useWixAuth
netanelgilad Apr 19, 2025
3aa94d3
astro integration: move components to source
netanelgilad Apr 19, 2025
c677119
astro integration: fix source maps
netanelgilad Apr 19, 2025
2dae1c6
Fix cookie structure not aligned (#21)
yurynix Apr 24, 2025
9ed70fe
Set tokens on context (#22)
yurynix Apr 24, 2025
5558cb8
Pre warm from SDK (#20)
yurynix Apr 24, 2025
2bdb5fa
Bump to 0.3.0 (#23)
yurynix Apr 24, 2025
b37e40a
Share tokens with client side to init strategy
yurynix Apr 28, 2025
9a5c7d0
reset loading state on success (#25)
yurynix Apr 28, 2025
541f349
Bump to 0.3.2 (#26)
yurynix Apr 28, 2025
0afbebe
Sync session with wix on login (#27)
yurynix Apr 29, 2025
c4b22e5
Bump version to 0.3.3 (#28)
yurynix Apr 29, 2025
499de75
Update SDK and use the new API (#29)
yurynix Apr 29, 2025
be1f825
Bump version to 0.3.4 (#30)
yurynix Apr 29, 2025
46acd74
Initial skeleton for headless components (#31)
yurynix May 26, 2025
b14d694
Delete and set params MUST match (#33)
yurynix May 27, 2025
2fa222d
Initial component proposition (#34)
yurynix Jun 4, 2025
837e07c
Add a readme for the services structure (#37)
yurynix Jun 5, 2025
9ec88bf
docs poc (#36)
admasodaniel Jun 8, 2025
a4511c0
headless-stores: publish 0.0.3
netanelgilad Jun 8, 2025
f4fdf38
update readme with server actions (#38)
netanelgilad Jun 8, 2025
d24c0e0
Update index.tsx (#39)
admasodaniel Jun 9, 2025
2865e8c
headless-stores: 0.0.4
netanelgilad Jun 9, 2025
1e46774
Example server action (#42)
yurynix Jun 10, 2025
808c0e3
Release @wix/headless-stores 0.0.5 (#43)
yurynix Jun 10, 2025
5e3de86
Refine server actions readme (#44)
yurynix Jun 11, 2025
64d396d
Pay now button (#45)
yurynix Jun 11, 2025
e6df1db
publish @wix/headless-stores 0.0.6 (#46)
yurynix Jun 11, 2025
eb9bec2
Add stock availibilty (#47)
yurynix Jun 12, 2025
7e6aea7
add cjs build to headless stores
netanelgilad Jun 18, 2025
f31d142
explicit return type (#48)
admasodaniel Jun 19, 2025
04b2959
headless stores 0.0.8
netanelgilad Jun 20, 2025
5811fc0
add component annotation (#49)
admasodaniel Jun 25, 2025
9e0f45d
headless stores 0.0.9
netanelgilad Jun 25, 2025
81c8a70
add stores components (#50)
admasodaniel Jul 1, 2025
5e8dcf6
headless stores 0.0.10
netanelgilad Jul 1, 2025
8f73f8a
seo headless component (#51)
admasodaniel Jul 2, 2025
78fa13f
add publish workflows
netanelgilad Jul 2, 2025
0aad0fa
seo version 0.0.1
netanelgilad Jul 2, 2025
00f41f9
fix seo docs (#52)
admasodaniel Jul 2, 2025
c90441a
set versions for bookings and ecom
netanelgilad Jul 2, 2025
d95c6b6
fix esm imports - SEO
netanelgilad Jul 2, 2025
f20339e
use sdk deps (#53)
admasodaniel Jul 13, 2025
9a09d1e
Update package.json
admasodaniel Jul 13, 2025
960e03f
enrich sdk view model metadata (#54)
admasodaniel Jul 13, 2025
128fd2b
Update package.json
admasodaniel Jul 13, 2025
baddbdf
Migrate stores headless components (#55)
nitayneeman Jul 13, 2025
e821827
update lockfile
nitayneeman Jul 13, 2025
90d8883
bump version
nitayneeman Jul 13, 2025
fb36e71
build: fix moduleResolution issues (#56)
nitayneeman Jul 13, 2025
68b2202
update lockfile
nitayneeman Jul 13, 2025
5cc8a31
update versions
nitayneeman Jul 14, 2025
351dd3d
add missing dep
nitayneeman Jul 14, 2025
4e6dcfc
update lockfile
nitayneeman Jul 14, 2025
be9fd0f
fix workflow to build stores deps
nitayneeman Jul 14, 2025
c4f4886
export missing types
nitayneeman Jul 14, 2025
8d9917c
Updating the SEO code with latest kitchensink files #pr (#60)
arielWix Jul 14, 2025
cb7a691
Add registration to added cart event (#62)
yurynix Jul 14, 2025
b016326
Release versions after my last commit (#63)
yurynix Jul 14, 2025
48d990f
Update lockfile (#66)
yurynix Jul 14, 2025
79acf77
adding missing index.ts entry file + bump versions
arielWix Jul 15, 2025
53c0b14
refactor: simplify build process and clean up repository (#67)
nitayneeman Jul 15, 2025
3476c2d
update lockfile
nitayneeman Jul 15, 2025
8becf88
fix publish workflow
nitayneeman Jul 15, 2025
3c1f5cc
Update index.tsx
arielWix Jul 15, 2025
e4a207f
Update package.json
arielWix Jul 15, 2025
1502c4f
fix publish workflow
nitayneeman Jul 15, 2025
6558a2b
Migrate ecom components (#68)
nitayneeman Jul 15, 2025
7c3edbe
bump versions
nitayneeman Jul 15, 2025
70be7a0
bump versions
nitayneeman Jul 15, 2025
98b8644
add missing dep
nitayneeman Jul 15, 2025
d69f801
bump versions
nitayneeman Jul 15, 2025
7d133fb
fix export
nitayneeman Jul 15, 2025
cc7c345
Improving Services Performances (#65)
arielWix Jul 15, 2025
dba41d0
export missing type
nitayneeman Jul 15, 2025
21cfb11
fixing the build
arielWix Jul 15, 2025
52bd883
fix stores build
nitayneeman Jul 15, 2025
b49387e
add sanity workflow
nitayneeman Jul 15, 2025
e29cd90
Migrate media headless components (#69)
nitayneeman Jul 15, 2025
e5e261a
remove image from media package
nitayneeman Jul 15, 2025
0c758b5
Update SEO.tsx (#70)
admasodaniel Jul 16, 2025
9646b41
organize stores package
nitayneeman Jul 16, 2025
2b32faa
update lockfile
nitayneeman Jul 16, 2025
2e20b6b
update lockfile
nitayneeman Jul 16, 2025
070d895
Update package.json
admasodaniel Jul 16, 2025
37a8083
We shouldn't provide href (#71)
yurynix Jul 16, 2025
9861c97
docs fixes
admasodaniel Jul 17, 2025
99365b7
Update package.json
admasodaniel Jul 17, 2025
b29105b
adding the missing package.json files (#74)
arielWix Jul 17, 2025
e610cfe
bump
arielWix Jul 17, 2025
5a5a5d4
more bumps (#75)
arielWix Jul 17, 2025
f4e53fd
headless echo for POC (#76)
arielWix Jul 17, 2025
0e93f84
Add "astro-stores-demo" example based on kitchensink (#77)
nitayneeman Jul 17, 2025
5b636b0
Improve jsdoc of description (#78)
yurynix Jul 17, 2025
5901ba3
bump stores (#79)
yurynix Jul 17, 2025
5eb08e2
Add cart example (#80)
yurynix Jul 17, 2025
9703904
fix loader types (#83)
admasodaniel Jul 20, 2025
a265736
bump stores version
admasodaniel Jul 20, 2025
bb573e2
docs fixses
admasodaniel Jul 21, 2025
691d62d
add products list (#84)
nitayneeman Jul 21, 2025
1b2aba8
export products list
admasodaniel Jul 21, 2025
20b2c4a
export products list component
admasodaniel Jul 21, 2025
2df8fff
bump headless-stores version
admasodaniel Jul 21, 2025
7af9711
fix productsList docs
admasodaniel Jul 21, 2025
5585b37
move jsdoc to the fields
admasodaniel Jul 21, 2025
ab41f7a
bump headless stores version
admasodaniel Jul 21, 2025
4efb2a1
add components jsdoc example
admasodaniel Jul 22, 2025
635268b
add loaders jsdoc examples
admasodaniel Jul 22, 2025
3ba7176
bump headless stores version
admasodaniel Jul 22, 2025
ba20505
fix loadProductServiceConfig response
admasodaniel Jul 22, 2025
62f4f46
bump headless stores version
admasodaniel Jul 22, 2025
e42bc65
add jsdoc examples to media components
admasodaniel Jul 22, 2025
3570c85
bump media version
admasodaniel Jul 22, 2025
28ef580
add order annotation to ProductsList.Root
admasodaniel Jul 22, 2025
ec99460
Adding root components to both product + media and remove syncpack (#85)
arielWix Jul 22, 2025
b71a3e1
update SEO component API
admasodaniel Jul 23, 2025
f4e5539
fix build
admasodaniel Jul 23, 2025
7522724
fix headless-seo docs
admasodaniel Jul 23, 2025
9e54762
update category page SEO
admasodaniel Jul 24, 2025
5bb491d
adding more root components (#86)
arielWix Jul 24, 2025
6bf61de
bumping headless component versions after adding root #pr (#88)
arielWix Jul 24, 2025
82952dd
Align ProductModifiers and remove SocialSharing components #pr (#91)
arielWix Jul 24, 2025
da12b3d
Fixing all Root components services deps + removing services wrappers…
arielWix Jul 27, 2025
59fc087
refactor: api review changes (#87)
nitayneeman Jul 27, 2025
a167649
feat: implement inventory filter (#93)
nitayneeman Jul 27, 2025
0bea838
refactor: api changes cleanup (#94)
nitayneeman Jul 27, 2025
f7ba201
bumping the versions (#95)
arielWix Jul 27, 2025
56a109b
fix: cursor paging limit
nitayneeman Jul 27, 2025
3130fd2
fix: fetch missing variants
nitayneeman Jul 27, 2025
1c14b5f
refactor: combine product actions with SelectedVariant (#96)
nitayneeman Jul 27, 2025
8c82a23
bump version
nitayneeman Jul 28, 2025
6bf80bf
we should have only one cart instance #pr (#100)
arielWix Jul 28, 2025
5f66203
Ecom api fixes (#97)
admasodaniel Jul 28, 2025
1acf65b
fix Root components props
admasodaniel Jul 28, 2025
38276fa
bump headless-ecom version
admasodaniel Jul 28, 2025
62fbd1e
fixing the slider logic #pr (#99)
arielWix Jul 28, 2025
ba1a066
fix deps
admasodaniel Jul 28, 2025
40fb8f2
bump headless-stores version
admasodaniel Jul 28, 2025
c739309
bump headless-ecom version
admasodaniel Jul 28, 2025
dc97ab6
update yar lock
admasodaniel Jul 28, 2025
b492fbd
bump headless-media version
admasodaniel Jul 28, 2025
555c000
Improve jsdoc example (#103)
yurynix Jul 29, 2025
ce75a3d
Product Variant Selector API fixes (#104)
admasodaniel Jul 29, 2025
bcd4ea5
bump versions
admasodaniel Jul 29, 2025
ec689b6
build: export category type (#105)
nitayneeman Jul 29, 2025
f056085
change itemCount to totalItems
admasodaniel Jul 29, 2025
2fb9173
Align filter with the page url (#102)
arielWix Jul 30, 2025
8e50f76
bumping the versions #pr (#106)
arielWix Jul 30, 2025
f7dde80
running yarn dedupe #pr (#108)
arielWix Jul 30, 2025
5de3cb4
fixing categories filter logic #pr (#110)
arielWix Jul 30, 2025
7777047
fix: add missing setSelectedCategory
nitayneeman Jul 31, 2025
dab982a
fixing the hasFilter logic #pr (#113)
arielWix Jul 31, 2025
b26921e
Improve type in jsdoc (#115)
yurynix Jul 31, 2025
1b997ed
Bump stores version (#116)
yurynix Jul 31, 2025
3064131
Fixing quick view image (#114)
arielWix Jul 31, 2025
2b6cbf9
bump to 0.0.46 (#117)
arielWix Jul 31, 2025
8f0858f
Fixing categories URL construction
arielWix Jul 31, 2025
e94f91e
simpler approach for changing the URL
arielWix Jul 31, 2025
2f7b984
Align API of loadProductsListSearchServiceConfig and loadProductsList…
yurynix Jul 31, 2025
2ea8e94
fixing another react-router case (#119)
arielWix Jul 31, 2025
9d0c39e
category shouldnt be considered as filter (#120)
arielWix Jul 31, 2025
e8dc912
fixing selected variants image + making the media service deps option…
arielWix Aug 3, 2025
fcbe349
adding missing deps
arielWix Aug 3, 2025
9f70662
bump stores
arielWix Aug 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .cursorindexingignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

# Don't index SpecStory auto-save files, but allow explicit context inclusion via @ references
.specstory/**
37 changes: 37 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish Package

on:
workflow_dispatch:
inputs:
package_name:
description: "Package name to publish (e.g., stores)"
required: true
type: string
default: "stores"

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build headless components
run: yarn build:headless-components

- name: Publish to npm
run: |
cd packages/headless-components/${{ inputs.package_name }}
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26 changes: 26 additions & 0 deletions .github/workflows/sanity-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Sanity Check

on:
pull_request:
branches: ["**"]
push:
branches: ["main"]

jobs:
sanity-check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build headless components
run: yarn build:headless-components
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ yarn-error.log*
out

.turbo


.specstory
2 changes: 1 addition & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
'yarn.lock': () => ['syncpack list-mismatches', 'yarn dedupe --check'],
"yarn.lock": () => ["yarn dedupe --check"],
};
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.13.1
3 changes: 1 addition & 2 deletions .syncpackrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
{
"label": "Use workspace protocol when developing local packages",
"dependencies": ["$LOCAL"],
"dependencyTypes": ["dev", "prod"],
"pinVersion": "workspace:*"
"dependencyTypes": ["dev", "prod"]
}
]
}
50 changes: 50 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Contributing to Headless Integrations

Thank you for considering contributing to this project! Here are some guidelines and instructions to help you get started.

## Getting Started

- Fork the repository and clone it locally.
- Install dependencies using `yarn install`.
- Make your changes in a new branch.
- Ensure all tests pass before submitting a pull request.

## Publishing Packages

This repository uses a GitHub Actions workflow to publish packages in `packages/headless-components` to npm. Only maintainers should publish new versions.

### Steps to Publish a Package

1. **Update the Version:**

- Bump the `version` field in the `package.json` of the package you want to publish (e.g., `stores`, `ecom`, or `bookings`).

2. **Push Your Changes:**

- Commit and push the updated `package.json` to the `main` branch (or open a PR and merge it).

3. **Trigger the Publish Workflow:**

- Go to the **Actions** tab in the GitHub repository.
- Select the **Publish Package** workflow from the list.
- Click **Run workflow**.
- Enter the package name you want to publish (e.g., `stores`, `ecom`, or `bookings`).
- Click **Run workflow** to start the publishing process.

4. **NPM Token:**
- Ensure the repository has an `NPM_TOKEN` secret set up with publish permissions. This is required for the workflow to publish to npm.

### Notes

- Only packages without `"private": true` in their `package.json` can be published.
- The workflow will build and publish the specified package to npm.
- Make sure your changes are merged and the version is updated before publishing.

## Code Style & Testing

- Follow the existing code style.
- Run tests with `yarn test` or the appropriate command for the package.

## Need Help?

If you have any questions, feel free to open an issue or ask in the discussions section.
30 changes: 30 additions & 0 deletions examples/astro-components-demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# build output
dist/

# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/

test-results
playwright-report

.wix

4 changes: 4 additions & 0 deletions examples/astro-components-demo/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions examples/astro-components-demo/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
48 changes: 48 additions & 0 deletions examples/astro-components-demo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Astro Starter Kit: Basics

```sh
npm create astro@latest -- --template basics
```

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)

> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!

![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554)

## 🚀 Project Structure

Inside of your Astro project, you'll see the following folders and files:

```text
/
├── public/
│ └── favicon.svg
├── src/
│ ├── layouts/
│ │ └── Layout.astro
│ └── pages/
│ └── index.astro
└── package.json
```

To learn more about the folder structure of an Astro project, refer to [our guide on project structure](https://docs.astro.build/en/basics/project-structure/).

## 🧞 Commands

All commands are run from the root of the project, from a terminal:

| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |

## 👀 Want to learn more?

Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
23 changes: 23 additions & 0 deletions examples/astro-components-demo/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// @ts-check
import { defineConfig } from 'astro/config';
import wix from "@wix/astro";
import cloudflare from "@astrojs/cloudflare";
import tailwindcss from "@tailwindcss/vite";

import react from "@astrojs/react";

// https://astro.build/config
export default defineConfig({
output: 'server',

adapter: cloudflare(),

vite: {
plugins: [tailwindcss()]
},

integrations: [
react(),
wix(),
]
});
41 changes: 41 additions & 0 deletions examples/astro-components-demo/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "@wix/astro-components-demo",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"test": "playwright install && playwright test",
"deploy:preview": "wix edge deploy",
"deploy:prod": "wix edge deploy --prod --no-prod-confirm"
},
"dependencies": {
"@astrojs/react": "^4.3.0",
"@playwright/test": "^1.51.1",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.1",
"@wix/astro": "^1.0.22",
"@wix/dashboard": "^1.3.39",
"@wix/headless-bookings": "^0.0.1",
"@wix/headless-ecom": "^0.0.8",
"@wix/headless-stores": "^0.0.20",
"@wix/services-manager-react": "^0.1.26",
"@wix/stores": "^1.0.498",
"astro": "^5.9.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@astrojs/cloudflare": "^12.5.4",
"@tailwindcss/vite": "^4.0.13",
"@wix/cli": "^1.1.95",
"@wix/cli-edge": "^1.1.74",
"tailwindcss": "^4.1.7"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}
26 changes: 26 additions & 0 deletions examples/astro-components-demo/playwright.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// @ts-check
import { defineConfig, devices } from "@playwright/test";

export default defineConfig({
testDir: "./tests",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: "list",

use: {
baseURL: "https://astro-react-demo-56olqgbv-org-headless7.wix-sites.dev/",
trace: "on-first-retry",
timeout: 30 * 1000,
expect: { timeout: 5000 },
navigationTimeout: 15 * 1000,
},

projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
});
9 changes: 9 additions & 0 deletions examples/astro-components-demo/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions examples/astro-components-demo/src/actions/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { customCheckoutActionFactory } from "@wix/headless-stores/astro/actions";

export const server = {
buyTestProduct: customCheckoutActionFactory({
price: "321",
productName: "test",
priceDescription: "Very special price",
}),
};
1 change: 1 addition & 0 deletions examples/astro-components-demo/src/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions examples/astro-components-demo/src/components/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.App {
text-align: center;
}

.App-logo {
height: 40vmin;
pointer-events: none;
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
}
Loading