@jay-framework/wix-stores-v1 0.15.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/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@jay-framework/wix-stores-v1",
3
+ "version": "0.15.0",
4
+ "type": "module",
5
+ "description": "Wix Stores Catalog V1 API client for Jay Framework",
6
+ "license": "Apache-2.0",
7
+ "main": "dist/index.js",
8
+ "files": [
9
+ "dist",
10
+ "plugin.yaml"
11
+ ],
12
+ "exports": {
13
+ ".": "./dist/index.js",
14
+ "./client": "./dist/index.client.js",
15
+ "./plugin.yaml": "./plugin.yaml",
16
+ "./product-page.jay-contract": "./dist/contracts/product-page.jay-contract",
17
+ "./product-search.jay-contract": "./dist/contracts/product-search.jay-contract",
18
+ "./category-page.jay-contract": "./dist/contracts/category-page.jay-contract",
19
+ "./category-list.jay-contract": "./dist/contracts/category-list.jay-contract",
20
+ "./search-products.jay-action": "./dist/actions/search-products.jay-action",
21
+ "./get-product-by-slug.jay-action": "./dist/actions/get-product-by-slug.jay-action",
22
+ "./get-collections.jay-action": "./dist/actions/get-collections.jay-action"
23
+ },
24
+ "scripts": {
25
+ "build": "npm run clean && npm run definitions && npm run build:client && npm run build:server && npm run build:copy-contract && npm run build:types",
26
+ "definitions": "jay-cli definitions lib",
27
+ "build:client": "vite build",
28
+ "build:server": "vite build --ssr",
29
+ "build:copy-contract": "mkdir -p dist/contracts && cp lib/contracts/*.jay-contract* dist/contracts/ && mkdir -p dist/actions && cp lib/actions/*.jay-action dist/actions/",
30
+ "build:types": "tsup lib/index.ts --dts-only --format esm",
31
+ "build:check-types": "tsc",
32
+ "clean": "rimraf dist",
33
+ "confirm": "npm run clean && npm run build && npm run test",
34
+ "test": ":"
35
+ },
36
+ "dependencies": {
37
+ "@jay-framework/component": "^0.14.0",
38
+ "@jay-framework/fullstack-component": "^0.14.0",
39
+ "@jay-framework/reactive": "^0.14.0",
40
+ "@jay-framework/runtime": "^0.14.0",
41
+ "@jay-framework/secure": "^0.14.0",
42
+ "@jay-framework/stack-client-runtime": "^0.14.0",
43
+ "@jay-framework/stack-server-runtime": "^0.14.0",
44
+ "@jay-framework/wix-cart": "^0.15.0",
45
+ "@jay-framework/wix-server-client": "^0.15.0",
46
+ "@jay-framework/wix-utils": "^0.15.0",
47
+ "@wix/sdk": "^1.21.5",
48
+ "@wix/stores": "^1.0.723"
49
+ },
50
+ "devDependencies": {
51
+ "@babel/core": "^7.23.7",
52
+ "@babel/preset-env": "^7.23.8",
53
+ "@babel/preset-typescript": "^7.23.3",
54
+ "@jay-framework/compiler-jay-stack": "^0.14.0",
55
+ "@jay-framework/jay-cli": "^0.14.0",
56
+ "@jay-framework/vite-plugin": "^0.14.0",
57
+ "nodemon": "^3.0.3",
58
+ "rimraf": "^5.0.5",
59
+ "tslib": "^2.6.2",
60
+ "tsup": "^8.5.1",
61
+ "typescript": "^5.3.3",
62
+ "vite": "^5.0.11",
63
+ "vite-plugin-inspect": "^0.8.1"
64
+ }
65
+ }
package/plugin.yaml ADDED
@@ -0,0 +1,31 @@
1
+ name: wix-stores-v1
2
+ # Wix Stores package using Catalog V1 API
3
+
4
+ contracts:
5
+ - name: product-page
6
+ contract: product-page.jay-contract
7
+ component: productPage
8
+ description: Complete headless product page with server-side rendering (Catalog V1)
9
+ - name: product-search
10
+ contract: product-search.jay-contract
11
+ component: productSearch
12
+ description: Headless product search page (Catalog V1)
13
+ - name: category-page
14
+ contract: category-page.jay-contract
15
+ component: categoryPage
16
+ description: Collection page showing products (V1 uses collections instead of categories)
17
+ - name: category-list
18
+ contract: category-list.jay-contract
19
+ component: categoryList
20
+ description: List of store collections (V1 uses collections instead of categories)
21
+
22
+ # Server actions (named exports from main module)
23
+ actions:
24
+ - name: searchProducts
25
+ action: search-products.jay-action
26
+ - name: getProductBySlug
27
+ action: get-product-by-slug.jay-action
28
+ - name: getCollections
29
+ action: get-collections.jay-action
30
+
31
+ # Plugin initialization uses makeJayInit pattern in lib/init.ts