@ossy/booking 3.2.0 → 3.4.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ossy/booking",
3
3
  "description": "Booking feature package — services, availability, and appointment management for Ossy providers",
4
- "version": "3.2.0",
4
+ "version": "3.4.0",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
7
7
  "module": "./src/index.js",
@@ -16,12 +16,12 @@
16
16
  "dependencies": {
17
17
  "@ossy/config": "^3.0.9",
18
18
  "@ossy/email": "^3.0.9",
19
- "@ossy/event-store": "^3.2.0",
19
+ "@ossy/event-store": "^3.4.0",
20
20
  "@ossy/observability": "^3.0.9",
21
- "@ossy/platform": "^3.2.0",
22
- "@ossy/resources": "^3.2.0",
23
- "@ossy/users": "^3.2.0",
24
- "@ossy/workspaces": "^3.2.0"
21
+ "@ossy/platform": "^3.4.0",
22
+ "@ossy/resources": "^3.4.0",
23
+ "@ossy/users": "^3.4.0",
24
+ "@ossy/workspaces": "^3.4.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@ossy/app": ">=1.0.0",
@@ -38,5 +38,5 @@
38
38
  "/src",
39
39
  "README.md"
40
40
  ],
41
- "gitHead": "b045f1fd7f2fe00c776b9ea96f76083b93fd8556"
41
+ "gitHead": "d36b69444268d172bc3e8e1dc77e67afc63f8650"
42
42
  }
@@ -29,10 +29,10 @@ export default function BookingSalesPage ({ isAuthenticated }) {
29
29
  const cover = isAuthenticated
30
30
  ? {
31
31
  ...baseCover,
32
- actions: [
33
- enableAction,
34
- baseCover.actions[1],
35
- ],
32
+ // Keep the secondary example link only. The enable CTA lives in the
33
+ // section below — putting it in the hero left a duplicate that Playwright
34
+ // clicked first while the following Page intercepted pointer events.
35
+ actions: baseCover.actions.slice(1),
36
36
  }
37
37
  : baseCover
38
38
 
package/src/home.page.jsx CHANGED
@@ -1,8 +1,8 @@
1
1
  import React from 'react'
2
2
  import { useApp } from '@ossy/app/shell'
3
3
  import { GetWorkspace } from '@ossy/workspaces'
4
+ import { isServiceEntitled } from '@ossy/workspaces/entitlements'
4
5
  import { useSdk } from '@ossy/sdk-react'
5
- import { isServiceOn } from './workspace-services.js'
6
6
  import BookingSalesPage from './BookingSalesPage.jsx'
7
7
  import BookingProductHome from './BookingProductHome.jsx'
8
8
 
@@ -15,7 +15,7 @@ export default function BookingHomePage () {
15
15
  const app = useApp()
16
16
  const sdk = useSdk()
17
17
  const { data: workspace } = sdk.read(GetWorkspace)
18
- const entitled = isServiceOn(workspace?.services, 'booking')
18
+ const entitled = isServiceEntitled(workspace?.services, '@ossy/booking')
19
19
 
20
20
  if (app?.isAuthenticated && entitled) {
21
21
  return <BookingProductHome />