@commercetools-uikit/localized-rich-text-input 16.11.0 → 16.12.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/commercetools-uikit-localized-rich-text-input.cjs.dev.js +1 -1
- package/dist/commercetools-uikit-localized-rich-text-input.cjs.prod.js +1 -1
- package/dist/commercetools-uikit-localized-rich-text-input.esm.js +1 -1
- package/dist/declarations/src/export-types.d.ts +1 -1
- package/dist/declarations/src/index.d.ts +3 -3
- package/dist/declarations/src/localized-rich-text-input.d.ts +1 -1
- package/package.json +18 -18
- package/dist/declarations/src/editor.d.ts +0 -29
- package/dist/declarations/src/editor.styles.d.ts +0 -19
- package/dist/declarations/src/rich-text-input.d.ts +0 -27
|
@@ -631,7 +631,7 @@ LocalizedRichTextInput.isTouched = localizedUtils.isTouched;
|
|
|
631
631
|
var LocalizedRichTextInput$1 = LocalizedRichTextInput;
|
|
632
632
|
|
|
633
633
|
// NOTE: This string will be replaced on build time with the package version.
|
|
634
|
-
var version = "16.
|
|
634
|
+
var version = "16.12.0";
|
|
635
635
|
|
|
636
636
|
exports["default"] = LocalizedRichTextInput$1;
|
|
637
637
|
exports.version = version;
|
|
@@ -563,7 +563,7 @@ LocalizedRichTextInput.isTouched = localizedUtils.isTouched;
|
|
|
563
563
|
var LocalizedRichTextInput$1 = LocalizedRichTextInput;
|
|
564
564
|
|
|
565
565
|
// NOTE: This string will be replaced on build time with the package version.
|
|
566
|
-
var version = "16.
|
|
566
|
+
var version = "16.12.0";
|
|
567
567
|
|
|
568
568
|
exports["default"] = LocalizedRichTextInput$1;
|
|
569
569
|
exports.version = version;
|
|
@@ -602,6 +602,6 @@ LocalizedRichTextInput.isTouched = isTouched;
|
|
|
602
602
|
var LocalizedRichTextInput$1 = LocalizedRichTextInput;
|
|
603
603
|
|
|
604
604
|
// NOTE: This string will be replaced on build time with the package version.
|
|
605
|
-
var version = "16.
|
|
605
|
+
var version = "16.12.0";
|
|
606
606
|
|
|
607
607
|
export { LocalizedRichTextInput$1 as default, version };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { TLocalizedRichTextInputProps } from
|
|
1
|
+
export type { TLocalizedRichTextInputProps } from "./localized-rich-text-input.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export { default as version } from
|
|
3
|
-
export * from
|
|
1
|
+
export { default } from "./localized-rich-text-input.js";
|
|
2
|
+
export { default as version } from "./version.js";
|
|
3
|
+
export * from "./export-types.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactNode, type ForwardRefExoticComponent, type RefAttributes, type FocusEventHandler } from 'react';
|
|
2
2
|
import { isTouched, getId, getName } from '@commercetools-uikit/localized-utils';
|
|
3
3
|
import { localized } from '@commercetools-uikit/rich-text-utils';
|
|
4
|
-
import RequiredValueErrorMessage from
|
|
4
|
+
import RequiredValueErrorMessage from "./required-value-error-message.js";
|
|
5
5
|
type TErrors = Record<string, string>;
|
|
6
6
|
type TWarnings = Record<string, ReactNode>;
|
|
7
7
|
type TCustomEvent = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/localized-rich-text-input",
|
|
3
3
|
"description": "A controlled text input component for localized rich text input with validation states.",
|
|
4
|
-
"version": "16.
|
|
4
|
+
"version": "16.12.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,31 +21,31 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/collapsible-motion": "16.
|
|
25
|
-
"@commercetools-uikit/constraints": "16.
|
|
26
|
-
"@commercetools-uikit/design-system": "16.
|
|
27
|
-
"@commercetools-uikit/flat-button": "16.
|
|
28
|
-
"@commercetools-uikit/hooks": "16.
|
|
29
|
-
"@commercetools-uikit/icons": "16.
|
|
30
|
-
"@commercetools-uikit/input-utils": "16.
|
|
31
|
-
"@commercetools-uikit/localized-utils": "16.
|
|
32
|
-
"@commercetools-uikit/messages": "16.
|
|
33
|
-
"@commercetools-uikit/rich-text-utils": "16.
|
|
34
|
-
"@commercetools-uikit/spacings-inline": "16.
|
|
35
|
-
"@commercetools-uikit/spacings-stack": "16.
|
|
36
|
-
"@commercetools-uikit/text": "16.
|
|
37
|
-
"@commercetools-uikit/tooltip": "16.
|
|
38
|
-
"@commercetools-uikit/utils": "16.
|
|
24
|
+
"@commercetools-uikit/collapsible-motion": "16.12.0",
|
|
25
|
+
"@commercetools-uikit/constraints": "16.12.0",
|
|
26
|
+
"@commercetools-uikit/design-system": "16.12.0",
|
|
27
|
+
"@commercetools-uikit/flat-button": "16.12.0",
|
|
28
|
+
"@commercetools-uikit/hooks": "16.12.0",
|
|
29
|
+
"@commercetools-uikit/icons": "16.12.0",
|
|
30
|
+
"@commercetools-uikit/input-utils": "16.12.0",
|
|
31
|
+
"@commercetools-uikit/localized-utils": "16.12.0",
|
|
32
|
+
"@commercetools-uikit/messages": "16.12.0",
|
|
33
|
+
"@commercetools-uikit/rich-text-utils": "16.12.0",
|
|
34
|
+
"@commercetools-uikit/spacings-inline": "16.12.0",
|
|
35
|
+
"@commercetools-uikit/spacings-stack": "16.12.0",
|
|
36
|
+
"@commercetools-uikit/text": "16.12.0",
|
|
37
|
+
"@commercetools-uikit/tooltip": "16.12.0",
|
|
38
|
+
"@commercetools-uikit/utils": "16.12.0",
|
|
39
39
|
"@emotion/react": "^11.10.5",
|
|
40
40
|
"@emotion/styled": "^11.10.5",
|
|
41
41
|
"downshift": "6.1.12",
|
|
42
|
-
"immutable": "4.3.
|
|
42
|
+
"immutable": "4.3.4",
|
|
43
43
|
"is-hotkey": "0.2.0",
|
|
44
44
|
"lodash": "4.17.21",
|
|
45
45
|
"prop-types": "15.8.1",
|
|
46
46
|
"react-textarea-autosize": "8.4.0",
|
|
47
47
|
"slate": "0.75.0",
|
|
48
|
-
"slate-history": "0.
|
|
48
|
+
"slate-history": "0.100.0",
|
|
49
49
|
"slate-react": "0.75.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type ReactNode, type Ref, type FocusEventHandler } from 'react';
|
|
2
|
-
import { type Descendant } from 'slate';
|
|
3
|
-
export type TEditorProps = {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
name?: string;
|
|
6
|
-
id?: string;
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
isDisabled?: boolean;
|
|
9
|
-
isReadOnly?: boolean;
|
|
10
|
-
hasWarning?: boolean;
|
|
11
|
-
hasError?: boolean;
|
|
12
|
-
error?: ReactNode;
|
|
13
|
-
warning?: ReactNode;
|
|
14
|
-
defaultExpandMultilineText: boolean;
|
|
15
|
-
toggleLanguage: (language: string) => void;
|
|
16
|
-
language: string;
|
|
17
|
-
showExpandIcon: boolean;
|
|
18
|
-
onClickExpand?: () => boolean;
|
|
19
|
-
hasLanguagesControl?: boolean;
|
|
20
|
-
value: Descendant[];
|
|
21
|
-
onChange: (state: Descendant[]) => void;
|
|
22
|
-
onFocus?: FocusEventHandler<HTMLDivElement>;
|
|
23
|
-
onBlur?: FocusEventHandler<HTMLDivElement>;
|
|
24
|
-
isAutofocused?: boolean;
|
|
25
|
-
placeholder?: string;
|
|
26
|
-
ref?: Ref<unknown>;
|
|
27
|
-
};
|
|
28
|
-
declare const Editor: import("react").ForwardRefExoticComponent<Omit<TEditorProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
29
|
-
export default Editor;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { TEditorProps } from './editor';
|
|
3
|
-
type TEditorLanguageLabelProps = {
|
|
4
|
-
isReadOnly?: boolean;
|
|
5
|
-
isDisabled?: boolean;
|
|
6
|
-
};
|
|
7
|
-
declare const EditorLanguageLabel: import("@emotion/styled").StyledComponent<{
|
|
8
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
as?: import("react").ElementType<any> | undefined;
|
|
10
|
-
} & TEditorLanguageLabelProps, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
11
|
-
declare const EditorWrapper: import("@emotion/styled").StyledComponent<{
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: import("react").ElementType<any> | undefined;
|
|
14
|
-
} & Pick<TEditorProps, "isDisabled" | "isReadOnly">, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
-
declare const ToggleButtonWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
-
as?: import("react").ElementType<any> | undefined;
|
|
18
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
-
export { EditorLanguageLabel, EditorWrapper, ToggleButtonWrapper };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type ReactNode, type ForwardedRef } from 'react';
|
|
2
|
-
import { type TEditorProps } from './editor';
|
|
3
|
-
type TRichTextInputProps = {
|
|
4
|
-
defaultExpandMultilineText: TEditorProps['defaultExpandMultilineText'];
|
|
5
|
-
hasError?: TEditorProps['hasError'];
|
|
6
|
-
hasWarning?: TEditorProps['hasWarning'];
|
|
7
|
-
id?: TEditorProps['id'];
|
|
8
|
-
name?: string;
|
|
9
|
-
placeholder: TEditorProps['placeholder'];
|
|
10
|
-
isDisabled?: TEditorProps['isDisabled'];
|
|
11
|
-
isReadOnly?: TEditorProps['isReadOnly'];
|
|
12
|
-
onChange?: (state: string) => void;
|
|
13
|
-
onBlur?: TEditorProps['onBlur'];
|
|
14
|
-
onFocus?: TEditorProps['onFocus'];
|
|
15
|
-
value: string;
|
|
16
|
-
showExpandIcon: TEditorProps['showExpandIcon'];
|
|
17
|
-
onClickExpand?: TEditorProps['onClickExpand'];
|
|
18
|
-
hasLanguagesControl?: TEditorProps['hasLanguagesControl'];
|
|
19
|
-
parentRef?: ForwardedRef<unknown>;
|
|
20
|
-
language: string;
|
|
21
|
-
isOpen: boolean;
|
|
22
|
-
toggleLanguage: (language: string) => void;
|
|
23
|
-
warning?: ReactNode;
|
|
24
|
-
error?: string;
|
|
25
|
-
};
|
|
26
|
-
declare const RichTextInputWithRef: import("react").ForwardRefExoticComponent<TRichTextInputProps & import("react").RefAttributes<unknown>>;
|
|
27
|
-
export default RichTextInputWithRef;
|