@wix/bookings 1.0.1750 → 1.0.1752

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.
Files changed (105) hide show
  1. package/_sdk-exports/{context-booking-checkout-context → context-booking-checkout}/runtime.d.ts +10 -0
  2. package/_sdk-exports/context-booking-checkout/runtime.js +2 -0
  3. package/_sdk-exports/context-categories/runtime.js +1 -0
  4. package/_sdk-exports/context-locations/runtime.js +1 -0
  5. package/_sdk-exports/{context-service-context → context-service}/runtime.d.ts +1 -1
  6. package/_sdk-exports/{context-service-context → context-service}/runtime.js +2 -2
  7. package/_sdk-exports/context-service-addons/runtime.js +1 -0
  8. package/_sdk-exports/context-services/runtime.js +2 -0
  9. package/_sdk-exports/context-time-slots/runtime.js +2 -0
  10. package/build/{internal/es/context-booking-checkout-context.d.mts → cjs/context-booking-checkout.d.ts} +10 -0
  11. package/build/cjs/{context-booking-checkout-context.js → context-booking-checkout.js} +909 -925
  12. package/build/cjs/context-booking-checkout.js.map +1 -0
  13. package/build/cjs/{context-categories-context.js → context-categories.js} +287 -293
  14. package/build/cjs/context-categories.js.map +1 -0
  15. package/build/cjs/{context-locations-context.js → context-locations.js} +362 -368
  16. package/build/cjs/context-locations.js.map +1 -0
  17. package/build/cjs/{context-service-addons-context.js → context-service-addons.js} +424 -430
  18. package/build/cjs/context-service-addons.js.map +1 -0
  19. package/build/cjs/{context-service-context.d.ts → context-service.d.ts} +1 -1
  20. package/build/cjs/{context-service-context.js → context-service.js} +964 -977
  21. package/build/cjs/context-service.js.map +1 -0
  22. package/build/cjs/{context-services-context.js → context-services.js} +600 -611
  23. package/build/cjs/context-services.js.map +1 -0
  24. package/build/cjs/{context-time-slots-context.js → context-time-slots.js} +1187 -1195
  25. package/build/cjs/context-time-slots.js.map +1 -0
  26. package/build/{cjs/context-booking-checkout-context.d.ts → es/context-booking-checkout.d.mts} +10 -0
  27. package/build/es/{context-booking-checkout-context.mjs → context-booking-checkout.mjs} +906 -922
  28. package/build/es/context-booking-checkout.mjs.map +1 -0
  29. package/build/es/{context-categories-context.mjs → context-categories.mjs} +283 -289
  30. package/build/es/context-categories.mjs.map +1 -0
  31. package/build/es/{context-locations-context.mjs → context-locations.mjs} +358 -364
  32. package/build/es/context-locations.mjs.map +1 -0
  33. package/build/es/{context-service-addons-context.mjs → context-service-addons.mjs} +417 -423
  34. package/build/es/context-service-addons.mjs.map +1 -0
  35. package/build/{internal/cjs/context-service-context.d.ts → es/context-service.d.mts} +1 -1
  36. package/build/es/{context-service-context.mjs → context-service.mjs} +960 -973
  37. package/build/es/context-service.mjs.map +1 -0
  38. package/build/es/{context-services-context.mjs → context-services.mjs} +596 -607
  39. package/build/es/context-services.mjs.map +1 -0
  40. package/build/es/{context-time-slots-context.mjs → context-time-slots.mjs} +1181 -1189
  41. package/build/es/context-time-slots.mjs.map +1 -0
  42. package/build/internal/cjs/{context-booking-checkout-context.d.ts → context-booking-checkout.d.ts} +10 -0
  43. package/build/internal/{es/context-service-context.d.mts → cjs/context-service.d.ts} +1 -1
  44. package/build/{es/context-booking-checkout-context.d.mts → internal/es/context-booking-checkout.d.mts} +10 -0
  45. package/build/{es/context-service-context.d.mts → internal/es/context-service.d.mts} +1 -1
  46. package/context/booking-checkout/package.json +3 -0
  47. package/context/categories/package.json +3 -0
  48. package/context/locations/package.json +3 -0
  49. package/context/service/package.json +3 -0
  50. package/context/service-addons/package.json +3 -0
  51. package/context/services/package.json +3 -0
  52. package/context/time-slots/package.json +3 -0
  53. package/package.json +37 -37
  54. package/_sdk-exports/context-booking-checkout-context/runtime.js +0 -2
  55. package/_sdk-exports/context-categories-context/runtime.js +0 -1
  56. package/_sdk-exports/context-locations-context/runtime.js +0 -1
  57. package/_sdk-exports/context-service-addons-context/runtime.js +0 -1
  58. package/_sdk-exports/context-services-context/runtime.js +0 -2
  59. package/_sdk-exports/context-time-slots-context/runtime.js +0 -2
  60. package/build/cjs/context-booking-checkout-context.js.map +0 -1
  61. package/build/cjs/context-categories-context.js.map +0 -1
  62. package/build/cjs/context-locations-context.js.map +0 -1
  63. package/build/cjs/context-service-addons-context.js.map +0 -1
  64. package/build/cjs/context-service-context.js.map +0 -1
  65. package/build/cjs/context-services-context.js.map +0 -1
  66. package/build/cjs/context-time-slots-context.js.map +0 -1
  67. package/build/es/context-booking-checkout-context.mjs.map +0 -1
  68. package/build/es/context-categories-context.mjs.map +0 -1
  69. package/build/es/context-locations-context.mjs.map +0 -1
  70. package/build/es/context-service-addons-context.mjs.map +0 -1
  71. package/build/es/context-service-context.mjs.map +0 -1
  72. package/build/es/context-services-context.mjs.map +0 -1
  73. package/build/es/context-time-slots-context.mjs.map +0 -1
  74. package/context/booking-checkout-context/package.json +0 -3
  75. package/context/categories-context/package.json +0 -3
  76. package/context/locations-context/package.json +0 -3
  77. package/context/service-addons-context/package.json +0 -3
  78. package/context/service-context/package.json +0 -3
  79. package/context/services-context/package.json +0 -3
  80. package/context/time-slots-context/package.json +0 -3
  81. /package/_sdk-exports/{context-categories-context → context-categories}/runtime.d.ts +0 -0
  82. /package/_sdk-exports/{context-locations-context → context-locations}/runtime.d.ts +0 -0
  83. /package/_sdk-exports/{context-service-addons-context → context-service-addons}/runtime.d.ts +0 -0
  84. /package/_sdk-exports/{context-services-context → context-services}/runtime.d.ts +0 -0
  85. /package/_sdk-exports/{context-time-slots-context → context-time-slots}/runtime.d.ts +0 -0
  86. /package/build/cjs/{context-categories-context.d.ts → context-categories.d.ts} +0 -0
  87. /package/build/cjs/{context-locations-context.d.ts → context-locations.d.ts} +0 -0
  88. /package/build/cjs/{context-service-addons-context.d.ts → context-service-addons.d.ts} +0 -0
  89. /package/build/cjs/{context-services-context.d.ts → context-services.d.ts} +0 -0
  90. /package/build/cjs/{context-time-slots-context.d.ts → context-time-slots.d.ts} +0 -0
  91. /package/build/es/{context-categories-context.d.mts → context-categories.d.mts} +0 -0
  92. /package/build/es/{context-locations-context.d.mts → context-locations.d.mts} +0 -0
  93. /package/build/es/{context-service-addons-context.d.mts → context-service-addons.d.mts} +0 -0
  94. /package/build/es/{context-services-context.d.mts → context-services.d.mts} +0 -0
  95. /package/build/es/{context-time-slots-context.d.mts → context-time-slots.d.mts} +0 -0
  96. /package/build/internal/cjs/{context-categories-context.d.ts → context-categories.d.ts} +0 -0
  97. /package/build/internal/cjs/{context-locations-context.d.ts → context-locations.d.ts} +0 -0
  98. /package/build/internal/cjs/{context-service-addons-context.d.ts → context-service-addons.d.ts} +0 -0
  99. /package/build/internal/cjs/{context-services-context.d.ts → context-services.d.ts} +0 -0
  100. /package/build/internal/cjs/{context-time-slots-context.d.ts → context-time-slots.d.ts} +0 -0
  101. /package/build/internal/es/{context-categories-context.d.mts → context-categories.d.mts} +0 -0
  102. /package/build/internal/es/{context-locations-context.d.mts → context-locations.d.mts} +0 -0
  103. /package/build/internal/es/{context-service-addons-context.d.mts → context-service-addons.d.mts} +0 -0
  104. /package/build/internal/es/{context-services-context.d.mts → context-services.d.mts} +0 -0
  105. /package/build/internal/es/{context-time-slots-context.d.mts → context-time-slots.d.mts} +0 -0
@@ -2521,6 +2521,14 @@ interface PlanPurchase {
2521
2521
  /** Pricing Plans' page for a plan that needs a start date or a form before purchase. */
2522
2522
  infoCollectionUrl?: string | null;
2523
2523
  }
2524
+ /** What a limited plan grants, as legacy's row subtitle says it. */
2525
+ interface PlanBenefit {
2526
+ /** Sessions or credits granted; null when the SPI leaves it out. */
2527
+ total: number | null;
2528
+ isSessionBased: boolean;
2529
+ /** Credits one booking of this service costs; null for a session plan. */
2530
+ redemptionCost: number | null;
2531
+ }
2524
2532
  //#endregion
2525
2533
  //#region src/domains/payment-options/from-service.d.ts
2526
2534
  type Service = Service$2;
@@ -2559,6 +2567,8 @@ interface PaymentOption$1 {
2559
2567
  suffixText: string | null;
2560
2568
  membership: MembershipRowData | null;
2561
2569
  purchasablePlan?: PlanPurchase;
2570
+ /** A plan to buy: what it grants, for its subtitle. */
2571
+ planBenefit?: PlanBenefit | null;
2562
2572
  }
2563
2573
  //#endregion
2564
2574
  //#region src/domains/payment-options/to-booking.d.ts
@@ -3465,7 +3465,7 @@ type WithSelectionParam = (path: string, opts?: {
3465
3465
  handoff?: boolean;
3466
3466
  staffId?: string | null;
3467
3467
  }) => string;
3468
- /** Keeps the location. */
3468
+ /** Location and staff go back to the choices made before the calendar. */
3469
3469
  type ClearSlot = () => void;
3470
3470
  /** A Multi-Service Appointment slot's part for one service. */
3471
3471
  type NestedSlotPart = Pick<NestedTimeSlot, 'serviceId' | 'localStartDate' | 'localEndDate' | 'scheduleId'>;
@@ -2521,6 +2521,14 @@ interface PlanPurchase {
2521
2521
  /** Pricing Plans' page for a plan that needs a start date or a form before purchase. */
2522
2522
  infoCollectionUrl?: string | null;
2523
2523
  }
2524
+ /** What a limited plan grants, as legacy's row subtitle says it. */
2525
+ interface PlanBenefit {
2526
+ /** Sessions or credits granted; null when the SPI leaves it out. */
2527
+ total: number | null;
2528
+ isSessionBased: boolean;
2529
+ /** Credits one booking of this service costs; null for a session plan. */
2530
+ redemptionCost: number | null;
2531
+ }
2524
2532
  //#endregion
2525
2533
  //#region src/domains/payment-options/from-service.d.ts
2526
2534
  type Service = Service$2;
@@ -2559,6 +2567,8 @@ interface PaymentOption$1 {
2559
2567
  suffixText: string | null;
2560
2568
  membership: MembershipRowData | null;
2561
2569
  purchasablePlan?: PlanPurchase;
2570
+ /** A plan to buy: what it grants, for its subtitle. */
2571
+ planBenefit?: PlanBenefit | null;
2562
2572
  }
2563
2573
  //#endregion
2564
2574
  //#region src/domains/payment-options/to-booking.d.ts
@@ -3465,7 +3465,7 @@ type WithSelectionParam = (path: string, opts?: {
3465
3465
  handoff?: boolean;
3466
3466
  staffId?: string | null;
3467
3467
  }) => string;
3468
- /** Keeps the location. */
3468
+ /** Location and staff go back to the choices made before the calendar. */
3469
3469
  type ClearSlot = () => void;
3470
3470
  /** A Multi-Service Appointment slot's part for one service. */
3471
3471
  type NestedSlotPart = Pick<NestedTimeSlot, 'serviceId' | 'localStartDate' | 'localEndDate' | 'scheduleId'>;
@@ -0,0 +1,3 @@
1
+ {
2
+ "main": "../../build/cjs/context-booking-checkout.js"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "main": "../../build/cjs/context-categories.js"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "main": "../../build/cjs/context-locations.js"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "main": "../../build/cjs/context-service.js"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "main": "../../build/cjs/context-service-addons.js"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "main": "../../build/cjs/context-services.js"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "main": "../../build/cjs/context-time-slots.js"
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/bookings",
3
- "version": "1.0.1750",
3
+ "version": "1.0.1752",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -43,50 +43,50 @@
43
43
  "require": "./build/cjs/site.js",
44
44
  "types": "./build/es/site.d.mts"
45
45
  },
46
- "./context/time-slots-context": {
47
- "import": "./build/es/context-time-slots-context.mjs",
48
- "require": "./build/cjs/context-time-slots-context.js",
49
- "types": "./build/es/context-time-slots-context.d.mts"
46
+ "./context/time-slots": {
47
+ "import": "./build/es/context-time-slots.mjs",
48
+ "require": "./build/cjs/context-time-slots.js",
49
+ "types": "./build/es/context-time-slots.d.mts"
50
50
  },
51
- "./context/locations-context": {
52
- "import": "./build/es/context-locations-context.mjs",
53
- "require": "./build/cjs/context-locations-context.js",
54
- "types": "./build/es/context-locations-context.d.mts"
51
+ "./context/locations": {
52
+ "import": "./build/es/context-locations.mjs",
53
+ "require": "./build/cjs/context-locations.js",
54
+ "types": "./build/es/context-locations.d.mts"
55
55
  },
56
- "./context/booking-checkout-context": {
57
- "import": "./build/es/context-booking-checkout-context.mjs",
58
- "require": "./build/cjs/context-booking-checkout-context.js",
59
- "types": "./build/es/context-booking-checkout-context.d.mts"
56
+ "./context/booking-checkout": {
57
+ "import": "./build/es/context-booking-checkout.mjs",
58
+ "require": "./build/cjs/context-booking-checkout.js",
59
+ "types": "./build/es/context-booking-checkout.d.mts"
60
60
  },
61
61
  "./services": {
62
62
  "import": "./build/es/services.mjs",
63
63
  "require": "./build/cjs/services.js",
64
64
  "types": "./build/es/services.d.mts"
65
65
  },
66
- "./context/service-addons-context": {
67
- "import": "./build/es/context-service-addons-context.mjs",
68
- "require": "./build/cjs/context-service-addons-context.js",
69
- "types": "./build/es/context-service-addons-context.d.mts"
66
+ "./context/service-addons": {
67
+ "import": "./build/es/context-service-addons.mjs",
68
+ "require": "./build/cjs/context-service-addons.js",
69
+ "types": "./build/es/context-service-addons.d.mts"
70
70
  },
71
71
  "./components": {
72
72
  "import": "./build/es/components.mjs",
73
73
  "require": "./build/cjs/components.js",
74
74
  "types": "./build/es/components.d.mts"
75
75
  },
76
- "./context/categories-context": {
77
- "import": "./build/es/context-categories-context.mjs",
78
- "require": "./build/cjs/context-categories-context.js",
79
- "types": "./build/es/context-categories-context.d.mts"
76
+ "./context/categories": {
77
+ "import": "./build/es/context-categories.mjs",
78
+ "require": "./build/cjs/context-categories.js",
79
+ "types": "./build/es/context-categories.d.mts"
80
80
  },
81
- "./context/services-context": {
82
- "import": "./build/es/context-services-context.mjs",
83
- "require": "./build/cjs/context-services-context.js",
84
- "types": "./build/es/context-services-context.d.mts"
81
+ "./context/services": {
82
+ "import": "./build/es/context-services.mjs",
83
+ "require": "./build/cjs/context-services.js",
84
+ "types": "./build/es/context-services.d.mts"
85
85
  },
86
- "./context/service-context": {
87
- "import": "./build/es/context-service-context.mjs",
88
- "require": "./build/cjs/context-service-context.js",
89
- "types": "./build/es/context-service-context.d.mts"
86
+ "./context/service": {
87
+ "import": "./build/es/context-service.mjs",
88
+ "require": "./build/cjs/context-service.js",
89
+ "types": "./build/es/context-service.d.mts"
90
90
  }
91
91
  },
92
92
  "files": [
@@ -96,15 +96,15 @@
96
96
  "dashboard",
97
97
  "site",
98
98
  "_sdk-exports",
99
- "context/time-slots-context",
100
- "context/locations-context",
101
- "context/booking-checkout-context",
99
+ "context/time-slots",
100
+ "context/locations",
101
+ "context/booking-checkout",
102
102
  "services",
103
- "context/service-addons-context",
103
+ "context/service-addons",
104
104
  "components",
105
- "context/categories-context",
106
- "context/services-context",
107
- "context/service-context"
105
+ "context/categories",
106
+ "context/services",
107
+ "context/service"
108
108
  ],
109
109
  "dependencies": {
110
110
  "@wix/auto_sdk_bookings_add-ons": "1.0.41",
@@ -180,5 +180,5 @@
180
180
  "optional": true
181
181
  }
182
182
  },
183
- "falconPackageHash": "9128f4f92a029fb1f587552b8c5801c08b5be8033aa3310e07248c18"
183
+ "falconPackageHash": "dbf42ea1bb99c7496acfcc9be0e907c721ee4aa1c6268d45687b56e7"
184
184
  }