Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Merge remote-tracking branch 'origin/main' into react/type_widgets
Elian Doran8828e36624dd
diff --cc apps/client/src/layouts/desktop_layout.tsxindex 00f0c3473d,3f94165849..0f75666b80--- a/apps/client/src/layouts/desktop_layout.tsx+++ b/apps/client/src/layouts/desktop_layout.tsx@@@ -137,8 -137,8 +137,8 @@@ export default class DesktopLayout.filling().child(new PromotedAttributesWidget()).child(<SqlTableSchemas />)- .child(new NoteDetailWidget())+ .child(<NoteDetail />)- .child(<NoteList />)+ .child(<NoteList media="screen" />).child(<SearchResult />).child(<SqlResults />).child(<ScrollPadding />)diff --cc apps/client/src/layouts/layout_commons.tsxindex 7f187baa06,26f8ea2328..031ef03de6--- a/apps/client/src/layouts/layout_commons.tsx+++ b/apps/client/src/layouts/layout_commons.tsx@@@ -26,11 -26,12 +26,12 @@@ import PopupEditorDialog from "../widgeimport FlexContainer from "../widgets/containers/flex_container.js";import NoteIconWidget from "../widgets/note_icon";import PromotedAttributesWidget from "../widgets/promoted_attributes.js";-import NoteDetailWidget from "../widgets/note_detail.js";import CallToActionDialog from "../widgets/dialogs/call_to_action.jsx";import NoteTitleWidget from "../widgets/note_title.jsx";- import { PopupEditorFormattingToolbar } from "../widgets/ribbon/FormattingToolbar.js";+ import FormattingToolbar from "../widgets/ribbon/FormattingToolbar.js";import NoteList from "../widgets/collections/NoteList.jsx";+import NoteDetail from "../widgets/NoteDetail.jsx";+ import StandaloneRibbonAdapter from "../widgets/ribbon/components/StandaloneRibbonAdapter.jsx";export function applyModals(rootContainer: RootContainer) {rootContainer@@@ -63,9 -64,9 +64,9 @@@.cssBlock(".title-row > * { margin: 5px; }").child(<NoteIconWidget />).child(<NoteTitleWidget />))- .child(<PopupEditorFormattingToolbar />)+ .child(<StandaloneRibbonAdapter component={FormattingToolbar} />).child(new PromotedAttributesWidget())- .child(new NoteDetailWidget())+ .child(<NoteDetail />)- .child(<NoteList displayOnlyCollections />))+ .child(<NoteList media="screen" displayOnlyCollections />)).child(<CallToActionDialog />);}diff --cc apps/client/src/layouts/mobile_layout.tsxindex 0bed126e37,2bae994b62..2ea4831a28--- a/apps/client/src/layouts/mobile_layout.tsx+++ b/apps/client/src/layouts/mobile_layout.tsx@@@ -23,7 -24,9 +23,10 @@@ import CloseZenModeButton from "../widgimport NoteWrapperWidget from "../widgets/note_wrapper.js";import MobileDetailMenu from "../widgets/mobile_widgets/mobile_detail_menu.js";import NoteList from "../widgets/collections/NoteList.jsx";+import NoteDetail from "../widgets/NoteDetail.jsx";+ import StandaloneRibbonAdapter from "../widgets/ribbon/components/StandaloneRibbonAdapter.jsx";+ import SearchDefinitionTab from "../widgets/ribbon/SearchDefinitionTab.jsx";+ import SearchResult from "../widgets/search_result.jsx";const MOBILE_CSS = `<style>@@@ -153,8 -156,10 +156,10 @@@ export default class MobileLayoutnew ScrollingContainer().filling().contentSized()- .child(new NoteDetailWidget())+ .child(<NoteDetail />)- .child(<NoteList />)+ .child(<NoteList media="screen" />)+ .child(<StandaloneRibbonAdapter component={SearchDefinitionTab} />)+ .child(<SearchResult />).child(<FilePropertiesWrapper />)).child(<MobileEditorToolbar />)diff --cc apps/client/src/widgets/NoteDetail.tsxindex 1ee6d01ec9,0000000000..1084011ed8mode 100644,000000..100644--- a/apps/client/src/widgets/NoteDetail.tsx+++ b/apps/client/src/widgets/NoteDetail.tsx@@@ -1,276 -1,0 +1,324 @@@+import { useNoteContext, useTriliumEvent, useTriliumEvents } from "./react/hooks"+import FNote from "../entities/fnote";+import protected_session_holder from "../services/protected_session_holder";+import { useEffect, useRef, useState } from "preact/hooks";+import NoteContext from "../components/note_context";+import { isValidElement, VNode } from "preact";+import { TypeWidgetProps } from "./type_widgets/type_widget";+import "./NoteDetail.css";+import attributes from "../services/attributes";+import { ExtendedNoteType, TYPE_MAPPINGS, TypeWidget } from "./note_types";- import { dynamicRequire, isMobile } from "../services/utils";++import { dynamicRequire, isElectron, isMobile } from "../services/utils";++import toast from "../services/toast.js";++import { t } from "../services/i18n";++/**+ * The note detail is in charge of rendering the content of a note, by determining its type (e.g. text, code) and using the appropriate view widget.+ *+ * Apart from that, it:+ * - Applies a full-height style depending on the content type (e.g. canvas notes).+ * - Focuses the content when switching tabs.+ * - Caches the note type elements based on what the user has accessed, in order to quickly load it again.+ * - Fixes the tree for launch bar configurations on mobile.+ * - Provides scripting events such as obtaining the active note detail widget, or note type widget.+ * - Printing and exporting to PDF.+ */+export default function NoteDetail() {+ const containerRef = useRef<HTMLDivElement>(null);+ const { note, type, mime, noteContext, parentComponent } = useNoteInfo();+ const { ntxId, viewScope } = noteContext ?? {};+ const isFullHeight = checkFullHeight(noteContext, type);+ const noteTypesToRender = useRef<{ [ key in ExtendedNoteType ]?: (props: TypeWidgetProps) => VNode }>({});+ const [ activeNoteType, setActiveNoteType ] = useState<ExtendedNoteType>();++ const props: TypeWidgetProps = {+ note: note!,+ viewScope,+ ntxId,+ parentComponent,+ noteContext+ };+ useEffect(() => {+ if (!type) return;++ if (!noteTypesToRender.current[type]) {+ getCorrespondingWidget(type).then((el) => {+ if (!el) return;+ noteTypesToRender.current[type] = el;+ setActiveNoteType(type);+ });+ } else {+ setActiveNoteType(type);+ }+ }, [ note, viewScope, type ]);++ // Detect note type changes.+ useTriliumEvent("entitiesReloaded", async ({ loadResults }) => {+ if (!note) return;++ // we're detecting note type change on the note_detail level, but triggering the noteTypeMimeChanged+ // globally, so it gets also to e.g. ribbon components. But this means that the event can be generated multiple+ // times if the same note is open in several tabs.++ if (note.noteId && loadResults.isNoteContentReloaded(note.noteId, parentComponent.componentId)) {+ // probably incorrect event+ // calling this.refresh() is not enough since the event needs to be propagated to children as well+ // FIXME: create a separate event to force hierarchical refresh++ // this uses handleEvent to make sure that the ordinary content updates are propagated only in the subtree+ // to avoid the problem in #3365+ parentComponent.handleEvent("noteTypeMimeChanged", { noteId: note.noteId });+ } else if (note.noteId+ && loadResults.isNoteReloaded(note.noteId, parentComponent.componentId)+ && (type !== (await getWidgetType(note, noteContext)) || mime !== note?.mime)) {+ // this needs to have a triggerEvent so that e.g., note type (not in the component subtree) is updated+ parentComponent.triggerEvent("noteTypeMimeChanged", { noteId: note.noteId });+ } else {+ const attrs = loadResults.getAttributeRows();++ const label = attrs.find(+ (attr) =>+ attr.type === "label" &&+ ["readOnly", "autoReadOnlyDisabled", "cssClass", "displayRelations", "hideRelations"].includes(attr.name ?? "") &&+ attributes.isAffecting(attr, note)+ );++ const relation = attrs.find((attr) => attr.type === "relation" && ["template", "inherit", "renderNote"]+ .includes(attr.name ?? "") && attributes.isAffecting(attr, note));++ if (note.noteId && (label || relation)) {+ // probably incorrect event+ // calling this.refresh() is not enough since the event needs to be propagated to children as well+ parentComponent.triggerEvent("noteTypeMimeChanged", { noteId: note.noteId });+ }+ }+ });++ // Automatically focus the editor.+ useTriliumEvent("activeNoteChanged", () => {+ // Restore focus to the editor when switching tabs, but only if the note tree is not already focused.+ if (!document.activeElement?.classList.contains("fancytree-title")) {+ parentComponent.triggerCommand("focusOnDetail", { ntxId });+ }+ });++ // Fixed tree for launch bar config on mobile.+ useEffect(() => {+ if (!isMobile) return;+ const hasFixedTree = noteContext?.hoistedNoteId === "_lbMobileRoot";+ document.body.classList.toggle("force-fixed-tree", hasFixedTree);+ }, [ note ]);+++ // Handle toast notifications.++ useEffect(() => {++ if (!isElectron()) return;++ const { ipcRenderer } = dynamicRequire("electron");++ const listener = () => {++ toast.closePersistent("printing");++ };++ ipcRenderer.on("print-done", listener);++ return () => ipcRenderer.off("print-done", listener);++ }, []);+++ useTriliumEvent("executeInActiveNoteDetailWidget", ({ callback }) => {+ if (!noteContext?.isActive()) return;+ callback(parentComponent);+ });++ useTriliumEvent("executeWithTypeWidget", ({ resolve, ntxId: eventNtxId }) => {+ if (eventNtxId !== ntxId || !activeNoteType || !containerRef.current) return;++ const classNameToSearch = TYPE_MAPPINGS[activeNoteType].className;+ const componentEl = containerRef.current.querySelector<HTMLElement>(`.${classNameToSearch}`);+ if (!componentEl) return;++ const component = glob.getComponentByEl(componentEl);+ resolve(component);+ });++ useTriliumEvent("printActiveNote", () => {+ if (!noteContext?.isActive() || !note) return;+- // Trigger in timeout to dismiss the menu while printing.- setTimeout(window.print, 0);++ toast.showPersistent({++ icon: "bx bx-loader-circle bx-spin",++ message: t("note_detail.printing"),++ id: "printing"++ });++++ if (isElectron()) {++ const { ipcRenderer } = dynamicRequire("electron");++ ipcRenderer.send("print-note", {++ notePath: noteContext.notePath++ });++ } else {++ const iframe = document.createElement('iframe');++ iframe.src = `?print#${noteContext.notePath}`;++ iframe.className = "print-iframe";++ document.body.appendChild(iframe);++ iframe.onload = () => {++ if (!iframe.contentWindow) {++ toast.closePersistent("printing");++ document.body.removeChild(iframe);++ return;++ }++++ iframe.contentWindow.addEventListener("note-ready", () => {++ toast.closePersistent("printing");++ iframe.contentWindow?.print();++ document.body.removeChild(iframe);++ });++ };++ }+ });++ useTriliumEvent("exportAsPdf", () => {+ if (!noteContext?.isActive() || !note) return;++ toast.showPersistent({++ icon: "bx bx-loader-circle bx-spin",++ message: t("note_detail.printing_pdf"),++ id: "printing"++ });+++ const { ipcRenderer } = dynamicRequire("electron");+ ipcRenderer.send("export-as-pdf", {+ title: note.title,++ notePath: noteContext.notePath,+ pageSize: note.getAttributeValue("label", "printPageSize") ?? "Letter",+ landscape: note.hasAttribute("label", "printLandscape")+ });+ });++ return (+ <div+ ref={containerRef}+ class={`note-detail ${isFullHeight ? "full-height" : ""}`}+ >+ {Object.entries(noteTypesToRender.current).map(([ type, Element ]) => {+ return <NoteDetailWrapper+ Element={Element}+ key={type}+ type={type as ExtendedNoteType}+ isVisible={activeNoteType === type}+ isFullHeight={isFullHeight}+ props={props}+ />+ })}+ </div>+ );+}++/**+ * Wraps a single note type widget, in order to keep it in the DOM even after the user has switched away to another note type. This allows faster loading of the same note type again. The properties are cached, so that they are updated only+ * while the widget is visible, to avoid rendering in the background. When not visible, the DOM element is simply hidden.+ */+function NoteDetailWrapper({ Element, type, isVisible, isFullHeight, props }: { Element: (props: TypeWidgetProps) => VNode, type: ExtendedNoteType, isVisible: boolean, isFullHeight: boolean, props: TypeWidgetProps }) {+ const [ cachedProps, setCachedProps ] = useState(props);++ useEffect(() => {+ if (isVisible) {+ setCachedProps(props);+ } else {+ // Do nothing, keep the old props.+ }+ }, [ isVisible ]);++ const typeMapping = TYPE_MAPPINGS[type];+ return (+ <div+ className={`${typeMapping.className} ${typeMapping.printable ? "note-detail-printable" : ""}`}+ style={{+ display: !isVisible ? "none" : "",+ height: isFullHeight ? "100%" : ""+ }}+ >+ { <Element {...cachedProps} /> }+ </div>+ );+}++/** Manages both note changes and changes to the widget type, which are asynchronous. */+function useNoteInfo() {+ const { note: actualNote, noteContext, parentComponent } = useNoteContext();+ const [ note, setNote ] = useState<FNote | null | undefined>();+ const [ type, setType ] = useState<ExtendedNoteType>();+ const [ mime, setMime ] = useState<string>();++ function refresh() {+ getWidgetType(actualNote, noteContext).then(type => {+ setNote(actualNote);+ setType(type);+ setMime(actualNote?.mime);+ });+ }++ useEffect(refresh, [ actualNote, noteContext, noteContext?.viewScope ]);+ useTriliumEvent("readOnlyTemporarilyDisabled", ({ noteContext: eventNoteContext }) => {+ if (eventNoteContext?.ntxId !== noteContext?.ntxId) return;+ refresh();+ });+ useTriliumEvent("noteTypeMimeChanged", refresh);++ return { note, type, mime, noteContext, parentComponent };+}++async function getCorrespondingWidget(type: ExtendedNoteType): Promise<null | TypeWidget> {+ const correspondingType = TYPE_MAPPINGS[type].view;+ if (!correspondingType) return null;++ const result = await correspondingType();++ if ("default" in result) {+ return result.default;+ } else if (isValidElement(result)) {+ // Direct VNode provided.+ return result;+ } else {+ return result;+ }+}++async function getWidgetType(note: FNote | null | undefined, noteContext: NoteContext | undefined): Promise<ExtendedNoteType> {+ if (!note) {+ console.log("Returning empty because no note.");+ return "empty";+ }++ const type = note.type;+ let resultingType: ExtendedNoteType;++ if (noteContext?.viewScope?.viewMode === "source") {+ resultingType = "readOnlyCode";+ } else if (noteContext?.viewScope && noteContext.viewScope.viewMode === "attachments") {+ resultingType = noteContext.viewScope.attachmentId ? "attachmentDetail" : "attachmentList";+ } else if (type === "text" && (await noteContext?.isReadOnly())) {+ resultingType = "readOnlyText";+ } else if ((type === "code" || type === "mermaid") && (await noteContext?.isReadOnly())) {+ resultingType = "readOnlyCode";+ } else if (type === "text") {+ resultingType = "editableText";+ } else if (type === "code") {+ resultingType = "editableCode";+ } else if (type === "launcher") {+ resultingType = "doc";+ } else {+ resultingType = type;+ }++ if (note.isProtected && !protected_session_holder.isProtectedSessionAvailable()) {+ resultingType = "protectedSession";+ }++ return resultingType;+}++function checkFullHeight(noteContext: NoteContext | undefined, type: ExtendedNoteType | undefined) {+ if (!noteContext) return false;++ // https://github.com/zadam/trilium/issues/2522+ const isBackendNote = noteContext?.noteId === "_backendLog";+ const isSqlNote = noteContext.note?.mime === "text/x-sqlite;schema=trilium";+ const isFullHeightNoteType = type && TYPE_MAPPINGS[type].isFullHeight;+ return (!noteContext?.hasNoteList() && isFullHeightNoteType && !isSqlNote)+ || noteContext?.viewScope?.viewMode === "attachments"+ || isBackendNote;+}diff --cc apps/client/src/widgets/ribbon/NoteActions.tsxindex 1328d2a891,1c1c17502c..4597aa119a--- a/apps/client/src/widgets/ribbon/NoteActions.tsx+++ b/apps/client/src/widgets/ribbon/NoteActions.tsx@@@ -45,12 -45,12 +45,12 @@@ function RevisionsButton({ note }: { nofunction NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: NoteContext }) {const parentComponent = useContext(ParentComponent);const canBeConvertedToAttachment = note?.isEligibleForConversionToAttachment();- const isSearchable = ["text", "code", "book", "mindMap", "doc", "render"].includes(note.type);- const isInOptions = note.noteId.startsWith("_options");- const isPrintable = ["text", "code"].includes(note.type);+ const isSearchable = ["text", "code", "book", "mindMap", "doc"].includes(note.type);+ const isInOptionsOrHelp = note?.noteId.startsWith("_options") || note?.noteId.startsWith("_help");+ const isPrintable = ["text", "code"].includes(note.type) || (note.type === "book" && note.getLabelValue("viewType") === "presentation");const isElectron = getIsElectron();const isMac = getIsMac();- const hasSource = ["text", "code", "relationMap", "mermaid", "canvas", "mindMap"].includes(note.type);+ const hasSource = ["text", "code", "relationMap", "mermaid", "canvas", "mindMap", "aiChat"].includes(note.type);const isSearchOrBook = ["search", "book"].includes(note.type);return (diff --cc apps/client/src/widgets/type_widgets/helpers/SplitEditor.tsxindex 76b5f35adf,0000000000..e6d85cf7c9mode 100644,000000..100644--- a/apps/client/src/widgets/type_widgets/helpers/SplitEditor.tsx+++ b/apps/client/src/widgets/type_widgets/helpers/SplitEditor.tsx@@@ -1,98 -1,0 +1,99 @@@+import { useEffect, useRef } from "preact/hooks";+import utils, { isMobile } from "../../../services/utils";+import Admonition from "../../react/Admonition";+import { useNoteLabelBoolean, useTriliumOption } from "../../react/hooks";+import "./SplitEditor.css";- import Split from "split.js";++import Split from "@triliumnext/split.js";+import { DEFAULT_GUTTER_SIZE } from "../../../services/resizer";+import { EditableCode, EditableCodeProps } from "../code/Code";+import { ComponentChildren } from "preact";+import ActionButton, { ActionButtonProps } from "../../react/ActionButton";++export interface SplitEditorProps extends EditableCodeProps {+ className?: string;+ error?: string | null;+ splitOptions?: Split.Options;+ previewContent: ComponentChildren;+ previewButtons?: ComponentChildren;+}++/**+ * Abstract `TypeWidget` which contains a preview and editor pane, each displayed on half of the available screen.+ *+ * Features:+ *+ * - The two panes are resizeable via a split, on desktop. The split can be optionally customized via {@link buildSplitExtraOptions}.+ * - Can display errors to the user via {@link setError}.+ * - Horizontal or vertical orientation for the editor/preview split, adjustable via the switch split orientation button floating button.+ */+export default function SplitEditor({ note, error, splitOptions, previewContent, previewButtons, className, ...editorProps }: SplitEditorProps) {+ const splitEditorOrientation = useSplitOrientation();+ const [ readOnly ] = useNoteLabelBoolean(note, "readOnly");+ const containerRef = useRef<HTMLDivElement>(null);++ const editor = (!readOnly &&+ <div className="note-detail-split-editor-col">+ <div className="note-detail-split-editor">+ <EditableCode+ note={note}+ lineWrapping={false}+ updateInterval={750} debounceUpdate+ noBackgroundChange+ {...editorProps}+ />+ </div>+ {error && <Admonition type="caution" className="note-detail-error-container">+ {error}+ </Admonition>}+ </div>+ );++ const preview = (+ <div className="note-detail-split-preview-col">+ <div className={`note-detail-split-preview ${error ? "on-error" : ""}`}>+ {previewContent}+ </div>+ <div className="btn-group btn-group-sm map-type-switcher content-floating-buttons preview-buttons bottom-right" role="group">+ {previewButtons}+ </div>+ </div>+ );++ useEffect(() => {+ if (!utils.isDesktop() || !containerRef.current || readOnly) return;+ const elements = Array.from(containerRef.current?.children) as HTMLElement[];+ const splitInstance = Split(elements, {- sizes: [ 50, 50],++ rtl: glob.isRtl,++ sizes: [ 50, 50 ],+ direction: splitEditorOrientation,+ gutterSize: DEFAULT_GUTTER_SIZE,+ ...splitOptions+ });++ return () => splitInstance.destroy();+ }, [ readOnly, splitEditorOrientation ]);++ return (+ <div ref={containerRef} className={`note-detail-split note-detail-printable ${"split-" + splitEditorOrientation} ${readOnly ? "split-read-only" : ""} ${className ?? ""}`}>+ {splitEditorOrientation === "horizontal"+ ? <>{editor}{preview}</>+ : <>{preview}{editor}</>}+ </div>+ )+}++export function PreviewButton(props: Omit<ActionButtonProps, "titlePosition">) {+ return <ActionButton+ {...props}+ className="tn-tool-button"+ noIconActionClass+ titlePosition="top"+ />+}++function useSplitOrientation() {+ const [ splitEditorOrientation ] = useTriliumOption("splitEditorOrientation");+ if (isMobile()) return "vertical";+ if (!splitEditorOrientation) return "horizontal";+ return splitEditorOrientation as "horizontal" | "vertical";+}diff --cc packages/commons/src/lib/attribute_names.tsindex f39776f0d9,d55d4e3757..9db831a10f--- a/packages/commons/src/lib/attribute_names.ts+++ b/packages/commons/src/lib/attribute_names.ts@@@ -38,12 -39,8 +38,14 @@@ type Labels ="board:groupBy": string;maxNestingDepth: number;includeArchived: boolean;+ "presentation:theme": string;+ "slide:background": string;++ // Note-type specific+ webViewSrc: string;+ readOnly: boolean;+ mapType: string;+ mapRootNoteId: string;}/**diff --cc pnpm-lock.yamlindex 87514a6f46,67292f16fb..6b667b9f0d--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@@ -14677,31 -14990,33 +14990,31 @@@ snapshotstransitivePeerDependencies:- supports-color- '@ckeditor/[email protected]':+ '@ckeditor/[email protected]':dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-engine': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- '@ckeditor/ckeditor5-widget': 47.0.0+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-engine': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ '@ckeditor/ckeditor5-widget': 47.1.0es-toolkit: 1.39.5- '@ckeditor/[email protected]':+ '@ckeditor/[email protected]':dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)- transitivePeerDependencies:- - supports-color- '@ckeditor/[email protected](patch_hash=2361d8caad7d6b5bddacc3a3b4aa37dbfba260b1c1b22a450413a79c1bb1ce95)':+ '@ckeditor/[email protected](patch_hash=2361d8caad7d6b5bddacc3a3b4aa37dbfba260b1c1b22a450413a79c1bb1ce95)':dependencies:- '@ckeditor/ckeditor5-clipboard': 47.0.0- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-engine': 47.0.0- '@ckeditor/ckeditor5-enter': 47.0.0- '@ckeditor/ckeditor5-icons': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ '@ckeditor/ckeditor5-clipboard': 47.1.0+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-engine': 47.1.0+ '@ckeditor/ckeditor5-enter': 47.1.0+ '@ckeditor/ckeditor5-icons': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)transitivePeerDependencies:- supports-color@@@ -14745,15 -15060,13 +15058,15 @@@transitivePeerDependencies:- supports-color- '@ckeditor/[email protected]':+ '@ckeditor/[email protected]':dependencies:- '@ckeditor/ckeditor5-engine': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- '@ckeditor/ckeditor5-watchdog': 47.0.0+ '@ckeditor/ckeditor5-engine': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ '@ckeditor/ckeditor5-watchdog': 47.1.0es-toolkit: 1.39.5+ transitivePeerDependencies:+ - supports-colordependencies:@@@ -14910,51 -15223,51 +15223,51 @@@transitivePeerDependencies:- supports-color- '@ckeditor/[email protected]':+ '@ckeditor/[email protected]':dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-engine': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-engine': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)es-toolkit: 1.39.5- transitivePeerDependencies:- - supports-color- '@ckeditor/[email protected]':+ '@ckeditor/[email protected]':dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-engine': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-engine': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)es-toolkit: 1.39.5- '@ckeditor/[email protected]':+ '@ckeditor/[email protected]':dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-engine': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-engine': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)es-toolkit: 1.39.5- '@ckeditor/[email protected]':+ '@ckeditor/[email protected]':dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-engine': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-engine': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)es-toolkit: 1.39.5+ transitivePeerDependencies:+ - supports-color- '@ckeditor/[email protected]':+ '@ckeditor/[email protected]':dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-engine': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-engine': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)es-toolkit: 1.39.5transitivePeerDependencies:- supports-color@@@ -15276,26 -15589,26 +15589,28 @@@transitivePeerDependencies:- supports-color- '@ckeditor/[email protected]':- dependencies:- '@ckeditor/ckeditor5-clipboard': 47.0.0- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-engine': 47.0.0- '@ckeditor/ckeditor5-icons': 47.0.0- '@ckeditor/ckeditor5-typing': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-undo': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- '@ckeditor/ckeditor5-widget': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)-- '@ckeditor/[email protected](patch_hash=5981fb59ba35829e4dff1d39cf771000f8a8fdfa7a34b51d8af9549541f2d62d)':- dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-typing': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ '@ckeditor/[email protected]':+ dependencies:+ '@ckeditor/ckeditor5-clipboard': 47.1.0+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-engine': 47.1.0+ '@ckeditor/ckeditor5-icons': 47.1.0+ '@ckeditor/ckeditor5-typing': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-undo': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ '@ckeditor/ckeditor5-widget': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)++ transitivePeerDependencies:++ - supports-color++ '@ckeditor/[email protected](patch_hash=5981fb59ba35829e4dff1d39cf771000f8a8fdfa7a34b51d8af9549541f2d62d)':+ dependencies:+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-typing': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)es-toolkit: 1.39.5transitivePeerDependencies:- supports-color@@@ -15433,39 -15747,37 +15749,39 @@@- supports-color- utf-8-validate- '@ckeditor/[email protected]':+ '@ckeditor/[email protected]':dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-icons': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-icons': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ transitivePeerDependencies:+ - supports-color- '@ckeditor/[email protected]':- dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-engine': 47.0.0- '@ckeditor/ckeditor5-icons': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)-- '@ckeditor/[email protected]':- dependencies:- '@ckeditor/ckeditor5-autosave': 47.0.0- '@ckeditor/ckeditor5-collaboration-core': 47.0.0- '@ckeditor/ckeditor5-comments': 47.0.0- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-editor-classic': 47.0.0- '@ckeditor/ckeditor5-engine': 47.0.0- '@ckeditor/ckeditor5-icons': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0+ '@ckeditor/[email protected]':+ dependencies:+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-engine': 47.1.0+ '@ckeditor/ckeditor5-icons': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)++ '@ckeditor/[email protected]':+ dependencies:+ '@ckeditor/ckeditor5-autosave': 47.1.0+ '@ckeditor/ckeditor5-collaboration-core': 47.1.0+ '@ckeditor/ckeditor5-comments': 47.1.0+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-editor-classic': 47.1.0+ '@ckeditor/ckeditor5-engine': 47.1.0+ '@ckeditor/ckeditor5-icons': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0'@types/luxon': 3.6.2- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)- ckeditor5-collaboration: 47.0.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ ckeditor5-collaboration: 47.1.0es-toolkit: 1.39.5luxon: 3.6.1transitivePeerDependencies:@@@ -15517,37 -15829,39 +15833,37 @@@'@codemirror/language': 6.11.0'@codemirror/state': 6.5.2'@codemirror/theme-one-dark': 6.1.2- '@codemirror/view': 6.38.5- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)-- '@ckeditor/[email protected]':- dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-icons': 47.0.0- '@ckeditor/ckeditor5-theme-lark': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)-- '@ckeditor/[email protected]':- dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-icons': 47.0.0- '@ckeditor/ckeditor5-typing': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)-- '@ckeditor/[email protected]':- dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-html-support': 47.0.0- '@ckeditor/ckeditor5-list': 47.0.0- '@ckeditor/ckeditor5-table': 47.0.0- '@ckeditor/ckeditor5-typing': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ '@codemirror/view': 6.38.6+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)++ '@ckeditor/[email protected]':+ dependencies:+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-icons': 47.1.0+ '@ckeditor/ckeditor5-theme-lark': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)- transitivePeerDependencies:- - supports-color++ '@ckeditor/[email protected]':+ dependencies:+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-icons': 47.1.0+ '@ckeditor/ckeditor5-typing': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)++ '@ckeditor/[email protected]':+ dependencies:+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-html-support': 47.1.0+ '@ckeditor/ckeditor5-list': 47.1.0+ '@ckeditor/ckeditor5-table': 47.1.0+ '@ckeditor/ckeditor5-typing': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)es-toolkit: 1.39.5transitivePeerDependencies:- supports-color@@@ -15632,31 -15946,33 +15948,31 @@@transitivePeerDependencies:- supports-color- '@ckeditor/[email protected]':+ '@ckeditor/[email protected]':dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-engine': 47.0.0- '@ckeditor/ckeditor5-icons': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-engine': 47.1.0+ '@ckeditor/ckeditor5-icons': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0- transitivePeerDependencies:- - supports-color- '@ckeditor/[email protected]':+ '@ckeditor/[email protected]':dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0dependencies:- '@ckeditor/ckeditor5-core': 47.0.0- '@ckeditor/ckeditor5-icons': 47.0.0- '@ckeditor/ckeditor5-image': 47.0.0- '@ckeditor/ckeditor5-theme-lark': 47.0.0- '@ckeditor/ckeditor5-ui': 47.0.0- '@ckeditor/ckeditor5-upload': 47.0.0- '@ckeditor/ckeditor5-utils': 47.0.0+ '@ckeditor/ckeditor5-core': 47.1.0+ '@ckeditor/ckeditor5-icons': 47.1.0+ '@ckeditor/ckeditor5-image': 47.1.0+ '@ckeditor/ckeditor5-theme-lark': 47.1.0+ '@ckeditor/ckeditor5-ui': 47.1.0+ '@ckeditor/ckeditor5-upload': 47.1.0+ '@ckeditor/ckeditor5-utils': 47.1.0'@uploadcare/file-uploader': 1.19.4([email protected])([email protected])'@uploadcare/upload-client': 6.14.3([email protected])([email protected])- ckeditor5: 47.0.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)+ ckeditor5: 47.1.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)transitivePeerDependencies:- bufferutil- utf-8-validate