@crystallize/design-system 1.21.0 → 1.21.1

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/index.d.ts CHANGED
@@ -324,11 +324,6 @@ type TagProps = React.ComponentProps<'div'> & TagStylesProps & {
324
324
  };
325
325
  declare function Tag({ children, className, variant, size, prepend, onRemove, ...delegated }: TagProps): JSX.Element;
326
326
 
327
- type I18NKeys = 'actionClearTextFormatting' | 'actionTextFormattingOptions' | 'actionFormatAsStrongLabel' | 'actionFormatAsStrongTitle' | 'actionFormatAsStrongTitleApple' | 'actionFormatAsEmphasizedLabel' | 'actionFormatAsEmphasizedTitle' | 'actionFormatAsEmphasizedTitleApple' | 'actionFormatAsUnderlinedLabel' | 'actionFormatAsUnderlinedTitle' | 'actionFormatAsUnderlinedTitleApple' | 'actionFormatWithStrikethroughLabel' | 'actionFormatWithStrikethroughTitle' | 'actionFormatWithSubscriptLabel' | 'actionFormatWithSubscriptTitle' | 'actionFormatWithSuperscriptLabel' | 'actionFormatWithSuperscriptTitle' | 'actionFormatClear' | 'actionCopyJSON' | 'actionClear' | 'actionFormatCode' | 'actionCopyCode' | 'actionInsertCodeBlock' | 'actionInsertlink' | 'actionTableInsertRowsAbove' | 'actionTableInsertRowsAbove_plural' | 'actionTableInsertRowsBelow' | 'actionTableInsertRowsBelow_plural' | 'actionTableInsertColumnsBefore' | 'actionTableInsertColumnsBefore_plural' | 'actionTableInsertColumnsAfter' | 'actionTableInsertColumnsAfter_plural' | 'actionTableAddRowHeader' | 'actionTableRemoveRowHeader' | 'actionTableAddColumnHeader' | 'actionTableRemoveColumnHeader' | 'actionTableDeleteColumn' | 'actionTableDeleteRow' | 'actionTableDeleteTable' | 'actionTableOpenOptions' | 'actionUndoLabel' | 'actionUndoTitle' | 'actionUndoTitleApple' | 'actionRedoLabel' | 'actionRedoTitle' | 'actionRedoTitleApple' | 'codeSelectLanguage' | 'linkEditorLink' | 'linkEditorRel' | 'linkEditorTarget' | 'linkEditorCommit' | 'linkEditorEdit' | 'linkPreviewReplaceTextWithTitle' | 'horizontalRule' | 'table' | 'insertTableTitle' | 'insertTableDescription' | 'insertTableRows' | 'insertTableColumns' | 'insertTableCommit';
328
- type I18N = Record<I18NKeys, string>;
329
-
330
- type SupportedLanguages = 'en';
331
-
332
327
  declare const CODE_ALL_NAME_OPTIONS: {
333
328
  readonly javascript: "js";
334
329
  readonly md: "markdown";
@@ -420,23 +415,7 @@ type CrystallizeRichTextActionMenuItem = {
420
415
  disabled?: boolean;
421
416
  };
422
417
 
423
- type TRichTextBase = {
424
- placeholder?: string;
425
- onChange?: (data: CrystallizeRichText) => void;
426
- triggerOnChangeOnAutoFocus?: boolean;
427
- autoFocus?: boolean;
428
- actionsMenuPrepend?: CrystallizeRichTextActionMenuItem[];
429
- actionsMenuAppend?: CrystallizeRichTextActionMenuItem[];
430
- slotPreContent?: ReactNode;
431
- maxLength?: number;
432
- language?: SupportedLanguages;
433
- labelTranslations?: I18N;
434
- id?: string;
435
- disabled?: boolean;
436
- };
437
- declare function RichTextEditor({ initialData, language, labelTranslations, ...rest }: TRichTextBase & {
438
- initialData?: CrystallizeRichText | null;
439
- }): JSX.Element;
418
+ declare const RichTextEditor: (props: any) => JSX.Element;
440
419
 
441
420
  declare const toastStyles: (props?: ({
442
421
  type?: "info" | "error" | "warning" | "success" | null | undefined;