@intlayer/design-system 7.6.0-canary.1 → 8.0.0-canary.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/components/CopyToClipboard/index.mjs +12 -9
- package/dist/esm/components/CopyToClipboard/index.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +32 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +116 -14
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs +5 -0
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +11 -5
- package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
- package/dist/esm/components/Flags/Flag.mjs +5 -8
- package/dist/esm/components/Flags/Flag.mjs.map +1 -1
- package/dist/esm/components/MarkDownRender/MarkDownRender.mjs +1 -1
- package/dist/esm/components/MarkDownRender/MarkDownRender.mjs.map +1 -1
- package/dist/esm/components/MarkDownRender/index.mjs +2 -1
- package/dist/esm/components/MarkDownRender/processor-adapter.mjs +57 -0
- package/dist/esm/components/MarkDownRender/processor-adapter.mjs.map +1 -0
- package/dist/esm/components/MarkDownRender/processor.mjs +5 -5
- package/dist/esm/components/MarkDownRender/processor.mjs.map +1 -1
- package/dist/esm/components/Popover/static.mjs +12 -10
- package/dist/esm/components/Popover/static.mjs.map +1 -1
- package/dist/esm/components/RightDrawer/RightDrawer.mjs +4 -5
- package/dist/esm/components/RightDrawer/RightDrawer.mjs.map +1 -1
- package/dist/esm/components/RightDrawer/index.mjs +2 -2
- package/dist/esm/components/RightDrawer/useRightDrawer.mjs +65 -0
- package/dist/esm/components/RightDrawer/useRightDrawer.mjs.map +1 -0
- package/dist/esm/components/index.mjs +3 -2
- package/dist/esm/hooks/useScrollBlockage/index.mjs +1 -6
- package/dist/esm/hooks/useScrollBlockage/index.mjs.map +1 -1
- package/dist/esm/hooks/useScrollBlockage/useScrollBlockageStore.mjs +60 -31
- package/dist/esm/hooks/useScrollBlockage/useScrollBlockageStore.mjs.map +1 -1
- package/dist/types/components/Badge/index.d.ts +2 -2
- package/dist/types/components/Breadcrumb/breadcrumb.content.d.ts +3 -3
- package/dist/types/components/Breadcrumb/index.d.ts +2 -2
- package/dist/types/components/Browser/Browser.content.d.ts +17 -17
- package/dist/types/components/Browser/Browser.d.ts +2 -2
- package/dist/types/components/Browser/Browser.d.ts.map +1 -1
- package/dist/types/components/Button/Button.d.ts +7 -7
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +3 -3
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts.map +1 -1
- package/dist/types/components/Command/index.d.ts +16 -16
- package/dist/types/components/Command/index.d.ts.map +1 -1
- package/dist/types/components/Container/index.d.ts +10 -10
- package/dist/types/components/Container/index.d.ts.map +1 -1
- package/dist/types/components/CopyButton/CopyButton.content.d.ts +3 -3
- package/dist/types/components/CopyButton/CopyButton.content.d.ts.map +1 -1
- package/dist/types/components/CopyToClipboard/index.d.ts +18 -7
- package/dist/types/components/CopyToClipboard/index.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +25 -25
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts +9 -9
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +265 -48
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +33 -33
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.d.ts +6 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +25 -25
- package/dist/types/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +33 -33
- package/dist/types/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts +9 -9
- package/dist/types/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts +7 -7
- package/dist/types/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +5 -5
- package/dist/types/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +31 -31
- package/dist/types/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
- package/dist/types/components/ExpandCollapse/expandCollapse.content.d.ts +3 -3
- package/dist/types/components/Form/FormBase.d.ts +2 -2
- package/dist/types/components/Form/FormField.d.ts +2 -2
- package/dist/types/components/Form/FormItem.d.ts +2 -2
- package/dist/types/components/Form/FormItem.d.ts.map +1 -1
- package/dist/types/components/Form/elements/EditableFieldInputElement.d.ts +2 -2
- package/dist/types/components/Form/elements/EditableFieldTextAreaElement.d.ts +2 -2
- package/dist/types/components/Form/elements/EditableFieldTextAreaElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/FormElement.d.ts +2 -2
- package/dist/types/components/Form/elements/FormElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/MultiselectElement.d.ts +2 -2
- package/dist/types/components/Form/elements/MultiselectElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/OTPElement.d.ts +2 -2
- package/dist/types/components/Form/elements/OTPElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/SelectElement.d.ts +2 -2
- package/dist/types/components/Form/elements/SelectElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/SwitchSelectorElement.d.ts +2 -2
- package/dist/types/components/Form/elements/SwitchSelectorElement.d.ts.map +1 -1
- package/dist/types/components/IDE/CodeContext.d.ts +2 -2
- package/dist/types/components/IDE/CodeContext.d.ts.map +1 -1
- package/dist/types/components/IDE/code.content.d.ts +5 -5
- package/dist/types/components/IDE/copyCode.content.d.ts +5 -5
- package/dist/types/components/IDE/selectors.content.d.ts +13 -13
- package/dist/types/components/Input/Checkbox.d.ts +4 -4
- package/dist/types/components/Input/Checkbox.d.ts.map +1 -1
- package/dist/types/components/Input/Input.d.ts +3 -3
- package/dist/types/components/Input/Input.d.ts.map +1 -1
- package/dist/types/components/Input/OTPInput.d.ts +6 -6
- package/dist/types/components/Input/SearchInput.d.ts +2 -2
- package/dist/types/components/Link/Link.d.ts +5 -5
- package/dist/types/components/Loader/index.content.d.ts +3 -3
- package/dist/types/components/Loader/index.content.d.ts.map +1 -1
- package/dist/types/components/Loader/spinner.d.ts +2 -2
- package/dist/types/components/Loader/spinner.d.ts.map +1 -1
- package/dist/types/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts +17 -17
- package/dist/types/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts +13 -13
- package/dist/types/components/MarkDownRender/MarkDownRender.d.ts +1 -1
- package/dist/types/components/MarkDownRender/MarkDownRender.d.ts.map +1 -1
- package/dist/types/components/MarkDownRender/index.d.ts +2 -1
- package/dist/types/components/MarkDownRender/processor-adapter.d.ts +85 -0
- package/dist/types/components/MarkDownRender/processor-adapter.d.ts.map +1 -0
- package/dist/types/components/MaxWidthSmoother/index.d.ts +2 -2
- package/dist/types/components/Navbar/Burger.d.ts +2 -2
- package/dist/types/components/Navbar/Burger.d.ts.map +1 -1
- package/dist/types/components/Navbar/DesktopNavbar.d.ts +2 -2
- package/dist/types/components/Navbar/MobileNavbar.d.ts +2 -2
- package/dist/types/components/Navbar/MobileNavbar.d.ts.map +1 -1
- package/dist/types/components/Navbar/index.d.ts +2 -2
- package/dist/types/components/Pagination/Pagination.d.ts +4 -4
- package/dist/types/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/Pagination/pagination.content.d.ts +11 -11
- package/dist/types/components/Popover/static.d.ts +11 -9
- package/dist/types/components/Popover/static.d.ts.map +1 -1
- package/dist/types/components/RightDrawer/index.d.ts +2 -2
- package/dist/types/components/RightDrawer/rightDrawer.content.d.ts +5 -5
- package/dist/types/components/RightDrawer/useRightDrawer.d.ts +22 -0
- package/dist/types/components/RightDrawer/useRightDrawer.d.ts.map +1 -0
- package/dist/types/components/Select/Select.d.ts +3 -3
- package/dist/types/components/Select/Select.d.ts.map +1 -1
- package/dist/types/components/SocialNetworks/index.d.ts +2 -2
- package/dist/types/components/SocialNetworks/index.d.ts.map +1 -1
- package/dist/types/components/SwitchSelector/index.d.ts +7 -7
- package/dist/types/components/SwitchSelector/index.d.ts.map +1 -1
- package/dist/types/components/Tab/Tab.d.ts +6 -6
- package/dist/types/components/Tab/Tab.d.ts.map +1 -1
- package/dist/types/components/Tab/TabContext.d.ts +2 -2
- package/dist/types/components/Tab/TabContext.d.ts.map +1 -1
- package/dist/types/components/TabSelector/TabSelector.d.ts +5 -5
- package/dist/types/components/TabSelector/TabSelector.d.ts.map +1 -1
- package/dist/types/components/Table/table.content.d.ts +3 -3
- package/dist/types/components/Tag/index.d.ts +5 -5
- package/dist/types/components/Terminal/terminal.content.d.ts +5 -5
- package/dist/types/components/Terminal/terminal.content.d.ts.map +1 -1
- package/dist/types/components/Toaster/Toast.d.ts +2 -2
- package/dist/types/components/Toaster/Toast.d.ts.map +1 -1
- package/dist/types/components/Toaster/Toaster.d.ts +2 -2
- package/dist/types/components/Toaster/Toaster.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +3 -2
- package/dist/types/hooks/useDevice.d.ts.map +1 -1
- package/dist/types/hooks/useScrollBlockage/index.d.ts.map +1 -1
- package/dist/types/hooks/useScrollBlockage/useScrollBlockageStore.d.ts +14 -6
- package/dist/types/hooks/useScrollBlockage/useScrollBlockageStore.d.ts.map +1 -1
- package/package.json +21 -21
- package/dist/esm/components/RightDrawer/useRightDrawerStore.mjs +0 -87
- package/dist/esm/components/RightDrawer/useRightDrawerStore.mjs.map +0 -1
- package/dist/types/components/RightDrawer/useRightDrawerStore.d.ts +0 -116
- package/dist/types/components/RightDrawer/useRightDrawerStore.d.ts.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types448 from "@intlayer/types";
|
|
2
2
|
|
|
3
3
|
//#region src/components/IDE/selectors.content.d.ts
|
|
4
4
|
declare const selectorsContent: {
|
|
5
5
|
key: string;
|
|
6
6
|
content: {
|
|
7
7
|
packageManager: {
|
|
8
|
-
placeholder:
|
|
8
|
+
placeholder: _intlayer_types448.TypedNodeModel<_intlayer_types448.NodeType.Translation, {
|
|
9
9
|
en: string;
|
|
10
10
|
es: string;
|
|
11
11
|
pt: string;
|
|
@@ -25,7 +25,7 @@ declare const selectorsContent: {
|
|
|
25
25
|
vi: string;
|
|
26
26
|
uk: string;
|
|
27
27
|
}, {
|
|
28
|
-
nodeType: "translation" |
|
|
28
|
+
nodeType: "translation" | _intlayer_types448.NodeType.Translation;
|
|
29
29
|
} & {
|
|
30
30
|
translation: {
|
|
31
31
|
en: string;
|
|
@@ -48,7 +48,7 @@ declare const selectorsContent: {
|
|
|
48
48
|
uk: string;
|
|
49
49
|
};
|
|
50
50
|
}>;
|
|
51
|
-
label:
|
|
51
|
+
label: _intlayer_types448.TypedNodeModel<_intlayer_types448.NodeType.Translation, {
|
|
52
52
|
en: string;
|
|
53
53
|
es: string;
|
|
54
54
|
pt: string;
|
|
@@ -68,7 +68,7 @@ declare const selectorsContent: {
|
|
|
68
68
|
vi: string;
|
|
69
69
|
uk: string;
|
|
70
70
|
}, {
|
|
71
|
-
nodeType: "translation" |
|
|
71
|
+
nodeType: "translation" | _intlayer_types448.NodeType.Translation;
|
|
72
72
|
} & {
|
|
73
73
|
translation: {
|
|
74
74
|
en: string;
|
|
@@ -93,7 +93,7 @@ declare const selectorsContent: {
|
|
|
93
93
|
}>;
|
|
94
94
|
};
|
|
95
95
|
codeFormat: {
|
|
96
|
-
placeholder:
|
|
96
|
+
placeholder: _intlayer_types448.TypedNodeModel<_intlayer_types448.NodeType.Translation, {
|
|
97
97
|
en: string;
|
|
98
98
|
es: string;
|
|
99
99
|
pt: string;
|
|
@@ -113,7 +113,7 @@ declare const selectorsContent: {
|
|
|
113
113
|
vi: string;
|
|
114
114
|
uk: string;
|
|
115
115
|
}, {
|
|
116
|
-
nodeType: "translation" |
|
|
116
|
+
nodeType: "translation" | _intlayer_types448.NodeType.Translation;
|
|
117
117
|
} & {
|
|
118
118
|
translation: {
|
|
119
119
|
en: string;
|
|
@@ -136,7 +136,7 @@ declare const selectorsContent: {
|
|
|
136
136
|
uk: string;
|
|
137
137
|
};
|
|
138
138
|
}>;
|
|
139
|
-
label:
|
|
139
|
+
label: _intlayer_types448.TypedNodeModel<_intlayer_types448.NodeType.Translation, {
|
|
140
140
|
en: string;
|
|
141
141
|
es: string;
|
|
142
142
|
pt: string;
|
|
@@ -156,7 +156,7 @@ declare const selectorsContent: {
|
|
|
156
156
|
vi: string;
|
|
157
157
|
uk: string;
|
|
158
158
|
}, {
|
|
159
|
-
nodeType: "translation" |
|
|
159
|
+
nodeType: "translation" | _intlayer_types448.NodeType.Translation;
|
|
160
160
|
} & {
|
|
161
161
|
translation: {
|
|
162
162
|
en: string;
|
|
@@ -181,7 +181,7 @@ declare const selectorsContent: {
|
|
|
181
181
|
}>;
|
|
182
182
|
};
|
|
183
183
|
contentDeclarationFormat: {
|
|
184
|
-
placeholder:
|
|
184
|
+
placeholder: _intlayer_types448.TypedNodeModel<_intlayer_types448.NodeType.Translation, {
|
|
185
185
|
en: string;
|
|
186
186
|
es: string;
|
|
187
187
|
pt: string;
|
|
@@ -201,7 +201,7 @@ declare const selectorsContent: {
|
|
|
201
201
|
vi: string;
|
|
202
202
|
uk: string;
|
|
203
203
|
}, {
|
|
204
|
-
nodeType: "translation" |
|
|
204
|
+
nodeType: "translation" | _intlayer_types448.NodeType.Translation;
|
|
205
205
|
} & {
|
|
206
206
|
translation: {
|
|
207
207
|
en: string;
|
|
@@ -224,7 +224,7 @@ declare const selectorsContent: {
|
|
|
224
224
|
uk: string;
|
|
225
225
|
};
|
|
226
226
|
}>;
|
|
227
|
-
label:
|
|
227
|
+
label: _intlayer_types448.TypedNodeModel<_intlayer_types448.NodeType.Translation, {
|
|
228
228
|
en: string;
|
|
229
229
|
es: string;
|
|
230
230
|
pt: string;
|
|
@@ -244,7 +244,7 @@ declare const selectorsContent: {
|
|
|
244
244
|
vi: string;
|
|
245
245
|
uk: string;
|
|
246
246
|
}, {
|
|
247
|
-
nodeType: "translation" |
|
|
247
|
+
nodeType: "translation" | _intlayer_types448.NodeType.Translation;
|
|
248
248
|
} & {
|
|
249
249
|
translation: {
|
|
250
250
|
en: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { DetailedHTMLProps, FC, InputHTMLAttributes, ReactNode } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as class_variance_authority_types10 from "class-variance-authority/types";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Input/Checkbox.d.ts
|
|
6
6
|
declare const checkboxVariants: (props?: {
|
|
7
7
|
variant?: "default";
|
|
8
8
|
size?: "sm" | "md" | "lg";
|
|
9
|
-
color?: "
|
|
10
|
-
validationStyleEnabled?: "
|
|
11
|
-
} &
|
|
9
|
+
color?: "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "text" | "error" | "success" | "custom";
|
|
10
|
+
validationStyleEnabled?: "disabled" | "enabled";
|
|
11
|
+
} & class_variance_authority_types10.ClassProp) => string;
|
|
12
12
|
declare enum CheckboxSize {
|
|
13
13
|
SM = "sm",
|
|
14
14
|
MD = "md",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","names":[],"sources":["../../../../src/components/Input/Checkbox.tsx"],"sourcesContent":[],"mappings":";;;;;cASa,wBAqEY;;;EArEZ,KAAA,CAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","names":[],"sources":["../../../../src/components/Input/Checkbox.tsx"],"sourcesContent":[],"mappings":";;;;;cASa,wBAqEY;;;EArEZ,KAAA,CAAA,EAAA,SAAA,GA6DZ,WAAA,GAAA,aAAA,GAAA,SAAA,GAAA,OAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,SAAA,GAAA,QAAA;EAEW,sBAAY,CAAA,EAAA,UAAA,GAAA,SAAA;AAMxB,CAAA,GARC,gCAAA,CAAA,SAQwB,EAAA,GAAA,MAAA;AAab,aAnBA,YAAA;EAoB4B,EAAA,GAAA,IAAA;EAApB,EAAA,GAAA,IAAA;EAAuC,EAAA,GAAA,IAAA;;AAD/B,aAbhB,aAAA;EAmBF,OAAA,GAAA,SAAA;EAEc,SAAA,GAAA,WAAA;EAApB,WAAA,GAAA,aAAA;EADA,OAAA,GAAA,SAAA;EAIO,KAAA,GAAA,OAAA;EAAkB,IAAA,GAAA,MAAA;EACjB,IAAA,GAAA,MAAA;EAAmB,KAAA,GAAA,OAAA;EAAa,OAAA,GAAA,SAAA;EA8B/B,MAAA,GAAA,QAiBZ;;KA3DW,aAAA,GAAgB,KAC1B,kBAAkB,oBAAoB,mBAAmB;;;UAKjD;IACN,KACA,oBAAoB;SAGb,kBAAkB;UACjB,mBAAmB;;;cA8BlB,UAAU,GAAG"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DetailedHTMLProps, FC, InputHTMLAttributes } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as class_variance_authority_types11 from "class-variance-authority/types";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
|
|
5
5
|
//#region src/components/Input/Input.d.ts
|
|
6
6
|
declare const inputVariants: (props?: {
|
|
7
7
|
variant?: "default" | "invisible";
|
|
8
8
|
size?: "sm" | "md" | "lg";
|
|
9
|
-
validationStyleEnabled?: "
|
|
10
|
-
} &
|
|
9
|
+
validationStyleEnabled?: "disabled" | "enabled";
|
|
10
|
+
} & class_variance_authority_types11.ClassProp) => string;
|
|
11
11
|
declare enum InputVariant {
|
|
12
12
|
DEFAULT = "default",
|
|
13
13
|
INVISIBLE = "invisible",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","names":[],"sources":["../../../../src/components/Input/Input.tsx"],"sourcesContent":[],"mappings":";;;;;cAOa,qBAmDW;;;EAnDX,sBAiDZ,CAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","names":[],"sources":["../../../../src/components/Input/Input.tsx"],"sourcesContent":[],"mappings":";;;;;cAOa,qBAmDW;;;EAnDX,sBAiDZ,CAAA,EAAA,UAAA,GAAA,SAAA;AAED,CAAA,GAFC,gCAAA,CAAA,SAEuB,EAAA,GAAA,MAAA;AAKZ,aALA,YAAA;EAUA,OAAA,GAAA,SAAU;EACkB,SAAA,GAAA,WAAA;;AAAmB,aAN/C,SAAA;EAMV,EAAA,GAAA,IAAA;EADuB,EAAA,GAAA,IAAA;;AAKhB,KALG,UAAA,GAAa,IAKhB,CAJP,iBAIO,CAJW,mBAIX,CAJ+B,gBAI/B,CAAA,EAJkD,gBAIlD,CAAA,EAAA,MAAA,CAAA,GAAA;EAAL,sBAAA,CAAA,EAAA,OAAA;CAAI,GAAJ,IAAI,CAAC,YAAD,CAAA,OAAqB,aAArB,CAAA,EAAA,wBAAA,CAAA;AAEK,cAAA,KAAU,EAAH,EAAG,CAAA,UAAD,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ButtonProps } from "../Button/Button.js";
|
|
2
2
|
import "../Button/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react17 from "react";
|
|
4
4
|
import { ComponentProps, FC, InputHTMLAttributes, ReactNode, RefObject } from "react";
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
5
|
+
import * as class_variance_authority_types8 from "class-variance-authority/types";
|
|
6
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/Input/OTPInput.d.ts
|
|
9
9
|
type SlotProps = {
|
|
@@ -54,17 +54,17 @@ declare const usePasswordManagerBadge: ({
|
|
|
54
54
|
PWM_BADGE_SPACE_WIDTH: "40px";
|
|
55
55
|
};
|
|
56
56
|
declare const usePrevious: <T>(value: T) => T | undefined;
|
|
57
|
-
declare const OTPInputContext:
|
|
57
|
+
declare const OTPInputContext: react17.Context<RenderProps>;
|
|
58
58
|
declare const OTPInput: FC<OTPInputProps>;
|
|
59
59
|
type InputOTPProps = Omit<ComponentProps<typeof OTPInput>, 'children'>;
|
|
60
60
|
declare const inputSlotVariants: (props?: {
|
|
61
61
|
size?: "sm" | "md" | "lg" | "xl";
|
|
62
|
-
} &
|
|
62
|
+
} & class_variance_authority_types8.ClassProp) => string;
|
|
63
63
|
declare const InputOTP: FC<InputOTPProps>;
|
|
64
64
|
declare const InputOTPGroup: ({
|
|
65
65
|
className,
|
|
66
66
|
...props
|
|
67
|
-
}: ComponentProps<"div">) =>
|
|
67
|
+
}: ComponentProps<"div">) => react_jsx_runtime11.JSX.Element;
|
|
68
68
|
type InputOTPSlotProps = Omit<ButtonProps, 'variant' | 'label'> & {
|
|
69
69
|
index: number;
|
|
70
70
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { InputProps } from "./Input.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Input/SearchInput.d.ts
|
|
5
5
|
declare const SearchInput: ({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: InputProps) =>
|
|
8
|
+
}: InputProps) => react_jsx_runtime22.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { SearchInput };
|
|
11
11
|
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, DetailedHTMLProps, FC, ReactNode } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as class_variance_authority_types3 from "class-variance-authority/types";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import { LocalesValues } from "@intlayer/types";
|
|
5
5
|
|
|
@@ -54,11 +54,11 @@ declare enum LinkUnderlined {
|
|
|
54
54
|
}
|
|
55
55
|
declare const linkVariants: (props?: {
|
|
56
56
|
variant?: "default" | "invisible-link" | "hoverable" | "button" | "button-outlined";
|
|
57
|
-
roundedSize?: "
|
|
58
|
-
color?: "
|
|
59
|
-
size?: "
|
|
57
|
+
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "full";
|
|
58
|
+
color?: "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "text" | "text-inverse" | "error" | "success" | "custom";
|
|
59
|
+
size?: "sm" | "md" | "lg" | "xl" | "custom";
|
|
60
60
|
underlined?: boolean | LinkUnderlined.DEFAULT;
|
|
61
|
-
} &
|
|
61
|
+
} & class_variance_authority_types3.ClassProp) => string;
|
|
62
62
|
type LinkProps = DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & VariantProps<typeof linkVariants> & {
|
|
63
63
|
label: string;
|
|
64
64
|
isExternalLink?: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types67 from "@intlayer/types";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Loader/index.content.d.ts
|
|
4
4
|
declare const loaderContent: {
|
|
5
5
|
key: string;
|
|
6
6
|
content: {
|
|
7
|
-
label:
|
|
7
|
+
label: _intlayer_types67.TypedNodeModel<_intlayer_types67.NodeType.Translation, {
|
|
8
8
|
en: string;
|
|
9
9
|
'en-GB': string;
|
|
10
10
|
fr: string;
|
|
@@ -24,7 +24,7 @@ declare const loaderContent: {
|
|
|
24
24
|
vi: string;
|
|
25
25
|
uk: string;
|
|
26
26
|
}, {
|
|
27
|
-
nodeType: "translation" |
|
|
27
|
+
nodeType: "translation" | _intlayer_types67.NodeType.Translation;
|
|
28
28
|
} & {
|
|
29
29
|
translation: {
|
|
30
30
|
en: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.content.d.ts","names":[],"sources":["../../../../src/components/Loader/index.content.ts"],"sourcesContent":[],"mappings":";;;cAEa;;;IAAA,KAAA,
|
|
1
|
+
{"version":3,"file":"index.content.d.ts","names":[],"sources":["../../../../src/components/Loader/index.content.ts"],"sourcesContent":[],"mappings":";;;cAEa;;;IAAA,KAAA,kCA4BS,yCAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SVGProps } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Loader/spinner.d.ts
|
|
5
5
|
/**
|
|
@@ -64,7 +64,7 @@ type SpinnerProps = SVGProps<SVGSVGElement> & {
|
|
|
64
64
|
declare const Spinner: ({
|
|
65
65
|
className,
|
|
66
66
|
strokeWidth
|
|
67
|
-
}: SpinnerProps) =>
|
|
67
|
+
}: SpinnerProps) => react_jsx_runtime1.JSX.Element;
|
|
68
68
|
//#endregion
|
|
69
69
|
export { Spinner };
|
|
70
70
|
//# sourceMappingURL=spinner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.d.ts","names":[],"sources":["../../../../src/components/Loader/spinner.tsx"],"sourcesContent":[],"mappings":";;;;;;;AACsC,KAKjC,YAAA,GAAe,QAAH,CAAY,aAAA,CAAA,GAAA;EAyDhB;EAAW,WAAA,CAAA,EAAA,MAAA;CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAX;;;GAA2C,iBAAY,
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","names":[],"sources":["../../../../src/components/Loader/spinner.tsx"],"sourcesContent":[],"mappings":";;;;;;;AACsC,KAKjC,YAAA,GAAe,QAAH,CAAY,aAAA,CAAA,GAAA;EAyDhB;EAAW,WAAA,CAAA,EAAA,MAAA;CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAX;;;GAA2C,iBAAY,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types88 from "@intlayer/types";
|
|
2
2
|
|
|
3
3
|
//#region src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts
|
|
4
4
|
declare const localeSwitcherContent: {
|
|
5
5
|
key: string;
|
|
6
6
|
content: {
|
|
7
|
-
localeSwitcherLabel:
|
|
7
|
+
localeSwitcherLabel: _intlayer_types88.TypedNodeModel<_intlayer_types88.NodeType.Translation, {
|
|
8
8
|
en: string;
|
|
9
9
|
'en-GB': string;
|
|
10
10
|
fr: string;
|
|
@@ -24,7 +24,7 @@ declare const localeSwitcherContent: {
|
|
|
24
24
|
vi: string;
|
|
25
25
|
uk: string;
|
|
26
26
|
}, {
|
|
27
|
-
nodeType: "translation" |
|
|
27
|
+
nodeType: "translation" | _intlayer_types88.NodeType.Translation;
|
|
28
28
|
} & {
|
|
29
29
|
translation: {
|
|
30
30
|
en: string;
|
|
@@ -47,7 +47,7 @@ declare const localeSwitcherContent: {
|
|
|
47
47
|
uk: string;
|
|
48
48
|
};
|
|
49
49
|
}>;
|
|
50
|
-
languageListLabel:
|
|
50
|
+
languageListLabel: _intlayer_types88.TypedNodeModel<_intlayer_types88.NodeType.Translation, {
|
|
51
51
|
en: string;
|
|
52
52
|
'en-GB': string;
|
|
53
53
|
fr: string;
|
|
@@ -67,7 +67,7 @@ declare const localeSwitcherContent: {
|
|
|
67
67
|
vi: string;
|
|
68
68
|
uk: string;
|
|
69
69
|
}, {
|
|
70
|
-
nodeType: "translation" |
|
|
70
|
+
nodeType: "translation" | _intlayer_types88.NodeType.Translation;
|
|
71
71
|
} & {
|
|
72
72
|
translation: {
|
|
73
73
|
en: string;
|
|
@@ -90,7 +90,7 @@ declare const localeSwitcherContent: {
|
|
|
90
90
|
uk: string;
|
|
91
91
|
};
|
|
92
92
|
}>;
|
|
93
|
-
switchTo:
|
|
93
|
+
switchTo: _intlayer_types88.TypedNodeModel<_intlayer_types88.NodeType.Translation, {
|
|
94
94
|
en: string;
|
|
95
95
|
fr: string;
|
|
96
96
|
es: string;
|
|
@@ -110,7 +110,7 @@ declare const localeSwitcherContent: {
|
|
|
110
110
|
vi: string;
|
|
111
111
|
uk: string;
|
|
112
112
|
}, {
|
|
113
|
-
nodeType: "translation" |
|
|
113
|
+
nodeType: "translation" | _intlayer_types88.NodeType.Translation;
|
|
114
114
|
} & {
|
|
115
115
|
translation: {
|
|
116
116
|
en: string;
|
|
@@ -134,7 +134,7 @@ declare const localeSwitcherContent: {
|
|
|
134
134
|
};
|
|
135
135
|
}>;
|
|
136
136
|
searchInput: {
|
|
137
|
-
text:
|
|
137
|
+
text: _intlayer_types88.TypedNodeModel<_intlayer_types88.NodeType.Translation, {
|
|
138
138
|
en: string;
|
|
139
139
|
'en-GB': string;
|
|
140
140
|
fr: string;
|
|
@@ -154,7 +154,7 @@ declare const localeSwitcherContent: {
|
|
|
154
154
|
vi: string;
|
|
155
155
|
uk: string;
|
|
156
156
|
}, {
|
|
157
|
-
nodeType: "translation" |
|
|
157
|
+
nodeType: "translation" | _intlayer_types88.NodeType.Translation;
|
|
158
158
|
} & {
|
|
159
159
|
translation: {
|
|
160
160
|
en: string;
|
|
@@ -177,7 +177,7 @@ declare const localeSwitcherContent: {
|
|
|
177
177
|
uk: string;
|
|
178
178
|
};
|
|
179
179
|
}>;
|
|
180
|
-
placeholder:
|
|
180
|
+
placeholder: _intlayer_types88.TypedNodeModel<_intlayer_types88.NodeType.Translation, {
|
|
181
181
|
en: string;
|
|
182
182
|
'en-GB': string;
|
|
183
183
|
fr: string;
|
|
@@ -197,7 +197,7 @@ declare const localeSwitcherContent: {
|
|
|
197
197
|
vi: string;
|
|
198
198
|
uk: string;
|
|
199
199
|
}, {
|
|
200
|
-
nodeType: "translation" |
|
|
200
|
+
nodeType: "translation" | _intlayer_types88.NodeType.Translation;
|
|
201
201
|
} & {
|
|
202
202
|
translation: {
|
|
203
203
|
en: string;
|
|
@@ -220,7 +220,7 @@ declare const localeSwitcherContent: {
|
|
|
220
220
|
uk: string;
|
|
221
221
|
};
|
|
222
222
|
}>;
|
|
223
|
-
ariaLabel:
|
|
223
|
+
ariaLabel: _intlayer_types88.TypedNodeModel<_intlayer_types88.NodeType.Translation, {
|
|
224
224
|
en: string;
|
|
225
225
|
'en-GB': string;
|
|
226
226
|
fr: string;
|
|
@@ -240,7 +240,7 @@ declare const localeSwitcherContent: {
|
|
|
240
240
|
vi: string;
|
|
241
241
|
uk: string;
|
|
242
242
|
}, {
|
|
243
|
-
nodeType: "translation" |
|
|
243
|
+
nodeType: "translation" | _intlayer_types88.NodeType.Translation;
|
|
244
244
|
} & {
|
|
245
245
|
translation: {
|
|
246
246
|
en: string;
|
|
@@ -265,7 +265,7 @@ declare const localeSwitcherContent: {
|
|
|
265
265
|
}>;
|
|
266
266
|
};
|
|
267
267
|
seeAllLocalesSwitch: {
|
|
268
|
-
true:
|
|
268
|
+
true: _intlayer_types88.TypedNodeModel<_intlayer_types88.NodeType.Translation, {
|
|
269
269
|
en: string;
|
|
270
270
|
'en-GB': string;
|
|
271
271
|
fr: string;
|
|
@@ -285,7 +285,7 @@ declare const localeSwitcherContent: {
|
|
|
285
285
|
vi: string;
|
|
286
286
|
uk: string;
|
|
287
287
|
}, {
|
|
288
|
-
nodeType: "translation" |
|
|
288
|
+
nodeType: "translation" | _intlayer_types88.NodeType.Translation;
|
|
289
289
|
} & {
|
|
290
290
|
translation: {
|
|
291
291
|
en: string;
|
|
@@ -308,7 +308,7 @@ declare const localeSwitcherContent: {
|
|
|
308
308
|
uk: string;
|
|
309
309
|
};
|
|
310
310
|
}>;
|
|
311
|
-
false:
|
|
311
|
+
false: _intlayer_types88.TypedNodeModel<_intlayer_types88.NodeType.Translation, {
|
|
312
312
|
en: string;
|
|
313
313
|
'en-GB': string;
|
|
314
314
|
fr: string;
|
|
@@ -328,7 +328,7 @@ declare const localeSwitcherContent: {
|
|
|
328
328
|
vi: string;
|
|
329
329
|
uk: string;
|
|
330
330
|
}, {
|
|
331
|
-
nodeType: "translation" |
|
|
331
|
+
nodeType: "translation" | _intlayer_types88.NodeType.Translation;
|
|
332
332
|
} & {
|
|
333
333
|
translation: {
|
|
334
334
|
en: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types70 from "@intlayer/types";
|
|
2
2
|
|
|
3
3
|
//#region src/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts
|
|
4
4
|
declare const localeSwitcherContent: {
|
|
5
5
|
key: string;
|
|
6
6
|
content: {
|
|
7
|
-
localeSwitcherLabel:
|
|
7
|
+
localeSwitcherLabel: _intlayer_types70.TypedNodeModel<_intlayer_types70.NodeType.Translation, {
|
|
8
8
|
en: string;
|
|
9
9
|
'en-GB': string;
|
|
10
10
|
fr: string;
|
|
@@ -24,7 +24,7 @@ declare const localeSwitcherContent: {
|
|
|
24
24
|
vi: string;
|
|
25
25
|
uk: string;
|
|
26
26
|
}, {
|
|
27
|
-
nodeType: "translation" |
|
|
27
|
+
nodeType: "translation" | _intlayer_types70.NodeType.Translation;
|
|
28
28
|
} & {
|
|
29
29
|
translation: {
|
|
30
30
|
en: string;
|
|
@@ -47,7 +47,7 @@ declare const localeSwitcherContent: {
|
|
|
47
47
|
uk: string;
|
|
48
48
|
};
|
|
49
49
|
}>;
|
|
50
|
-
languageListLabel:
|
|
50
|
+
languageListLabel: _intlayer_types70.TypedNodeModel<_intlayer_types70.NodeType.Translation, {
|
|
51
51
|
en: string;
|
|
52
52
|
'en-GB': string;
|
|
53
53
|
fr: string;
|
|
@@ -67,7 +67,7 @@ declare const localeSwitcherContent: {
|
|
|
67
67
|
vi: string;
|
|
68
68
|
uk: string;
|
|
69
69
|
}, {
|
|
70
|
-
nodeType: "translation" |
|
|
70
|
+
nodeType: "translation" | _intlayer_types70.NodeType.Translation;
|
|
71
71
|
} & {
|
|
72
72
|
translation: {
|
|
73
73
|
en: string;
|
|
@@ -90,7 +90,7 @@ declare const localeSwitcherContent: {
|
|
|
90
90
|
uk: string;
|
|
91
91
|
};
|
|
92
92
|
}>;
|
|
93
|
-
switchTo:
|
|
93
|
+
switchTo: _intlayer_types70.TypedNodeModel<_intlayer_types70.NodeType.Translation, {
|
|
94
94
|
en: string;
|
|
95
95
|
fr: string;
|
|
96
96
|
es: string;
|
|
@@ -110,7 +110,7 @@ declare const localeSwitcherContent: {
|
|
|
110
110
|
vi: string;
|
|
111
111
|
uk: string;
|
|
112
112
|
}, {
|
|
113
|
-
nodeType: "translation" |
|
|
113
|
+
nodeType: "translation" | _intlayer_types70.NodeType.Translation;
|
|
114
114
|
} & {
|
|
115
115
|
translation: {
|
|
116
116
|
en: string;
|
|
@@ -134,7 +134,7 @@ declare const localeSwitcherContent: {
|
|
|
134
134
|
};
|
|
135
135
|
}>;
|
|
136
136
|
searchInput: {
|
|
137
|
-
text:
|
|
137
|
+
text: _intlayer_types70.TypedNodeModel<_intlayer_types70.NodeType.Translation, {
|
|
138
138
|
en: string;
|
|
139
139
|
'en-GB': string;
|
|
140
140
|
fr: string;
|
|
@@ -154,7 +154,7 @@ declare const localeSwitcherContent: {
|
|
|
154
154
|
vi: string;
|
|
155
155
|
uk: string;
|
|
156
156
|
}, {
|
|
157
|
-
nodeType: "translation" |
|
|
157
|
+
nodeType: "translation" | _intlayer_types70.NodeType.Translation;
|
|
158
158
|
} & {
|
|
159
159
|
translation: {
|
|
160
160
|
en: string;
|
|
@@ -177,7 +177,7 @@ declare const localeSwitcherContent: {
|
|
|
177
177
|
uk: string;
|
|
178
178
|
};
|
|
179
179
|
}>;
|
|
180
|
-
placeholder:
|
|
180
|
+
placeholder: _intlayer_types70.TypedNodeModel<_intlayer_types70.NodeType.Translation, {
|
|
181
181
|
en: string;
|
|
182
182
|
'en-GB': string;
|
|
183
183
|
fr: string;
|
|
@@ -197,7 +197,7 @@ declare const localeSwitcherContent: {
|
|
|
197
197
|
vi: string;
|
|
198
198
|
uk: string;
|
|
199
199
|
}, {
|
|
200
|
-
nodeType: "translation" |
|
|
200
|
+
nodeType: "translation" | _intlayer_types70.NodeType.Translation;
|
|
201
201
|
} & {
|
|
202
202
|
translation: {
|
|
203
203
|
en: string;
|
|
@@ -220,7 +220,7 @@ declare const localeSwitcherContent: {
|
|
|
220
220
|
uk: string;
|
|
221
221
|
};
|
|
222
222
|
}>;
|
|
223
|
-
ariaLabel:
|
|
223
|
+
ariaLabel: _intlayer_types70.TypedNodeModel<_intlayer_types70.NodeType.Translation, {
|
|
224
224
|
en: string;
|
|
225
225
|
'en-GB': string;
|
|
226
226
|
fr: string;
|
|
@@ -240,7 +240,7 @@ declare const localeSwitcherContent: {
|
|
|
240
240
|
vi: string;
|
|
241
241
|
uk: string;
|
|
242
242
|
}, {
|
|
243
|
-
nodeType: "translation" |
|
|
243
|
+
nodeType: "translation" | _intlayer_types70.NodeType.Translation;
|
|
244
244
|
} & {
|
|
245
245
|
translation: {
|
|
246
246
|
en: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkDownRender.d.ts","names":[],"sources":["../../../../src/components/MarkDownRender/MarkDownRender.tsx"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"MarkDownRender.d.ts","names":[],"sources":["../../../../src/components/MarkDownRender/MarkDownRender.tsx"],"sourcesContent":[],"mappings":";;;;;KAiBK,qBAAA;;EAAA,UAAA,CAAA,EAAA,OAAA;EAsMQ,MAAA,CAAA,EAnMF,aAkYV;YAjYW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkMC,kBAAkB,GAAG"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { MarkdownProcessor, MarkdownProcessorOptions, Overrides as CoreOverrides, ParseState, ParserResult, RuleOutput, RuleType, State, compiler, sanitizer as defaultSanitizer, slugify as defaultSlugify } from "./processor-adapter.js";
|
|
1
2
|
import { MarkdownRenderer } from "./MarkDownRender.js";
|
|
2
|
-
export { MarkdownRenderer };
|
|
3
|
+
export { MarkdownProcessor, type MarkdownProcessorOptions, MarkdownRenderer, type CoreOverrides as Overrides, type ParseState, type ParserResult, type RuleOutput, RuleType, type State, compiler, defaultSanitizer as sanitizer, defaultSlugify as slugify };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { FC, HTMLAttributes, JSX, ReactNode, createElement } from "react";
|
|
2
|
+
import { Overrides as CoreOverrides, ParseState, ParserResult, RenderRuleHook, RuleOutput, RuleType, sanitizer as defaultSanitizer, slugify as defaultSlugify } from "@intlayer/core";
|
|
3
|
+
|
|
4
|
+
//#region src/components/MarkDownRender/processor-adapter.d.ts
|
|
5
|
+
|
|
6
|
+
type HTMLTags = keyof JSX.IntrinsicElements;
|
|
7
|
+
type State = ParseState;
|
|
8
|
+
/**
|
|
9
|
+
* Backward-compatible MarkdownProcessorOptions type.
|
|
10
|
+
* Maps to the core library's options while maintaining the existing API.
|
|
11
|
+
*/
|
|
12
|
+
type MarkdownProcessorOptions = Partial<{
|
|
13
|
+
/**
|
|
14
|
+
* Ultimate control over the output of all rendered JSX.
|
|
15
|
+
*/
|
|
16
|
+
createElement: (tag: Parameters<typeof createElement>[0], props: JSX.IntrinsicAttributes, ...children: ReactNode[]) => ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* The library automatically generates an anchor tag for bare URLs included in the markdown
|
|
19
|
+
* document, but this behavior can be disabled if desired.
|
|
20
|
+
*/
|
|
21
|
+
disableAutoLink: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Disable the compiler's best-effort transcription of provided raw HTML
|
|
24
|
+
* into JSX-equivalent.
|
|
25
|
+
*/
|
|
26
|
+
disableParsingRawHTML: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Forces the compiler to have space between hash sign and the header text.
|
|
29
|
+
*/
|
|
30
|
+
enforceAtxHeadings: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Forces the compiler to always output content with a block-level wrapper.
|
|
33
|
+
*/
|
|
34
|
+
forceBlock: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Forces the compiler to always output content with an inline wrapper.
|
|
37
|
+
*/
|
|
38
|
+
forceInline: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Forces the compiler to wrap results, even if there is only a single child.
|
|
41
|
+
*/
|
|
42
|
+
forceWrapper: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Supply additional HTML entity: unicode replacement mappings.
|
|
45
|
+
*/
|
|
46
|
+
namedCodesToUnicode: {
|
|
47
|
+
[key: string]: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Selectively control the output of particular HTML tags.
|
|
51
|
+
*/
|
|
52
|
+
overrides: CoreOverrides;
|
|
53
|
+
/**
|
|
54
|
+
* Allows for full control over rendering of particular rules.
|
|
55
|
+
*/
|
|
56
|
+
renderRule: RenderRuleHook;
|
|
57
|
+
/**
|
|
58
|
+
* Override the built-in sanitizer function for URLs.
|
|
59
|
+
*/
|
|
60
|
+
sanitizer: (value: string, tag: HTMLTags, attribute: string) => string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Override normalization of non-URI-safe characters for anchor linking.
|
|
63
|
+
*/
|
|
64
|
+
slugify: (input: string) => string;
|
|
65
|
+
/**
|
|
66
|
+
* Declare the type of the wrapper to be used when there are multiple children.
|
|
67
|
+
*/
|
|
68
|
+
wrapper: any | null;
|
|
69
|
+
}>;
|
|
70
|
+
/**
|
|
71
|
+
* Compile markdown to React elements.
|
|
72
|
+
* Maintains backward compatibility with the original API.
|
|
73
|
+
*/
|
|
74
|
+
declare const compiler: (markdown?: string, options?: MarkdownProcessorOptions) => JSX.Element;
|
|
75
|
+
/**
|
|
76
|
+
* React component that renders markdown to JSX.
|
|
77
|
+
* Backward compatible with the original MarkdownProcessor component.
|
|
78
|
+
*/
|
|
79
|
+
declare const MarkdownProcessor: FC<Omit<HTMLAttributes<Element>, 'children'> & {
|
|
80
|
+
children: string;
|
|
81
|
+
options?: MarkdownProcessorOptions;
|
|
82
|
+
}>;
|
|
83
|
+
//#endregion
|
|
84
|
+
export { MarkdownProcessor, MarkdownProcessorOptions, type CoreOverrides as Overrides, type ParseState, type ParserResult, type RuleOutput, RuleType, type State, compiler, defaultSanitizer as sanitizer, defaultSlugify as slugify };
|
|
85
|
+
//# sourceMappingURL=processor-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processor-adapter.d.ts","names":[],"sources":["../../../../src/components/MarkDownRender/processor-adapter.tsx"],"sourcesContent":[],"mappings":";;;;;KAgDK,QAAA,GAiES,MAjEQ,GAAA,CAAI,iBAiEZ;KA/DT,KAAA,GAAQ,UAoEqB;;;AAuClC;AAwDA;AACsB,KA9JV,wBAAA,GAA2B,OA8JjB,CAAA;EAAf;;;EADyB,aAAA,EAAA,CAAA,GAAA,EAxJvB,UAwJuB,CAAA,OAxJL,aAwJK,CAAA,CAAA,CAAA,CAAA,EAAA,KAAA,EAvJrB,GAAA,CAAI,mBAuJiB,EAAA,GAAA,QAAA,EAtJf,SAsJe,EAAA,EAAA,GArJzB,SAqJyB;EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAzGrB;;;;cAKC;;;;kCAKoB;;;;;;;;;;;;;;cAuCrB,wCAEF,6BACR,GAAA,CAAI;;;;;cAqDM,mBAAmB,GAC9B,KAAK,eAAe;;YAER"}
|