@voyantjs/sellability-ui 0.25.0 → 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/components/channel-combobox.js +1 -1
- package/dist/components/market-combobox.js +1 -1
- package/dist/components/policy-dialog.js +5 -5
- package/dist/components/product-combobox.js +1 -1
- package/dist/components/product-option-combobox.js +1 -1
- package/dist/i18n/index.d.ts +4 -4
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +3 -3
- package/dist/i18n/provider.d.ts +1 -1
- package/dist/i18n/provider.d.ts.map +1 -1
- package/dist/i18n/provider.js +2 -2
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/package.json +13 -13
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useChannel, useChannels } from "@voyantjs/distribution-react";
|
|
3
3
|
import { Combobox, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxList, } from "@voyantjs/ui/components/combobox";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { useSellabilityUiMessagesOrDefault } from "../i18n";
|
|
5
|
+
import { useSellabilityUiMessagesOrDefault } from "../i18n/index.js";
|
|
6
6
|
const PAGE_SIZE = 100;
|
|
7
7
|
export function ChannelCombobox({ value, onChange, placeholder, disabled }) {
|
|
8
8
|
const messages = useSellabilityUiMessagesOrDefault();
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMarket, useMarkets } from "@voyantjs/markets-react";
|
|
3
3
|
import { Combobox, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxList, } from "@voyantjs/ui/components/combobox";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { useSellabilityUiMessagesOrDefault } from "../i18n";
|
|
5
|
+
import { useSellabilityUiMessagesOrDefault } from "../i18n/index.js";
|
|
6
6
|
const PAGE_SIZE = 25;
|
|
7
7
|
export function MarketCombobox({ value, onChange, placeholder, disabled }) {
|
|
8
8
|
const messages = useSellabilityUiMessagesOrDefault();
|
|
@@ -6,11 +6,11 @@ import { Loader2 } from "lucide-react";
|
|
|
6
6
|
import { useEffect } from "react";
|
|
7
7
|
import { useForm } from "react-hook-form";
|
|
8
8
|
import { z } from "zod/v4";
|
|
9
|
-
import { useSellabilityUiMessagesOrDefault } from "../i18n";
|
|
10
|
-
import { ChannelCombobox } from "./channel-combobox";
|
|
11
|
-
import { MarketCombobox } from "./market-combobox";
|
|
12
|
-
import { ProductCombobox } from "./product-combobox";
|
|
13
|
-
import { ProductOptionCombobox } from "./product-option-combobox";
|
|
9
|
+
import { useSellabilityUiMessagesOrDefault } from "../i18n/index.js";
|
|
10
|
+
import { ChannelCombobox } from "./channel-combobox.js";
|
|
11
|
+
import { MarketCombobox } from "./market-combobox.js";
|
|
12
|
+
import { ProductCombobox } from "./product-combobox.js";
|
|
13
|
+
import { ProductOptionCombobox } from "./product-option-combobox.js";
|
|
14
14
|
const POLICY_SCOPES = ["global", "product", "option", "market", "channel"];
|
|
15
15
|
const POLICY_TYPES = [
|
|
16
16
|
"capability",
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useProduct, useProducts } from "@voyantjs/products-react";
|
|
3
3
|
import { Combobox, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxList, } from "@voyantjs/ui/components/combobox";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { useSellabilityUiMessagesOrDefault } from "../i18n";
|
|
5
|
+
import { useSellabilityUiMessagesOrDefault } from "../i18n/index.js";
|
|
6
6
|
const PAGE_SIZE = 25;
|
|
7
7
|
export function ProductCombobox({ value, onChange, placeholder, disabled }) {
|
|
8
8
|
const messages = useSellabilityUiMessagesOrDefault();
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useProductOption, useProductOptions, } from "@voyantjs/products-react";
|
|
3
3
|
import { Combobox, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxList, } from "@voyantjs/ui/components/combobox";
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { useSellabilityUiMessagesOrDefault } from "../i18n";
|
|
5
|
+
import { useSellabilityUiMessagesOrDefault } from "../i18n/index.js";
|
|
6
6
|
const PAGE_SIZE = 100;
|
|
7
7
|
export function ProductOptionCombobox({ productId, value, onChange, placeholder, disabled, }) {
|
|
8
8
|
const messages = useSellabilityUiMessagesOrDefault();
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { sellabilityUiEn } from "./en";
|
|
2
|
-
export type { ChannelKind, ChannelStatus, PolicyScope, PolicyType, ProductBookingMode, ProductStatus, SellabilityUiMessages, } from "./messages";
|
|
3
|
-
export { getSellabilityUiI18n, resolveSellabilityUiMessages, type SellabilityUiMessageOverrides, SellabilityUiMessagesProvider, sellabilityUiMessageDefinitions, useSellabilityUiI18n, useSellabilityUiI18nOrDefault, useSellabilityUiMessages, useSellabilityUiMessagesOrDefault, } from "./provider";
|
|
4
|
-
export { sellabilityUiRo } from "./ro";
|
|
1
|
+
export { sellabilityUiEn } from "./en.js";
|
|
2
|
+
export type { ChannelKind, ChannelStatus, PolicyScope, PolicyType, ProductBookingMode, ProductStatus, SellabilityUiMessages, } from "./messages.js";
|
|
3
|
+
export { getSellabilityUiI18n, resolveSellabilityUiMessages, type SellabilityUiMessageOverrides, SellabilityUiMessagesProvider, sellabilityUiMessageDefinitions, useSellabilityUiI18n, useSellabilityUiI18nOrDefault, useSellabilityUiMessages, useSellabilityUiMessagesOrDefault, } from "./provider.js";
|
|
4
|
+
export { sellabilityUiRo } from "./ro.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/i18n/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,YAAY,EACV,WAAW,EACX,aAAa,EACb,WAAW,EACX,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,qBAAqB,GACtB,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,KAAK,6BAA6B,EAClC,6BAA6B,EAC7B,+BAA+B,EAC/B,oBAAoB,EACpB,6BAA6B,EAC7B,wBAAwB,EACxB,iCAAiC,GAClC,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA"}
|
package/dist/i18n/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { sellabilityUiEn } from "./en";
|
|
2
|
-
export { getSellabilityUiI18n, resolveSellabilityUiMessages, SellabilityUiMessagesProvider, sellabilityUiMessageDefinitions, useSellabilityUiI18n, useSellabilityUiI18nOrDefault, useSellabilityUiMessages, useSellabilityUiMessagesOrDefault, } from "./provider";
|
|
3
|
-
export { sellabilityUiRo } from "./ro";
|
|
1
|
+
export { sellabilityUiEn } from "./en.js";
|
|
2
|
+
export { getSellabilityUiI18n, resolveSellabilityUiMessages, SellabilityUiMessagesProvider, sellabilityUiMessageDefinitions, useSellabilityUiI18n, useSellabilityUiI18nOrDefault, useSellabilityUiMessages, useSellabilityUiMessagesOrDefault, } from "./provider.js";
|
|
3
|
+
export { sellabilityUiRo } from "./ro.js";
|
package/dist/i18n/provider.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type LocaleMessageOverrides, type PackageI18nValue } from "@voyantjs/i18n";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
-
import type { SellabilityUiMessages } from "./messages";
|
|
3
|
+
import type { SellabilityUiMessages } from "./messages.js";
|
|
4
4
|
export declare const sellabilityUiMessageDefinitions: {
|
|
5
5
|
en: {
|
|
6
6
|
common: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/i18n/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/i18n/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAK1D,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGe,CAAA;AAE3D,MAAM,MAAM,6BAA6B,GAAG,sBAAsB,CAAC,qBAAqB,CAAC,CAAA;AAUzF,wBAAgB,4BAA4B,CAAC,EAC3C,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACjC,SAAS,CAAC,EAAE,6BAA6B,GAAG,IAAI,CAAA;CACjD,yBAOA;AAED,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAClC,SAAS,CAAC,EAAE,6BAA6B,GAAG,IAAI,CAAA;CACjD,GAAG,gBAAgB,CAAC,qBAAqB,CAAC,CAS1C;AAED,wBAAgB,6BAA6B,CAAC,EAC5C,QAAQ,EACR,MAAM,EACN,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACjC,SAAS,CAAC,EAAE,6BAA6B,GAAG,IAAI,CAAA;CACjD,2CAWA;AAED,eAAO,MAAM,oBAAoB,+CAA+B,CAAA;AAChE,eAAO,MAAM,wBAAwB,6BAAmC,CAAA;AAExE,wBAAgB,6BAA6B,4CAE5C;AAED,wBAAgB,iCAAiC,0BAEhD"}
|
package/dist/i18n/provider.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { createLocaleFormatters, createPackageMessagesContext, resolvePackageMessages, } from "@voyantjs/i18n";
|
|
4
|
-
import { sellabilityUiEn } from "./en";
|
|
5
|
-
import { sellabilityUiRo } from "./ro";
|
|
4
|
+
import { sellabilityUiEn } from "./en.js";
|
|
5
|
+
import { sellabilityUiRo } from "./ro.js";
|
|
6
6
|
const fallbackLocale = "en";
|
|
7
7
|
export const sellabilityUiMessageDefinitions = {
|
|
8
8
|
en: sellabilityUiEn,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ChannelCombobox } from "./components/channel-combobox";
|
|
2
|
-
export { MarketCombobox } from "./components/market-combobox";
|
|
3
|
-
export { PolicyDialog } from "./components/policy-dialog";
|
|
4
|
-
export { ProductCombobox } from "./components/product-combobox";
|
|
5
|
-
export { ProductOptionCombobox } from "./components/product-option-combobox";
|
|
6
|
-
export { getSellabilityUiI18n, resolveSellabilityUiMessages, type SellabilityUiMessageOverrides, type SellabilityUiMessages, SellabilityUiMessagesProvider, sellabilityUiEn, sellabilityUiMessageDefinitions, sellabilityUiRo, useSellabilityUiI18n, useSellabilityUiI18nOrDefault, useSellabilityUiMessages, useSellabilityUiMessagesOrDefault, } from "./i18n";
|
|
1
|
+
export { ChannelCombobox } from "./components/channel-combobox.js";
|
|
2
|
+
export { MarketCombobox } from "./components/market-combobox.js";
|
|
3
|
+
export { PolicyDialog } from "./components/policy-dialog.js";
|
|
4
|
+
export { ProductCombobox } from "./components/product-combobox.js";
|
|
5
|
+
export { ProductOptionCombobox } from "./components/product-option-combobox.js";
|
|
6
|
+
export { getSellabilityUiI18n, resolveSellabilityUiMessages, type SellabilityUiMessageOverrides, type SellabilityUiMessages, SellabilityUiMessagesProvider, sellabilityUiEn, sellabilityUiMessageDefinitions, sellabilityUiRo, useSellabilityUiI18n, useSellabilityUiI18nOrDefault, useSellabilityUiMessages, useSellabilityUiMessagesOrDefault, } from "./i18n/index.js";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAA;AAC/E,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,6BAA6B,EAC7B,eAAe,EACf,+BAA+B,EAC/B,eAAe,EACf,oBAAoB,EACpB,6BAA6B,EAC7B,wBAAwB,EACxB,iCAAiC,GAClC,MAAM,iBAAiB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ChannelCombobox } from "./components/channel-combobox";
|
|
2
|
-
export { MarketCombobox } from "./components/market-combobox";
|
|
3
|
-
export { PolicyDialog } from "./components/policy-dialog";
|
|
4
|
-
export { ProductCombobox } from "./components/product-combobox";
|
|
5
|
-
export { ProductOptionCombobox } from "./components/product-option-combobox";
|
|
6
|
-
export { getSellabilityUiI18n, resolveSellabilityUiMessages, SellabilityUiMessagesProvider, sellabilityUiEn, sellabilityUiMessageDefinitions, sellabilityUiRo, useSellabilityUiI18n, useSellabilityUiI18nOrDefault, useSellabilityUiMessages, useSellabilityUiMessagesOrDefault, } from "./i18n";
|
|
1
|
+
export { ChannelCombobox } from "./components/channel-combobox.js";
|
|
2
|
+
export { MarketCombobox } from "./components/market-combobox.js";
|
|
3
|
+
export { PolicyDialog } from "./components/policy-dialog.js";
|
|
4
|
+
export { ProductCombobox } from "./components/product-combobox.js";
|
|
5
|
+
export { ProductOptionCombobox } from "./components/product-option-combobox.js";
|
|
6
|
+
export { getSellabilityUiI18n, resolveSellabilityUiMessages, SellabilityUiMessagesProvider, sellabilityUiEn, sellabilityUiMessageDefinitions, sellabilityUiRo, useSellabilityUiI18n, useSellabilityUiI18nOrDefault, useSellabilityUiMessages, useSellabilityUiMessagesOrDefault, } from "./i18n/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/sellability-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"react-dom": "^19.0.0",
|
|
47
47
|
"react-hook-form": "^7.60.0",
|
|
48
48
|
"zod": "^4.3.6",
|
|
49
|
-
"@voyantjs/distribution-react": "0.
|
|
50
|
-
"@voyantjs/markets-react": "0.
|
|
51
|
-
"@voyantjs/products-react": "0.
|
|
52
|
-
"@voyantjs/sellability-react": "0.
|
|
53
|
-
"@voyantjs/ui": "0.
|
|
49
|
+
"@voyantjs/distribution-react": "0.26.1",
|
|
50
|
+
"@voyantjs/markets-react": "0.26.1",
|
|
51
|
+
"@voyantjs/products-react": "0.26.1",
|
|
52
|
+
"@voyantjs/sellability-react": "0.26.1",
|
|
53
|
+
"@voyantjs/ui": "0.26.1"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@voyantjs/i18n": "0.
|
|
56
|
+
"@voyantjs/i18n": "0.26.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@tanstack/react-query": "^5.96.2",
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
"typescript": "^6.0.2",
|
|
68
68
|
"vitest": "^4.1.2",
|
|
69
69
|
"zod": "^4.3.6",
|
|
70
|
-
"@voyantjs/distribution-react": "0.
|
|
71
|
-
"@voyantjs/i18n": "0.
|
|
72
|
-
"@voyantjs/markets-react": "0.
|
|
73
|
-
"@voyantjs/products-react": "0.
|
|
74
|
-
"@voyantjs/sellability-react": "0.
|
|
70
|
+
"@voyantjs/distribution-react": "0.26.1",
|
|
71
|
+
"@voyantjs/i18n": "0.26.1",
|
|
72
|
+
"@voyantjs/markets-react": "0.26.1",
|
|
73
|
+
"@voyantjs/products-react": "0.26.1",
|
|
74
|
+
"@voyantjs/sellability-react": "0.26.1",
|
|
75
75
|
"@voyantjs/voyant-typescript-config": "0.1.0",
|
|
76
|
-
"@voyantjs/ui": "0.
|
|
76
|
+
"@voyantjs/ui": "0.26.1"
|
|
77
77
|
},
|
|
78
78
|
"files": [
|
|
79
79
|
"dist",
|