@parto-system-design/ui 1.1.17 → 1.1.18
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/AGENTS.md +2 -2
- package/README.md +1 -1
- package/dist/components/brand/parto-logo.cjs +0 -2
- package/dist/components/brand/parto-logo.js +0 -2
- package/dist/components/charts/PartoAreaChart.cjs +2 -4
- package/dist/components/charts/PartoAreaChart.d.cts +1 -1
- package/dist/components/charts/PartoAreaChart.d.ts +1 -1
- package/dist/components/charts/PartoAreaChart.js +2 -4
- package/dist/components/charts/PartoBarChart.cjs +2 -4
- package/dist/components/charts/PartoBarChart.d.cts +1 -1
- package/dist/components/charts/PartoBarChart.d.ts +1 -1
- package/dist/components/charts/PartoBarChart.js +2 -4
- package/dist/components/charts/PartoLineChart.cjs +2 -4
- package/dist/components/charts/PartoLineChart.d.cts +1 -1
- package/dist/components/charts/PartoLineChart.d.ts +1 -1
- package/dist/components/charts/PartoLineChart.js +2 -4
- package/dist/components/charts/PartoPieChart.cjs +2 -4
- package/dist/components/charts/PartoPieChart.d.cts +1 -1
- package/dist/components/charts/PartoPieChart.d.ts +1 -1
- package/dist/components/charts/PartoPieChart.js +2 -4
- package/dist/components/ui/accordion.cjs +0 -2
- package/dist/components/ui/accordion.d.cts +4 -5
- package/dist/components/ui/accordion.d.ts +4 -5
- package/dist/components/ui/accordion.js +0 -2
- package/dist/components/ui/alert-dialog.cjs +0 -2
- package/dist/components/ui/alert-dialog.d.cts +9 -10
- package/dist/components/ui/alert-dialog.d.ts +9 -10
- package/dist/components/ui/alert-dialog.js +1 -3
- package/dist/components/ui/alert-rule-card.cjs +149 -12
- package/dist/components/ui/alert-rule-card.d.cts +2 -2
- package/dist/components/ui/alert-rule-card.d.ts +2 -2
- package/dist/components/ui/alert-rule-card.js +149 -12
- package/dist/components/ui/alert.cjs +3 -5
- package/dist/components/ui/alert.js +3 -5
- package/dist/components/ui/app-bar.cjs +0 -2
- package/dist/components/ui/app-bar.js +0 -2
- package/dist/components/ui/avatar.cjs +0 -2
- package/dist/components/ui/avatar.d.cts +3 -4
- package/dist/components/ui/avatar.d.ts +3 -4
- package/dist/components/ui/avatar.js +0 -2
- package/dist/components/ui/badge.cjs +0 -2
- package/dist/components/ui/badge.d.cts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.js +0 -2
- package/dist/components/ui/breadcrumb.cjs +0 -2
- package/dist/components/ui/breadcrumb.d.cts +7 -8
- package/dist/components/ui/breadcrumb.d.ts +7 -8
- package/dist/components/ui/breadcrumb.js +0 -2
- package/dist/components/ui/button.cjs +0 -2
- package/dist/components/ui/button.d.cts +2 -2
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +1 -3
- package/dist/components/ui/calendar.cjs +0 -2
- package/dist/components/ui/calendar.d.cts +1 -2
- package/dist/components/ui/calendar.d.ts +1 -2
- package/dist/components/ui/calendar.js +1 -3
- package/dist/components/ui/card.cjs +0 -2
- package/dist/components/ui/card.js +0 -2
- package/dist/components/ui/checkbox.cjs +0 -2
- package/dist/components/ui/checkbox.js +0 -2
- package/dist/components/ui/concept-card.cjs +179 -61
- package/dist/components/ui/concept-card.d.cts +3 -3
- package/dist/components/ui/concept-card.d.ts +3 -3
- package/dist/components/ui/concept-card.js +179 -61
- package/dist/components/ui/data-table.cjs +129 -3
- package/dist/components/ui/data-table.d.cts +1 -1
- package/dist/components/ui/data-table.d.ts +1 -1
- package/dist/components/ui/data-table.js +130 -4
- package/dist/components/ui/dialog.cjs +0 -2
- package/dist/components/ui/dialog.d.cts +2 -3
- package/dist/components/ui/dialog.d.ts +2 -3
- package/dist/components/ui/dialog.js +0 -2
- package/dist/components/ui/dropdown-menu.cjs +0 -2
- package/dist/components/ui/dropdown-menu.d.cts +15 -16
- package/dist/components/ui/dropdown-menu.d.ts +15 -16
- package/dist/components/ui/dropdown-menu.js +0 -2
- package/dist/components/ui/filter-provider.cjs +0 -2
- package/dist/components/ui/filter-provider.d.cts +1 -2
- package/dist/components/ui/filter-provider.d.ts +1 -2
- package/dist/components/ui/filter-provider.js +0 -2
- package/dist/components/ui/form.cjs +0 -2
- package/dist/components/ui/form.d.cts +7 -8
- package/dist/components/ui/form.d.ts +7 -8
- package/dist/components/ui/form.js +0 -2
- package/dist/components/ui/input.cjs +0 -2
- package/dist/components/ui/input.js +0 -2
- package/dist/components/ui/iran-province-heat.cjs +1 -3
- package/dist/components/ui/iran-province-heat.d.cts +1 -1
- package/dist/components/ui/iran-province-heat.d.ts +1 -1
- package/dist/components/ui/iran-province-heat.js +1 -3
- package/dist/components/ui/label.cjs +0 -2
- package/dist/components/ui/label.d.cts +1 -2
- package/dist/components/ui/label.d.ts +1 -2
- package/dist/components/ui/label.js +0 -2
- package/dist/components/ui/page-card.cjs +170 -33
- package/dist/components/ui/page-card.d.cts +3 -3
- package/dist/components/ui/page-card.d.ts +3 -3
- package/dist/components/ui/page-card.js +170 -33
- package/dist/components/ui/page-header.cjs +128 -2
- package/dist/components/ui/page-header.d.cts +1 -1
- package/dist/components/ui/page-header.d.ts +1 -1
- package/dist/components/ui/page-header.js +128 -2
- package/dist/components/ui/password-input.cjs +0 -2
- package/dist/components/ui/password-input.js +0 -2
- package/dist/components/ui/popover.cjs +0 -2
- package/dist/components/ui/popover.js +0 -2
- package/dist/components/ui/progress.cjs +1 -3
- package/dist/components/ui/progress.js +1 -3
- package/dist/components/ui/radio-card.cjs +0 -2
- package/dist/components/ui/radio-card.js +0 -2
- package/dist/components/ui/radio-group.cjs +0 -2
- package/dist/components/ui/radio-group.js +0 -2
- package/dist/components/ui/saved-query-card.cjs +0 -2
- package/dist/components/ui/saved-query-card.d.cts +1 -1
- package/dist/components/ui/saved-query-card.d.ts +1 -1
- package/dist/components/ui/saved-query-card.js +1 -3
- package/dist/components/ui/scroll-area.cjs +0 -2
- package/dist/components/ui/scroll-area.d.cts +2 -3
- package/dist/components/ui/scroll-area.d.ts +2 -3
- package/dist/components/ui/scroll-area.js +0 -2
- package/dist/components/ui/select.cjs +0 -2
- package/dist/components/ui/select.d.cts +1 -2
- package/dist/components/ui/select.d.ts +1 -2
- package/dist/components/ui/select.js +0 -2
- package/dist/components/ui/separator.cjs +0 -2
- package/dist/components/ui/separator.js +0 -2
- package/dist/components/ui/sheet.cjs +0 -2
- package/dist/components/ui/sheet.d.cts +9 -10
- package/dist/components/ui/sheet.d.ts +9 -10
- package/dist/components/ui/sheet.js +0 -2
- package/dist/components/ui/skeleton.cjs +0 -2
- package/dist/components/ui/skeleton.d.cts +8 -9
- package/dist/components/ui/skeleton.d.ts +8 -9
- package/dist/components/ui/skeleton.js +0 -2
- package/dist/components/ui/slider.cjs +0 -2
- package/dist/components/ui/slider.d.cts +1 -2
- package/dist/components/ui/slider.d.ts +1 -2
- package/dist/components/ui/slider.js +0 -2
- package/dist/components/ui/social-platform-badge.cjs +0 -2
- package/dist/components/ui/social-platform-badge.js +1 -3
- package/dist/components/ui/sonner.cjs +4 -6
- package/dist/components/ui/sonner.d.cts +2 -2
- package/dist/components/ui/sonner.d.ts +2 -2
- package/dist/components/ui/sonner.js +4 -6
- package/dist/components/ui/sparkline.cjs +3 -5
- package/dist/components/ui/sparkline.d.cts +1 -1
- package/dist/components/ui/sparkline.d.ts +1 -1
- package/dist/components/ui/sparkline.js +3 -5
- package/dist/components/ui/switch.cjs +0 -2
- package/dist/components/ui/switch.d.cts +1 -1
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.js +0 -2
- package/dist/components/ui/table.cjs +0 -2
- package/dist/components/ui/table.d.cts +9 -10
- package/dist/components/ui/table.d.ts +9 -10
- package/dist/components/ui/table.js +0 -2
- package/dist/components/ui/tabs.cjs +0 -2
- package/dist/components/ui/tabs.js +0 -2
- package/dist/components/ui/textarea.cjs +0 -2
- package/dist/components/ui/textarea.js +0 -2
- package/dist/components/ui/toggle-group.cjs +0 -2
- package/dist/components/ui/toggle-group.d.cts +1 -2
- package/dist/components/ui/toggle-group.d.ts +1 -2
- package/dist/components/ui/toggle-group.js +0 -2
- package/dist/components/ui/tooltip.cjs +0 -2
- package/dist/components/ui/tooltip.js +0 -2
- package/dist/{concept-card-BoJ5gIJD.d.ts → concept-card-BU8JL-gj.d.cts} +5 -5
- package/dist/{concept-card-BXra9mr0.d.cts → concept-card-D7PfDkNR.d.ts} +5 -5
- package/dist/hooks/use-hotkey-registry.cjs +0 -2
- package/dist/hooks/use-hotkey-registry.d.cts +1 -2
- package/dist/hooks/use-hotkey-registry.d.ts +1 -2
- package/dist/hooks/use-hotkey-registry.js +0 -2
- package/dist/hooks/use-hotkeys.cjs +0 -2
- package/dist/hooks/use-hotkeys.js +0 -2
- package/dist/{i18n-BfRhV5aw.d.cts → i18n-DD3DMY8O.d.cts} +94 -5
- package/dist/{i18n-ewyqbKM-.d.ts → i18n-UEClNsBy.d.ts} +94 -5
- package/dist/index.cjs +1242 -1173
- package/dist/index.css +8010 -5459
- package/dist/index.d.cts +212 -991
- package/dist/index.d.ts +212 -991
- package/dist/index.js +1208 -1153
- package/dist/{page-card-C9XXXOVr.d.cts → page-card-DjztZrFM.d.cts} +4 -4
- package/dist/{page-card-DAnbez_f.d.ts → page-card-sIE4lvnb.d.ts} +4 -4
- package/dist/server-FTUA8opZ.d.cts +829 -0
- package/dist/server-m6tiB6DB.d.ts +829 -0
- package/dist/server.cjs +1565 -0
- package/dist/server.d.cts +8 -0
- package/dist/server.d.ts +8 -0
- package/dist/server.js +1483 -0
- package/dist/theme.css +50 -0
- package/dist/{toggle-group-B8r4LOQw.d.cts → toggle-group-Bis6suuR.d.cts} +3 -4
- package/dist/{toggle-group-B8r4LOQw.d.ts → toggle-group-Bis6suuR.d.ts} +3 -4
- package/dist/{utils-DlXWmDZ-.d.cts → utils-Czyp5Ned.d.cts} +1 -1
- package/dist/{utils-DlXWmDZ-.d.ts → utils-Czyp5Ned.d.ts} +1 -1
- package/package.json +455 -187
- package/tailwind.config.ts +184 -183
- package/dist/components/brand/parto-logo.cjs.map +0 -1
- package/dist/components/brand/parto-logo.js.map +0 -1
- package/dist/components/charts/PartoAreaChart.cjs.map +0 -1
- package/dist/components/charts/PartoAreaChart.js.map +0 -1
- package/dist/components/charts/PartoBarChart.cjs.map +0 -1
- package/dist/components/charts/PartoBarChart.js.map +0 -1
- package/dist/components/charts/PartoLineChart.cjs.map +0 -1
- package/dist/components/charts/PartoLineChart.js.map +0 -1
- package/dist/components/charts/PartoPieChart.cjs.map +0 -1
- package/dist/components/charts/PartoPieChart.js.map +0 -1
- package/dist/components/ui/accordion.cjs.map +0 -1
- package/dist/components/ui/accordion.js.map +0 -1
- package/dist/components/ui/alert-dialog.cjs.map +0 -1
- package/dist/components/ui/alert-dialog.js.map +0 -1
- package/dist/components/ui/alert-rule-card.cjs.map +0 -1
- package/dist/components/ui/alert-rule-card.js.map +0 -1
- package/dist/components/ui/alert.cjs.map +0 -1
- package/dist/components/ui/alert.js.map +0 -1
- package/dist/components/ui/app-bar.cjs.map +0 -1
- package/dist/components/ui/app-bar.js.map +0 -1
- package/dist/components/ui/avatar.cjs.map +0 -1
- package/dist/components/ui/avatar.js.map +0 -1
- package/dist/components/ui/badge.cjs.map +0 -1
- package/dist/components/ui/badge.js.map +0 -1
- package/dist/components/ui/breadcrumb.cjs.map +0 -1
- package/dist/components/ui/breadcrumb.js.map +0 -1
- package/dist/components/ui/button.cjs.map +0 -1
- package/dist/components/ui/button.js.map +0 -1
- package/dist/components/ui/calendar.cjs.map +0 -1
- package/dist/components/ui/calendar.js.map +0 -1
- package/dist/components/ui/card.cjs.map +0 -1
- package/dist/components/ui/card.js.map +0 -1
- package/dist/components/ui/checkbox.cjs.map +0 -1
- package/dist/components/ui/checkbox.js.map +0 -1
- package/dist/components/ui/concept-card.cjs.map +0 -1
- package/dist/components/ui/concept-card.js.map +0 -1
- package/dist/components/ui/data-table.cjs.map +0 -1
- package/dist/components/ui/data-table.js.map +0 -1
- package/dist/components/ui/dialog.cjs.map +0 -1
- package/dist/components/ui/dialog.js.map +0 -1
- package/dist/components/ui/dropdown-menu.cjs.map +0 -1
- package/dist/components/ui/dropdown-menu.js.map +0 -1
- package/dist/components/ui/filter-provider.cjs.map +0 -1
- package/dist/components/ui/filter-provider.js.map +0 -1
- package/dist/components/ui/form.cjs.map +0 -1
- package/dist/components/ui/form.js.map +0 -1
- package/dist/components/ui/input.cjs.map +0 -1
- package/dist/components/ui/input.js.map +0 -1
- package/dist/components/ui/iran-province-heat.cjs.map +0 -1
- package/dist/components/ui/iran-province-heat.js.map +0 -1
- package/dist/components/ui/label.cjs.map +0 -1
- package/dist/components/ui/label.js.map +0 -1
- package/dist/components/ui/page-card.cjs.map +0 -1
- package/dist/components/ui/page-card.js.map +0 -1
- package/dist/components/ui/page-header.cjs.map +0 -1
- package/dist/components/ui/page-header.js.map +0 -1
- package/dist/components/ui/password-input.cjs.map +0 -1
- package/dist/components/ui/password-input.js.map +0 -1
- package/dist/components/ui/popover.cjs.map +0 -1
- package/dist/components/ui/popover.js.map +0 -1
- package/dist/components/ui/progress.cjs.map +0 -1
- package/dist/components/ui/progress.js.map +0 -1
- package/dist/components/ui/radio-card.cjs.map +0 -1
- package/dist/components/ui/radio-card.js.map +0 -1
- package/dist/components/ui/radio-group.cjs.map +0 -1
- package/dist/components/ui/radio-group.js.map +0 -1
- package/dist/components/ui/saved-query-card.cjs.map +0 -1
- package/dist/components/ui/saved-query-card.js.map +0 -1
- package/dist/components/ui/scroll-area.cjs.map +0 -1
- package/dist/components/ui/scroll-area.js.map +0 -1
- package/dist/components/ui/select.cjs.map +0 -1
- package/dist/components/ui/select.js.map +0 -1
- package/dist/components/ui/separator.cjs.map +0 -1
- package/dist/components/ui/separator.js.map +0 -1
- package/dist/components/ui/sheet.cjs.map +0 -1
- package/dist/components/ui/sheet.js.map +0 -1
- package/dist/components/ui/skeleton.cjs.map +0 -1
- package/dist/components/ui/skeleton.js.map +0 -1
- package/dist/components/ui/slider.cjs.map +0 -1
- package/dist/components/ui/slider.js.map +0 -1
- package/dist/components/ui/social-platform-badge.cjs.map +0 -1
- package/dist/components/ui/social-platform-badge.js.map +0 -1
- package/dist/components/ui/sonner.cjs.map +0 -1
- package/dist/components/ui/sonner.js.map +0 -1
- package/dist/components/ui/sparkline.cjs.map +0 -1
- package/dist/components/ui/sparkline.js.map +0 -1
- package/dist/components/ui/switch.cjs.map +0 -1
- package/dist/components/ui/switch.js.map +0 -1
- package/dist/components/ui/table.cjs.map +0 -1
- package/dist/components/ui/table.js.map +0 -1
- package/dist/components/ui/tabs.cjs.map +0 -1
- package/dist/components/ui/tabs.js.map +0 -1
- package/dist/components/ui/textarea.cjs.map +0 -1
- package/dist/components/ui/textarea.js.map +0 -1
- package/dist/components/ui/toggle-group.cjs.map +0 -1
- package/dist/components/ui/toggle-group.js.map +0 -1
- package/dist/components/ui/tooltip.cjs.map +0 -1
- package/dist/components/ui/tooltip.js.map +0 -1
- package/dist/hooks/use-hotkey-registry.cjs.map +0 -1
- package/dist/hooks/use-hotkey-registry.js.map +0 -1
- package/dist/hooks/use-hotkeys.cjs.map +0 -1
- package/dist/hooks/use-hotkeys.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { S as SupportedLocale } from './utils-
|
|
3
|
-
import { F as FlowKey,
|
|
2
|
+
import { S as SupportedLocale } from './utils-Czyp5Ned.cjs';
|
|
3
|
+
import { F as FlowKey, a as StatusKey, S as SeverityKey } from './i18n-DD3DMY8O.cjs';
|
|
4
4
|
|
|
5
5
|
type FlowData = Partial<Record<FlowKey, number>>;
|
|
6
6
|
interface FlowDistributionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -45,8 +45,8 @@ declare const SentimentDistribution: React.ForwardRefExoticComponent<SentimentDi
|
|
|
45
45
|
* ConceptCard — افکارسنجی-flavored headline tile for clustering dashboards.
|
|
46
46
|
* Composes: status badge, severity badge, flow composition bar, sentiment
|
|
47
47
|
* distribution, sparkline trend, AI summary snippet, optional comparison
|
|
48
|
-
* checkbox. Built for
|
|
49
|
-
* to fit in a card grid with rich, comparable signals.
|
|
48
|
+
* checkbox. Built for enterprise social-listening dashboards where each
|
|
49
|
+
* "concept" needs to fit in a card grid with rich, comparable signals.
|
|
50
50
|
*/
|
|
51
51
|
interface ConceptCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
52
52
|
/** Concept name (e.g., "رونمایی گوشی جدید") */
|
|
@@ -57,7 +57,7 @@ interface ConceptCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 't
|
|
|
57
57
|
status?: StatusKey;
|
|
58
58
|
/** Criticality of the concept (urgent/high/medium/low) */
|
|
59
59
|
severity?: SeverityKey;
|
|
60
|
-
/** Flow composition breakdown (5-class
|
|
60
|
+
/** Flow composition breakdown (5-class audience stance) */
|
|
61
61
|
flow?: FlowData;
|
|
62
62
|
/** Sentiment composition (3-class) */
|
|
63
63
|
sentiment?: SentimentData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { S as SupportedLocale } from './utils-
|
|
3
|
-
import { F as FlowKey,
|
|
2
|
+
import { S as SupportedLocale } from './utils-Czyp5Ned.js';
|
|
3
|
+
import { F as FlowKey, a as StatusKey, S as SeverityKey } from './i18n-UEClNsBy.js';
|
|
4
4
|
|
|
5
5
|
type FlowData = Partial<Record<FlowKey, number>>;
|
|
6
6
|
interface FlowDistributionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -45,8 +45,8 @@ declare const SentimentDistribution: React.ForwardRefExoticComponent<SentimentDi
|
|
|
45
45
|
* ConceptCard — افکارسنجی-flavored headline tile for clustering dashboards.
|
|
46
46
|
* Composes: status badge, severity badge, flow composition bar, sentiment
|
|
47
47
|
* distribution, sparkline trend, AI summary snippet, optional comparison
|
|
48
|
-
* checkbox. Built for
|
|
49
|
-
* to fit in a card grid with rich, comparable signals.
|
|
48
|
+
* checkbox. Built for enterprise social-listening dashboards where each
|
|
49
|
+
* "concept" needs to fit in a card grid with rich, comparable signals.
|
|
50
50
|
*/
|
|
51
51
|
interface ConceptCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
52
52
|
/** Concept name (e.g., "رونمایی گوشی جدید") */
|
|
@@ -57,7 +57,7 @@ interface ConceptCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 't
|
|
|
57
57
|
status?: StatusKey;
|
|
58
58
|
/** Criticality of the concept (urgent/high/medium/low) */
|
|
59
59
|
severity?: SeverityKey;
|
|
60
|
-
/** Flow composition breakdown (5-class
|
|
60
|
+
/** Flow composition breakdown (5-class audience stance) */
|
|
61
61
|
flow?: FlowData;
|
|
62
62
|
/** Sentiment composition (3-class) */
|
|
63
63
|
sentiment?: SentimentData;
|
|
@@ -204,5 +204,3 @@ function useHotkeyRegistry() {
|
|
|
204
204
|
exports.HotkeyProvider = HotkeyProvider;
|
|
205
205
|
exports.useHotkey = useHotkey;
|
|
206
206
|
exports.useHotkeyRegistry = useHotkeyRegistry;
|
|
207
|
-
//# sourceMappingURL=use-hotkey-registry.cjs.map
|
|
208
|
-
//# sourceMappingURL=use-hotkey-registry.cjs.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { HotkeyCombo } from './use-hotkeys.cjs';
|
|
4
3
|
|
|
@@ -32,7 +31,7 @@ interface HotkeyProviderProps {
|
|
|
32
31
|
*
|
|
33
32
|
* Optional. `useHotkeys` (the bare hook) continues to work outside a provider.
|
|
34
33
|
*/
|
|
35
|
-
declare function HotkeyProvider({ enabled, children }: HotkeyProviderProps):
|
|
34
|
+
declare function HotkeyProvider({ enabled, children }: HotkeyProviderProps): React.JSX.Element;
|
|
36
35
|
/**
|
|
37
36
|
* Register a hotkey under the active provider. The combo is added to the
|
|
38
37
|
* cheatsheet-readable registry; the handler fires when the combo matches
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { HotkeyCombo } from './use-hotkeys.js';
|
|
4
3
|
|
|
@@ -32,7 +31,7 @@ interface HotkeyProviderProps {
|
|
|
32
31
|
*
|
|
33
32
|
* Optional. `useHotkeys` (the bare hook) continues to work outside a provider.
|
|
34
33
|
*/
|
|
35
|
-
declare function HotkeyProvider({ enabled, children }: HotkeyProviderProps):
|
|
34
|
+
declare function HotkeyProvider({ enabled, children }: HotkeyProviderProps): React.JSX.Element;
|
|
36
35
|
/**
|
|
37
36
|
* Register a hotkey under the active provider. The combo is added to the
|
|
38
37
|
* cheatsheet-readable registry; the handler fires when the combo matches
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SupportedLocale } from './utils-
|
|
1
|
+
import { S as SupportedLocale } from './utils-Czyp5Ned.cjs';
|
|
2
2
|
|
|
3
3
|
type Locale = SupportedLocale;
|
|
4
4
|
/**
|
|
@@ -38,6 +38,30 @@ type EmotionKey = 'anger' | 'anticipation' | 'joy' | 'trust' | 'fear' | 'surpris
|
|
|
38
38
|
declare const EMOTION_KEYS: readonly EmotionKey[];
|
|
39
39
|
/** Emotion label translations used by EmotionBadge / EmotionDistribution. */
|
|
40
40
|
declare const emotionLabels: Record<SupportedLocale, Record<EmotionKey, string>>;
|
|
41
|
+
/**
|
|
42
|
+
* Numeric emotion codes used by the افکارسنجی API. The code `0` ("All") is a
|
|
43
|
+
* filter sentinel — NOT an emotion — so it is intentionally absent here.
|
|
44
|
+
* Codes start at `1` (Anger) and end at `9` (Neutral).
|
|
45
|
+
*/
|
|
46
|
+
declare const EMOTION_VALUE_MAP: Record<number, EmotionKey>;
|
|
47
|
+
/** Reverse of {@link EMOTION_VALUE_MAP}: emotion key → numeric code (1–9). */
|
|
48
|
+
declare const EMOTION_KEY_TO_VALUE: Record<EmotionKey, number>;
|
|
49
|
+
/**
|
|
50
|
+
* Flexible input accepted wherever an emotion is expected. May be:
|
|
51
|
+
* - an {@link EmotionKey} (`'anger'`, `'joy'`, …)
|
|
52
|
+
* - a numeric code `1–9` (or the equivalent numeric string `'4'`)
|
|
53
|
+
* - a localized label (`'شادی'`, `'فرح'`, `'Joy'`)
|
|
54
|
+
*
|
|
55
|
+
* The `(string & {})` member keeps EmotionKey autocomplete while still
|
|
56
|
+
* allowing arbitrary strings.
|
|
57
|
+
*/
|
|
58
|
+
type EmotionInput = EmotionKey | number | (string & {});
|
|
59
|
+
/**
|
|
60
|
+
* Resolve a flexible {@link EmotionInput} to a canonical {@link EmotionKey}.
|
|
61
|
+
* Returns `null` for the "All" sentinel (`0`), out-of-range codes, empty
|
|
62
|
+
* strings, and any unrecognised value — so callers can render nothing.
|
|
63
|
+
*/
|
|
64
|
+
declare function resolveEmotion(input: EmotionInput | null | undefined): EmotionKey | null;
|
|
41
65
|
/**
|
|
42
66
|
* Stance keys — 5-class audience-stance classification used in clustering.
|
|
43
67
|
* A concept / post / page belongs to exactly one primary stance, but usually
|
|
@@ -48,12 +72,77 @@ declare const emotionLabels: Record<SupportedLocale, Record<EmotionKey, string>>
|
|
|
48
72
|
type FlowKey = 'pro-gov' | 'internal-critic' | 'internal-opponent' | 'external-opponent' | 'grey';
|
|
49
73
|
declare const FLOW_KEYS: readonly FlowKey[];
|
|
50
74
|
declare const flowLabels: Record<SupportedLocale, Record<FlowKey, string>>;
|
|
51
|
-
/**
|
|
52
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Numeric flow codes used by the clustering/افکارسنجی API. Codes start at `1`
|
|
77
|
+
* (Pro-Government) and end at `5` (Grey).
|
|
78
|
+
*/
|
|
79
|
+
declare const FLOW_VALUE_MAP: Record<number, FlowKey>;
|
|
80
|
+
/** Reverse of {@link FLOW_VALUE_MAP}: flow key → numeric code (1–5). */
|
|
81
|
+
declare const FLOW_KEY_TO_VALUE: Record<FlowKey, number>;
|
|
82
|
+
/**
|
|
83
|
+
* Flexible input accepted wherever a flow is expected. May be:
|
|
84
|
+
* - a {@link FlowKey} (`'pro-gov'`, `'grey'`, …)
|
|
85
|
+
* - a numeric code `1–5` (or the equivalent numeric string `'4'`)
|
|
86
|
+
* - a localized label (`'حامیان حکومت'`, `'Pro-Government'`)
|
|
87
|
+
*/
|
|
88
|
+
type FlowInput = FlowKey | number | (string & {});
|
|
89
|
+
/**
|
|
90
|
+
* Resolve a flexible {@link FlowInput} to a canonical {@link FlowKey}.
|
|
91
|
+
* Returns `null` for out-of-range codes, empty strings, and any unrecognised
|
|
92
|
+
* value — so callers can render nothing.
|
|
93
|
+
*/
|
|
94
|
+
declare function resolveFlow(input: FlowInput | null | undefined): FlowKey | null;
|
|
95
|
+
/**
|
|
96
|
+
* Operational status — visual state of a tracked entity, on a 4-class
|
|
97
|
+
* severity gradient from `critical` (most urgent) down to `low` (least).
|
|
98
|
+
*/
|
|
99
|
+
type StatusKey = 'critical' | 'warning' | 'middle' | 'low';
|
|
100
|
+
declare const STATUS_KEYS: readonly StatusKey[];
|
|
53
101
|
declare const statusLabels: Record<SupportedLocale, Record<StatusKey, string>>;
|
|
102
|
+
/**
|
|
103
|
+
* Numeric status codes used by the افکارسنجی API. Codes start at `1`
|
|
104
|
+
* (Critical) and end at `4` (Low).
|
|
105
|
+
*/
|
|
106
|
+
declare const STATUS_VALUE_MAP: Record<number, StatusKey>;
|
|
107
|
+
/** Reverse of {@link STATUS_VALUE_MAP}: status key → numeric code (1–4). */
|
|
108
|
+
declare const STATUS_KEY_TO_VALUE: Record<StatusKey, number>;
|
|
109
|
+
/**
|
|
110
|
+
* Flexible input accepted wherever a status is expected. May be:
|
|
111
|
+
* - a {@link StatusKey} (`'critical'`, `'low'`, …)
|
|
112
|
+
* - a numeric code `1–4` (or the equivalent numeric string `'4'`)
|
|
113
|
+
* - a localized label (`'بحرانی'`, `'Critical'`)
|
|
114
|
+
*/
|
|
115
|
+
type StatusInput = StatusKey | number | (string & {});
|
|
116
|
+
/**
|
|
117
|
+
* Resolve a flexible {@link StatusInput} to a canonical {@link StatusKey}.
|
|
118
|
+
* Returns `null` for out-of-range codes, empty strings, and any unrecognised
|
|
119
|
+
* value — so callers can render nothing.
|
|
120
|
+
*/
|
|
121
|
+
declare function resolveStatus(input: StatusInput | null | undefined): StatusKey | null;
|
|
54
122
|
/** Severity — urgency level. Independent from status. */
|
|
55
123
|
type SeverityKey = 'urgent' | 'high' | 'medium' | 'low';
|
|
124
|
+
declare const SEVERITY_KEYS: readonly SeverityKey[];
|
|
56
125
|
declare const severityLabels: Record<SupportedLocale, Record<SeverityKey, string>>;
|
|
126
|
+
/**
|
|
127
|
+
* Numeric severity codes used by the افکارسنجی API. Codes start at `1`
|
|
128
|
+
* (Urgent) and end at `4` (Low).
|
|
129
|
+
*/
|
|
130
|
+
declare const SEVERITY_VALUE_MAP: Record<number, SeverityKey>;
|
|
131
|
+
/** Reverse of {@link SEVERITY_VALUE_MAP}: severity key → numeric code (1–4). */
|
|
132
|
+
declare const SEVERITY_KEY_TO_VALUE: Record<SeverityKey, number>;
|
|
133
|
+
/**
|
|
134
|
+
* Flexible input accepted wherever a severity is expected. May be:
|
|
135
|
+
* - a {@link SeverityKey} (`'urgent'`, `'low'`, …)
|
|
136
|
+
* - a numeric code `1–4` (or the equivalent numeric string `'4'`)
|
|
137
|
+
* - a localized label (`'فوری'`, `'Urgent'`)
|
|
138
|
+
*/
|
|
139
|
+
type SeverityInput = SeverityKey | number | (string & {});
|
|
140
|
+
/**
|
|
141
|
+
* Resolve a flexible {@link SeverityInput} to a canonical {@link SeverityKey}.
|
|
142
|
+
* Returns `null` for out-of-range codes, empty strings, and any unrecognised
|
|
143
|
+
* value — so callers can render nothing.
|
|
144
|
+
*/
|
|
145
|
+
declare function resolveSeverity(input: SeverityInput | null | undefined): SeverityKey | null;
|
|
57
146
|
/**
|
|
58
147
|
* Job lifecycle — canonical states for async work (analyses, campaigns,
|
|
59
148
|
* evaluation runs, imports, exports, report generation).
|
|
@@ -130,7 +219,7 @@ declare const actionTypeVerbs: Record<SupportedLocale, Record<ActionTypeKey, str
|
|
|
130
219
|
* `growing` — improving trajectory but not yet healthy.
|
|
131
220
|
* `healthy` — stable, all checks pass.
|
|
132
221
|
*
|
|
133
|
-
* Distinct from `StatusKey` (critical/warning/
|
|
222
|
+
* Distinct from `StatusKey` (critical/warning/middle/low — short-lived operational)
|
|
134
223
|
* and `SeverityKey` (urgent/high/medium/low — urgency of an action item).
|
|
135
224
|
*/
|
|
136
225
|
type EntityHealthKey = 'banned' | 'pending' | 'at-risk' | 'warning' | 'growing' | 'healthy';
|
|
@@ -343,4 +432,4 @@ type UIStrings = Record<UIStringKeys, string>;
|
|
|
343
432
|
*/
|
|
344
433
|
declare function getUIStrings(locale?: SupportedLocale): UIStrings;
|
|
345
434
|
|
|
346
|
-
export { type ActionStatusKey as A,
|
|
435
|
+
export { sentimentLabels as $, type ActionStatusKey as A, UI_STRINGS as B, actionStatusLabels as C, actionTypeLabels as D, type EntityHealthKey as E, type FlowKey as F, actionTypeVerbs as G, emotionLabels as H, engagementUiTranslations as I, type JobStatusKey as J, entityHealthLabels as K, type Locale as L, entityHealthPriority as M, flowLabels as N, formatRelativeLocaleTime as O, formatTimeRemaining as P, getUIStrings as Q, isActiveJobStatus as R, type SeverityKey as S, isCriticalEntityHealth as T, type UIStringKeys as U, isRTL as V, jobStatusLabels as W, resolveEmotion as X, resolveFlow as Y, resolveSeverity as Z, resolveStatus as _, type StatusKey as a, severityLabels as a0, stageStatusLabels as a1, statusLabels as a2, type ActionTypeKey as b, type EmotionKey as c, type StageStatusKey as d, type EmotionInput as e, type FlowInput as f, type StatusInput as g, type SeverityInput as h, ACTION_STATUS_KEYS as i, ACTION_TYPE_KEYS as j, EMOTION_KEYS as k, EMOTION_KEY_TO_VALUE as l, EMOTION_VALUE_MAP as m, ENTITY_HEALTH_KEYS as n, FLOW_KEYS as o, FLOW_KEY_TO_VALUE as p, FLOW_VALUE_MAP as q, JOB_STATUS_KEYS as r, SEVERITY_KEYS as s, SEVERITY_KEY_TO_VALUE as t, SEVERITY_VALUE_MAP as u, STAGE_STATUS_KEYS as v, STATUS_KEYS as w, STATUS_KEY_TO_VALUE as x, STATUS_VALUE_MAP as y, type UIStrings as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SupportedLocale } from './utils-
|
|
1
|
+
import { S as SupportedLocale } from './utils-Czyp5Ned.js';
|
|
2
2
|
|
|
3
3
|
type Locale = SupportedLocale;
|
|
4
4
|
/**
|
|
@@ -38,6 +38,30 @@ type EmotionKey = 'anger' | 'anticipation' | 'joy' | 'trust' | 'fear' | 'surpris
|
|
|
38
38
|
declare const EMOTION_KEYS: readonly EmotionKey[];
|
|
39
39
|
/** Emotion label translations used by EmotionBadge / EmotionDistribution. */
|
|
40
40
|
declare const emotionLabels: Record<SupportedLocale, Record<EmotionKey, string>>;
|
|
41
|
+
/**
|
|
42
|
+
* Numeric emotion codes used by the افکارسنجی API. The code `0` ("All") is a
|
|
43
|
+
* filter sentinel — NOT an emotion — so it is intentionally absent here.
|
|
44
|
+
* Codes start at `1` (Anger) and end at `9` (Neutral).
|
|
45
|
+
*/
|
|
46
|
+
declare const EMOTION_VALUE_MAP: Record<number, EmotionKey>;
|
|
47
|
+
/** Reverse of {@link EMOTION_VALUE_MAP}: emotion key → numeric code (1–9). */
|
|
48
|
+
declare const EMOTION_KEY_TO_VALUE: Record<EmotionKey, number>;
|
|
49
|
+
/**
|
|
50
|
+
* Flexible input accepted wherever an emotion is expected. May be:
|
|
51
|
+
* - an {@link EmotionKey} (`'anger'`, `'joy'`, …)
|
|
52
|
+
* - a numeric code `1–9` (or the equivalent numeric string `'4'`)
|
|
53
|
+
* - a localized label (`'شادی'`, `'فرح'`, `'Joy'`)
|
|
54
|
+
*
|
|
55
|
+
* The `(string & {})` member keeps EmotionKey autocomplete while still
|
|
56
|
+
* allowing arbitrary strings.
|
|
57
|
+
*/
|
|
58
|
+
type EmotionInput = EmotionKey | number | (string & {});
|
|
59
|
+
/**
|
|
60
|
+
* Resolve a flexible {@link EmotionInput} to a canonical {@link EmotionKey}.
|
|
61
|
+
* Returns `null` for the "All" sentinel (`0`), out-of-range codes, empty
|
|
62
|
+
* strings, and any unrecognised value — so callers can render nothing.
|
|
63
|
+
*/
|
|
64
|
+
declare function resolveEmotion(input: EmotionInput | null | undefined): EmotionKey | null;
|
|
41
65
|
/**
|
|
42
66
|
* Stance keys — 5-class audience-stance classification used in clustering.
|
|
43
67
|
* A concept / post / page belongs to exactly one primary stance, but usually
|
|
@@ -48,12 +72,77 @@ declare const emotionLabels: Record<SupportedLocale, Record<EmotionKey, string>>
|
|
|
48
72
|
type FlowKey = 'pro-gov' | 'internal-critic' | 'internal-opponent' | 'external-opponent' | 'grey';
|
|
49
73
|
declare const FLOW_KEYS: readonly FlowKey[];
|
|
50
74
|
declare const flowLabels: Record<SupportedLocale, Record<FlowKey, string>>;
|
|
51
|
-
/**
|
|
52
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Numeric flow codes used by the clustering/افکارسنجی API. Codes start at `1`
|
|
77
|
+
* (Pro-Government) and end at `5` (Grey).
|
|
78
|
+
*/
|
|
79
|
+
declare const FLOW_VALUE_MAP: Record<number, FlowKey>;
|
|
80
|
+
/** Reverse of {@link FLOW_VALUE_MAP}: flow key → numeric code (1–5). */
|
|
81
|
+
declare const FLOW_KEY_TO_VALUE: Record<FlowKey, number>;
|
|
82
|
+
/**
|
|
83
|
+
* Flexible input accepted wherever a flow is expected. May be:
|
|
84
|
+
* - a {@link FlowKey} (`'pro-gov'`, `'grey'`, …)
|
|
85
|
+
* - a numeric code `1–5` (or the equivalent numeric string `'4'`)
|
|
86
|
+
* - a localized label (`'حامیان حکومت'`, `'Pro-Government'`)
|
|
87
|
+
*/
|
|
88
|
+
type FlowInput = FlowKey | number | (string & {});
|
|
89
|
+
/**
|
|
90
|
+
* Resolve a flexible {@link FlowInput} to a canonical {@link FlowKey}.
|
|
91
|
+
* Returns `null` for out-of-range codes, empty strings, and any unrecognised
|
|
92
|
+
* value — so callers can render nothing.
|
|
93
|
+
*/
|
|
94
|
+
declare function resolveFlow(input: FlowInput | null | undefined): FlowKey | null;
|
|
95
|
+
/**
|
|
96
|
+
* Operational status — visual state of a tracked entity, on a 4-class
|
|
97
|
+
* severity gradient from `critical` (most urgent) down to `low` (least).
|
|
98
|
+
*/
|
|
99
|
+
type StatusKey = 'critical' | 'warning' | 'middle' | 'low';
|
|
100
|
+
declare const STATUS_KEYS: readonly StatusKey[];
|
|
53
101
|
declare const statusLabels: Record<SupportedLocale, Record<StatusKey, string>>;
|
|
102
|
+
/**
|
|
103
|
+
* Numeric status codes used by the افکارسنجی API. Codes start at `1`
|
|
104
|
+
* (Critical) and end at `4` (Low).
|
|
105
|
+
*/
|
|
106
|
+
declare const STATUS_VALUE_MAP: Record<number, StatusKey>;
|
|
107
|
+
/** Reverse of {@link STATUS_VALUE_MAP}: status key → numeric code (1–4). */
|
|
108
|
+
declare const STATUS_KEY_TO_VALUE: Record<StatusKey, number>;
|
|
109
|
+
/**
|
|
110
|
+
* Flexible input accepted wherever a status is expected. May be:
|
|
111
|
+
* - a {@link StatusKey} (`'critical'`, `'low'`, …)
|
|
112
|
+
* - a numeric code `1–4` (or the equivalent numeric string `'4'`)
|
|
113
|
+
* - a localized label (`'بحرانی'`, `'Critical'`)
|
|
114
|
+
*/
|
|
115
|
+
type StatusInput = StatusKey | number | (string & {});
|
|
116
|
+
/**
|
|
117
|
+
* Resolve a flexible {@link StatusInput} to a canonical {@link StatusKey}.
|
|
118
|
+
* Returns `null` for out-of-range codes, empty strings, and any unrecognised
|
|
119
|
+
* value — so callers can render nothing.
|
|
120
|
+
*/
|
|
121
|
+
declare function resolveStatus(input: StatusInput | null | undefined): StatusKey | null;
|
|
54
122
|
/** Severity — urgency level. Independent from status. */
|
|
55
123
|
type SeverityKey = 'urgent' | 'high' | 'medium' | 'low';
|
|
124
|
+
declare const SEVERITY_KEYS: readonly SeverityKey[];
|
|
56
125
|
declare const severityLabels: Record<SupportedLocale, Record<SeverityKey, string>>;
|
|
126
|
+
/**
|
|
127
|
+
* Numeric severity codes used by the افکارسنجی API. Codes start at `1`
|
|
128
|
+
* (Urgent) and end at `4` (Low).
|
|
129
|
+
*/
|
|
130
|
+
declare const SEVERITY_VALUE_MAP: Record<number, SeverityKey>;
|
|
131
|
+
/** Reverse of {@link SEVERITY_VALUE_MAP}: severity key → numeric code (1–4). */
|
|
132
|
+
declare const SEVERITY_KEY_TO_VALUE: Record<SeverityKey, number>;
|
|
133
|
+
/**
|
|
134
|
+
* Flexible input accepted wherever a severity is expected. May be:
|
|
135
|
+
* - a {@link SeverityKey} (`'urgent'`, `'low'`, …)
|
|
136
|
+
* - a numeric code `1–4` (or the equivalent numeric string `'4'`)
|
|
137
|
+
* - a localized label (`'فوری'`, `'Urgent'`)
|
|
138
|
+
*/
|
|
139
|
+
type SeverityInput = SeverityKey | number | (string & {});
|
|
140
|
+
/**
|
|
141
|
+
* Resolve a flexible {@link SeverityInput} to a canonical {@link SeverityKey}.
|
|
142
|
+
* Returns `null` for out-of-range codes, empty strings, and any unrecognised
|
|
143
|
+
* value — so callers can render nothing.
|
|
144
|
+
*/
|
|
145
|
+
declare function resolveSeverity(input: SeverityInput | null | undefined): SeverityKey | null;
|
|
57
146
|
/**
|
|
58
147
|
* Job lifecycle — canonical states for async work (analyses, campaigns,
|
|
59
148
|
* evaluation runs, imports, exports, report generation).
|
|
@@ -130,7 +219,7 @@ declare const actionTypeVerbs: Record<SupportedLocale, Record<ActionTypeKey, str
|
|
|
130
219
|
* `growing` — improving trajectory but not yet healthy.
|
|
131
220
|
* `healthy` — stable, all checks pass.
|
|
132
221
|
*
|
|
133
|
-
* Distinct from `StatusKey` (critical/warning/
|
|
222
|
+
* Distinct from `StatusKey` (critical/warning/middle/low — short-lived operational)
|
|
134
223
|
* and `SeverityKey` (urgent/high/medium/low — urgency of an action item).
|
|
135
224
|
*/
|
|
136
225
|
type EntityHealthKey = 'banned' | 'pending' | 'at-risk' | 'warning' | 'growing' | 'healthy';
|
|
@@ -343,4 +432,4 @@ type UIStrings = Record<UIStringKeys, string>;
|
|
|
343
432
|
*/
|
|
344
433
|
declare function getUIStrings(locale?: SupportedLocale): UIStrings;
|
|
345
434
|
|
|
346
|
-
export { type ActionStatusKey as A,
|
|
435
|
+
export { sentimentLabels as $, type ActionStatusKey as A, UI_STRINGS as B, actionStatusLabels as C, actionTypeLabels as D, type EntityHealthKey as E, type FlowKey as F, actionTypeVerbs as G, emotionLabels as H, engagementUiTranslations as I, type JobStatusKey as J, entityHealthLabels as K, type Locale as L, entityHealthPriority as M, flowLabels as N, formatRelativeLocaleTime as O, formatTimeRemaining as P, getUIStrings as Q, isActiveJobStatus as R, type SeverityKey as S, isCriticalEntityHealth as T, type UIStringKeys as U, isRTL as V, jobStatusLabels as W, resolveEmotion as X, resolveFlow as Y, resolveSeverity as Z, resolveStatus as _, type StatusKey as a, severityLabels as a0, stageStatusLabels as a1, statusLabels as a2, type ActionTypeKey as b, type EmotionKey as c, type StageStatusKey as d, type EmotionInput as e, type FlowInput as f, type StatusInput as g, type SeverityInput as h, ACTION_STATUS_KEYS as i, ACTION_TYPE_KEYS as j, EMOTION_KEYS as k, EMOTION_KEY_TO_VALUE as l, EMOTION_VALUE_MAP as m, ENTITY_HEALTH_KEYS as n, FLOW_KEYS as o, FLOW_KEY_TO_VALUE as p, FLOW_VALUE_MAP as q, JOB_STATUS_KEYS as r, SEVERITY_KEYS as s, SEVERITY_KEY_TO_VALUE as t, SEVERITY_VALUE_MAP as u, STAGE_STATUS_KEYS as v, STATUS_KEYS as w, STATUS_KEY_TO_VALUE as x, STATUS_VALUE_MAP as y, type UIStrings as z };
|