@amityco/ui-kit-open-source 4.19.1 → 4.21.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/dist/esm/index.css +1 -1
- package/dist/esm/index.js +47 -47
- package/dist/index.css +1 -1
- package/dist/index.d.mts +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +183 -183
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -54,10 +54,17 @@ type ConfigurableThemeValue = {
|
|
|
54
54
|
base_shade2_color: string;
|
|
55
55
|
base_shade3_color: string;
|
|
56
56
|
base_shade4_color: string;
|
|
57
|
-
base_shade5_color: string;
|
|
58
57
|
alert_color: string;
|
|
59
58
|
background_color: string;
|
|
60
59
|
base_inverse_color: string;
|
|
60
|
+
[key: string]: string;
|
|
61
|
+
};
|
|
62
|
+
type DesignTokens = {
|
|
63
|
+
alias: Record<string, string>;
|
|
64
|
+
semantic: Record<string, {
|
|
65
|
+
light?: string;
|
|
66
|
+
dark?: string;
|
|
67
|
+
}>;
|
|
61
68
|
};
|
|
62
69
|
type Theme = {
|
|
63
70
|
light: ConfigurableThemeValue;
|
|
@@ -74,6 +81,8 @@ type DefaultConfig = {
|
|
|
74
81
|
customizations?: {
|
|
75
82
|
[key: string]: GetConfigReturnValue;
|
|
76
83
|
};
|
|
84
|
+
/** Alias/Semantic token maps (read-only default; not customer-overridable in practice). */
|
|
85
|
+
design_tokens?: DesignTokens;
|
|
77
86
|
};
|
|
78
87
|
|
|
79
88
|
type NetworkConfig = {
|
|
@@ -92,6 +101,7 @@ interface Config {
|
|
|
92
101
|
dark?: Theme['dark'];
|
|
93
102
|
};
|
|
94
103
|
excludes?: string[];
|
|
104
|
+
design_tokens?: DesignTokens;
|
|
95
105
|
message_reactions?: AmityReactionType[];
|
|
96
106
|
social_reactions?: AmityReactionType[];
|
|
97
107
|
customizations?: {
|
|
@@ -380,7 +390,7 @@ type UserRelationshipPageProps = {
|
|
|
380
390
|
};
|
|
381
391
|
declare const UserRelationshipPage: FC<UserRelationshipPageProps>;
|
|
382
392
|
|
|
383
|
-
type NotificationAlignment = 'fullscreen' | 'withSidebar' | 'fixed' | 'live-chat' | 'livestreamWithChat';
|
|
393
|
+
type NotificationAlignment = 'fullscreen' | 'withSidebar' | 'fixed' | 'live-chat' | 'livestreamWithChat' | 'with-composer';
|
|
384
394
|
|
|
385
395
|
interface PageBehavior {
|
|
386
396
|
AmityStoryViewPageBehavior?: {
|
|
@@ -1084,7 +1094,7 @@ interface ReactionListProps$1 {
|
|
|
1084
1094
|
referenceType: Amity.ReactableType;
|
|
1085
1095
|
customReferenceType?: string;
|
|
1086
1096
|
}
|
|
1087
|
-
declare const ReactionList: (
|
|
1097
|
+
declare const ReactionList: (props: ReactionListProps$1) => react_jsx_runtime.JSX.Element;
|
|
1088
1098
|
|
|
1089
1099
|
interface ReactionListProps {
|
|
1090
1100
|
referenceId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -54,10 +54,17 @@ type ConfigurableThemeValue = {
|
|
|
54
54
|
base_shade2_color: string;
|
|
55
55
|
base_shade3_color: string;
|
|
56
56
|
base_shade4_color: string;
|
|
57
|
-
base_shade5_color: string;
|
|
58
57
|
alert_color: string;
|
|
59
58
|
background_color: string;
|
|
60
59
|
base_inverse_color: string;
|
|
60
|
+
[key: string]: string;
|
|
61
|
+
};
|
|
62
|
+
type DesignTokens = {
|
|
63
|
+
alias: Record<string, string>;
|
|
64
|
+
semantic: Record<string, {
|
|
65
|
+
light?: string;
|
|
66
|
+
dark?: string;
|
|
67
|
+
}>;
|
|
61
68
|
};
|
|
62
69
|
type Theme = {
|
|
63
70
|
light: ConfigurableThemeValue;
|
|
@@ -74,6 +81,8 @@ type DefaultConfig = {
|
|
|
74
81
|
customizations?: {
|
|
75
82
|
[key: string]: GetConfigReturnValue;
|
|
76
83
|
};
|
|
84
|
+
/** Alias/Semantic token maps (read-only default; not customer-overridable in practice). */
|
|
85
|
+
design_tokens?: DesignTokens;
|
|
77
86
|
};
|
|
78
87
|
|
|
79
88
|
type NetworkConfig = {
|
|
@@ -92,6 +101,7 @@ interface Config {
|
|
|
92
101
|
dark?: Theme['dark'];
|
|
93
102
|
};
|
|
94
103
|
excludes?: string[];
|
|
104
|
+
design_tokens?: DesignTokens;
|
|
95
105
|
message_reactions?: AmityReactionType[];
|
|
96
106
|
social_reactions?: AmityReactionType[];
|
|
97
107
|
customizations?: {
|
|
@@ -380,7 +390,7 @@ type UserRelationshipPageProps = {
|
|
|
380
390
|
};
|
|
381
391
|
declare const UserRelationshipPage: FC<UserRelationshipPageProps>;
|
|
382
392
|
|
|
383
|
-
type NotificationAlignment = 'fullscreen' | 'withSidebar' | 'fixed' | 'live-chat' | 'livestreamWithChat';
|
|
393
|
+
type NotificationAlignment = 'fullscreen' | 'withSidebar' | 'fixed' | 'live-chat' | 'livestreamWithChat' | 'with-composer';
|
|
384
394
|
|
|
385
395
|
interface PageBehavior {
|
|
386
396
|
AmityStoryViewPageBehavior?: {
|
|
@@ -1084,7 +1094,7 @@ interface ReactionListProps$1 {
|
|
|
1084
1094
|
referenceType: Amity.ReactableType;
|
|
1085
1095
|
customReferenceType?: string;
|
|
1086
1096
|
}
|
|
1087
|
-
declare const ReactionList: (
|
|
1097
|
+
declare const ReactionList: (props: ReactionListProps$1) => react_jsx_runtime.JSX.Element;
|
|
1088
1098
|
|
|
1089
1099
|
interface ReactionListProps {
|
|
1090
1100
|
referenceId: string;
|