@jay-framework/wix-stores 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/README.md +184 -0
- package/dist/actions/get-categories.jay-action +8 -0
- package/dist/actions/get-product-by-slug.jay-action +10 -0
- package/dist/actions/search-products.jay-action +33 -0
- package/dist/contracts/category-list.jay-contract +50 -0
- package/dist/contracts/category-list.jay-contract.d.ts +40 -0
- package/dist/contracts/category-page.jay-contract +193 -0
- package/dist/contracts/category-page.jay-contract.d.ts +124 -0
- package/dist/contracts/media-gallery.jay-contract +22 -0
- package/dist/contracts/media-gallery.jay-contract.d.ts +53 -0
- package/dist/contracts/media.jay-contract +5 -0
- package/dist/contracts/media.jay-contract.d.ts +25 -0
- package/dist/contracts/product-card.jay-contract +182 -0
- package/dist/contracts/product-card.jay-contract.d.ts +120 -0
- package/dist/contracts/product-options.jay-contract +66 -0
- package/dist/contracts/product-options.jay-contract.d.ts +57 -0
- package/dist/contracts/product-page.jay-contract +151 -0
- package/dist/contracts/product-page.jay-contract.d.ts +218 -0
- package/dist/contracts/product-search.jay-contract +252 -0
- package/dist/contracts/product-search.jay-contract.d.ts +169 -0
- package/dist/index.client.js +649 -0
- package/dist/index.d.ts +943 -0
- package/dist/index.js +1140 -0
- package/package.json +66 -0
- package/plugin.yaml +34 -0
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jay-framework/wix-stores",
|
|
3
|
+
"version": "0.15.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Wix Stores 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-list.jay-contract": "./dist/contracts/category-list.jay-contract",
|
|
19
|
+
"./search-products.jay-action": "./dist/actions/search-products.jay-action",
|
|
20
|
+
"./get-product-by-slug.jay-action": "./dist/actions/get-product-by-slug.jay-action",
|
|
21
|
+
"./get-categories.jay-action": "./dist/actions/get-categories.jay-action"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "npm run clean && npm run definitions && npm run build:client && npm run build:server && npm run build:copy-contract && npm run build:types",
|
|
25
|
+
"definitions": "jay-cli definitions lib",
|
|
26
|
+
"build:client": "vite build",
|
|
27
|
+
"build:server": "vite build --ssr",
|
|
28
|
+
"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/",
|
|
29
|
+
"build:types": "tsup lib/index.ts --dts-only --format esm",
|
|
30
|
+
"build:check-types": "tsc",
|
|
31
|
+
"clean": "rimraf dist",
|
|
32
|
+
"confirm": "npm run clean && npm run build && npm run test",
|
|
33
|
+
"test": ":"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@jay-framework/component": "^0.14.0",
|
|
37
|
+
"@jay-framework/fullstack-component": "^0.14.0",
|
|
38
|
+
"@jay-framework/reactive": "^0.14.0",
|
|
39
|
+
"@jay-framework/runtime": "^0.14.0",
|
|
40
|
+
"@jay-framework/secure": "^0.14.0",
|
|
41
|
+
"@jay-framework/stack-client-runtime": "^0.14.0",
|
|
42
|
+
"@jay-framework/stack-server-runtime": "^0.14.0",
|
|
43
|
+
"@jay-framework/wix-cart": "^0.15.0",
|
|
44
|
+
"@jay-framework/wix-server-client": "^0.15.0",
|
|
45
|
+
"@jay-framework/wix-utils": "^0.15.0",
|
|
46
|
+
"@wix/categories": "^1.0.185",
|
|
47
|
+
"@wix/sdk": "^1.21.5",
|
|
48
|
+
"@wix/stores": "^1.0.723",
|
|
49
|
+
"js-yaml": "^4.1.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@babel/core": "^7.23.7",
|
|
53
|
+
"@babel/preset-env": "^7.23.8",
|
|
54
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
55
|
+
"@jay-framework/compiler-jay-stack": "^0.14.0",
|
|
56
|
+
"@jay-framework/jay-cli": "^0.14.0",
|
|
57
|
+
"@jay-framework/vite-plugin": "^0.14.0",
|
|
58
|
+
"nodemon": "^3.0.3",
|
|
59
|
+
"rimraf": "^5.0.5",
|
|
60
|
+
"tslib": "^2.6.2",
|
|
61
|
+
"tsup": "^8.5.1",
|
|
62
|
+
"typescript": "^5.3.3",
|
|
63
|
+
"vite": "^5.0.11",
|
|
64
|
+
"vite-plugin-inspect": "^0.8.1"
|
|
65
|
+
}
|
|
66
|
+
}
|
package/plugin.yaml
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: wix-stores
|
|
2
|
+
# No module field for NPM packages - uses package main export by default
|
|
3
|
+
|
|
4
|
+
contracts:
|
|
5
|
+
- name: product-page
|
|
6
|
+
contract: product-page.jay-contract # Export subpath (matches package.json exports)
|
|
7
|
+
component: productPage # Exported member name from index.ts
|
|
8
|
+
description: Complete headless product page with server-side rendering and client interactivity
|
|
9
|
+
- name: product-search
|
|
10
|
+
contract: product-search.jay-contract
|
|
11
|
+
component: productSearch
|
|
12
|
+
description: Headless product search page
|
|
13
|
+
# category-page removed — use product-search with category param instead
|
|
14
|
+
- name: category-list
|
|
15
|
+
contract: category-list.jay-contract
|
|
16
|
+
component: categoryList
|
|
17
|
+
description: Category list listing the categories
|
|
18
|
+
|
|
19
|
+
# Server actions (named exports from main module)
|
|
20
|
+
actions:
|
|
21
|
+
- name: searchProducts
|
|
22
|
+
action: search-products.jay-action
|
|
23
|
+
- name: getProductBySlug
|
|
24
|
+
action: get-product-by-slug.jay-action
|
|
25
|
+
- name: getCategories
|
|
26
|
+
action: get-categories.jay-action
|
|
27
|
+
|
|
28
|
+
# Plugin initialization uses makeJayInit pattern in lib/init.ts
|
|
29
|
+
# Export name defaults to 'init'
|
|
30
|
+
|
|
31
|
+
setup:
|
|
32
|
+
handler: setupWixStores
|
|
33
|
+
references: generateWixStoresReferences
|
|
34
|
+
description: Validate Wix Stores service; generate category tree reference
|