@jay-framework/wix-bookings 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/wix-bookings",
3
- "version": "0.25.5",
3
+ "version": "0.26.1",
4
4
  "type": "module",
5
5
  "description": "Wix Bookings package for Jay Framework — browse services, pick slots, submit participant details, complete checkout",
6
6
  "license": "Apache-2.0",
@@ -43,15 +43,15 @@
43
43
  "test": "vitest run"
44
44
  },
45
45
  "dependencies": {
46
- "@jay-framework/component": "^0.25.5",
47
- "@jay-framework/fullstack-component": "^0.25.5",
48
- "@jay-framework/reactive": "^0.25.5",
49
- "@jay-framework/runtime": "^0.25.5",
50
- "@jay-framework/secure": "^0.25.5",
51
- "@jay-framework/stack-client-runtime": "^0.25.5",
52
- "@jay-framework/stack-server-runtime": "^0.25.5",
53
- "@jay-framework/wix-forms": "^0.25.5",
54
- "@jay-framework/wix-server-client": "^0.25.5",
46
+ "@jay-framework/component": "^0.26.1",
47
+ "@jay-framework/fullstack-component": "^0.26.1",
48
+ "@jay-framework/reactive": "^0.26.1",
49
+ "@jay-framework/runtime": "^0.26.1",
50
+ "@jay-framework/secure": "^0.26.1",
51
+ "@jay-framework/stack-client-runtime": "^0.26.1",
52
+ "@jay-framework/stack-server-runtime": "^0.26.1",
53
+ "@jay-framework/wix-forms": "^0.26.1",
54
+ "@jay-framework/wix-server-client": "^0.26.1",
55
55
  "@wix/sdk": "^1.21.5",
56
56
  "js-yaml": "^4.1.0"
57
57
  },
@@ -59,17 +59,17 @@
59
59
  "@babel/core": "^7.23.7",
60
60
  "@babel/preset-env": "^7.23.8",
61
61
  "@babel/preset-typescript": "^7.23.3",
62
- "@jay-framework/compiler-jay-stack": "^0.25.5",
63
- "@jay-framework/jay-cli": "^0.25.5",
64
- "@jay-framework/jay-stack-cli": "^0.25.5",
65
- "@jay-framework/vite-plugin": "^0.25.5",
62
+ "@jay-framework/compiler-jay-stack": "^0.26.1",
63
+ "@jay-framework/jay-cli": "^0.26.1",
64
+ "@jay-framework/jay-stack-cli": "^0.26.1",
65
+ "@jay-framework/vite-plugin": "^0.26.1",
66
66
  "@jay-framework/wix-dev-environment": "^0.6.12",
67
67
  "nodemon": "^3.0.3",
68
68
  "rimraf": "^5.0.5",
69
69
  "tslib": "^2.6.2",
70
70
  "tsup": "^8.5.1",
71
71
  "typescript": "^5.3.3",
72
- "vite": "^5.0.11",
73
- "vitest": "^1.2.0"
72
+ "vite": "^6.4.4",
73
+ "vitest": "^4.1.11"
74
74
  }
75
75
  }
package/plugin.yaml CHANGED
@@ -6,6 +6,7 @@ contracts:
6
6
  contract: booking-flow.jay-contract
7
7
  component: bookingFlow
8
8
  description: Full booking flow (service list, slot picker, form, checkout)
9
+ editingGuide: ./agent-kit/designer/wix-bookings-dashboard-content.md
9
10
 
10
11
  services:
11
12
  - name: wix-bookings
@@ -21,3 +22,5 @@ actions:
21
22
  action: create-booking.jay-action
22
23
 
23
24
  setup: setupWixBookings
25
+ agentkit: generateWixBookingsAgentKit
26
+ description: Bookings setup and agent-kit service index for dashboard links
@@ -1,27 +0,0 @@
1
- import fs from "node:fs";
2
- import path from "node:path";
3
- import yaml from "js-yaml";
4
- const CONFIG_FILE = ".wix-bookings.yaml";
5
- const WIX_BOOKINGS_APP_ID = "13d21c63-b5ec-5912-8397-c3a5ddb27a97";
6
- const DEFAULTS = {
7
- bookingAppId: WIX_BOOKINGS_APP_ID,
8
- staffResourceTypeId: "",
9
- slotWindowDays: 14,
10
- postCheckoutUrl: "/"
11
- };
12
- function loadWixBookingsConfig(projectRoot) {
13
- const configPath = path.join(projectRoot, "config", CONFIG_FILE);
14
- if (!fs.existsSync(configPath)) {
15
- return { ...DEFAULTS };
16
- }
17
- const raw = yaml.load(fs.readFileSync(configPath, "utf-8"));
18
- return {
19
- bookingAppId: raw.bookingAppId || DEFAULTS.bookingAppId,
20
- staffResourceTypeId: raw.staffResourceTypeId ?? DEFAULTS.staffResourceTypeId,
21
- slotWindowDays: raw.slotWindowDays ?? DEFAULTS.slotWindowDays,
22
- postCheckoutUrl: raw.postCheckoutUrl ?? DEFAULTS.postCheckoutUrl
23
- };
24
- }
25
- export {
26
- loadWixBookingsConfig as l
27
- };