@factorialco/deprecated-design-system 0.0.5 → 0.0.7

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.
@@ -4,25 +4,16 @@ import { DayPicker as DayPicker_2 } from 'react-day-picker';
4
4
  import { default as default_2 } from 'react';
5
5
  import { default as default_3 } from 'moment';
6
6
  import { default as default_4 } from 'react-infinite-scroller';
7
- import { DOMConversionMap } from 'lexical';
8
- import { DOMExportOutput } from 'lexical';
9
7
  import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
10
- import { EditorConfig } from 'lexical';
11
8
  import { FC } from 'react';
12
- import { FileRejection } from 'react-dropzone';
13
- import { InitialEditorStateType } from '@lexical/react/LexicalComposer';
14
9
  import { JSX as JSX_2 } from 'react/jsx-runtime';
15
10
  import { JSXElementConstructor } from 'react';
16
- import { KlassConstructor } from 'lexical';
17
11
  import { LargeIcon as LargeIcon_2 } from '../..';
18
- import { LexicalEditor } from 'lexical';
19
- import { LexicalNode } from 'lexical';
20
12
  import { Link as Link_2 } from 'react-router-dom';
21
13
  import { MotionProps } from 'framer-motion';
22
14
  import { MotionStyle } from 'framer-motion';
23
15
  import { MotionValue } from 'framer-motion';
24
16
  import { MouseEventHandler } from 'react';
25
- import { NodeKey } from 'lexical';
26
17
  import { PieCustomLayerProps } from '@nivo/pie';
27
18
  import * as Primitive_2 from '@radix-ui/react-dialog';
28
19
  import { Props as Props_10 } from './ImageStep';
@@ -36,14 +27,9 @@ import { ReactElement } from 'react';
36
27
  import { ReactNode } from 'react';
37
28
  import { ResponsiveBar } from '@nivo/bar';
38
29
  import { ResponsiveLine } from '@nivo/line';
39
- import { SerializedTextNode } from 'lexical';
40
30
  import { SettingProps } from './restricted/Settings';
41
- import { Spread } from 'lexical';
42
- import { TextNode } from 'lexical';
43
31
  import { To } from 'react-router-dom';
44
32
 
45
- export declare function $createMentionNode(mention: any): MentionNode;
46
-
47
33
  export declare function ActionItem({ children, disabled, highlighted, whiteDisabled, transparent, onClick, selected, showIcon, href, to, icon, slim, }: React_2.PropsWithChildren<Props_101>): JSX_2.Element | null;
48
34
 
49
35
  declare interface ActionProps {
@@ -481,92 +467,6 @@ declare type BoxShadow = keyof typeof shadows;
481
467
 
482
468
  export declare type Breakpoint = keyof typeof contentBreakpoints;
483
469
 
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
-
570
470
  export declare const Button: Component;
571
471
 
572
472
  declare interface ButtonProps {
@@ -1190,42 +1090,6 @@ declare type DurationInputProps = {
1190
1090
  locale: string;
1191
1091
  };
1192
1092
 
1193
- declare type editorDimensions = Dimensions;
1194
-
1195
- export declare interface EditorHandle {
1196
- clear: () => void;
1197
- clearFiles: () => void;
1198
- focus: () => void;
1199
- }
1200
-
1201
- declare interface EditorProps<TResult> {
1202
- onChange: (html: string | null | TResult) => void;
1203
- onFiles?: onFiles;
1204
- initialEditorState?: {
1205
- data?: InitialEditorStateType;
1206
- files?: File[];
1207
- };
1208
- /**
1209
- * Limits the maximum allowed file size (in MB) for file upload size.
1210
- */
1211
- maxFileSize?: number;
1212
- height?: editorDimensions;
1213
- placeholder: string;
1214
- readonly?: boolean;
1215
- isRichText?: boolean;
1216
- enableBetaFeatures?: boolean;
1217
- missingLabel: string;
1218
- selectValue: string;
1219
- richTextCustomPlugins?: (editor: LexicalEditor) => default_2.ReactNode;
1220
- customPlugins?: (editor: LexicalEditor) => default_2.ReactNode;
1221
- richCustomOnChange?: (editor: LexicalEditor, handleOnChange: () => void) => () => void;
1222
- customOnChange?: (editor: LexicalEditor, handleOnChange: () => void) => () => void;
1223
- onDropRejected: (rejections: FileRejection[]) => void;
1224
- saveButtonLabel: string;
1225
- removeButtonLabel: string;
1226
- errorLabelFn: (validUrl: boolean, linkUrl: string) => string | undefined;
1227
- }
1228
-
1229
1093
  declare type Element_2 = ReactElement<PropsWithChildren, JSXElementConstructor<unknown>>;
1230
1094
 
1231
1095
  declare type Element_3 = ReactElement<PropsWithChildren, JSXElementConstructor<unknown>>;
@@ -1261,16 +1125,6 @@ declare interface ExpandableContainerProps {
1261
1125
 
1262
1126
  declare const ExpandableContent: FC<PropsWithChildren<Props_76>>;
1263
1127
 
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
-
1274
1128
  declare const Eyebrow: FC<PropsWithChildren<Props_75>>;
1275
1129
 
1276
1130
  export declare const Fallback: FC<Props_6>;
@@ -1677,21 +1531,6 @@ declare type MediumProps = Props_14 & {
1677
1531
  icon: MediumIcon;
1678
1532
  };
1679
1533
 
1680
- declare class MentionNode extends TextNode {
1681
- __mention: string;
1682
- __id: number;
1683
- __employeeId: number;
1684
- static getType(): string;
1685
- static clone(node: MentionNode): MentionNode;
1686
- static importJSON(serializedNode: SerializedMentionNode): MentionNode;
1687
- constructor(mention: any, text?: string, key?: NodeKey);
1688
- exportJSON(): SerializedMentionNode;
1689
- createDOM(config: EditorConfig): HTMLElement;
1690
- exportDOM(): DOMExportOutput;
1691
- static importDOM(): DOMConversionMap | null;
1692
- isTextEntity(): true;
1693
- }
1694
-
1695
1534
  export declare function MiniCard({ buttonCta, children, counter, disabled, onClick, title, }: React_2.PropsWithChildren<Props_97>): JSX_2.Element;
1696
1535
 
1697
1536
  export declare const MiniCardHeader: ({ counter, children, disabled }: React_2.PropsWithChildren<Props_98>) => JSX_2.Element;
@@ -1896,8 +1735,6 @@ export declare const NumericMetric: ({ title, isPercentage, value, decimals, foo
1896
1735
 
1897
1736
  declare type OnClickArguments = Parameters<MouseEventHandler<HTMLButtonElement>>;
1898
1737
 
1899
- declare type onFiles = (files: File[]) => void;
1900
-
1901
1738
  declare const Option_2: FC<Props_5>;
1902
1739
 
1903
1740
  declare interface Option_3 {
@@ -3231,12 +3068,6 @@ export declare const Selector: {
3231
3068
  Popover: FC<PopoverProps>;
3232
3069
  };
3233
3070
 
3234
- declare type SerializedMentionNode = Spread<{
3235
- mentionName: string;
3236
- type: 'mention';
3237
- version: 1;
3238
- }, SerializedTextNode>;
3239
-
3240
3071
  declare interface SettingsProps {
3241
3072
  onClick: () => void;
3242
3073
  description: string;
@@ -3642,10 +3473,6 @@ declare interface TextCalloutProps extends BaseCalloutProps {
3642
3473
  children?: never;
3643
3474
  }
3644
3475
 
3645
- export declare const TextEditor: <TResult>(props: Omit<EditorProps<TResult>, "maxFileSizeError"> & {
3646
- maxFileSizeError: string;
3647
- } & default_2.RefAttributes<EditorHandle>) => default_2.ReactElement | null;
3648
-
3649
3476
  export declare const TextField: {
3650
3477
  ({ type, onClick, onChange, onFocus, onBlur, onKeyDown, autofocus, error, hideError, isNotValid, label, inputId, hideLabel, hideBorder, value, placeholder, maxLength, getRef, focused: forceFocus, readonly, description, secondaryLabel, ariaHidden, completed, loading, mandatory, indicator, min, max, step, isClickableIcon, isFloatingIndicator, defaultValue, showEllipsis, textAlign, attachmentPosition, autofilled, title, avoidPasswordManagers, onboardingId, missingLabel, selectValue, }: DesignSystemTextFieldProps): JSX_2.Element;
3651
3478
  Select(props: DesignSystemTextFieldProps): JSX_2.Element;
@@ -5099,12 +4926,6 @@ export declare function useDangerousConfirmationDialog(): {
5099
4926
  isOpen: boolean;
5100
4927
  };
5101
4928
 
5102
- /**
5103
- * A hook similar to `useLexicalComposerContext`, but that rerenders when
5104
- * something in the editor changes.
5105
- */
5106
- export declare const useEditor: () => LexicalEditor;
5107
-
5108
4929
  export declare function useEffect(effect: React_2.EffectCallback, deps: Scalar[]): void;
5109
4930
 
5110
4931
  export declare function useLightness(): Lightness;
@@ -5139,8 +4960,6 @@ export declare function useUnsafeEffect(effect: React_2.EffectCallback, deps?: R
5139
4960
 
5140
4961
  export declare function useUnsafeMemo<T>(factory: () => T, deps?: React_2.DependencyList | undefined): T;
5141
4962
 
5142
- export declare function validateUrl(url: string): boolean;
5143
-
5144
4963
  declare type Value = string | number | null | undefined;
5145
4964
 
5146
4965
  /**