@rebasepro/admin 0.6.0 → 0.6.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.
Files changed (33) hide show
  1. package/README.md +7 -3
  2. package/dist/{CollectionEditorDialog-jA-PLh6N.js → CollectionEditorDialog-HNXGxXdO.js} +3 -3
  3. package/dist/{CollectionEditorDialog-jA-PLh6N.js.map → CollectionEditorDialog-HNXGxXdO.js.map} +1 -1
  4. package/dist/{CollectionsStudioView-UKouBPOm.js → CollectionsStudioView-B1mN33GB.js} +4 -4
  5. package/dist/{CollectionsStudioView-UKouBPOm.js.map → CollectionsStudioView-B1mN33GB.js.map} +1 -1
  6. package/dist/{PropertyEditView-DEUddmg_.js → PropertyEditView-C2wp8kQ9.js} +2 -2
  7. package/dist/{PropertyEditView-DEUddmg_.js.map → PropertyEditView-C2wp8kQ9.js.map} +1 -1
  8. package/dist/collection_editor_ui.js +3 -3
  9. package/dist/editor/editor.d.ts +10 -4
  10. package/dist/editor.js +6 -4
  11. package/dist/editor.js.map +1 -1
  12. package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +2 -2
  13. package/dist/{history-BL49TIDb.js → history-BO6VT85a.js} +2 -2
  14. package/dist/{history-BL49TIDb.js.map → history-BO6VT85a.js.map} +1 -1
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.js +1 -1
  17. package/dist/{src-BJ8fkM8y.js → src-BYniefVu.js} +56 -55
  18. package/dist/src-BYniefVu.js.map +1 -0
  19. package/package.json +8 -8
  20. package/src/collection_editor/ui/AddKanbanColumnAction.tsx +2 -0
  21. package/src/components/ArrayContainer.tsx +5 -5
  22. package/src/components/DrawerNavigationItem.tsx +4 -4
  23. package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +2 -0
  24. package/src/components/HomePage/NavigationCard.tsx +8 -14
  25. package/src/components/HomePage/NavigationGroup.tsx +1 -1
  26. package/src/components/HomePage/SmallNavigationCard.tsx +1 -5
  27. package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +28 -21
  28. package/src/components/common/default_entity_actions.tsx +10 -2
  29. package/src/editor/editor.tsx +14 -8
  30. package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +4 -4
  31. package/src/form/field_bindings/StorageUploadFieldBinding.tsx +1 -1
  32. package/src/index.ts +2 -2
  33. package/dist/src-BJ8fkM8y.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { n as CollectionEditorDialog } from "./CollectionEditorDialog-jA-PLh6N.js";
2
- import { n as PropertyForm, r as PropertyFormDialog } from "./PropertyEditView-DEUddmg_.js";
3
- import { r as CollectionStudioView, t as CollectionsStudioView } from "./CollectionsStudioView-UKouBPOm.js";
1
+ import { n as CollectionEditorDialog } from "./CollectionEditorDialog-HNXGxXdO.js";
2
+ import { n as PropertyForm, r as PropertyFormDialog } from "./PropertyEditView-C2wp8kQ9.js";
3
+ import { r as CollectionStudioView, t as CollectionsStudioView } from "./CollectionsStudioView-B1mN33GB.js";
4
4
  export { CollectionEditorDialog, CollectionStudioView, CollectionsStudioView, PropertyForm, PropertyFormDialog };
@@ -9,15 +9,17 @@ export interface MarkdownEditorConfig {
9
9
  html?: boolean;
10
10
  transformPastedText?: boolean;
11
11
  }
12
- export type RebaseEditorTextSize = "sm" | "base" | "lg";
13
- export type RebaseEditorProps = {
12
+ export type RichTextEditorTextSize = "sm" | "base" | "lg";
13
+ /** @deprecated Use `RichTextEditorTextSize` instead. */
14
+ export type RebaseEditorTextSize = RichTextEditorTextSize;
15
+ export type RichTextEditorProps = {
14
16
  content?: JSONContent | string;
15
17
  onMarkdownContentChange?: (content: string) => void;
16
18
  onJsonContentChange?: (content: JSONContent | null) => void;
17
19
  onHtmlContentChange?: (content: string) => void;
18
20
  handleImageUpload: (file: File) => Promise<string>;
19
21
  version?: number;
20
- textSize?: RebaseEditorTextSize;
22
+ textSize?: RichTextEditorTextSize;
21
23
  highlight?: {
22
24
  from: number;
23
25
  to: number;
@@ -27,4 +29,8 @@ export type RebaseEditorProps = {
27
29
  disabled?: boolean;
28
30
  markdownConfig?: MarkdownEditorConfig;
29
31
  };
30
- export declare const RebaseEditor: ({ content, onJsonContentChange, onHtmlContentChange, onMarkdownContentChange, version, textSize, highlight, handleImageUpload, aiController, disabled, markdownConfig }: RebaseEditorProps) => React.JSX.Element;
32
+ /** @deprecated Use `RichTextEditorProps` instead. */
33
+ export type RebaseEditorProps = RichTextEditorProps;
34
+ export declare const RichTextEditor: ({ content, onJsonContentChange, onHtmlContentChange, onMarkdownContentChange, version, textSize, highlight, handleImageUpload, aiController, disabled, markdownConfig }: RichTextEditorProps) => React.JSX.Element;
35
+ /** @deprecated Use `RichTextEditor` instead. */
36
+ export declare const RebaseEditor: ({ content, onJsonContentChange, onHtmlContentChange, onMarkdownContentChange, version, textSize, highlight, handleImageUpload, aiController, disabled, markdownConfig }: RichTextEditorProps) => React.JSX.Element;
package/dist/editor.js CHANGED
@@ -2491,7 +2491,7 @@ var proseClasses = {
2491
2491
  "base": "prose-base",
2492
2492
  "lg": "prose-lg"
2493
2493
  };
2494
- var RebaseEditor = ({ content, onJsonContentChange, onHtmlContentChange, onMarkdownContentChange, version, textSize = "base", highlight, handleImageUpload, aiController, disabled, markdownConfig }) => {
2494
+ var RichTextEditor = ({ content, onJsonContentChange, onHtmlContentChange, onMarkdownContentChange, version, textSize = "base", highlight, handleImageUpload, aiController, disabled, markdownConfig }) => {
2495
2495
  const { t } = useTranslation();
2496
2496
  const [openNode, setOpenNode] = useState(false);
2497
2497
  const [openLink, setOpenLink] = useState(false);
@@ -2548,7 +2548,7 @@ var RebaseEditor = ({ content, onJsonContentChange, onHtmlContentChange, onMarkd
2548
2548
  if (onMarkdownContentChange) try {
2549
2549
  onMarkdownContentChange(serializer.serialize(currentState.doc));
2550
2550
  } catch (e) {
2551
- console.warn("[RebaseEditor] Could not serialize editor state to markdown:", e);
2551
+ console.warn("[RichTextEditor] Could not serialize editor state to markdown:", e);
2552
2552
  }
2553
2553
  if (onJsonContentChange) onJsonContentChange(removeClassesFromJson(currentState.doc.toJSON()));
2554
2554
  };
@@ -2569,7 +2569,7 @@ var RebaseEditor = ({ content, onJsonContentChange, onHtmlContentChange, onMarkd
2569
2569
  view.dispatch(tr);
2570
2570
  }
2571
2571
  } catch (e) {
2572
- console.warn("[RebaseEditor] Could not reset editor content:", e);
2572
+ console.warn("[RichTextEditor] Could not reset editor content:", e);
2573
2573
  }
2574
2574
  if (isMarkdownMode) setInternalMarkdown(typeof content === "string" ? content : "");
2575
2575
  mountTimeRef.current = Date.now();
@@ -2681,6 +2681,8 @@ var RebaseEditor = ({ content, onJsonContentChange, onHtmlContentChange, onMarkd
2681
2681
  })]
2682
2682
  });
2683
2683
  };
2684
+ /** @deprecated Use `RichTextEditor` instead. */
2685
+ var RebaseEditor = RichTextEditor;
2684
2686
  var cssStyles = `
2685
2687
  .ProseMirror {
2686
2688
  box-shadow: none !important;
@@ -2885,6 +2887,6 @@ ul[data-type="taskList"] li[data-checked="true"] > div > p {
2885
2887
  }
2886
2888
  `;
2887
2889
  //#endregion
2888
- export { RebaseEditor };
2890
+ export { RebaseEditor, RichTextEditor };
2889
2891
 
2890
2892
  //# sourceMappingURL=editor.js.map