@factorialco/deprecated-design-system 0.0.4 → 0.0.5
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.
|
@@ -13,8 +13,10 @@ import { FileRejection } from 'react-dropzone';
|
|
|
13
13
|
import { InitialEditorStateType } from '@lexical/react/LexicalComposer';
|
|
14
14
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
15
15
|
import { JSXElementConstructor } from 'react';
|
|
16
|
+
import { KlassConstructor } from 'lexical';
|
|
16
17
|
import { LargeIcon as LargeIcon_2 } from '../..';
|
|
17
18
|
import { LexicalEditor } from 'lexical';
|
|
19
|
+
import { LexicalNode } from 'lexical';
|
|
18
20
|
import { Link as Link_2 } from 'react-router-dom';
|
|
19
21
|
import { MotionProps } from 'framer-motion';
|
|
20
22
|
import { MotionStyle } from 'framer-motion';
|
|
@@ -479,6 +481,92 @@ declare type BoxShadow = keyof typeof shadows;
|
|
|
479
481
|
|
|
480
482
|
export declare type Breakpoint = keyof typeof contentBreakpoints;
|
|
481
483
|
|
|
484
|
+
export declare const buildTextEditorConfig: (readonly: boolean) => {
|
|
485
|
+
namespace: string;
|
|
486
|
+
nodes: ( KlassConstructor<LexicalNode> | typeof MentionNode | typeof ExtendedTextNode | {
|
|
487
|
+
replace: typeof TextNode;
|
|
488
|
+
with: (node: TextNode) => ExtendedTextNode;
|
|
489
|
+
withKlass: typeof ExtendedTextNode;
|
|
490
|
+
})[];
|
|
491
|
+
onError: (error: Error) => never;
|
|
492
|
+
theme: {
|
|
493
|
+
characterLimit: string;
|
|
494
|
+
code: string;
|
|
495
|
+
codeHighlight: {
|
|
496
|
+
atrule: string;
|
|
497
|
+
attr: string;
|
|
498
|
+
boolean: string;
|
|
499
|
+
builtin: string;
|
|
500
|
+
cdata: string;
|
|
501
|
+
char: string;
|
|
502
|
+
class: string;
|
|
503
|
+
'class-name': string;
|
|
504
|
+
comment: string;
|
|
505
|
+
constant: string;
|
|
506
|
+
deleted: string;
|
|
507
|
+
doctype: string;
|
|
508
|
+
entity: string;
|
|
509
|
+
function: string;
|
|
510
|
+
important: string;
|
|
511
|
+
inserted: string;
|
|
512
|
+
keyword: string;
|
|
513
|
+
namespace: string;
|
|
514
|
+
number: string;
|
|
515
|
+
operator: string;
|
|
516
|
+
prolog: string;
|
|
517
|
+
property: string;
|
|
518
|
+
punctuation: string;
|
|
519
|
+
regex: string;
|
|
520
|
+
selector: string;
|
|
521
|
+
string: string;
|
|
522
|
+
symbol: string;
|
|
523
|
+
tag: string;
|
|
524
|
+
url: string;
|
|
525
|
+
variable: string;
|
|
526
|
+
};
|
|
527
|
+
hashtag: string;
|
|
528
|
+
heading: {
|
|
529
|
+
h1: string;
|
|
530
|
+
h2: string;
|
|
531
|
+
h3: string;
|
|
532
|
+
h4: string;
|
|
533
|
+
h5: string;
|
|
534
|
+
};
|
|
535
|
+
image: string;
|
|
536
|
+
link: string;
|
|
537
|
+
list: {
|
|
538
|
+
listitem: string;
|
|
539
|
+
listitemChecked: string;
|
|
540
|
+
listitemUnchecked: string;
|
|
541
|
+
nested: {
|
|
542
|
+
listitem: string;
|
|
543
|
+
};
|
|
544
|
+
olDepth: string[];
|
|
545
|
+
ul: string;
|
|
546
|
+
};
|
|
547
|
+
ltr: string;
|
|
548
|
+
mark: string;
|
|
549
|
+
markOverlap: string;
|
|
550
|
+
paragraph: string;
|
|
551
|
+
quote: string;
|
|
552
|
+
rtl: string;
|
|
553
|
+
table: string;
|
|
554
|
+
tableCell: string;
|
|
555
|
+
tableCellHeader: string;
|
|
556
|
+
text: {
|
|
557
|
+
bold: string;
|
|
558
|
+
code: string;
|
|
559
|
+
italic: string;
|
|
560
|
+
strikethrough: string;
|
|
561
|
+
subscript: string;
|
|
562
|
+
superscript: string;
|
|
563
|
+
underline: string;
|
|
564
|
+
underlineStrikethrough: string;
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
editable: boolean;
|
|
568
|
+
};
|
|
569
|
+
|
|
482
570
|
export declare const Button: Component;
|
|
483
571
|
|
|
484
572
|
declare interface ButtonProps {
|
|
@@ -1173,6 +1261,16 @@ declare interface ExpandableContainerProps {
|
|
|
1173
1261
|
|
|
1174
1262
|
declare const ExpandableContent: FC<PropsWithChildren<Props_76>>;
|
|
1175
1263
|
|
|
1264
|
+
declare class ExtendedTextNode extends TextNode {
|
|
1265
|
+
constructor(text: string, key?: NodeKey);
|
|
1266
|
+
static getType(): string;
|
|
1267
|
+
static clone(node: ExtendedTextNode): ExtendedTextNode;
|
|
1268
|
+
static importDOM(): DOMConversionMap | null;
|
|
1269
|
+
static importJSON(serializedNode: SerializedTextNode): TextNode;
|
|
1270
|
+
isSimpleText(): boolean;
|
|
1271
|
+
exportJSON(): SerializedTextNode;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1176
1274
|
declare const Eyebrow: FC<PropsWithChildren<Props_75>>;
|
|
1177
1275
|
|
|
1178
1276
|
export declare const Fallback: FC<Props_6>;
|