@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.
- package/README.md +7 -3
- package/dist/{CollectionEditorDialog-jA-PLh6N.js → CollectionEditorDialog-HNXGxXdO.js} +3 -3
- package/dist/{CollectionEditorDialog-jA-PLh6N.js.map → CollectionEditorDialog-HNXGxXdO.js.map} +1 -1
- package/dist/{CollectionsStudioView-UKouBPOm.js → CollectionsStudioView-B1mN33GB.js} +4 -4
- package/dist/{CollectionsStudioView-UKouBPOm.js.map → CollectionsStudioView-B1mN33GB.js.map} +1 -1
- package/dist/{PropertyEditView-DEUddmg_.js → PropertyEditView-C2wp8kQ9.js} +2 -2
- package/dist/{PropertyEditView-DEUddmg_.js.map → PropertyEditView-C2wp8kQ9.js.map} +1 -1
- package/dist/collection_editor_ui.js +3 -3
- package/dist/editor/editor.d.ts +10 -4
- package/dist/editor.js +6 -4
- package/dist/editor.js.map +1 -1
- package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +2 -2
- package/dist/{history-BL49TIDb.js → history-BO6VT85a.js} +2 -2
- package/dist/{history-BL49TIDb.js.map → history-BO6VT85a.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-BJ8fkM8y.js → src-BYniefVu.js} +56 -55
- package/dist/src-BYniefVu.js.map +1 -0
- package/package.json +8 -8
- package/src/collection_editor/ui/AddKanbanColumnAction.tsx +2 -0
- package/src/components/ArrayContainer.tsx +5 -5
- package/src/components/DrawerNavigationItem.tsx +4 -4
- package/src/components/EntityCollectionView/EntityCollectionBoardView.tsx +2 -0
- package/src/components/HomePage/NavigationCard.tsx +8 -14
- package/src/components/HomePage/NavigationGroup.tsx +1 -1
- package/src/components/HomePage/SmallNavigationCard.tsx +1 -5
- package/src/components/SelectableTable/filters/StringNumberFilterField.tsx +28 -21
- package/src/components/common/default_entity_actions.tsx +10 -2
- package/src/editor/editor.tsx +14 -8
- package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +4 -4
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +1 -1
- package/src/index.ts +2 -2
- package/dist/src-BJ8fkM8y.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as CollectionEditorDialog } from "./CollectionEditorDialog-
|
|
2
|
-
import { n as PropertyForm, r as PropertyFormDialog } from "./PropertyEditView-
|
|
3
|
-
import { r as CollectionStudioView, t as CollectionsStudioView } from "./CollectionsStudioView-
|
|
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 };
|
package/dist/editor/editor.d.ts
CHANGED
|
@@ -9,15 +9,17 @@ export interface MarkdownEditorConfig {
|
|
|
9
9
|
html?: boolean;
|
|
10
10
|
transformPastedText?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export type
|
|
13
|
-
|
|
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?:
|
|
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
|
-
|
|
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
|
|
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("[
|
|
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("[
|
|
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
|