@voyant-travel/catalog-react 0.122.0 → 0.123.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.
@@ -1,8 +1,10 @@
1
1
  import { type AdminRoutePageProps } from "@voyant-travel/admin";
2
2
  /**
3
- * Packaged route page for the accommodations browse surface. `title` is the
4
- * contribution's localized label (factory `labels`); `search` was validated
5
- * by the contribution's `validateSearch` (catalogSearchSchema).
3
+ * Packaged route page for the accommodations browse surface. The header title
4
+ * is read from the localized operator nav messages (the `title` prop carries
5
+ * the static contribution label, which is not locale-resolved — the route tree
6
+ * is built once from the English defaults); `search` was validated by the
7
+ * contribution's `validateSearch` (catalogSearchSchema).
6
8
  */
7
- export default function CatalogAccommodationsIndexPage({ search, updateSearch, title, }: AdminRoutePageProps): import("react/jsx-runtime").JSX.Element;
9
+ export default function CatalogAccommodationsIndexPage({ search, updateSearch, }: AdminRoutePageProps): import("react/jsx-runtime").JSX.Element;
8
10
  //# sourceMappingURL=catalog-accommodations-index-page.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-accommodations-index-page.d.ts","sourceRoot":"","sources":["../../../src/admin/pages/catalog-accommodations-index-page.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,mBAAmB,EAAgB,MAAM,sBAAsB,CAAA;AAM7E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,8BAA8B,CAAC,EACrD,MAAM,EACN,YAAY,EACZ,KAAK,GACN,EAAE,mBAAmB,2CAsBrB"}
1
+ {"version":3,"file":"catalog-accommodations-index-page.d.ts","sourceRoot":"","sources":["../../../src/admin/pages/catalog-accommodations-index-page.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,sBAAsB,CAAA;AAM7B;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,8BAA8B,CAAC,EACrD,MAAM,EACN,YAAY,GACb,EAAE,mBAAmB,2CAuBrB"}
@@ -1,15 +1,18 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useAdminHref } from "@voyant-travel/admin";
3
+ import { useAdminHref, useOperatorAdminMessages, } from "@voyant-travel/admin";
4
4
  import { CatalogVerticalHost } from "../catalog-vertical-host.js";
5
5
  import { openHrefInNewTab } from "../open-in-new-tab.js";
6
6
  /**
7
- * Packaged route page for the accommodations browse surface. `title` is the
8
- * contribution's localized label (factory `labels`); `search` was validated
9
- * by the contribution's `validateSearch` (catalogSearchSchema).
7
+ * Packaged route page for the accommodations browse surface. The header title
8
+ * is read from the localized operator nav messages (the `title` prop carries
9
+ * the static contribution label, which is not locale-resolved — the route tree
10
+ * is built once from the English defaults); `search` was validated by the
11
+ * contribution's `validateSearch` (catalogSearchSchema).
10
12
  */
11
- export default function CatalogAccommodationsIndexPage({ search, updateSearch, title, }) {
13
+ export default function CatalogAccommodationsIndexPage({ search, updateSearch, }) {
12
14
  const resolveHref = useAdminHref();
15
+ const title = useOperatorAdminMessages().nav.catalogAccommodations;
13
16
  // Browse-first surface — a consistent header over the embedded grid, with
14
17
  // results opening the dedicated accommodation detail page (the
15
18
  // `catalog.detail` destination) in a new tab.
@@ -1,8 +1,10 @@
1
1
  import { type AdminRoutePageProps } from "@voyant-travel/admin";
2
2
  /**
3
- * Packaged route page for the cruises browse surface. `title` is the
4
- * contribution's localized label (factory `labels`); `search` was validated
5
- * by the contribution's `validateSearch` (catalogSearchSchema).
3
+ * Packaged route page for the cruises browse surface. The header title is read
4
+ * from the localized operator nav messages (the `title` prop carries the
5
+ * static contribution label, which is not locale-resolved — the route tree is
6
+ * built once from the English defaults); `search` was validated by the
7
+ * contribution's `validateSearch` (catalogSearchSchema).
6
8
  */
7
- export default function CatalogCruisesIndexPage({ search, updateSearch, title, }: AdminRoutePageProps): import("react/jsx-runtime").JSX.Element;
9
+ export default function CatalogCruisesIndexPage({ search, updateSearch }: AdminRoutePageProps): import("react/jsx-runtime").JSX.Element;
8
10
  //# sourceMappingURL=catalog-cruises-index-page.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-cruises-index-page.d.ts","sourceRoot":"","sources":["../../../src/admin/pages/catalog-cruises-index-page.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,mBAAmB,EAAgB,MAAM,sBAAsB,CAAA;AAM7E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,MAAM,EACN,YAAY,EACZ,KAAK,GACN,EAAE,mBAAmB,2CAwBrB"}
1
+ {"version":3,"file":"catalog-cruises-index-page.d.ts","sourceRoot":"","sources":["../../../src/admin/pages/catalog-cruises-index-page.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,sBAAsB,CAAA;AAM7B;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,mBAAmB,2CAyB5F"}
@@ -1,15 +1,18 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useAdminHref } from "@voyant-travel/admin";
3
+ import { useAdminHref, useOperatorAdminMessages, } from "@voyant-travel/admin";
4
4
  import { CatalogVerticalHost } from "../catalog-vertical-host.js";
5
5
  import { openHrefInNewTab } from "../open-in-new-tab.js";
6
6
  /**
7
- * Packaged route page for the cruises browse surface. `title` is the
8
- * contribution's localized label (factory `labels`); `search` was validated
9
- * by the contribution's `validateSearch` (catalogSearchSchema).
7
+ * Packaged route page for the cruises browse surface. The header title is read
8
+ * from the localized operator nav messages (the `title` prop carries the
9
+ * static contribution label, which is not locale-resolved — the route tree is
10
+ * built once from the English defaults); `search` was validated by the
11
+ * contribution's `validateSearch` (catalogSearchSchema).
10
12
  */
11
- export default function CatalogCruisesIndexPage({ search, updateSearch, title, }) {
13
+ export default function CatalogCruisesIndexPage({ search, updateSearch }) {
12
14
  const resolveHref = useAdminHref();
15
+ const title = useOperatorAdminMessages().nav.catalogCruises;
13
16
  // Browse-first surface — a consistent header over the embedded grid, with
14
17
  // results opening the dedicated, source-driven cruise detail (the
15
18
  // `catalog.detail` destination) in a new tab. (Connect's cruise sailings
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/catalog-react",
3
- "version": "0.122.0",
3
+ "version": "0.123.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -76,11 +76,11 @@
76
76
  "react-dom": "^19.0.0",
77
77
  "sonner": "^2.0.0",
78
78
  "zod": "^4.0.0",
79
- "@voyant-travel/admin": "^0.113.0",
80
- "@voyant-travel/commerce-react": "^0.6.0",
81
- "@voyant-travel/inventory-react": "^0.6.0",
82
- "@voyant-travel/distribution-react": "^0.114.0",
83
- "@voyant-travel/ui": "^0.107.0"
79
+ "@voyant-travel/admin": "^0.114.0",
80
+ "@voyant-travel/commerce-react": "^0.7.0",
81
+ "@voyant-travel/inventory-react": "^0.7.0",
82
+ "@voyant-travel/ui": "^0.108.0",
83
+ "@voyant-travel/distribution-react": "^0.115.0"
84
84
  },
85
85
  "peerDependenciesMeta": {
86
86
  "@tanstack/react-table": {
@@ -107,7 +107,7 @@
107
107
  },
108
108
  "dependencies": {
109
109
  "@voyant-travel/catalog-contracts": "^0.107.1",
110
- "@voyant-travel/i18n": "^0.106.1",
110
+ "@voyant-travel/i18n": "^0.107.1",
111
111
  "@voyant-travel/react": "^0.104.1"
112
112
  },
113
113
  "devDependencies": {
@@ -122,13 +122,13 @@
122
122
  "typescript": "^6.0.2",
123
123
  "vitest": "^4.1.2",
124
124
  "zod": "^4.3.6",
125
- "@voyant-travel/admin": "^0.113.0",
126
- "@voyant-travel/i18n": "^0.106.1",
127
- "@voyant-travel/commerce-react": "^0.6.0",
128
- "@voyant-travel/inventory-react": "^0.6.0",
125
+ "@voyant-travel/i18n": "^0.107.1",
126
+ "@voyant-travel/admin": "^0.114.0",
127
+ "@voyant-travel/inventory-react": "^0.7.0",
128
+ "@voyant-travel/commerce-react": "^0.7.0",
129
129
  "@voyant-travel/react": "^0.104.1",
130
- "@voyant-travel/distribution-react": "^0.114.0",
131
- "@voyant-travel/ui": "^0.107.0",
130
+ "@voyant-travel/ui": "^0.108.0",
131
+ "@voyant-travel/distribution-react": "^0.115.0",
132
132
  "@voyant-travel/voyant-typescript-config": "^0.1.0"
133
133
  },
134
134
  "files": [