@salesmind-ai/design-system 0.6.0 → 0.7.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/README.md +2 -0
- package/dist/Anton-Regular-MLEXVTB2.woff2 +0 -0
- package/dist/admin/index.cjs +5 -61
- package/dist/admin/index.css +0 -3918
- package/dist/admin/index.css.map +1 -1
- package/dist/admin/index.d.cts +1 -422
- package/dist/admin/index.d.ts +1 -422
- package/dist/admin/index.js +1 -5
- package/dist/blog/index.cjs +13 -34
- package/dist/blog/index.css +0 -579
- package/dist/blog/index.css.map +1 -1
- package/dist/blog/index.d.cts +1 -54
- package/dist/blog/index.d.ts +1 -54
- package/dist/blog/index.js +5 -6
- package/dist/charts/index.cjs +0 -46
- package/dist/charts/index.d.cts +1 -452
- package/dist/charts/index.d.ts +1 -452
- package/dist/charts/index.js +1 -3
- package/dist/{chunk-HDVAMYSG.js → chunk-27Y5ESMM.js} +7 -2
- package/dist/chunk-27Y5ESMM.js.map +1 -0
- package/dist/{chunk-YTYDQBVY.cjs → chunk-2VVRZBUR.cjs} +4 -4
- package/dist/{chunk-GQELL2MF.cjs → chunk-3NS6X2R4.cjs} +20 -203
- package/dist/chunk-3NS6X2R4.cjs.map +1 -0
- package/dist/{chunk-XEX2AEZK.cjs → chunk-65DTHLVX.cjs} +66 -186
- package/dist/chunk-65DTHLVX.cjs.map +1 -0
- package/dist/{chunk-QALDZ7WQ.js → chunk-6BUS7RMS.js} +21 -198
- package/dist/chunk-6BUS7RMS.js.map +1 -0
- package/dist/{chunk-BJZ2DKS5.cjs → chunk-6QIQCUYC.cjs} +11 -10
- package/dist/chunk-6QIQCUYC.cjs.map +1 -0
- package/dist/{chunk-H2Y6BSTL.cjs → chunk-7EUR3AKV.cjs} +1 -1
- package/dist/chunk-7EUR3AKV.cjs.map +1 -0
- package/dist/{chunk-VFJZQQZU.js → chunk-AMNY5TS3.js} +11 -10
- package/dist/chunk-AMNY5TS3.js.map +1 -0
- package/dist/{chunk-YJ6C3EKW.js → chunk-CLXLQCNQ.js} +52 -168
- package/dist/chunk-CLXLQCNQ.js.map +1 -0
- package/dist/{chunk-H2KQ3WSH.cjs → chunk-CVLD5RQK.cjs} +12 -14
- package/dist/chunk-CVLD5RQK.cjs.map +1 -0
- package/dist/chunk-EPD4ZEPY.cjs +344 -0
- package/dist/chunk-EPD4ZEPY.cjs.map +1 -0
- package/dist/chunk-FXYOSA4E.cjs +118 -0
- package/dist/chunk-FXYOSA4E.cjs.map +1 -0
- package/dist/{chunk-ECXBTUH6.cjs → chunk-GPHQGLR5.cjs} +27 -204
- package/dist/chunk-GPHQGLR5.cjs.map +1 -0
- package/dist/{chunk-Y26OHHMX.js → chunk-HHQ6J7B6.js} +513 -888
- package/dist/chunk-HHQ6J7B6.js.map +1 -0
- package/dist/chunk-JPUJWI7F.cjs +73 -0
- package/dist/chunk-JPUJWI7F.cjs.map +1 -0
- package/dist/{chunk-6UNG76Y2.js → chunk-K526GN7P.js} +2 -2
- package/dist/{chunk-SICKWUWB.js → chunk-KJHPOB3J.js} +1 -1
- package/dist/chunk-KJHPOB3J.js.map +1 -0
- package/dist/chunk-KXVFFEGD.js +60 -0
- package/dist/chunk-KXVFFEGD.js.map +1 -0
- package/dist/chunk-LQB7QLD3.js +288 -0
- package/dist/chunk-LQB7QLD3.js.map +1 -0
- package/dist/chunk-LUD52ZJF.cjs +726 -0
- package/dist/chunk-LUD52ZJF.cjs.map +1 -0
- package/dist/{chunk-7UZ5DETZ.js → chunk-MBAG654R.js} +4 -216
- package/dist/chunk-MBAG654R.js.map +1 -0
- package/dist/chunk-OMP6FAZ6.cjs +183 -0
- package/dist/chunk-OMP6FAZ6.cjs.map +1 -0
- package/dist/{chunk-WYH4TKS5.js → chunk-PBYRTNQ5.js} +6 -8
- package/dist/chunk-PBYRTNQ5.js.map +1 -0
- package/dist/chunk-PYREXCZK.js +679 -0
- package/dist/chunk-PYREXCZK.js.map +1 -0
- package/dist/{chunk-6D22TFLA.cjs → chunk-R3ZECV5P.cjs} +9 -4
- package/dist/chunk-R3ZECV5P.cjs.map +1 -0
- package/dist/{chunk-P5BOFE5A.js → chunk-RSLA2FJN.js} +28 -183
- package/dist/chunk-RSLA2FJN.js.map +1 -0
- package/dist/chunk-S46SKHMD.js +173 -0
- package/dist/chunk-S46SKHMD.js.map +1 -0
- package/dist/chunk-SFXTB7JL.js +190 -0
- package/dist/chunk-SFXTB7JL.js.map +1 -0
- package/dist/chunk-SGYXYMKZ.cjs +214 -0
- package/dist/chunk-SGYXYMKZ.cjs.map +1 -0
- package/dist/chunk-UGKYP6F3.cjs +296 -0
- package/dist/chunk-UGKYP6F3.cjs.map +1 -0
- package/dist/chunk-WB6XDNU7.js +115 -0
- package/dist/chunk-WB6XDNU7.js.map +1 -0
- package/dist/{chunk-LTPTW2US.cjs → chunk-WE4QIIVN.cjs} +592 -974
- package/dist/chunk-WE4QIIVN.cjs.map +1 -0
- package/dist/core/index.cjs +144 -626
- package/dist/core/index.css +178 -3567
- package/dist/core/index.css.map +1 -1
- package/dist/core/index.d.cts +940 -902
- package/dist/core/index.d.ts +940 -902
- package/dist/core/index.js +6 -12
- package/dist/i18n/index.cjs +54 -49
- package/dist/i18n/index.d.cts +46 -11
- package/dist/i18n/index.d.ts +46 -11
- package/dist/i18n/index.js +2 -1
- package/dist/index-BJ8rBqrO.d.cts +1100 -0
- package/dist/index-BxMqCbqE.d.ts +1100 -0
- package/dist/index.cjs +507 -1001
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +6057 -16713
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +306 -21
- package/dist/index.d.ts +306 -21
- package/dist/index.js +274 -39
- package/dist/index.js.map +1 -1
- package/dist/marketing/index.cjs +33 -76
- package/dist/marketing/index.css +1896 -3234
- package/dist/marketing/index.css.map +1 -1
- package/dist/marketing/index.d.cts +3 -1351
- package/dist/marketing/index.d.ts +3 -1351
- package/dist/marketing/index.js +5 -8
- package/dist/motion/index.cjs +3 -20
- package/dist/motion/index.css +0 -580
- package/dist/motion/index.css.map +1 -1
- package/dist/motion/index.d.cts +1 -37
- package/dist/motion/index.d.ts +1 -37
- package/dist/motion/index.js +1 -2
- package/dist/nav/index.cjs +10 -35
- package/dist/nav/index.css +28 -580
- package/dist/nav/index.css.map +1 -1
- package/dist/nav/index.d.cts +2 -60
- package/dist/nav/index.d.ts +2 -60
- package/dist/nav/index.js +1 -2
- package/dist/report/index.cjs +1166 -175
- package/dist/report/index.cjs.map +1 -1
- package/dist/report/index.d.cts +208 -5
- package/dist/report/index.d.ts +208 -5
- package/dist/report/index.js +1141 -3
- package/dist/report/index.js.map +1 -1
- package/dist/sections/index.cjs +8 -10
- package/dist/sections/index.cjs.map +1 -1
- package/dist/sections/index.css +0 -206
- package/dist/sections/index.css.map +1 -1
- package/dist/sections/index.js +2 -4
- package/dist/sections/index.js.map +1 -1
- package/dist/social-media/index.cjs +4 -0
- package/dist/social-media/index.cjs.map +1 -0
- package/dist/social-media/index.d.cts +2 -0
- package/dist/social-media/index.d.ts +2 -0
- package/dist/social-media/index.js +3 -0
- package/dist/social-media/index.js.map +1 -0
- package/dist/social-proof/index.cjs +4 -36
- package/dist/social-proof/index.css +3 -1106
- package/dist/social-proof/index.css.map +1 -1
- package/dist/social-proof/index.d.cts +26 -171
- package/dist/social-proof/index.d.ts +26 -171
- package/dist/social-proof/index.js +1 -5
- package/dist/styles/styles.css +657 -2990
- package/dist/theme/index.cjs +12 -16
- package/dist/theme/index.css +1 -245
- package/dist/theme/index.css.map +1 -1
- package/dist/theme/index.d.cts +4 -1
- package/dist/theme/index.d.ts +4 -1
- package/dist/theme/index.js +2 -2
- package/dist/web/client/index.cjs +10 -10
- package/dist/web/client/index.css +118 -0
- package/dist/web/client/index.css.map +1 -1
- package/dist/web/client/index.js +2 -2
- package/dist/web/index.cjs +10 -10
- package/dist/web/index.css +118 -0
- package/dist/web/index.css.map +1 -1
- package/dist/web/index.js +2 -2
- package/package.json +10 -4
- package/dist/AppearancePanel-UT57J69V.d.cts +0 -51
- package/dist/AppearancePanel-UT57J69V.d.ts +0 -51
- package/dist/ExportMenu-A2TLFiVv.d.cts +0 -311
- package/dist/ExportMenu-C8qck5AT.d.ts +0 -311
- package/dist/Select-BdZmK0Lt.d.cts +0 -66
- package/dist/Select-BdZmK0Lt.d.ts +0 -66
- package/dist/chart-types-BGVVO-zl.d.cts +0 -208
- package/dist/chart-types-BGVVO-zl.d.ts +0 -208
- package/dist/charts/index.css +0 -1167
- package/dist/charts/index.css.map +0 -1
- package/dist/chunk-3BAQDW3V.cjs +0 -1207
- package/dist/chunk-3BAQDW3V.cjs.map +0 -1
- package/dist/chunk-3NKRFUAR.js +0 -37
- package/dist/chunk-3NKRFUAR.js.map +0 -1
- package/dist/chunk-3TGSIILM.cjs +0 -201
- package/dist/chunk-3TGSIILM.cjs.map +0 -1
- package/dist/chunk-4GM5BGBN.cjs +0 -801
- package/dist/chunk-4GM5BGBN.cjs.map +0 -1
- package/dist/chunk-5LA3T22E.cjs +0 -562
- package/dist/chunk-5LA3T22E.cjs.map +0 -1
- package/dist/chunk-5SN66B2X.js +0 -2542
- package/dist/chunk-5SN66B2X.js.map +0 -1
- package/dist/chunk-6D22TFLA.cjs.map +0 -1
- package/dist/chunk-6H4DSTXR.js +0 -786
- package/dist/chunk-6H4DSTXR.js.map +0 -1
- package/dist/chunk-6HKQ5ILL.cjs +0 -1624
- package/dist/chunk-6HKQ5ILL.cjs.map +0 -1
- package/dist/chunk-7PX2AZ6Y.js +0 -39
- package/dist/chunk-7PX2AZ6Y.js.map +0 -1
- package/dist/chunk-7UZ5DETZ.js.map +0 -1
- package/dist/chunk-B6AVAX4F.js +0 -1415
- package/dist/chunk-B6AVAX4F.js.map +0 -1
- package/dist/chunk-BJZ2DKS5.cjs.map +0 -1
- package/dist/chunk-BUTQSDQH.js +0 -200
- package/dist/chunk-BUTQSDQH.js.map +0 -1
- package/dist/chunk-C2BCDNAV.js +0 -24
- package/dist/chunk-C2BCDNAV.js.map +0 -1
- package/dist/chunk-CJ2MKVAF.cjs +0 -46
- package/dist/chunk-CJ2MKVAF.cjs.map +0 -1
- package/dist/chunk-E7D6EKJ4.cjs +0 -44
- package/dist/chunk-E7D6EKJ4.cjs.map +0 -1
- package/dist/chunk-ECXBTUH6.cjs.map +0 -1
- package/dist/chunk-FAFAP4L5.js +0 -183
- package/dist/chunk-FAFAP4L5.js.map +0 -1
- package/dist/chunk-G2XGBO5V.cjs +0 -2565
- package/dist/chunk-G2XGBO5V.cjs.map +0 -1
- package/dist/chunk-GQELL2MF.cjs.map +0 -1
- package/dist/chunk-H2KQ3WSH.cjs.map +0 -1
- package/dist/chunk-H2Y6BSTL.cjs.map +0 -1
- package/dist/chunk-HCZW5AJN.cjs +0 -234
- package/dist/chunk-HCZW5AJN.cjs.map +0 -1
- package/dist/chunk-HDVAMYSG.js.map +0 -1
- package/dist/chunk-HN4PHABT.js +0 -126
- package/dist/chunk-HN4PHABT.js.map +0 -1
- package/dist/chunk-LTPTW2US.cjs.map +0 -1
- package/dist/chunk-MDB2WCRQ.cjs +0 -137
- package/dist/chunk-MDB2WCRQ.cjs.map +0 -1
- package/dist/chunk-MQRB634A.cjs +0 -34
- package/dist/chunk-MQRB634A.cjs.map +0 -1
- package/dist/chunk-NN3TUHIH.js +0 -28
- package/dist/chunk-NN3TUHIH.js.map +0 -1
- package/dist/chunk-OWS2KAXZ.js +0 -701
- package/dist/chunk-OWS2KAXZ.js.map +0 -1
- package/dist/chunk-P5BOFE5A.js.map +0 -1
- package/dist/chunk-PUPSK3DI.cjs +0 -216
- package/dist/chunk-PUPSK3DI.cjs.map +0 -1
- package/dist/chunk-Q2MFGYTE.cjs +0 -1449
- package/dist/chunk-Q2MFGYTE.cjs.map +0 -1
- package/dist/chunk-Q75DBVDY.cjs +0 -68
- package/dist/chunk-Q75DBVDY.cjs.map +0 -1
- package/dist/chunk-QALDZ7WQ.js.map +0 -1
- package/dist/chunk-QWE2RNCS.js +0 -1195
- package/dist/chunk-QWE2RNCS.js.map +0 -1
- package/dist/chunk-RQUFZAZ7.js +0 -1608
- package/dist/chunk-RQUFZAZ7.js.map +0 -1
- package/dist/chunk-SICKWUWB.js.map +0 -1
- package/dist/chunk-TCFC7XTB.js +0 -212
- package/dist/chunk-TCFC7XTB.js.map +0 -1
- package/dist/chunk-UTVXGAQP.cjs +0 -2437
- package/dist/chunk-UTVXGAQP.cjs.map +0 -1
- package/dist/chunk-UVEMY3FQ.cjs +0 -717
- package/dist/chunk-UVEMY3FQ.cjs.map +0 -1
- package/dist/chunk-VFJZQQZU.js.map +0 -1
- package/dist/chunk-WH7PYHZY.cjs +0 -35
- package/dist/chunk-WH7PYHZY.cjs.map +0 -1
- package/dist/chunk-WYH4TKS5.js.map +0 -1
- package/dist/chunk-XEX2AEZK.cjs.map +0 -1
- package/dist/chunk-XPTVHPCN.js +0 -2320
- package/dist/chunk-XPTVHPCN.js.map +0 -1
- package/dist/chunk-XWPDRMZG.js +0 -62
- package/dist/chunk-XWPDRMZG.js.map +0 -1
- package/dist/chunk-Y26OHHMX.js.map +0 -1
- package/dist/chunk-YJ6C3EKW.js.map +0 -1
- package/dist/motion-C651Ry6d.d.cts +0 -832
- package/dist/motion-C651Ry6d.d.ts +0 -832
- package/dist/report/index.css +0 -1239
- package/dist/report/index.css.map +0 -1
- /package/dist/{chunk-6UNG76Y2.js.map → chunk-2VVRZBUR.cjs.map} +0 -0
- /package/dist/{chunk-YTYDQBVY.cjs.map → chunk-K526GN7P.js.map} +0 -0
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
|
|
4
|
-
interface SelectProps {
|
|
5
|
-
/** Current selected value */
|
|
6
|
-
value?: string;
|
|
7
|
-
/** Default value for uncontrolled mode */
|
|
8
|
-
defaultValue?: string;
|
|
9
|
-
/** Callback when value changes */
|
|
10
|
-
onValueChange?: (value: string | null) => void;
|
|
11
|
-
/** Whether the select is disabled */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
/** Whether the select is required */
|
|
14
|
-
required?: boolean;
|
|
15
|
-
/** Name for form submission */
|
|
16
|
-
name?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Item label map for Value display resolution.
|
|
19
|
-
* When provided, Select.Value renders the label instead of the raw value.
|
|
20
|
-
* Accepts a record (e.g. `{ en: "English", fr: "French" }`) or an array
|
|
21
|
-
* of `{ value, label }` objects.
|
|
22
|
-
*/
|
|
23
|
-
items?: Record<string, React__default.ReactNode> | ReadonlyArray<{
|
|
24
|
-
label: React__default.ReactNode;
|
|
25
|
-
value: string;
|
|
26
|
-
}>;
|
|
27
|
-
/** Children (SelectTrigger, SelectContent, etc.) */
|
|
28
|
-
children: React__default.ReactNode;
|
|
29
|
-
}
|
|
30
|
-
declare function Select({ value, defaultValue, onValueChange, disabled, required, name, items, children, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
31
|
-
declare namespace Select {
|
|
32
|
-
var displayName: string;
|
|
33
|
-
}
|
|
34
|
-
interface SelectTriggerProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
35
|
-
/** Placeholder text when no value selected */
|
|
36
|
-
placeholder?: string;
|
|
37
|
-
/** Size variant */
|
|
38
|
-
size?: 'sm' | 'md' | 'lg';
|
|
39
|
-
}
|
|
40
|
-
declare const SelectTrigger: React__default.ForwardRefExoticComponent<SelectTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
41
|
-
interface SelectContentProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
42
|
-
/** Positioning side */
|
|
43
|
-
side?: 'top' | 'bottom';
|
|
44
|
-
/** Side offset in pixels */
|
|
45
|
-
sideOffset?: number;
|
|
46
|
-
/** Alignment */
|
|
47
|
-
align?: 'start' | 'center' | 'end';
|
|
48
|
-
}
|
|
49
|
-
declare const SelectContent: React__default.ForwardRefExoticComponent<SelectContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
50
|
-
interface SelectItemProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
51
|
-
/** Value for this option */
|
|
52
|
-
value: string;
|
|
53
|
-
/** Display text */
|
|
54
|
-
children: React__default.ReactNode;
|
|
55
|
-
/** Whether the item is disabled */
|
|
56
|
-
disabled?: boolean;
|
|
57
|
-
}
|
|
58
|
-
declare const SelectItem: React__default.ForwardRefExoticComponent<SelectItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
59
|
-
interface SelectGroupProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
60
|
-
/** Group label */
|
|
61
|
-
label?: string;
|
|
62
|
-
}
|
|
63
|
-
declare const SelectGroup: React__default.ForwardRefExoticComponent<SelectGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
64
|
-
declare const SelectSeparator: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
65
|
-
|
|
66
|
-
export { Select as S, SelectContent as a, type SelectContentProps as b, SelectGroup as c, type SelectGroupProps as d, SelectItem as e, type SelectItemProps as f, type SelectProps as g, SelectSeparator as h, SelectTrigger as i, type SelectTriggerProps as j };
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Insight types define the semantic category of an insight.
|
|
3
|
-
* Each type constrains which charts can be used as evidence.
|
|
4
|
-
*/
|
|
5
|
-
type InsightType = 'performance-delta' | 'behavioral-correlation' | 'funnel-leakage' | 'audience-mismatch' | 'message-fatigue' | 'psychological-resonance' | 'timing-pattern' | 'segment-outperformance' | 'anomaly-detection' | 'competitive-benchmark';
|
|
6
|
-
/**
|
|
7
|
-
* Analytical states represent the data quality status of a component.
|
|
8
|
-
*/
|
|
9
|
-
type AnalyticalState = 'VALID' | 'INSUFFICIENT_SAMPLE' | 'LOW_CONFIDENCE' | 'PARTIAL_TIME_WINDOW' | 'DATA_SKEW_DETECTED' | 'CONFLICTING_SIGNALS' | 'INFERRED_NOT_OBSERVED' | 'STALE_DATA' | 'FIELD_MISSING' | 'CALCULATION_ERROR';
|
|
10
|
-
/**
|
|
11
|
-
* Report mode determines the level of detail shown.
|
|
12
|
-
*/
|
|
13
|
-
type ReportMode = 'executive' | 'analyst';
|
|
14
|
-
/**
|
|
15
|
-
* Configuration for report mode features.
|
|
16
|
-
*/
|
|
17
|
-
interface ReportModeConfig {
|
|
18
|
-
mode: ReportMode;
|
|
19
|
-
features: {
|
|
20
|
-
showMethodology: boolean;
|
|
21
|
-
showConfidenceScores: boolean;
|
|
22
|
-
showRawData: boolean;
|
|
23
|
-
showStatisticalTests: boolean;
|
|
24
|
-
chartDetailLevel: 'summary' | 'detailed';
|
|
25
|
-
maxInsightsShown: number;
|
|
26
|
-
allowDrilldown: boolean;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Confidence level thresholds and labels.
|
|
31
|
-
*/
|
|
32
|
-
type ConfidenceLevel = 'high' | 'moderate' | 'low' | 'insufficient';
|
|
33
|
-
interface ConfidenceThreshold {
|
|
34
|
-
level: ConfidenceLevel;
|
|
35
|
-
min: number;
|
|
36
|
-
max: number;
|
|
37
|
-
label: string;
|
|
38
|
-
color: string;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Data contract for analytical components.
|
|
42
|
-
*/
|
|
43
|
-
interface DataContract {
|
|
44
|
-
requiredFields: string[];
|
|
45
|
-
optionalFields: string[];
|
|
46
|
-
minimums: {
|
|
47
|
-
sampleSize: number;
|
|
48
|
-
completeness: number;
|
|
49
|
-
timeSpan?: number;
|
|
50
|
-
};
|
|
51
|
-
fallbackBehavior: FallbackBehavior;
|
|
52
|
-
}
|
|
53
|
-
type FallbackBehavior = {
|
|
54
|
-
type: 'hide';
|
|
55
|
-
} | {
|
|
56
|
-
type: 'disable';
|
|
57
|
-
message: string;
|
|
58
|
-
} | {
|
|
59
|
-
type: 'warn';
|
|
60
|
-
severity: 'low' | 'medium' | 'high';
|
|
61
|
-
} | {
|
|
62
|
-
type: 'substitute';
|
|
63
|
-
component: string;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Insight type contract defining allowed charts and requirements.
|
|
67
|
-
*/
|
|
68
|
-
interface InsightTypeContract {
|
|
69
|
-
type: InsightType;
|
|
70
|
-
allowedCharts: string[];
|
|
71
|
-
requiredFields: string[];
|
|
72
|
-
minSampleSize: number;
|
|
73
|
-
headlinePattern: string;
|
|
74
|
-
recommendationFormats: string[];
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Trend direction for metrics.
|
|
78
|
-
*/
|
|
79
|
-
type TrendDirection = 'up' | 'down' | 'neutral';
|
|
80
|
-
/**
|
|
81
|
-
* State details for DataStateIndicator.
|
|
82
|
-
*/
|
|
83
|
-
interface DataStateDetails {
|
|
84
|
-
sampleSize?: number;
|
|
85
|
-
requiredSize?: number;
|
|
86
|
-
confidence?: number;
|
|
87
|
-
missingFields?: string[];
|
|
88
|
-
staleDays?: number;
|
|
89
|
-
message?: string;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Chart types supported by the report engine.
|
|
93
|
-
*/
|
|
94
|
-
type ChartType = 'LineChart' | 'BarChart' | 'PieChart' | 'AreaChart' | 'FunnelChart' | 'HeatmapChart' | 'MBTIRadar' | 'MBTITypeGrid' | 'KeyMetric';
|
|
95
|
-
/**
|
|
96
|
-
* MBTI personality types.
|
|
97
|
-
*/
|
|
98
|
-
type MBTIType = 'INTJ' | 'INTP' | 'ENTJ' | 'ENTP' | 'INFJ' | 'INFP' | 'ENFJ' | 'ENFP' | 'ISTJ' | 'ISFJ' | 'ESTJ' | 'ESFJ' | 'ISTP' | 'ISFP' | 'ESTP' | 'ESFP';
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Chart intent defines the semantic purpose of visualization.
|
|
102
|
-
* This is the primary classifier that governs switching rules.
|
|
103
|
-
*/
|
|
104
|
-
type ChartIntent = 'trend' | 'comparison' | 'composition' | 'distribution' | 'relationship' | 'geo';
|
|
105
|
-
/**
|
|
106
|
-
* All supported chart types organized by intent.
|
|
107
|
-
*/
|
|
108
|
-
type TrendChartType = 'line' | 'smooth_line' | 'area' | 'stacked_area' | 'area_100pct';
|
|
109
|
-
type ComparisonChartType = 'bar' | 'column' | 'stacked_bar' | 'stacked_column' | 'column_100pct' | 'combo';
|
|
110
|
-
type CompositionChartType = 'pie' | 'donut' | 'treemap';
|
|
111
|
-
type DistributionChartType = 'histogram' | 'radar';
|
|
112
|
-
type RelationshipChartType = 'scatter' | 'bubble' | 'heatmap';
|
|
113
|
-
type GeoChartType = 'geo' | 'choropleth';
|
|
114
|
-
/**
|
|
115
|
-
* Union of all chart types
|
|
116
|
-
*/
|
|
117
|
-
type ChartTypeId = TrendChartType | ComparisonChartType | CompositionChartType | DistributionChartType | RelationshipChartType | GeoChartType | 'funnel' | 'waterfall' | 'timeline';
|
|
118
|
-
/**
|
|
119
|
-
* Chart phase classification
|
|
120
|
-
*/
|
|
121
|
-
type ChartPhase = 'mvp' | 'phase2' | 'phase3';
|
|
122
|
-
interface ChartTypeMetadata {
|
|
123
|
-
id: ChartTypeId;
|
|
124
|
-
name: string;
|
|
125
|
-
description: string;
|
|
126
|
-
intent: ChartIntent;
|
|
127
|
-
phase: ChartPhase;
|
|
128
|
-
contract: ChartDataContract;
|
|
129
|
-
switchableTo: ChartTypeId[];
|
|
130
|
-
supportsStacking: boolean;
|
|
131
|
-
supportsMultipleSeries: boolean;
|
|
132
|
-
requiresTimeAxis: boolean;
|
|
133
|
-
maxCategories?: number;
|
|
134
|
-
maxSlices?: number;
|
|
135
|
-
}
|
|
136
|
-
interface ChartDataContract {
|
|
137
|
-
requiredDimensions: number;
|
|
138
|
-
requiredMeasures: number;
|
|
139
|
-
minDataPoints: number;
|
|
140
|
-
idealDataPoints: number;
|
|
141
|
-
maxDataPoints?: number;
|
|
142
|
-
allowNegativeValues: boolean;
|
|
143
|
-
requireNonZeroTotal: boolean;
|
|
144
|
-
warningThresholds: {
|
|
145
|
-
tooManyCategories?: number;
|
|
146
|
-
imbalancedRatio?: number;
|
|
147
|
-
sparseData?: number;
|
|
148
|
-
};
|
|
149
|
-
fallback: ChartFallbackBehavior;
|
|
150
|
-
}
|
|
151
|
-
type ChartFallbackBehavior = {
|
|
152
|
-
type: 'hide';
|
|
153
|
-
} | {
|
|
154
|
-
type: 'show_kpi';
|
|
155
|
-
message: string;
|
|
156
|
-
} | {
|
|
157
|
-
type: 'aggregate';
|
|
158
|
-
strategy: 'other_bucket' | 'top_n';
|
|
159
|
-
} | {
|
|
160
|
-
type: 'warn';
|
|
161
|
-
message: string;
|
|
162
|
-
};
|
|
163
|
-
declare const CHART_REGISTRY: Record<ChartTypeId, ChartTypeMetadata>;
|
|
164
|
-
/**
|
|
165
|
-
* Maps intent to allowed chart types for switching.
|
|
166
|
-
* Users can ONLY switch within the same intent family.
|
|
167
|
-
*/
|
|
168
|
-
declare const INTENT_CHART_FAMILIES: Record<ChartIntent, ChartTypeId[]>;
|
|
169
|
-
/**
|
|
170
|
-
* Get allowed chart types for switching from a given type.
|
|
171
|
-
*/
|
|
172
|
-
declare function getAllowedSwitchTargets(currentType: ChartTypeId): ChartTypeId[];
|
|
173
|
-
/**
|
|
174
|
-
* Check if switching from one chart type to another is allowed.
|
|
175
|
-
*/
|
|
176
|
-
declare function canSwitchChart(from: ChartTypeId, to: ChartTypeId): boolean;
|
|
177
|
-
interface ChartValidationResult {
|
|
178
|
-
isValid: boolean;
|
|
179
|
-
warnings: string[];
|
|
180
|
-
errors: string[];
|
|
181
|
-
suggestedType?: ChartTypeId;
|
|
182
|
-
fallbackAction?: ChartFallbackBehavior;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Validate data against a chart's contract.
|
|
186
|
-
*/
|
|
187
|
-
declare function validateChartData(chartType: ChartTypeId, data: unknown[], dimensions: string[], measures: string[]): ChartValidationResult;
|
|
188
|
-
/**
|
|
189
|
-
* Get MVP charts for a given intent.
|
|
190
|
-
*/
|
|
191
|
-
declare function getMVPChartsForIntent(intent: ChartIntent): ChartTypeMetadata[];
|
|
192
|
-
/**
|
|
193
|
-
* Get the default chart type for an intent.
|
|
194
|
-
*/
|
|
195
|
-
declare function getDefaultChartForIntent(intent: ChartIntent): ChartTypeId;
|
|
196
|
-
/**
|
|
197
|
-
* Suggest the best chart type for given data characteristics.
|
|
198
|
-
*/
|
|
199
|
-
declare function suggestChartType(params: {
|
|
200
|
-
hasTimeAxis: boolean;
|
|
201
|
-
dimensionCount: number;
|
|
202
|
-
measureCount: number;
|
|
203
|
-
dataPointCount: number;
|
|
204
|
-
hasNegativeValues: boolean;
|
|
205
|
-
isSequential: boolean;
|
|
206
|
-
}): ChartTypeId;
|
|
207
|
-
|
|
208
|
-
export { type AnalyticalState as A, type ConfidenceThreshold as C, type DataStateDetails as D, type FallbackBehavior as F, type GeoChartType as G, type InsightType as I, type MBTIType as M, type ReportModeConfig as R, type TrendChartType as T, type InsightTypeContract as a, type ConfidenceLevel as b, type ReportMode as c, CHART_REGISTRY as d, type ChartDataContract as e, type ChartFallbackBehavior as f, type ChartIntent as g, type ChartPhase as h, type ChartType as i, type ChartTypeId as j, type ChartTypeMetadata as k, type ChartValidationResult as l, type ComparisonChartType as m, type CompositionChartType as n, type DataContract as o, type DistributionChartType as p, INTENT_CHART_FAMILIES as q, type RelationshipChartType as r, type TrendDirection as s, canSwitchChart as t, getAllowedSwitchTargets as u, getDefaultChartForIntent as v, getMVPChartsForIntent as w, suggestChartType as x, validateChartData as y };
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Insight types define the semantic category of an insight.
|
|
3
|
-
* Each type constrains which charts can be used as evidence.
|
|
4
|
-
*/
|
|
5
|
-
type InsightType = 'performance-delta' | 'behavioral-correlation' | 'funnel-leakage' | 'audience-mismatch' | 'message-fatigue' | 'psychological-resonance' | 'timing-pattern' | 'segment-outperformance' | 'anomaly-detection' | 'competitive-benchmark';
|
|
6
|
-
/**
|
|
7
|
-
* Analytical states represent the data quality status of a component.
|
|
8
|
-
*/
|
|
9
|
-
type AnalyticalState = 'VALID' | 'INSUFFICIENT_SAMPLE' | 'LOW_CONFIDENCE' | 'PARTIAL_TIME_WINDOW' | 'DATA_SKEW_DETECTED' | 'CONFLICTING_SIGNALS' | 'INFERRED_NOT_OBSERVED' | 'STALE_DATA' | 'FIELD_MISSING' | 'CALCULATION_ERROR';
|
|
10
|
-
/**
|
|
11
|
-
* Report mode determines the level of detail shown.
|
|
12
|
-
*/
|
|
13
|
-
type ReportMode = 'executive' | 'analyst';
|
|
14
|
-
/**
|
|
15
|
-
* Configuration for report mode features.
|
|
16
|
-
*/
|
|
17
|
-
interface ReportModeConfig {
|
|
18
|
-
mode: ReportMode;
|
|
19
|
-
features: {
|
|
20
|
-
showMethodology: boolean;
|
|
21
|
-
showConfidenceScores: boolean;
|
|
22
|
-
showRawData: boolean;
|
|
23
|
-
showStatisticalTests: boolean;
|
|
24
|
-
chartDetailLevel: 'summary' | 'detailed';
|
|
25
|
-
maxInsightsShown: number;
|
|
26
|
-
allowDrilldown: boolean;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Confidence level thresholds and labels.
|
|
31
|
-
*/
|
|
32
|
-
type ConfidenceLevel = 'high' | 'moderate' | 'low' | 'insufficient';
|
|
33
|
-
interface ConfidenceThreshold {
|
|
34
|
-
level: ConfidenceLevel;
|
|
35
|
-
min: number;
|
|
36
|
-
max: number;
|
|
37
|
-
label: string;
|
|
38
|
-
color: string;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Data contract for analytical components.
|
|
42
|
-
*/
|
|
43
|
-
interface DataContract {
|
|
44
|
-
requiredFields: string[];
|
|
45
|
-
optionalFields: string[];
|
|
46
|
-
minimums: {
|
|
47
|
-
sampleSize: number;
|
|
48
|
-
completeness: number;
|
|
49
|
-
timeSpan?: number;
|
|
50
|
-
};
|
|
51
|
-
fallbackBehavior: FallbackBehavior;
|
|
52
|
-
}
|
|
53
|
-
type FallbackBehavior = {
|
|
54
|
-
type: 'hide';
|
|
55
|
-
} | {
|
|
56
|
-
type: 'disable';
|
|
57
|
-
message: string;
|
|
58
|
-
} | {
|
|
59
|
-
type: 'warn';
|
|
60
|
-
severity: 'low' | 'medium' | 'high';
|
|
61
|
-
} | {
|
|
62
|
-
type: 'substitute';
|
|
63
|
-
component: string;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Insight type contract defining allowed charts and requirements.
|
|
67
|
-
*/
|
|
68
|
-
interface InsightTypeContract {
|
|
69
|
-
type: InsightType;
|
|
70
|
-
allowedCharts: string[];
|
|
71
|
-
requiredFields: string[];
|
|
72
|
-
minSampleSize: number;
|
|
73
|
-
headlinePattern: string;
|
|
74
|
-
recommendationFormats: string[];
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Trend direction for metrics.
|
|
78
|
-
*/
|
|
79
|
-
type TrendDirection = 'up' | 'down' | 'neutral';
|
|
80
|
-
/**
|
|
81
|
-
* State details for DataStateIndicator.
|
|
82
|
-
*/
|
|
83
|
-
interface DataStateDetails {
|
|
84
|
-
sampleSize?: number;
|
|
85
|
-
requiredSize?: number;
|
|
86
|
-
confidence?: number;
|
|
87
|
-
missingFields?: string[];
|
|
88
|
-
staleDays?: number;
|
|
89
|
-
message?: string;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Chart types supported by the report engine.
|
|
93
|
-
*/
|
|
94
|
-
type ChartType = 'LineChart' | 'BarChart' | 'PieChart' | 'AreaChart' | 'FunnelChart' | 'HeatmapChart' | 'MBTIRadar' | 'MBTITypeGrid' | 'KeyMetric';
|
|
95
|
-
/**
|
|
96
|
-
* MBTI personality types.
|
|
97
|
-
*/
|
|
98
|
-
type MBTIType = 'INTJ' | 'INTP' | 'ENTJ' | 'ENTP' | 'INFJ' | 'INFP' | 'ENFJ' | 'ENFP' | 'ISTJ' | 'ISFJ' | 'ESTJ' | 'ESFJ' | 'ISTP' | 'ISFP' | 'ESTP' | 'ESFP';
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Chart intent defines the semantic purpose of visualization.
|
|
102
|
-
* This is the primary classifier that governs switching rules.
|
|
103
|
-
*/
|
|
104
|
-
type ChartIntent = 'trend' | 'comparison' | 'composition' | 'distribution' | 'relationship' | 'geo';
|
|
105
|
-
/**
|
|
106
|
-
* All supported chart types organized by intent.
|
|
107
|
-
*/
|
|
108
|
-
type TrendChartType = 'line' | 'smooth_line' | 'area' | 'stacked_area' | 'area_100pct';
|
|
109
|
-
type ComparisonChartType = 'bar' | 'column' | 'stacked_bar' | 'stacked_column' | 'column_100pct' | 'combo';
|
|
110
|
-
type CompositionChartType = 'pie' | 'donut' | 'treemap';
|
|
111
|
-
type DistributionChartType = 'histogram' | 'radar';
|
|
112
|
-
type RelationshipChartType = 'scatter' | 'bubble' | 'heatmap';
|
|
113
|
-
type GeoChartType = 'geo' | 'choropleth';
|
|
114
|
-
/**
|
|
115
|
-
* Union of all chart types
|
|
116
|
-
*/
|
|
117
|
-
type ChartTypeId = TrendChartType | ComparisonChartType | CompositionChartType | DistributionChartType | RelationshipChartType | GeoChartType | 'funnel' | 'waterfall' | 'timeline';
|
|
118
|
-
/**
|
|
119
|
-
* Chart phase classification
|
|
120
|
-
*/
|
|
121
|
-
type ChartPhase = 'mvp' | 'phase2' | 'phase3';
|
|
122
|
-
interface ChartTypeMetadata {
|
|
123
|
-
id: ChartTypeId;
|
|
124
|
-
name: string;
|
|
125
|
-
description: string;
|
|
126
|
-
intent: ChartIntent;
|
|
127
|
-
phase: ChartPhase;
|
|
128
|
-
contract: ChartDataContract;
|
|
129
|
-
switchableTo: ChartTypeId[];
|
|
130
|
-
supportsStacking: boolean;
|
|
131
|
-
supportsMultipleSeries: boolean;
|
|
132
|
-
requiresTimeAxis: boolean;
|
|
133
|
-
maxCategories?: number;
|
|
134
|
-
maxSlices?: number;
|
|
135
|
-
}
|
|
136
|
-
interface ChartDataContract {
|
|
137
|
-
requiredDimensions: number;
|
|
138
|
-
requiredMeasures: number;
|
|
139
|
-
minDataPoints: number;
|
|
140
|
-
idealDataPoints: number;
|
|
141
|
-
maxDataPoints?: number;
|
|
142
|
-
allowNegativeValues: boolean;
|
|
143
|
-
requireNonZeroTotal: boolean;
|
|
144
|
-
warningThresholds: {
|
|
145
|
-
tooManyCategories?: number;
|
|
146
|
-
imbalancedRatio?: number;
|
|
147
|
-
sparseData?: number;
|
|
148
|
-
};
|
|
149
|
-
fallback: ChartFallbackBehavior;
|
|
150
|
-
}
|
|
151
|
-
type ChartFallbackBehavior = {
|
|
152
|
-
type: 'hide';
|
|
153
|
-
} | {
|
|
154
|
-
type: 'show_kpi';
|
|
155
|
-
message: string;
|
|
156
|
-
} | {
|
|
157
|
-
type: 'aggregate';
|
|
158
|
-
strategy: 'other_bucket' | 'top_n';
|
|
159
|
-
} | {
|
|
160
|
-
type: 'warn';
|
|
161
|
-
message: string;
|
|
162
|
-
};
|
|
163
|
-
declare const CHART_REGISTRY: Record<ChartTypeId, ChartTypeMetadata>;
|
|
164
|
-
/**
|
|
165
|
-
* Maps intent to allowed chart types for switching.
|
|
166
|
-
* Users can ONLY switch within the same intent family.
|
|
167
|
-
*/
|
|
168
|
-
declare const INTENT_CHART_FAMILIES: Record<ChartIntent, ChartTypeId[]>;
|
|
169
|
-
/**
|
|
170
|
-
* Get allowed chart types for switching from a given type.
|
|
171
|
-
*/
|
|
172
|
-
declare function getAllowedSwitchTargets(currentType: ChartTypeId): ChartTypeId[];
|
|
173
|
-
/**
|
|
174
|
-
* Check if switching from one chart type to another is allowed.
|
|
175
|
-
*/
|
|
176
|
-
declare function canSwitchChart(from: ChartTypeId, to: ChartTypeId): boolean;
|
|
177
|
-
interface ChartValidationResult {
|
|
178
|
-
isValid: boolean;
|
|
179
|
-
warnings: string[];
|
|
180
|
-
errors: string[];
|
|
181
|
-
suggestedType?: ChartTypeId;
|
|
182
|
-
fallbackAction?: ChartFallbackBehavior;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Validate data against a chart's contract.
|
|
186
|
-
*/
|
|
187
|
-
declare function validateChartData(chartType: ChartTypeId, data: unknown[], dimensions: string[], measures: string[]): ChartValidationResult;
|
|
188
|
-
/**
|
|
189
|
-
* Get MVP charts for a given intent.
|
|
190
|
-
*/
|
|
191
|
-
declare function getMVPChartsForIntent(intent: ChartIntent): ChartTypeMetadata[];
|
|
192
|
-
/**
|
|
193
|
-
* Get the default chart type for an intent.
|
|
194
|
-
*/
|
|
195
|
-
declare function getDefaultChartForIntent(intent: ChartIntent): ChartTypeId;
|
|
196
|
-
/**
|
|
197
|
-
* Suggest the best chart type for given data characteristics.
|
|
198
|
-
*/
|
|
199
|
-
declare function suggestChartType(params: {
|
|
200
|
-
hasTimeAxis: boolean;
|
|
201
|
-
dimensionCount: number;
|
|
202
|
-
measureCount: number;
|
|
203
|
-
dataPointCount: number;
|
|
204
|
-
hasNegativeValues: boolean;
|
|
205
|
-
isSequential: boolean;
|
|
206
|
-
}): ChartTypeId;
|
|
207
|
-
|
|
208
|
-
export { type AnalyticalState as A, type ConfidenceThreshold as C, type DataStateDetails as D, type FallbackBehavior as F, type GeoChartType as G, type InsightType as I, type MBTIType as M, type ReportModeConfig as R, type TrendChartType as T, type InsightTypeContract as a, type ConfidenceLevel as b, type ReportMode as c, CHART_REGISTRY as d, type ChartDataContract as e, type ChartFallbackBehavior as f, type ChartIntent as g, type ChartPhase as h, type ChartType as i, type ChartTypeId as j, type ChartTypeMetadata as k, type ChartValidationResult as l, type ComparisonChartType as m, type CompositionChartType as n, type DataContract as o, type DistributionChartType as p, INTENT_CHART_FAMILIES as q, type RelationshipChartType as r, type TrendDirection as s, canSwitchChart as t, getAllowedSwitchTargets as u, getDefaultChartForIntent as v, getMVPChartsForIntent as w, suggestChartType as x, validateChartData as y };
|