planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

80
node_modules/slate-react/dist/components/editable.d.ts generated vendored Normal file
View File

@@ -0,0 +1,80 @@
import React from 'react';
import { Element, NodeEntry, Range, Text } from 'slate';
import { ReactEditor } from '../plugin/react-editor';
import { DOMRange } from '../utils/dom';
/**
* `RenderElementProps` are passed to the `renderElement` handler.
*/
export interface RenderElementProps {
children: any;
element: Element;
attributes: {
'data-slate-node': 'element';
'data-slate-inline'?: true;
'data-slate-void'?: true;
dir?: 'rtl';
ref: any;
};
}
/**
* `RenderLeafProps` are passed to the `renderLeaf` handler.
*/
export interface RenderLeafProps {
children: any;
leaf: Text;
text: Text;
attributes: {
'data-slate-leaf': true;
};
}
/**
* `EditableProps` are passed to the `<Editable>` component.
*/
export declare type EditableProps = {
decorate?: (entry: NodeEntry) => Range[];
onDOMBeforeInput?: (event: InputEvent) => void;
placeholder?: string;
readOnly?: boolean;
role?: string;
style?: React.CSSProperties;
renderElement?: (props: RenderElementProps) => JSX.Element;
renderLeaf?: (props: RenderLeafProps) => JSX.Element;
renderPlaceholder?: (props: RenderPlaceholderProps) => JSX.Element;
scrollSelectionIntoView?: (editor: ReactEditor, domRange: DOMRange) => void;
as?: React.ElementType;
disableDefaultStyles?: boolean;
} & React.TextareaHTMLAttributes<HTMLDivElement>;
/**
* Editable.
*/
export declare const Editable: (props: EditableProps) => JSX.Element;
/**
* The props that get passed to renderPlaceholder
*/
export declare type RenderPlaceholderProps = {
children: any;
attributes: {
'data-slate-placeholder': boolean;
dir?: 'rtl';
contentEditable: boolean;
ref: React.RefObject<any>;
style: React.CSSProperties;
};
};
/**
* The default placeholder element
*/
export declare const DefaultPlaceholder: ({ attributes, children, }: RenderPlaceholderProps) => JSX.Element;
/**
* A default memoized decorate function.
*/
export declare const defaultDecorate: (entry: NodeEntry) => Range[];
/**
* Check if an event is overrided by a handler.
*/
export declare const isEventHandled: <EventType extends React.SyntheticEvent<unknown, unknown>>(event: EventType, handler?: ((event: EventType) => void | boolean) | undefined) => boolean;
/**
* Check if a DOM event is overrided by a handler.
*/
export declare const isDOMEventHandled: <E extends Event>(event: E, handler?: ((event: E) => void | boolean) | undefined) => boolean;
//# sourceMappingURL=editable.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"editable.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/components/editable.tsx"],"names":[],"mappings":"AAGA,OAAO,KAON,MAAM,OAAO,CAAA;AAEd,OAAO,EAEL,OAAO,EAEP,SAAS,EAET,KAAK,EACL,IAAI,EAEL,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAOpD,OAAO,EAGL,QAAQ,EAMT,MAAM,cAAc,CAAA;AAwCrB;;GAEG;AAEH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,GAAG,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE;QACV,iBAAiB,EAAE,SAAS,CAAA;QAC5B,mBAAmB,CAAC,EAAE,IAAI,CAAA;QAC1B,iBAAiB,CAAC,EAAE,IAAI,CAAA;QACxB,GAAG,CAAC,EAAE,KAAK,CAAA;QACX,GAAG,EAAE,GAAG,CAAA;KACT,CAAA;CACF;AAED;;GAEG;AAEH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,GAAG,CAAA;IACb,IAAI,EAAE,IAAI,CAAA;IACV,IAAI,EAAE,IAAI,CAAA;IACV,UAAU,EAAE;QACV,iBAAiB,EAAE,IAAI,CAAA;KACxB,CAAA;CACF;AAED;;GAEG;AAEH,oBAAY,aAAa,GAAG;IAC1B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,KAAK,EAAE,CAAA;IACxC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;IAC9C,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OAAO,yBAc/C,CAAA;AAED;;GAEG;AAEH,eAAO,MAAM,iBAAiB,uDAEJ,IAAI,GAAG,OAAO,yBAevC,CAAA"}

28
node_modules/slate-react/dist/components/element.d.ts generated vendored Normal file
View File

@@ -0,0 +1,28 @@
import React from 'react';
import { Range, Element as SlateElement } from 'slate';
import { RenderElementProps, RenderLeafProps, RenderPlaceholderProps } from './editable';
/**
* Element.
*/
declare const Element: (props: {
decorations: Range[];
element: SlateElement;
renderElement?: ((props: RenderElementProps) => JSX.Element) | undefined;
renderPlaceholder: (props: RenderPlaceholderProps) => JSX.Element;
renderLeaf?: ((props: RenderLeafProps) => JSX.Element) | undefined;
selection: Range | null;
}) => JSX.Element;
declare const MemoizedElement: React.MemoExoticComponent<(props: {
decorations: Range[];
element: SlateElement;
renderElement?: ((props: RenderElementProps) => JSX.Element) | undefined;
renderPlaceholder: (props: RenderPlaceholderProps) => JSX.Element;
renderLeaf?: ((props: RenderLeafProps) => JSX.Element) | undefined;
selection: Range | null;
}) => JSX.Element>;
/**
* The default element renderer.
*/
export declare const DefaultElement: (props: RenderElementProps) => JSX.Element;
export default MemoizedElement;
//# sourceMappingURL=element.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/components/element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAE1C,OAAO,EAAgB,KAAK,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,OAAO,CAAA;AAapE,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACvB,MAAM,YAAY,CAAA;AAEnB;;GAEG;AAEH,QAAA,MAAM,OAAO;iBACE,KAAK,EAAE;aACX,YAAY;6BACG,kBAAkB,KAAK,WAAW;+BAC/B,sBAAsB,KAAK,WAAW;0BAC5C,eAAe,KAAK,WAAW;eACzC,KAAK,GAAG,IAAI;iBAuGxB,CAAA;AAED,QAAA,MAAM,eAAe;iBA9GN,KAAK,EAAE;aACX,YAAY;6BACG,kBAAkB,KAAK,WAAW;+BAC/B,sBAAsB,KAAK,WAAW;0BAC5C,eAAe,KAAK,WAAW;eACzC,KAAK,GAAG,IAAI;kBAqHvB,CAAA;AAEF;;GAEG;AAEH,eAAO,MAAM,cAAc,UAAW,kBAAkB,gBASvD,CAAA;AAED,eAAe,eAAe,CAAA"}

14
node_modules/slate-react/dist/components/leaf.d.ts generated vendored Normal file
View File

@@ -0,0 +1,14 @@
import React from 'react';
import { Element, Text } from 'slate';
import { RenderLeafProps, RenderPlaceholderProps } from './editable';
declare const MemoizedLeaf: React.MemoExoticComponent<(props: {
isLast: boolean;
leaf: Text;
parent: Element;
renderPlaceholder: (props: RenderPlaceholderProps) => JSX.Element;
renderLeaf?: ((props: RenderLeafProps) => JSX.Element) | undefined;
text: Text;
}) => JSX.Element>;
export declare const DefaultLeaf: (props: RenderLeafProps) => JSX.Element;
export default MemoizedLeaf;
//# sourceMappingURL=leaf.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"leaf.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/components/leaf.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAQrC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AA0HpE,QAAA,MAAM,YAAY;YAlHR,OAAO;UACT,IAAI;YACF,OAAO;+BACY,sBAAsB,KAAK,WAAW;0BAC5C,eAAe,KAAK,WAAW;UAC9C,IAAI;kBAuHV,CAAA;AAEF,eAAO,MAAM,WAAW,UAAW,eAAe,gBAGjD,CAAA;AAED,eAAe,YAAY,CAAA"}

View File

@@ -0,0 +1,9 @@
import { RefObject } from 'react';
import { ReactEditor } from '../../plugin/react-editor';
export declare type RestoreDOMManager = {
registerMutations: (mutations: MutationRecord[]) => void;
restoreDOM: () => void;
clear: () => void;
};
export declare const createRestoreDomManager: (editor: ReactEditor, receivedUserInput: RefObject<boolean>) => RestoreDOMManager;
//# sourceMappingURL=restore-dom-manager.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"restore-dom-manager.d.ts","sourceRoot":"","sources":["../../packages/slate-react/src/components/restore-dom/restore-dom-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAGvD,oBAAY,iBAAiB,GAAG;IAC9B,iBAAiB,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,KAAK,IAAI,CAAA;IACxD,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,uBAAuB,WAC1B,WAAW,qBACA,UAAU,OAAO,CAAC,KACpC,iBA+CF,CAAA"}

View File

@@ -0,0 +1,8 @@
import { ComponentType, RefObject } from 'react';
declare type RestoreDOMProps = {
receivedUserInput: RefObject<boolean>;
node: RefObject<HTMLDivElement>;
};
export declare const RestoreDOM: ComponentType<RestoreDOMProps>;
export {};
//# sourceMappingURL=restore-dom.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"restore-dom.d.ts","sourceRoot":"","sources":["../../packages/slate-react/src/components/restore-dom/restore-dom.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAa,aAAa,EAAe,SAAS,EAAE,MAAM,OAAO,CAAA;AAe/E,aAAK,eAAe,GAAG;IACrB,iBAAiB,EAAE,SAAS,CAAC,OAAO,CAAC,CAAA;IACrC,IAAI,EAAE,SAAS,CAAC,cAAc,CAAC,CAAA;CAChC,CAAA;AAwDD,eAAO,MAAM,UAAU,EAAE,aAAa,CAAC,eAAe,CAEjB,CAAA"}

14
node_modules/slate-react/dist/components/slate.d.ts generated vendored Normal file
View File

@@ -0,0 +1,14 @@
import React from 'react';
import { Descendant } from 'slate';
import { ReactEditor } from '../plugin/react-editor';
/**
* A wrapper around the provider to handle `onChange` events, because the editor
* is a mutable singleton so it won't ever register as "changed" otherwise.
*/
export declare const Slate: (props: {
editor: ReactEditor;
value: Descendant[];
children: React.ReactNode;
onChange?: ((value: Descendant[]) => void) | undefined;
}) => JSX.Element;
//# sourceMappingURL=slate.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"slate.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/components/slate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AACvE,OAAO,EAAgB,UAAU,EAAY,MAAM,OAAO,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAYpD;;;GAGG;AAEH,eAAO,MAAM,KAAK;YACR,WAAW;WACZ,UAAU,EAAE;cACT,MAAM,SAAS;wBACN,UAAU,EAAE,KAAK,IAAI;iBAwFzC,CAAA"}

21
node_modules/slate-react/dist/components/string.d.ts generated vendored Normal file
View File

@@ -0,0 +1,21 @@
/// <reference types="react" />
import { Text, Element } from 'slate';
/**
* Leaf content strings.
*/
declare const String: (props: {
isLast: boolean;
leaf: Text;
parent: Element;
text: Text;
}) => JSX.Element;
/**
* Leaf strings without text, render as zero-width strings.
*/
export declare const ZeroWidthString: (props: {
length?: number;
isLineBreak?: boolean;
isMarkPlaceholder?: boolean;
}) => JSX.Element;
export default String;
//# sourceMappingURL=string.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/components/string.tsx"],"names":[],"mappings":";AACA,OAAO,EAAU,IAAI,EAAQ,OAAO,EAAQ,MAAM,OAAO,CAAA;AAOzD;;GAEG;AAEH,QAAA,MAAM,MAAM,UAAW;IACrB,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,OAAO,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;CACX,gBAuCA,CAAA;AAiDD;;GAEG;AAEH,eAAO,MAAM,eAAe,UAAW;IACrC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,gBAkBA,CAAA;AAED,eAAe,MAAM,CAAA"}

13
node_modules/slate-react/dist/components/text.d.ts generated vendored Normal file
View File

@@ -0,0 +1,13 @@
import React from 'react';
import { Element, Range, Text as SlateText } from 'slate';
import { RenderLeafProps, RenderPlaceholderProps } from './editable';
declare const MemoizedText: React.MemoExoticComponent<(props: {
decorations: Range[];
isLast: boolean;
parent: Element;
renderPlaceholder: (props: RenderPlaceholderProps) => JSX.Element;
renderLeaf?: ((props: RenderLeafProps) => JSX.Element) | undefined;
text: SlateText;
}) => JSX.Element>;
export default MemoizedText;
//# sourceMappingURL=text.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../packages/slate-react/src/components/text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,OAAO,CAAA;AASzD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAuEpE,QAAA,MAAM,YAAY;iBA/DH,KAAK,EAAE;YACZ,OAAO;YACP,OAAO;+BACY,sBAAsB,KAAK,WAAW;0BAC5C,eAAe,KAAK,WAAW;UAC9C,SAAS;kBAmEf,CAAA;AAEF,eAAe,YAAY,CAAA"}