@jay-framework/wix-cart 0.25.5 → 0.26.1

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/dist/index.js CHANGED
@@ -448,6 +448,8 @@ async function renderFastChanging$2(_props, _wixCart) {
448
448
  }));
449
449
  }
450
450
  const cartIndicator = makeJayStackComponent().withProps().withServices(WIX_CART_SERVICE).withFastRender(renderFastChanging$2).withInteractiveMark();
451
+ const SLOW_RENDER_TTL = 600;
452
+ const SLOW_RENDER_GRACE = 3600;
451
453
  function createEmptyCartViewState() {
452
454
  return {
453
455
  isEmpty: true,
@@ -481,7 +483,9 @@ async function renderSlowlyChanging(_props, _wixCart) {
481
483
  cartId: "",
482
484
  emptyCartMessage: "Your cart is empty"
483
485
  },
484
- carryForward: {}
486
+ carryForward: {},
487
+ ttl: SLOW_RENDER_TTL,
488
+ grace: SLOW_RENDER_GRACE
485
489
  }));
486
490
  }
487
491
  async function renderFastChanging$1(_props, _slowCarryForward, _wixCart) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/wix-cart",
3
- "version": "0.25.5",
3
+ "version": "0.26.1",
4
4
  "type": "module",
5
5
  "description": "Wix Cart/Ecom shared package for Jay Framework",
6
6
  "license": "Apache-2.0",
@@ -37,31 +37,31 @@
37
37
  "test": "vitest run"
38
38
  },
39
39
  "dependencies": {
40
- "@jay-framework/component": "^0.25.5",
41
- "@jay-framework/fullstack-component": "^0.25.5",
42
- "@jay-framework/reactive": "^0.25.5",
43
- "@jay-framework/runtime": "^0.25.5",
44
- "@jay-framework/secure": "^0.25.5",
45
- "@jay-framework/stack-client-runtime": "^0.25.5",
46
- "@jay-framework/stack-server-runtime": "^0.25.5",
47
- "@jay-framework/wix-server-client": "^0.25.5",
48
- "@jay-framework/wix-utils": "^0.25.5",
40
+ "@jay-framework/component": "^0.26.1",
41
+ "@jay-framework/fullstack-component": "^0.26.1",
42
+ "@jay-framework/reactive": "^0.26.1",
43
+ "@jay-framework/runtime": "^0.26.1",
44
+ "@jay-framework/secure": "^0.26.1",
45
+ "@jay-framework/stack-client-runtime": "^0.26.1",
46
+ "@jay-framework/stack-server-runtime": "^0.26.1",
47
+ "@jay-framework/wix-server-client": "^0.26.1",
48
+ "@jay-framework/wix-utils": "^0.26.1",
49
49
  "@wix/sdk": "^1.21.5"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@babel/core": "^7.23.7",
53
53
  "@babel/preset-env": "^7.23.8",
54
54
  "@babel/preset-typescript": "^7.23.3",
55
- "@jay-framework/compiler-jay-stack": "^0.25.5",
56
- "@jay-framework/jay-cli": "^0.25.5",
57
- "@jay-framework/vite-plugin": "^0.25.5",
55
+ "@jay-framework/compiler-jay-stack": "^0.26.1",
56
+ "@jay-framework/jay-cli": "^0.26.1",
57
+ "@jay-framework/vite-plugin": "^0.26.1",
58
58
  "@jay-framework/wix-dev-environment": "^0.6.12",
59
59
  "nodemon": "^3.0.3",
60
60
  "rimraf": "^5.0.5",
61
61
  "tslib": "^2.6.2",
62
62
  "tsup": "^8.5.1",
63
63
  "typescript": "^5.3.3",
64
- "vite": "^5.0.11",
65
- "vitest": "^1.2.0"
64
+ "vite": "^6.4.4",
65
+ "vitest": "^4.1.11"
66
66
  }
67
67
  }
package/plugin.yaml CHANGED
@@ -6,14 +6,17 @@ contracts:
6
6
  contract: cart-indicator.jay-contract
7
7
  component: cartIndicator
8
8
  description: Lightweight cart indicator for site headers showing item count
9
+ readonly: true
9
10
  - name: cart-page
10
11
  contract: cart-page.jay-contract
11
12
  component: cartPage
12
13
  description: Full cart page with line item management and checkout
14
+ readonly: true
13
15
  - name: mini-cart
14
16
  contract: mini-cart.jay-contract
15
17
  component: miniCart
16
18
  description: Drawer that auto-opens when a product is added to cart
19
+ readonly: true
17
20
 
18
21
  services:
19
22
  - name: wix-cart