@soul-refiner/design-system 2.10.9-alpha → 2.10.10
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/components/input/responsive-text_area/responsive_text_area.js +1 -1
- package/dist/components/surfaces/comment/comment.js +3 -32
- package/dist/src/components/surfaces/comment/comment.d.ts +1 -4
- package/package.json +1 -1
- package/dist/components/custom/help_center/help_center-auth.js +0 -1
- package/dist/components/custom/help_center/help_center-customModal.js +0 -7
- package/dist/components/custom/help_center/help_center-defaultArticle.js +0 -60
- package/dist/components/custom/help_center/help_center-editable-content.js +0 -31
- package/dist/components/custom/help_center/help_center-mainPage.js +0 -32
- package/dist/components/custom/help_center/help_center-sidebar.js +0 -1
- package/dist/components/custom/help_center/help_center.js +0 -1
- package/dist/components/custom/help_center/help_center_articlle-list.js +0 -30
- package/dist/components/custom/help_center/help_center_categoryList.js +0 -55
- package/dist/components/custom/help_center/help_center_dataStore.js +0 -1
- package/dist/components/custom/help_center/help_center_layout.js +0 -64
- package/dist/components/custom/help_center/help_center_sub-category.js +0 -27
- package/dist/components/custom/help_center/types.js +0 -1
- package/dist/components/media/audio-player/progress-bar.js +0 -4
- package/dist/src/components/custom/help_center/help_center-auth.d.ts +0 -7
- package/dist/src/components/custom/help_center/help_center-customModal.d.ts +0 -4
- package/dist/src/components/custom/help_center/help_center-defaultArticle.d.ts +0 -15
- package/dist/src/components/custom/help_center/help_center-editable-content.d.ts +0 -7
- package/dist/src/components/custom/help_center/help_center-mainPage.d.ts +0 -3
- package/dist/src/components/custom/help_center/help_center-sidebar.d.ts +0 -3
- package/dist/src/components/custom/help_center/help_center.d.ts +0 -13
- package/dist/src/components/custom/help_center/help_center_articlle-list.d.ts +0 -7
- package/dist/src/components/custom/help_center/help_center_categoryList.d.ts +0 -6
- package/dist/src/components/custom/help_center/help_center_dataStore.d.ts +0 -4
- package/dist/src/components/custom/help_center/help_center_layout.d.ts +0 -3
- package/dist/src/components/custom/help_center/help_center_seedData.d.ts +0 -2
- package/dist/src/components/custom/help_center/help_center_sub-category.d.ts +0 -7
- package/dist/src/components/custom/help_center/index.d.ts +0 -1
- package/dist/src/components/custom/help_center/types.d.ts +0 -124
- package/dist/src/components/media/audio-player/progress-bar.d.ts +0 -14
- package/dist/src/utils/debounce.d.ts +0 -1
- package/dist/styles/output.css +0 -1790
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface DefaultArticlePageProps {
|
|
3
|
-
articleId: string;
|
|
4
|
-
title: string;
|
|
5
|
-
handleCreateCategory: (value: string) => void;
|
|
6
|
-
handleCreateArticle: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const HowCanWeHelpPage: React.FC;
|
|
9
|
-
export declare const DefaultArticlePage: React.FC<DefaultArticlePageProps>;
|
|
10
|
-
interface DefaultSubcategoryPageProps {
|
|
11
|
-
categoryId: string;
|
|
12
|
-
subcategoryId: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const DefaultSubcategoryPage: React.FC<DefaultSubcategoryPageProps>;
|
|
15
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Category, USER_ROLES } from './types';
|
|
3
|
-
interface HelpCenterProps {
|
|
4
|
-
initialData: {
|
|
5
|
-
categories: Category[];
|
|
6
|
-
userRole: (typeof USER_ROLES)[keyof typeof USER_ROLES];
|
|
7
|
-
};
|
|
8
|
-
onDataChange?: (data: {
|
|
9
|
-
categories: Category[];
|
|
10
|
-
}) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const HelpCenter: React.FC<HelpCenterProps>;
|
|
13
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { HelpCenterContextValue, HelpCenterProviderProps } from './types';
|
|
3
|
-
export declare const HelpCenterContext: React.Context<HelpCenterContextValue | undefined>;
|
|
4
|
-
export declare const HelpCenterProvider: React.FC<HelpCenterProviderProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HelpCenter } from './help_center';
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TElement } from '@udecode/plate';
|
|
3
|
-
import { IStyledComponent } from 'styled-components';
|
|
4
|
-
import { FastOmit } from 'styled-components/dist/types';
|
|
5
|
-
export interface Category {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
subcategories: Subcategory[];
|
|
9
|
-
}
|
|
10
|
-
export interface Subcategory {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
categoryId: string;
|
|
14
|
-
articles: Article[];
|
|
15
|
-
}
|
|
16
|
-
export interface WithPermissionProps {
|
|
17
|
-
role: (typeof USER_ROLES)[keyof typeof USER_ROLES];
|
|
18
|
-
permission: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const USER_ROLES: {
|
|
21
|
-
readonly ADMIN: "admin";
|
|
22
|
-
readonly EDITOR: "editor";
|
|
23
|
-
readonly VIEWER: "viewer";
|
|
24
|
-
};
|
|
25
|
-
export interface User {
|
|
26
|
-
id: string;
|
|
27
|
-
email: string;
|
|
28
|
-
role: (typeof USER_ROLES)[keyof typeof USER_ROLES];
|
|
29
|
-
}
|
|
30
|
-
export interface Category {
|
|
31
|
-
id: string;
|
|
32
|
-
name: string;
|
|
33
|
-
subcategories: Subcategory[];
|
|
34
|
-
}
|
|
35
|
-
export declare enum DropdownOptions {
|
|
36
|
-
RENAME = "Rename",
|
|
37
|
-
CREATE_SUBCATEGORY = "Create Sub-Category",
|
|
38
|
-
DELETE_CATEGORY = "Remove the Category",
|
|
39
|
-
CREATE_ARTICLES = "Create Articles",
|
|
40
|
-
DELETE_SUBCATEGORY = "Remove"
|
|
41
|
-
}
|
|
42
|
-
export interface CustomModalProps {
|
|
43
|
-
title: string;
|
|
44
|
-
isOpen: boolean;
|
|
45
|
-
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
46
|
-
initialValue?: string;
|
|
47
|
-
modalType: modalType;
|
|
48
|
-
submitButtonText?: string;
|
|
49
|
-
cancelButtonText?: string;
|
|
50
|
-
mainContent?: React.ReactNode;
|
|
51
|
-
headerContent?: React.ReactNode;
|
|
52
|
-
footerContent?: React.ReactNode;
|
|
53
|
-
onSubmit: (value: string) => void;
|
|
54
|
-
trigger: React.ReactNode;
|
|
55
|
-
}
|
|
56
|
-
export type modalType = 'create' | 'edit' | 'delete' | 'create-article-category' | 'edit-article' | 'edit-article-category' | 'delete-article-category' | 'edit-article-QA' | 'delete-article-QA' | 'articleQuestion';
|
|
57
|
-
export interface Subcategory {
|
|
58
|
-
id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
categoryId: string;
|
|
61
|
-
articles: Article[];
|
|
62
|
-
}
|
|
63
|
-
export interface ArticleCategory {
|
|
64
|
-
id: string;
|
|
65
|
-
title?: string;
|
|
66
|
-
articleId: string;
|
|
67
|
-
description?: string;
|
|
68
|
-
questions?: ArticleQuestion[];
|
|
69
|
-
}
|
|
70
|
-
export interface ArticleQuestion {
|
|
71
|
-
id: string;
|
|
72
|
-
articleCategoryId: string;
|
|
73
|
-
question?: string;
|
|
74
|
-
answer?: TElement[];
|
|
75
|
-
}
|
|
76
|
-
export interface Article {
|
|
77
|
-
id: string;
|
|
78
|
-
title: string;
|
|
79
|
-
content: ArticleCategory[];
|
|
80
|
-
categoryId: string;
|
|
81
|
-
subcategoryId: string;
|
|
82
|
-
}
|
|
83
|
-
export interface HelpCenterContextValue {
|
|
84
|
-
categories: Category[];
|
|
85
|
-
isLoading: boolean;
|
|
86
|
-
selectedArticle: Article | null;
|
|
87
|
-
isNewArticle: boolean;
|
|
88
|
-
selectedSubcategory: Subcategory | null;
|
|
89
|
-
error: string | null;
|
|
90
|
-
userRole: (typeof USER_ROLES)[keyof typeof USER_ROLES];
|
|
91
|
-
breadcrumbTrail: string[];
|
|
92
|
-
setSelectedSubcategory: React.Dispatch<React.SetStateAction<Subcategory | null>>;
|
|
93
|
-
setSelectedArticle: React.Dispatch<React.SetStateAction<Article | null>>;
|
|
94
|
-
setIsNewArticle: React.Dispatch<React.SetStateAction<boolean>>;
|
|
95
|
-
setBreadcrumbTrail: React.Dispatch<React.SetStateAction<string[]>>;
|
|
96
|
-
addCategory: (name: string) => void;
|
|
97
|
-
updateCategory: (id: string, name: string) => void;
|
|
98
|
-
deleteCategory: (id: string) => void;
|
|
99
|
-
addSubcategory: (categoryId: string, name: string) => void;
|
|
100
|
-
addArticleCategory: (categoryId: string, subcategoryId: string, articleId: string, newCategory: Omit<ArticleCategory, 'id'>) => void;
|
|
101
|
-
deleteArticleQuestion: (categoryId: string, subcategoryId: string, articleId: string, articleCategoryId: string, questionId: string) => void;
|
|
102
|
-
deleteArticleCategory: (categoryId: string, subcategoryId: string, articleId: string, articleCategoryId: string) => void;
|
|
103
|
-
updateArticleCategory: (categoryId: string, subcategoryId: string, articleId: string, articleCategoryId: string, updatedCategoryName: string) => void;
|
|
104
|
-
addArticleQuestion: (categoryId: string, subcategoryId: string, articleId: string, articleCategoryId: string, newQuestion: Omit<ArticleQuestion, 'id'>) => void;
|
|
105
|
-
updateArticleQuestion: (categoryId: string, subcategoryId: string, articleId: string, articleCategoryId: string, articleQuestionId: string, updatedQuestion: Omit<ArticleQuestion, 'id'>) => void;
|
|
106
|
-
updateSubcategory: (categoryId: string, subcategoryId: string, name: string) => void;
|
|
107
|
-
deleteSubcategory: (categoryId: string, subcategoryId: string) => void;
|
|
108
|
-
addArticle: (categoryId: string, subcategoryId: string, title: string, content: ArticleCategory[]) => string;
|
|
109
|
-
updateArticle: (categoryId: string, subcategoryId: string, articleId: string, title: string, content: ArticleCategory[]) => void;
|
|
110
|
-
deleteArticle: (categoryId: string, subcategoryId: string, articleId: string) => void;
|
|
111
|
-
}
|
|
112
|
-
export interface HelpCenterProviderProps extends HelpCenterProps {
|
|
113
|
-
children: React.ReactNode;
|
|
114
|
-
}
|
|
115
|
-
export interface HelpCenterProps {
|
|
116
|
-
initialData: {
|
|
117
|
-
categories: Category[];
|
|
118
|
-
userRole: (typeof USER_ROLES)[keyof typeof USER_ROLES];
|
|
119
|
-
};
|
|
120
|
-
onDataChange?: (data: {
|
|
121
|
-
categories: Category[];
|
|
122
|
-
}) => void;
|
|
123
|
-
}
|
|
124
|
-
export type StyledType = IStyledComponent<'web', FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface AudioProgressBarProps {
|
|
3
|
-
/**
|
|
4
|
-
* @param duration the total duration of the audio media in seconds
|
|
5
|
-
* */
|
|
6
|
-
duration: number;
|
|
7
|
-
/**
|
|
8
|
-
* @param progress the amount of the audio media listened to
|
|
9
|
-
* */
|
|
10
|
-
progress: number;
|
|
11
|
-
onSeek: (percent: number) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const AudioProgressBar: ({ duration, progress, onSeek, }: AudioProgressBarProps) => React.JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useDebounce: <T extends (...args: any[]) => void>(callback: T, delay: number) => T;
|