@appquality/unguess-design-system 3.1.65 → 3.1.67-bookmarks
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/CHANGELOG.md +31 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +557 -355
- package/build/stories/chat/_types.d.ts +5 -1
- package/build/stories/chat/context/chatContext.d.ts +2 -2
- package/build/stories/chat/parts/extensions.d.ts +1 -1
- package/build/stories/highlight/_types.d.ts +36 -0
- package/build/stories/highlight/index.d.ts +10 -0
- package/build/stories/highlight/index.stories.d.ts +16 -0
- package/build/stories/player/_types.d.ts +11 -0
- package/build/stories/player/index.stories.d.ts +1 -2
- package/build/stories/player/parts/bookmark.d.ts +2 -0
- package/build/stories/player/parts/controls.d.ts +5 -2
- package/build/stories/player/parts/controlsCenterGroup.d.ts +4 -1
- package/build/stories/profile-modal/_types.d.ts +16 -0
- package/build/stories/profile-modal/{UserContainer.d.ts → components/UserContainer.d.ts} +1 -1
- package/build/stories/profile-modal/{menuItem.d.ts → components/menuItem.d.ts} +1 -1
- package/build/stories/profile-modal/{previousMenuButton.d.ts → components/previousMenuButton.d.ts} +1 -1
- package/build/stories/profile-modal/{helpMenuItem.d.ts → items/helpMenuItem.d.ts} +1 -1
- package/build/stories/profile-modal/{languageMenuItem.d.ts → items/languageMenuItem.d.ts} +1 -1
- package/build/stories/profile-modal/items/settingsMenuItem.d.ts +21 -0
- package/package.json +3 -2
- package/build/stories/chat/parts/editorButton.d.ts +0 -5
- /package/build/stories/profile-modal/{menuItemIcon.d.ts → components/menuItemIcon.d.ts} +0 -0
|
@@ -4,10 +4,11 @@ type validationStatus = "success" | "warning" | "error";
|
|
|
4
4
|
export type SuggestedUser = {
|
|
5
5
|
id: number;
|
|
6
6
|
name: string;
|
|
7
|
+
email: string;
|
|
7
8
|
};
|
|
8
9
|
export interface ChatEditorArgs extends Partial<EditorOptions> {
|
|
9
10
|
placeholderOptions?: Partial<PlaceholderOptions>;
|
|
10
|
-
|
|
11
|
+
hasFloatingMenu?: boolean;
|
|
11
12
|
hasButtonsMenu?: boolean;
|
|
12
13
|
bubbleOptions?: any;
|
|
13
14
|
author: Author;
|
|
@@ -17,6 +18,9 @@ export interface ChatEditorArgs extends Partial<EditorOptions> {
|
|
|
17
18
|
italic?: string;
|
|
18
19
|
mention?: string;
|
|
19
20
|
};
|
|
21
|
+
mention?: {
|
|
22
|
+
noResults?: string;
|
|
23
|
+
};
|
|
20
24
|
};
|
|
21
25
|
}
|
|
22
26
|
export interface Author {
|
|
@@ -7,7 +7,7 @@ export type ChatContextType = {
|
|
|
7
7
|
setEditor: React.Dispatch<React.SetStateAction<Editor | undefined>>;
|
|
8
8
|
mentionableUsers: (props: {
|
|
9
9
|
query: string;
|
|
10
|
-
}) =>
|
|
10
|
+
}) => SuggestedUser[];
|
|
11
11
|
};
|
|
12
12
|
export declare const ChatContext: React.Context<ChatContextType | null>;
|
|
13
13
|
export declare const ChatContextProvider: ({ onSave, setMentionableUsers, children, }: {
|
|
@@ -15,6 +15,6 @@ export declare const ChatContextProvider: ({ onSave, setMentionableUsers, childr
|
|
|
15
15
|
children: React.ReactNode;
|
|
16
16
|
setMentionableUsers: (props: {
|
|
17
17
|
query: string;
|
|
18
|
-
}) =>
|
|
18
|
+
}) => SuggestedUser[];
|
|
19
19
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export declare const useChatContext: () => ChatContextType;
|
|
@@ -3,6 +3,6 @@ import { SuggestedUser } from "../_types";
|
|
|
3
3
|
export declare const editorExtensions: ({ placeholderOptions, mentionableUsers, }: {
|
|
4
4
|
mentionableUsers: (props: {
|
|
5
5
|
query: string;
|
|
6
|
-
}) =>
|
|
6
|
+
}) => SuggestedUser[];
|
|
7
7
|
placeholderOptions?: Partial<PlaceholderOptions> | undefined;
|
|
8
8
|
}) => (import("@tiptap/react").Extension<import("@tiptap/extension-typography").TypographyOptions, any> | import("@tiptap/react").Mark<import("@tiptap/extension-link").LinkOptions, any> | import("@tiptap/react").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/react").Extension<PlaceholderOptions, any> | import("@tiptap/react").Extension<import("@tiptap/extension-character-count").CharacterCountOptions, import("@tiptap/extension-character-count").CharacterCountStorage> | import("@tiptap/react").Node<import("@tiptap/extension-mention").MentionOptions, any>)[];
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ISpanProps } from "@zendeskgarden/react-typography";
|
|
2
|
+
export interface HighlightArgs {
|
|
3
|
+
/**
|
|
4
|
+
* Applies a font color. Use [PALETTE](/components/palette#palette) colors
|
|
5
|
+
* when possible. Accepts all hex values.
|
|
6
|
+
*/
|
|
7
|
+
hue?: string;
|
|
8
|
+
/** Updates the element's HTML tag */
|
|
9
|
+
tag?: any;
|
|
10
|
+
/** Applies bold font style. Font weight is inherited by default. */
|
|
11
|
+
isBold?: boolean;
|
|
12
|
+
/** Renders with monospace font */
|
|
13
|
+
isMonospace?: boolean;
|
|
14
|
+
/** Adjusts the font size. By default font size is medium */
|
|
15
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl";
|
|
16
|
+
handleSelection?: (part: {
|
|
17
|
+
from: number;
|
|
18
|
+
to: number;
|
|
19
|
+
text: string;
|
|
20
|
+
}) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface Observation {
|
|
23
|
+
id: number;
|
|
24
|
+
start: number;
|
|
25
|
+
end: number;
|
|
26
|
+
backgroundColor?: string;
|
|
27
|
+
color?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface WordProps extends ISpanProps {
|
|
30
|
+
start: number;
|
|
31
|
+
end: number;
|
|
32
|
+
currentTime?: number;
|
|
33
|
+
observations?: Observation[];
|
|
34
|
+
/** Adjusts the font size. By default font size is medium */
|
|
35
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl";
|
|
36
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HighlightArgs, WordProps } from "./_types";
|
|
2
|
+
import { PropsWithChildren } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Use Highlight to use highlight interation on any text element
|
|
5
|
+
*/
|
|
6
|
+
declare const Highlight: {
|
|
7
|
+
(props: PropsWithChildren<HighlightArgs>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Word: (props: WordProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
};
|
|
10
|
+
export { Highlight };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HighlightArgs } from "./_types";
|
|
2
|
+
interface StoryArgs extends HighlightArgs {
|
|
3
|
+
words: {
|
|
4
|
+
start: number;
|
|
5
|
+
end: number;
|
|
6
|
+
word: string;
|
|
7
|
+
speaker: number;
|
|
8
|
+
}[];
|
|
9
|
+
currentTime: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
12
|
+
export declare const VideoSync: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
13
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, HighlightArgs & {
|
|
14
|
+
children?: import("react").ReactNode;
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -3,6 +3,17 @@ export interface PlayerArgs extends HTMLAttributes<HTMLVideoElement> {
|
|
|
3
3
|
url: string;
|
|
4
4
|
start?: number;
|
|
5
5
|
end?: number;
|
|
6
|
+
enablePipOnScroll?: boolean;
|
|
7
|
+
onCutHandler?: (time: number) => void;
|
|
8
|
+
isCutting?: boolean;
|
|
9
|
+
bookmarks?: IBookmark[];
|
|
10
|
+
}
|
|
11
|
+
export interface IBookmark {
|
|
12
|
+
start: number;
|
|
13
|
+
end?: number;
|
|
14
|
+
hue?: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
onClick?: () => void;
|
|
6
17
|
}
|
|
7
18
|
export interface WrapperProps {
|
|
8
19
|
isPlaying?: boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PlayerArgs } from "./_types";
|
|
3
2
|
interface PlayerStoryArgs extends PlayerArgs {
|
|
4
|
-
url: string;
|
|
5
3
|
}
|
|
6
4
|
export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PlayerStoryArgs>;
|
|
7
5
|
export declare const Streaming: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PlayerStoryArgs>;
|
|
6
|
+
export declare const WithBookmarks: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PlayerStoryArgs>;
|
|
8
7
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, PlayerArgs & import("react").RefAttributes<HTMLVideoElement>>;
|
|
9
8
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { WrapperProps } from "../_types";
|
|
2
|
+
import { IBookmark, WrapperProps } from "../_types";
|
|
3
3
|
export declare const ControlsWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, WrapperProps>>;
|
|
4
4
|
export declare const ControlsBar: import("styled-components").IStyledComponent<"web", {
|
|
5
5
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
@@ -268,6 +268,9 @@ export declare const ControlsBar: import("styled-components").IStyledComponent<"
|
|
|
268
268
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
269
269
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
270
270
|
}>;
|
|
271
|
-
export declare const Controls: ({ container, }: {
|
|
271
|
+
export declare const Controls: ({ container, onCutHandler, bookmarks, isCutting, }: {
|
|
272
272
|
container: HTMLDivElement | null;
|
|
273
|
+
onCutHandler?: ((time: number) => void) | undefined;
|
|
274
|
+
bookmarks?: IBookmark[] | undefined;
|
|
275
|
+
isCutting?: boolean | undefined;
|
|
273
276
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
export declare const ControlsGroupCenter: (
|
|
1
|
+
export declare const ControlsGroupCenter: ({ onCutHandler, isCutting, }: {
|
|
2
|
+
onCutHandler?: ((time: number) => void) | undefined;
|
|
3
|
+
isCutting?: boolean | undefined;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -47,4 +47,20 @@ export interface UserMenuArgs extends LiHTMLAttributes<HTMLLIElement> {
|
|
|
47
47
|
onLogout: () => void;
|
|
48
48
|
onCopyEmail?: () => void;
|
|
49
49
|
chatSupport?: boolean;
|
|
50
|
+
settingValue?: number;
|
|
51
|
+
i18n?: {
|
|
52
|
+
settingsTitle?: string;
|
|
53
|
+
settingsIntroText?: string;
|
|
54
|
+
settingsOutroText?: {
|
|
55
|
+
paragraph_1: string;
|
|
56
|
+
paragraph_2?: string;
|
|
57
|
+
paragraph_3?: string;
|
|
58
|
+
};
|
|
59
|
+
settingsToggle?: {
|
|
60
|
+
title: string;
|
|
61
|
+
on: string;
|
|
62
|
+
off: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
onSetSettings: (value: number) => void;
|
|
50
66
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { UserProfileProps } from "
|
|
1
|
+
import { UserProfileProps } from "../_types";
|
|
2
2
|
export declare const UserContainer: (props: UserProfileProps) => import("react/jsx-runtime").JSX.Element;
|
package/build/stories/profile-modal/{previousMenuButton.d.ts → components/previousMenuButton.d.ts}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ButtonArgs } from "
|
|
1
|
+
import { ButtonArgs } from "../../buttons/button/_types";
|
|
2
2
|
export declare const PreviousButton: (props: ButtonArgs) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MenuItemProps } from "../_types";
|
|
2
|
+
interface SettingsProps extends MenuItemProps {
|
|
3
|
+
settingValue?: number;
|
|
4
|
+
onSetSettings?: (value: number) => void;
|
|
5
|
+
i18n?: {
|
|
6
|
+
settingsTitle?: string;
|
|
7
|
+
settingsIntroText?: string;
|
|
8
|
+
settingsOutroText?: {
|
|
9
|
+
paragraph_1?: string;
|
|
10
|
+
paragraph_2?: string;
|
|
11
|
+
paragraph_3?: string;
|
|
12
|
+
};
|
|
13
|
+
settingsToggle?: {
|
|
14
|
+
title: string;
|
|
15
|
+
on: string;
|
|
16
|
+
off: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare const SettingsItem: (props: SettingsProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appquality/unguess-design-system",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.67-bookmarks",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/AppQuality/unguess-design-system#readme",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@appquality/stream-player": "^1.0.
|
|
28
|
+
"@appquality/stream-player": "^1.0.6",
|
|
29
29
|
"@nivo/bar": "^0.80.0",
|
|
30
30
|
"@nivo/bullet": "^0.80.0",
|
|
31
31
|
"@nivo/core": "^0.80.0",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@babel/preset-react": "^7.18.6",
|
|
74
74
|
"@babel/preset-typescript": "^7.21.5",
|
|
75
75
|
"@rollup/plugin-image": "^3.0.2",
|
|
76
|
+
"@storybook/addon-a11y": "^7.6.10",
|
|
76
77
|
"@storybook/addon-essentials": "^7.0.9",
|
|
77
78
|
"@storybook/addon-interactions": "^7.0.9",
|
|
78
79
|
"@storybook/addon-links": "^7.0.9",
|
|
File without changes
|