@amityco/ui-kit-open-source 4.18.0 → 4.20.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 +48 -48
- package/dist/index.css +1 -1
- package/dist/index.d.mts +20 -4
- package/dist/index.d.ts +20 -4
- package/dist/index.js +183 -183
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +6 -4
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?: {
|
|
@@ -216,8 +226,14 @@ interface LivestreamChatMessageComposerProps {
|
|
|
216
226
|
community?: Amity.Community | null;
|
|
217
227
|
isPendingPost?: boolean;
|
|
218
228
|
isPlayer?: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* The channel is still being fetched (e.g. event live chat loads after the
|
|
231
|
+
* stage). Render the compose bar in a disabled placeholder state so the UI
|
|
232
|
+
* matches the loaded layout instead of collapsing to nothing.
|
|
233
|
+
*/
|
|
234
|
+
isChannelPending?: boolean;
|
|
219
235
|
}
|
|
220
|
-
declare const LivestreamChatMessageComposer: ({ pageId, channelId, disabled, community, isPendingPost, isPlayer, }: LivestreamChatMessageComposerProps) => react_jsx_runtime.JSX.Element;
|
|
236
|
+
declare const LivestreamChatMessageComposer: ({ pageId, channelId, disabled, community, isPendingPost, isPlayer, isChannelPending, }: LivestreamChatMessageComposerProps) => react_jsx_runtime.JSX.Element;
|
|
221
237
|
|
|
222
238
|
type CreateLivestreamPageProps = {
|
|
223
239
|
targetType: 'community' | 'user';
|
|
@@ -374,7 +390,7 @@ type UserRelationshipPageProps = {
|
|
|
374
390
|
};
|
|
375
391
|
declare const UserRelationshipPage: FC<UserRelationshipPageProps>;
|
|
376
392
|
|
|
377
|
-
type NotificationAlignment = 'fullscreen' | 'withSidebar' | 'fixed' | 'live-chat' | 'livestreamWithChat';
|
|
393
|
+
type NotificationAlignment = 'fullscreen' | 'withSidebar' | 'fixed' | 'live-chat' | 'livestreamWithChat' | 'with-composer';
|
|
378
394
|
|
|
379
395
|
interface PageBehavior {
|
|
380
396
|
AmityStoryViewPageBehavior?: {
|
|
@@ -1078,7 +1094,7 @@ interface ReactionListProps$1 {
|
|
|
1078
1094
|
referenceType: Amity.ReactableType;
|
|
1079
1095
|
customReferenceType?: string;
|
|
1080
1096
|
}
|
|
1081
|
-
declare const ReactionList: (
|
|
1097
|
+
declare const ReactionList: (props: ReactionListProps$1) => react_jsx_runtime.JSX.Element;
|
|
1082
1098
|
|
|
1083
1099
|
interface ReactionListProps {
|
|
1084
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?: {
|
|
@@ -216,8 +226,14 @@ interface LivestreamChatMessageComposerProps {
|
|
|
216
226
|
community?: Amity.Community | null;
|
|
217
227
|
isPendingPost?: boolean;
|
|
218
228
|
isPlayer?: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* The channel is still being fetched (e.g. event live chat loads after the
|
|
231
|
+
* stage). Render the compose bar in a disabled placeholder state so the UI
|
|
232
|
+
* matches the loaded layout instead of collapsing to nothing.
|
|
233
|
+
*/
|
|
234
|
+
isChannelPending?: boolean;
|
|
219
235
|
}
|
|
220
|
-
declare const LivestreamChatMessageComposer: ({ pageId, channelId, disabled, community, isPendingPost, isPlayer, }: LivestreamChatMessageComposerProps) => react_jsx_runtime.JSX.Element;
|
|
236
|
+
declare const LivestreamChatMessageComposer: ({ pageId, channelId, disabled, community, isPendingPost, isPlayer, isChannelPending, }: LivestreamChatMessageComposerProps) => react_jsx_runtime.JSX.Element;
|
|
221
237
|
|
|
222
238
|
type CreateLivestreamPageProps = {
|
|
223
239
|
targetType: 'community' | 'user';
|
|
@@ -374,7 +390,7 @@ type UserRelationshipPageProps = {
|
|
|
374
390
|
};
|
|
375
391
|
declare const UserRelationshipPage: FC<UserRelationshipPageProps>;
|
|
376
392
|
|
|
377
|
-
type NotificationAlignment = 'fullscreen' | 'withSidebar' | 'fixed' | 'live-chat' | 'livestreamWithChat';
|
|
393
|
+
type NotificationAlignment = 'fullscreen' | 'withSidebar' | 'fixed' | 'live-chat' | 'livestreamWithChat' | 'with-composer';
|
|
378
394
|
|
|
379
395
|
interface PageBehavior {
|
|
380
396
|
AmityStoryViewPageBehavior?: {
|
|
@@ -1078,7 +1094,7 @@ interface ReactionListProps$1 {
|
|
|
1078
1094
|
referenceType: Amity.ReactableType;
|
|
1079
1095
|
customReferenceType?: string;
|
|
1080
1096
|
}
|
|
1081
|
-
declare const ReactionList: (
|
|
1097
|
+
declare const ReactionList: (props: ReactionListProps$1) => react_jsx_runtime.JSX.Element;
|
|
1082
1098
|
|
|
1083
1099
|
interface ReactionListProps {
|
|
1084
1100
|
referenceId: string;
|