@jay-framework/wix-stores-v1 0.25.4 → 0.26.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/agent-kit/designer/wix-stores-v1-dashboard-content.md +75 -0
- package/dist/index.client-CU_1d48Q.d.ts +854 -0
- package/dist/index.client.d.ts +8 -0
- package/dist/index.d.ts +8 -845
- package/dist/index.js +14 -4
- package/package.json +31 -22
- package/plugin.yaml +4 -0
package/dist/index.js
CHANGED
|
@@ -465,6 +465,8 @@ function allOptionsHaveSelection(options) {
|
|
|
465
465
|
}
|
|
466
466
|
return true;
|
|
467
467
|
}
|
|
468
|
+
const SLOW_RENDER_TTL = 600;
|
|
469
|
+
const SLOW_RENDER_GRACE = 3600;
|
|
468
470
|
function mapProductType(productType) {
|
|
469
471
|
return productType === "digital" ? ProductType.DIGITAL : ProductType.PHYSICAL;
|
|
470
472
|
}
|
|
@@ -619,7 +621,9 @@ async function renderSlowlyChanging$3(props, wixStores) {
|
|
|
619
621
|
pricePerUnit: "",
|
|
620
622
|
stockStatus,
|
|
621
623
|
variants
|
|
622
|
-
}
|
|
624
|
+
},
|
|
625
|
+
ttl: SLOW_RENDER_TTL,
|
|
626
|
+
grace: SLOW_RENDER_GRACE
|
|
623
627
|
};
|
|
624
628
|
});
|
|
625
629
|
}
|
|
@@ -687,7 +691,9 @@ async function renderSlowlyChanging$2(props, wixStores) {
|
|
|
687
691
|
searchFields: "name,description,sku",
|
|
688
692
|
fuzzySearch: false,
|
|
689
693
|
collections: collectionInfos
|
|
690
|
-
}
|
|
694
|
+
},
|
|
695
|
+
ttl: SLOW_RENDER_TTL,
|
|
696
|
+
grace: SLOW_RENDER_GRACE
|
|
691
697
|
};
|
|
692
698
|
});
|
|
693
699
|
}
|
|
@@ -800,7 +806,9 @@ async function renderSlowlyChanging$1(props, wixStores) {
|
|
|
800
806
|
categories: collectionItems,
|
|
801
807
|
hasCategories: collectionItems.length > 0
|
|
802
808
|
},
|
|
803
|
-
carryForward: {}
|
|
809
|
+
carryForward: {},
|
|
810
|
+
ttl: SLOW_RENDER_TTL,
|
|
811
|
+
grace: SLOW_RENDER_GRACE
|
|
804
812
|
};
|
|
805
813
|
});
|
|
806
814
|
}
|
|
@@ -897,7 +905,9 @@ async function renderSlowlyChanging(props, wixStores) {
|
|
|
897
905
|
totalProducts: productData.total,
|
|
898
906
|
products: productData.products,
|
|
899
907
|
currentOffset: productData.products.length
|
|
900
|
-
}
|
|
908
|
+
},
|
|
909
|
+
ttl: SLOW_RENDER_TTL,
|
|
910
|
+
grace: SLOW_RENDER_GRACE
|
|
901
911
|
};
|
|
902
912
|
});
|
|
903
913
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/wix-stores-v1",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Wix Stores Catalog V1 API client for Jay Framework",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -11,9 +11,18 @@
|
|
|
11
11
|
"agent-kit"
|
|
12
12
|
],
|
|
13
13
|
"exports": {
|
|
14
|
-
".":
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./client": {
|
|
19
|
+
"types": "./dist/index.client.d.ts",
|
|
20
|
+
"default": "./dist/index.client.js"
|
|
21
|
+
},
|
|
22
|
+
"./tools": {
|
|
23
|
+
"types": "./dist/tools.d.ts",
|
|
24
|
+
"default": "./dist/tools.js"
|
|
25
|
+
},
|
|
17
26
|
"./plugin.yaml": "./plugin.yaml",
|
|
18
27
|
"./product-page.jay-contract": "./dist/contracts/product-page.jay-contract",
|
|
19
28
|
"./product-search.jay-contract": "./dist/contracts/product-search.jay-contract",
|
|
@@ -30,23 +39,23 @@
|
|
|
30
39
|
"build:client": "vite build",
|
|
31
40
|
"build:server": "vite build --ssr",
|
|
32
41
|
"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/",
|
|
33
|
-
"build:types": "tsup lib/index.ts lib/tools.ts --dts-only --format esm",
|
|
42
|
+
"build:types": "tsup lib/index.ts lib/index.client.ts lib/tools.ts --dts-only --format esm",
|
|
34
43
|
"build:check-types": "tsc",
|
|
35
44
|
"clean": "rimraf dist",
|
|
36
45
|
"confirm": "npm run clean && npm run build && npm run test",
|
|
37
46
|
"test": "vitest run"
|
|
38
47
|
},
|
|
39
48
|
"dependencies": {
|
|
40
|
-
"@jay-framework/component": "^0.
|
|
41
|
-
"@jay-framework/fullstack-component": "^0.
|
|
42
|
-
"@jay-framework/reactive": "^0.
|
|
43
|
-
"@jay-framework/runtime": "^0.
|
|
44
|
-
"@jay-framework/secure": "^0.
|
|
45
|
-
"@jay-framework/stack-client-runtime": "^0.
|
|
46
|
-
"@jay-framework/stack-server-runtime": "^0.
|
|
47
|
-
"@jay-framework/wix-cart": "^0.
|
|
48
|
-
"@jay-framework/wix-server-client": "^0.
|
|
49
|
-
"@jay-framework/wix-utils": "^0.
|
|
49
|
+
"@jay-framework/component": "^0.26.0",
|
|
50
|
+
"@jay-framework/fullstack-component": "^0.26.0",
|
|
51
|
+
"@jay-framework/reactive": "^0.26.0",
|
|
52
|
+
"@jay-framework/runtime": "^0.26.0",
|
|
53
|
+
"@jay-framework/secure": "^0.26.0",
|
|
54
|
+
"@jay-framework/stack-client-runtime": "^0.26.0",
|
|
55
|
+
"@jay-framework/stack-server-runtime": "^0.26.0",
|
|
56
|
+
"@jay-framework/wix-cart": "^0.26.0",
|
|
57
|
+
"@jay-framework/wix-server-client": "^0.26.0",
|
|
58
|
+
"@jay-framework/wix-utils": "^0.26.0",
|
|
50
59
|
"@wix/sdk": "^1.21.5",
|
|
51
60
|
"js-yaml": "^4.1.0"
|
|
52
61
|
},
|
|
@@ -54,18 +63,18 @@
|
|
|
54
63
|
"@babel/core": "^7.23.7",
|
|
55
64
|
"@babel/preset-env": "^7.23.8",
|
|
56
65
|
"@babel/preset-typescript": "^7.23.3",
|
|
57
|
-
"@jay-framework/compiler-jay-stack": "^0.
|
|
58
|
-
"@jay-framework/compiler-shared": "^0.
|
|
59
|
-
"@jay-framework/jay-cli": "^0.
|
|
60
|
-
"@jay-framework/jay-stack-cli": "^0.
|
|
61
|
-
"@jay-framework/vite-plugin": "^0.
|
|
66
|
+
"@jay-framework/compiler-jay-stack": "^0.26.0",
|
|
67
|
+
"@jay-framework/compiler-shared": "^0.26.0",
|
|
68
|
+
"@jay-framework/jay-cli": "^0.26.0",
|
|
69
|
+
"@jay-framework/jay-stack-cli": "^0.26.0",
|
|
70
|
+
"@jay-framework/vite-plugin": "^0.26.0",
|
|
62
71
|
"nodemon": "^3.0.3",
|
|
63
72
|
"rimraf": "^5.0.5",
|
|
64
73
|
"tslib": "^2.6.2",
|
|
65
74
|
"tsup": "^8.5.1",
|
|
66
75
|
"typescript": "^5.3.3",
|
|
67
|
-
"vite": "^
|
|
76
|
+
"vite": "^6.4.4",
|
|
68
77
|
"vite-plugin-inspect": "^0.8.1",
|
|
69
|
-
"vitest": "^1.
|
|
78
|
+
"vitest": "^4.1.11"
|
|
70
79
|
}
|
|
71
80
|
}
|
package/plugin.yaml
CHANGED
|
@@ -9,18 +9,22 @@ contracts:
|
|
|
9
9
|
headTags:
|
|
10
10
|
- title
|
|
11
11
|
- meta:description
|
|
12
|
+
editingGuide: ./agent-kit/designer/wix-stores-v1-dashboard-content.md
|
|
12
13
|
- name: product-search
|
|
13
14
|
contract: product-search.jay-contract
|
|
14
15
|
component: productSearch
|
|
15
16
|
description: Headless product search page (Catalog V1)
|
|
17
|
+
editingGuide: ./agent-kit/designer/wix-stores-v1-dashboard-content.md
|
|
16
18
|
- name: category-page
|
|
17
19
|
contract: category-page.jay-contract
|
|
18
20
|
component: categoryPage
|
|
19
21
|
description: Collection page showing products (V1 uses collections instead of categories)
|
|
22
|
+
editingGuide: ./agent-kit/designer/wix-stores-v1-dashboard-content.md
|
|
20
23
|
- name: category-list
|
|
21
24
|
contract: category-list.jay-contract
|
|
22
25
|
component: categoryList
|
|
23
26
|
description: List of store collections (V1 uses collections instead of categories)
|
|
27
|
+
editingGuide: ./agent-kit/designer/wix-stores-v1-dashboard-content.md
|
|
24
28
|
|
|
25
29
|
# Server actions (named exports from main module)
|
|
26
30
|
actions:
|