@amityco/ulta-ui-kit 1.0.0-beta.16 → 1.0.0-beta.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/dist/esm/index.css +1 -6
- package/dist/esm/index.js +878 -873
- package/dist/index.css +1 -6
- package/dist/index.d.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +953 -948
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +5 -4
package/dist/index.d.mts
CHANGED
|
@@ -29,6 +29,11 @@ type PostRendererProps = {
|
|
|
29
29
|
};
|
|
30
30
|
type PostRendererConfigType = Record<ValueOf<typeof PostContentType> | string, (props: PostRendererProps) => ReactNode>;
|
|
31
31
|
|
|
32
|
+
interface UltaConfigContextProps {
|
|
33
|
+
faqCommunityId: string;
|
|
34
|
+
bestPracticeCommunityId: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
32
37
|
interface UiKitProviderProps {
|
|
33
38
|
apiKey: string;
|
|
34
39
|
apiRegion: string;
|
|
@@ -64,8 +69,9 @@ interface UiKitProviderProps {
|
|
|
64
69
|
onDisconnected?: () => void;
|
|
65
70
|
pageBehavior?: Record<string, unknown>;
|
|
66
71
|
getAuthToken?: () => Promise<string>;
|
|
72
|
+
ultaConfig: UltaConfigContextProps;
|
|
67
73
|
}
|
|
68
|
-
declare const UiKitProvider: ({ apiKey, apiRegion, apiEndpoint, userId, displayName, customComponents, postRendererConfig, theme, children, socialCommunityCreationButtonVisible, actionHandlers, onConnectionStatusChange, onDisconnected, getAuthToken, }: UiKitProviderProps) => React.JSX.Element;
|
|
74
|
+
declare const UiKitProvider: ({ apiKey, apiRegion, apiEndpoint, userId, displayName, customComponents, postRendererConfig, theme, children, socialCommunityCreationButtonVisible, actionHandlers, onConnectionStatusChange, onDisconnected, getAuthToken, ultaConfig, }: UiKitProviderProps) => React.JSX.Element;
|
|
69
75
|
|
|
70
76
|
interface FeedProps {
|
|
71
77
|
className?: string;
|
|
@@ -237,7 +243,7 @@ declare const PostContainer: styled_components_dist_types.IStyledComponentBase<"
|
|
|
237
243
|
}) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
238
244
|
|
|
239
245
|
type Mentioned = {
|
|
240
|
-
userId
|
|
246
|
+
userId?: string;
|
|
241
247
|
length: number;
|
|
242
248
|
index: number;
|
|
243
249
|
type: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,11 @@ type PostRendererProps = {
|
|
|
29
29
|
};
|
|
30
30
|
type PostRendererConfigType = Record<ValueOf<typeof PostContentType> | string, (props: PostRendererProps) => ReactNode>;
|
|
31
31
|
|
|
32
|
+
interface UltaConfigContextProps {
|
|
33
|
+
faqCommunityId: string;
|
|
34
|
+
bestPracticeCommunityId: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
32
37
|
interface UiKitProviderProps {
|
|
33
38
|
apiKey: string;
|
|
34
39
|
apiRegion: string;
|
|
@@ -64,8 +69,9 @@ interface UiKitProviderProps {
|
|
|
64
69
|
onDisconnected?: () => void;
|
|
65
70
|
pageBehavior?: Record<string, unknown>;
|
|
66
71
|
getAuthToken?: () => Promise<string>;
|
|
72
|
+
ultaConfig: UltaConfigContextProps;
|
|
67
73
|
}
|
|
68
|
-
declare const UiKitProvider: ({ apiKey, apiRegion, apiEndpoint, userId, displayName, customComponents, postRendererConfig, theme, children, socialCommunityCreationButtonVisible, actionHandlers, onConnectionStatusChange, onDisconnected, getAuthToken, }: UiKitProviderProps) => React.JSX.Element;
|
|
74
|
+
declare const UiKitProvider: ({ apiKey, apiRegion, apiEndpoint, userId, displayName, customComponents, postRendererConfig, theme, children, socialCommunityCreationButtonVisible, actionHandlers, onConnectionStatusChange, onDisconnected, getAuthToken, ultaConfig, }: UiKitProviderProps) => React.JSX.Element;
|
|
69
75
|
|
|
70
76
|
interface FeedProps {
|
|
71
77
|
className?: string;
|
|
@@ -237,7 +243,7 @@ declare const PostContainer: styled_components_dist_types.IStyledComponentBase<"
|
|
|
237
243
|
}) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
238
244
|
|
|
239
245
|
type Mentioned = {
|
|
240
|
-
userId
|
|
246
|
+
userId?: string;
|
|
241
247
|
length: number;
|
|
242
248
|
index: number;
|
|
243
249
|
type: string;
|