From 283e8b4cdb27b053604151f5a956d1307a36d3eb Mon Sep 17 00:00:00 2001 From: Sabda Yagra Date: Tue, 3 Mar 2026 16:26:11 +0700 Subject: [PATCH] fixing --- .../admin/settings/tag/component/create.tsx | 57 +++-- .../tenant-settings-content-table.tsx | 36 ++- components/auth/login-form.tsx | 12 +- components/form/UserLevelsForm.tsx | 24 +- components/form/content/image/image-form.tsx | 11 - components/modals/WorkflowModalProvider.tsx | 4 +- components/modals/WorkflowSetupModal.tsx | 207 ++++++++++++++---- .../ckeditor5-utils/src/collection.d.ts | 4 +- .../@ckeditor/ckeditor5-utils/src/diff.d.ts | 2 +- .../ckeditor5-utils/src/difftochanges.d.ts | 2 +- .../ckeditor5-utils/src/dom/emittermixin.d.ts | 6 +- .../ckeditor5-utils/src/dom/position.d.ts | 2 +- .../ckeditor5-utils/src/emittermixin.d.ts | 8 +- .../ckeditor5-utils/src/fastdiff.d.ts | 4 +- .../ckeditor5-utils/src/focustracker.d.ts | 8 +- .../@ckeditor/ckeditor5-utils/src/index.d.ts | 114 +++++----- .../src/inserttopriorityarray.d.ts | 2 +- .../ckeditor5-utils/src/keyboard.d.ts | 2 +- .../ckeditor5-utils/src/keystrokehandler.d.ts | 6 +- .../@ckeditor/ckeditor5-utils/src/locale.d.ts | 6 +- .../ckeditor5-utils/src/observablemixin.d.ts | 4 +- .../src/translation-service.d.ts | 6 +- .../ckeditor5-widget/src/widgetresize.d.ts | 4 +- .../src/widgetresize/resizer.d.ts | 4 +- .../src/widgetresize/resizerstate.d.ts | 2 +- 25 files changed, 352 insertions(+), 185 deletions(-) diff --git a/app/[locale]/(admin)/admin/settings/tag/component/create.tsx b/app/[locale]/(admin)/admin/settings/tag/component/create.tsx index b704556..bc2af23 100644 --- a/app/[locale]/(admin)/admin/settings/tag/component/create.tsx +++ b/app/[locale]/(admin)/admin/settings/tag/component/create.tsx @@ -41,6 +41,7 @@ import { import { cn } from "@/lib/utils"; import { useTranslations } from "next-intl"; import { getCategoriesAll } from "@/service/service/settings/settings"; +import { listArticleCategories } from "@/service/content"; const FormSchema = z.object({ name: z.string({ @@ -62,15 +63,17 @@ export default function CreateTagModal() { const form = useForm>({ resolver: zodResolver(FormSchema), + defaultValues: { + name: "", + category: "", + }, }); - const onSubmit = async (data: z.infer) => { const request = { tagName: data.name, categoryId: Number(data.category), isActive: true, }; - console.log("reqqq", request); // const response = await postDataFeedback(request); // close(); // if (response?.error) { @@ -86,22 +89,29 @@ export default function CreateTagModal() { }; useEffect(() => { - getCategoryParent(); + const fetchCategories = async () => { + try { + const response = await listArticleCategories(1, 100); + + if (response?.error) { + console.error("Failed to fetch categories:", response.message); + return; + } + + const categories = + response?.data?.data?.map((item: any) => ({ + value: String(item.id), // wajib string + label: item.title, // pakai title dari API + })) || []; + + setCategoryList(categories); + } catch (error) { + console.error("Failed to fetch categories:", error); + } + }; + + fetchCategories(); }, []); - async function getCategoryParent() { - const response = await getCategoriesAll(); - const res = response?.data?.data.content; - console.log("res", res); - var levelsArr: { id: number; label: string; value: string }[] = []; - res.forEach((levels: { id: number; name: string }) => { - levelsArr.push({ - id: levels.id, - label: levels.name, - value: String(levels.id), - }); - }); - setCategoryList(levelsArr); - } return ( @@ -112,13 +122,16 @@ export default function CreateTagModal() { - {t("add-tags", { defaultValue: "Add Tags" })} + + {" "} + {t("add-tags", { defaultValue: "Add Tags" })} +
+ > {field.value ? categoryList.find( - (categ) => categ.value === field.value + (categ) => categ.value === field.value, )?.label : "Pilih level"} @@ -165,7 +178,7 @@ export default function CreateTagModal() { "ml-auto", role.value === field.value ? "opacity-100" - : "opacity-0" + : "opacity-0", )} /> diff --git a/app/[locale]/(admin)/admin/settings/tenant/component/tenant-settings-content-table.tsx b/app/[locale]/(admin)/admin/settings/tenant/component/tenant-settings-content-table.tsx index 5c5fc48..bb7e578 100644 --- a/app/[locale]/(admin)/admin/settings/tenant/component/tenant-settings-content-table.tsx +++ b/app/[locale]/(admin)/admin/settings/tenant/component/tenant-settings-content-table.tsx @@ -58,6 +58,7 @@ import useTableColumns from "./columns"; import { errorAutoClose, successAutoClose } from "@/lib/swal"; import { close, loading } from "@/config/swal"; import DetailTenant from "@/components/form/tenant/tenant-detail-update-form"; +import { getInfoProfile } from "@/service/auth"; function TenantSettingsContentTable() { const [activeTab, setActiveTab] = useLocalStorage( @@ -199,25 +200,42 @@ function TenantSettingsContentTable() {
-

Tenant Settings

+

+ Tenant Settings +

Manage approval workflows and user levels for your tenant

- {/*
+
- + */} + {/* -
*/} + */} +
@@ -431,7 +449,9 @@ function TenantSettingsContentTable() { {step.stepOrder}
-
{step.stepName}
+
+ {step.stepName} +
{step.conditionType && `Condition: ${step.conditionType}`} @@ -905,7 +925,7 @@ function TenantSettingsContentTable() { = ({ } }; + // const onSubmit = async (data: LoginFormData) => { + // try { + // // onSuccess?.(data); + // await handleLogin(data); + // } catch (error: any) { + // onError?.(error.message || "Login failed"); + // } + // }; + const onSubmit = async (data: LoginFormData) => { try { - // onSuccess?.(data); - await handleLogin(data); + onSuccess?.(data); // hanya kirim data ke AuthPage } catch (error: any) { onError?.(error.message || "Login failed"); } diff --git a/components/form/UserLevelsForm.tsx b/components/form/UserLevelsForm.tsx index b9f3a7b..d664543 100644 --- a/components/form/UserLevelsForm.tsx +++ b/components/form/UserLevelsForm.tsx @@ -47,7 +47,8 @@ import { getMenuActionsByMenuId, MenuAction } from "@/service/menu-actions"; import Swal from "sweetalert2"; interface UserLevelsFormProps { - initialData?: UserLevelsCreateRequest; + // initialData?: UserLevelsCreateRequest; + initialData?: UserLevelsCreateRequest & { id?: number }; onSave?: (data: UserLevelsCreateRequest) => void; onCancel?: () => void; isLoading?: boolean; @@ -458,8 +459,14 @@ export const UserLevelsForm: React.FC = ({ try { const isBulkMode = activeTab === "bulk"; - const isEditing = Boolean((initialData as any)?.id); - const userLevelId = (initialData as any)?.id; + // const isEditing = Boolean((initialData as any)?.id); + // const userLevelId = (initialData as any)?.id; + + const isEditing = typeof initialData?.id === "number"; + const userLevelId = initialData?.id; + + console.log("IS EDITING:", isEditing); + console.log("USER LEVEL ID:", userLevelId); /* =============================== * BULK MODE @@ -520,8 +527,15 @@ export const UserLevelsForm: React.FC = ({ } let response; - if (isEditing) { - response = await updateUserLevel(userLevelId, formData); + // if (isEditing) { + // response = await updateUserLevel(userLevelId, formData); + // } else { + // response = await createUserLevel(formData); + // } + + if (isEditing && userLevelId !== undefined) { + const { id, ...payload } = formData as any; + response = await updateUserLevel(userLevelId, payload); } else { response = await createUserLevel(formData); } diff --git a/components/form/content/image/image-form.tsx b/components/form/content/image/image-form.tsx index b22ecee..466b72f 100644 --- a/components/form/content/image/image-form.tsx +++ b/components/form/content/image/image-form.tsx @@ -261,10 +261,8 @@ export default function FormImage() { pointOfView: "None", clientId: "", }; - console.log("Sending request for title with data:", titleData); const titleRes = await getGenerateTitle(titleData); setTitle(titleRes?.data?.data || ""); - console.log("Generated title:", titleRes?.data?.data); const keywordsData = { keyword: selectedMainKeyword, @@ -275,12 +273,9 @@ export default function FormImage() { pointOfView: "None", clientId: "", }; - console.log("Sending request for keywords with data:", keywordsData); const keywordsRes = await getGenerateKeywords(keywordsData); setSelectedSEO(keywordsRes?.data?.data || []); - console.log("Generated keywords:", keywordsRes?.data?.data); } catch (error) { - console.error("Error during generation process:", error); } finally { setIsLoading(false); } @@ -310,9 +305,7 @@ export default function FormImage() { console.log("Sending request for title with data:", titleData); const titleRes = await getGenerateTitle(titleData); setTitle(titleRes?.data?.data || ""); - console.log("Generated title:", titleRes?.data?.data); } catch (error) { - console.error("Error generating title:", error); } finally { setIsLoading(false); } @@ -322,7 +315,6 @@ export default function FormImage() { title: "WARNING", text: "Please provide a valid title.", }); - console.error("Please provide a valid main keyword."); } }; @@ -339,10 +331,8 @@ export default function FormImage() { pointOfView: "None", clientId: "", }; - console.log("Sending request for keywords with data:", keywordsData); const keywordsRes = await getGenerateKeywords(keywordsData); setSelectedSEO(keywordsRes?.data?.data || []); - console.log("Generated keywords:", keywordsRes?.data?.data); } catch (error) { console.error("Error generating keywords:", error); } finally { @@ -378,7 +368,6 @@ export default function FormImage() { }; const res = await generateDataArticle(request); - console.log("AI RESPONSE FULL:", res); close(); if (res?.error) { diff --git a/components/modals/WorkflowModalProvider.tsx b/components/modals/WorkflowModalProvider.tsx index 1eb132e..e53fb71 100644 --- a/components/modals/WorkflowModalProvider.tsx +++ b/components/modals/WorkflowModalProvider.tsx @@ -113,12 +113,12 @@ export function WorkflowModalProvider({ children }: WorkflowModalProviderProps) return ( {children} - {/* */} + /> ); } diff --git a/components/modals/WorkflowSetupModal.tsx b/components/modals/WorkflowSetupModal.tsx index 730247f..ccc3330 100644 --- a/components/modals/WorkflowSetupModal.tsx +++ b/components/modals/WorkflowSetupModal.tsx @@ -1,6 +1,11 @@ "use client"; import React, { useState, useEffect } from "react"; -import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog"; +import { + Dialog, + DialogContent, + DialogHeader, + DialogTitle, +} from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; import { IconX, SettingsIcon } from "@/components/icons"; @@ -20,7 +25,12 @@ interface WorkflowSetupModalProps { onRefresh?: () => Promise; } -export default function WorkflowSetupModal({ isOpen, onClose, workflowInfo, onRefresh }: WorkflowSetupModalProps) { +export default function WorkflowSetupModal({ + isOpen, + onClose, + workflowInfo, + onRefresh, +}: WorkflowSetupModalProps) { const router = useRouter(); const pathname = usePathname(); const [isVisible, setIsVisible] = useState(false); @@ -33,7 +43,11 @@ export default function WorkflowSetupModal({ isOpen, onClose, workflowInfo, onRe const handleClose = () => { // Allow closing if workflow is setup OR if user is on tenant settings page - if (workflowInfo?.hasWorkflowSetup || pathname?.includes('/admin/settings/tenant') || pathname?.includes('/tenant')) { + if ( + workflowInfo?.hasWorkflowSetup || + pathname?.includes("/admin/settings/tenant") || + pathname?.includes("/tenant") + ) { setIsVisible(false); setTimeout(() => { onClose(); @@ -50,21 +64,35 @@ export default function WorkflowSetupModal({ isOpen, onClose, workflowInfo, onRe if (!isOpen) return null; return ( - - { // Prevent closing by clicking outside unless workflow is setup or on tenant settings page - if (!workflowInfo?.hasWorkflowSetup && !pathname?.includes('/admin/settings/tenant') && !pathname?.includes('/tenant')) { + if ( + !workflowInfo?.hasWorkflowSetup && + !pathname?.includes("/admin/settings/tenant") && + !pathname?.includes("/tenant") + ) { e.preventDefault(); } }} onEscapeKeyDown={(e) => { // Prevent closing by pressing ESC unless workflow is setup or on tenant settings page - if (!workflowInfo?.hasWorkflowSetup && !pathname?.includes('/admin/settings/tenant') && !pathname?.includes('/tenant')) { + if ( + !workflowInfo?.hasWorkflowSetup && + !pathname?.includes("/admin/settings/tenant") && + !pathname?.includes("/tenant") + ) { e.preventDefault(); } }} @@ -85,46 +113,139 @@ export default function WorkflowSetupModal({ isOpen, onClose, workflowInfo, onRe
- {!workflowInfo?.hasWorkflowSetup ? ( - // No Workflow Setup - - -
-
- ! + { + !workflowInfo?.hasWorkflowSetup ? ( + // No Workflow Setup + + +
+
+ ! +
+
+

+ Workflow Belum Dikonfigurasi +

+

+ Anda belum melakukan setup workflow, silahkan setup + terlebih dahulu. +

+
+ + {(pathname?.includes("/admin/settings/tenant") || + pathname?.includes("/tenant")) && ( + + )} +
+
-
-

- Workflow Belum Dikonfigurasi -

-

- Anda belum melakukan setup workflow, silahkan setup terlebih dahulu. -

-
- - {(pathname?.includes('/admin/settings/tenant') || pathname?.includes('/tenant')) && ( - - )} + + +
*/}
-
-
-
- ) : '' - // Workflow Setup Complete + + + // Workflow Setup Complete // // //
@@ -160,7 +281,7 @@ export default function WorkflowSetupModal({ isOpen, onClose, workflowInfo, onRe //
//
//
- //
diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/collection.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/collection.d.ts index 2358870..7081741 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/collection.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/collection.d.ts @@ -3,8 +3,8 @@ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ declare const Collection_base: { - new (): import("@ckeditor/ckeditor5-utils/src/emittermixin.js").Emitter; - prototype: import("@ckeditor/ckeditor5-utils/src/emittermixin.js").Emitter; + new (): import("./emittermixin.js").Emitter; + prototype: import("./emittermixin.js").Emitter; }; /** * Collections are ordered sets of objects. Items in the collection can be retrieved by their indexes diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/diff.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/diff.d.ts index 8a997e1..c8e5dfc 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/diff.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/diff.d.ts @@ -22,7 +22,7 @@ */ declare function diff(a: ArrayLike, b: ArrayLike, cmp?: (a: T, b: T) => boolean): Array; declare namespace diff { - var fastDiff: typeof import("@ckeditor/ckeditor5-utils/src/fastdiff.js").default; + var fastDiff: typeof import("./fastdiff.js").default; } export default diff; /** diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/difftochanges.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/difftochanges.d.ts index 85174f9..a717530 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/difftochanges.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/difftochanges.d.ts @@ -2,7 +2,7 @@ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ -import type { DiffResult } from '@ckeditor/ckeditor5-utils/src/diff.js'; +import type { DiffResult } from './diff.js'; /** * @module utils/difftochanges */ diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/dom/emittermixin.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/dom/emittermixin.d.ts index f4548c0..fb71ac5 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/dom/emittermixin.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/dom/emittermixin.d.ts @@ -5,9 +5,9 @@ /** * @module utils/dom/emittermixin */ -import { type Emitter, type CallbackOptions, type BaseEvent, type GetCallback } from '@ckeditor/ckeditor5-utils/src/emittermixin.js'; -import type EventInfo from '@ckeditor/ckeditor5-utils/src/eventinfo.js'; -import type { Constructor, Mixed } from '@ckeditor/ckeditor5-utils/src/mix.js'; +import { type Emitter, type CallbackOptions, type BaseEvent, type GetCallback } from '../emittermixin.js'; +import type EventInfo from '../eventinfo.js'; +import type { Constructor, Mixed } from '../mix.js'; /** * Mixin that injects the DOM events API into its host. It provides the API * compatible with {@link module:utils/emittermixin~Emitter}. diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/dom/position.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/dom/position.d.ts index a1d8ca4..3fc58f0 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/dom/position.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/dom/position.d.ts @@ -2,7 +2,7 @@ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ -import Rect, { type RectSource } from '@ckeditor/ckeditor5-utils/src/dom/rect.js'; +import Rect, { type RectSource } from './rect.js'; /** * Calculates the `position: absolute` coordinates of a given element so it can be positioned with respect to the * target in the visually most efficient way, taking various restrictions like viewport or limiter geometry diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/emittermixin.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/emittermixin.d.ts index 6e146d9..40e2a5d 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/emittermixin.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/emittermixin.d.ts @@ -5,10 +5,10 @@ /** * @module utils/emittermixin */ -import EventInfo from '@ckeditor/ckeditor5-utils/src/eventinfo.js'; -import { type PriorityString } from '@ckeditor/ckeditor5-utils/src/priorities.js'; -import type { Constructor, Mixed } from '@ckeditor/ckeditor5-utils/src/mix.js'; -import '@ckeditor/ckeditor5-utils/src/version.js'; +import EventInfo from './eventinfo.js'; +import { type PriorityString } from './priorities.js'; +import type { Constructor, Mixed } from './mix.js'; +import './version.js'; /** * Mixin that injects the {@link ~Emitter events API} into its host. * diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/fastdiff.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/fastdiff.d.ts index 283f24f..0324179 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/fastdiff.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/fastdiff.d.ts @@ -2,8 +2,8 @@ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ -import type { DiffResult } from '@ckeditor/ckeditor5-utils/src/diff.js'; -import type { Change } from '@ckeditor/ckeditor5-utils/src/difftochanges.js'; +import type { DiffResult } from './diff.js'; +import type { Change } from './difftochanges.js'; /** * @module utils/fastdiff */ diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/focustracker.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/focustracker.d.ts index ebcd392..dd394cc 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/focustracker.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/focustracker.d.ts @@ -2,10 +2,10 @@ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ -declare const FocusTracker_base: import("@ckeditor/ckeditor5-utils/src/mix.js").Mixed<{ - new (): import("@ckeditor/ckeditor5-utils/src/observablemixin.js").Observable; - prototype: import("@ckeditor/ckeditor5-utils/src/observablemixin.js").Observable; -}, import("@ckeditor/ckeditor5-utils/src/dom/emittermixin.js").DomEmitter>; +declare const FocusTracker_base: import("./mix.js").Mixed<{ + new (): import("./observablemixin.js").Observable; + prototype: import("./observablemixin.js").Observable; +}, import("./dom/emittermixin.js").DomEmitter>; /** * Allows observing a group of `Element`s whether at least one of them is focused. * diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/index.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/index.d.ts index a746c94..18d9782 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/index.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/index.d.ts @@ -5,60 +5,60 @@ /** * @module utils */ -export { default as env } from '@ckeditor/ckeditor5-utils/src/env.js'; -export { default as diff, type DiffResult } from '@ckeditor/ckeditor5-utils/src/diff.js'; -export { default as fastDiff } from '@ckeditor/ckeditor5-utils/src/fastdiff.js'; -export { default as diffToChanges } from '@ckeditor/ckeditor5-utils/src/difftochanges.js'; -export { default as mix } from '@ckeditor/ckeditor5-utils/src/mix.js'; -export type { Constructor, Mixed } from '@ckeditor/ckeditor5-utils/src/mix.js'; -export { default as EmitterMixin, type Emitter, type BaseEvent, type CallbackOptions, type EmitterMixinDelegateChain, type GetCallback, type GetCallbackOptions, type GetEventInfo, type GetNameOrEventInfo } from '@ckeditor/ckeditor5-utils/src/emittermixin.js'; -export { default as EventInfo } from '@ckeditor/ckeditor5-utils/src/eventinfo.js'; -export { default as ObservableMixin, type Observable, type DecoratedMethodEvent, type ObservableChangeEvent, type ObservableSetEvent } from '@ckeditor/ckeditor5-utils/src/observablemixin.js'; -export { default as CKEditorError, logError, logWarning } from '@ckeditor/ckeditor5-utils/src/ckeditorerror.js'; -export { default as ElementReplacer } from '@ckeditor/ckeditor5-utils/src/elementreplacer.js'; -export { default as abortableDebounce, type AbortableFunc } from '@ckeditor/ckeditor5-utils/src/abortabledebounce.js'; -export { default as count } from '@ckeditor/ckeditor5-utils/src/count.js'; -export { default as compareArrays } from '@ckeditor/ckeditor5-utils/src/comparearrays.js'; -export { default as createElement } from '@ckeditor/ckeditor5-utils/src/dom/createelement.js'; -export { default as Config } from '@ckeditor/ckeditor5-utils/src/config.js'; -export { default as isIterable } from '@ckeditor/ckeditor5-utils/src/isiterable.js'; -export { default as DomEmitterMixin, type DomEmitter } from '@ckeditor/ckeditor5-utils/src/dom/emittermixin.js'; -export { default as findClosestScrollableAncestor } from '@ckeditor/ckeditor5-utils/src/dom/findclosestscrollableancestor.js'; -export { default as global } from '@ckeditor/ckeditor5-utils/src/dom/global.js'; -export { default as getAncestors } from '@ckeditor/ckeditor5-utils/src/dom/getancestors.js'; -export { default as getDataFromElement } from '@ckeditor/ckeditor5-utils/src/dom/getdatafromelement.js'; -export { default as getBorderWidths } from '@ckeditor/ckeditor5-utils/src/dom/getborderwidths.js'; -export { default as isText } from '@ckeditor/ckeditor5-utils/src/dom/istext.js'; -export { default as Rect, type RectSource } from '@ckeditor/ckeditor5-utils/src/dom/rect.js'; -export { default as ResizeObserver } from '@ckeditor/ckeditor5-utils/src/dom/resizeobserver.js'; -export { default as setDataInElement } from '@ckeditor/ckeditor5-utils/src/dom/setdatainelement.js'; -export { default as toUnit } from '@ckeditor/ckeditor5-utils/src/dom/tounit.js'; -export { default as indexOf } from '@ckeditor/ckeditor5-utils/src/dom/indexof.js'; -export { default as insertAt } from '@ckeditor/ckeditor5-utils/src/dom/insertat.js'; -export { default as isComment } from '@ckeditor/ckeditor5-utils/src/dom/iscomment.js'; -export { default as isNode } from '@ckeditor/ckeditor5-utils/src/dom/isnode.js'; -export { default as isRange } from '@ckeditor/ckeditor5-utils/src/dom/isrange.js'; -export { default as isValidAttributeName } from '@ckeditor/ckeditor5-utils/src/dom/isvalidattributename.js'; -export { default as isVisible } from '@ckeditor/ckeditor5-utils/src/dom/isvisible.js'; -export { getOptimalPosition, type Options as PositionOptions, type PositioningFunction, type DomPoint } from '@ckeditor/ckeditor5-utils/src/dom/position.js'; -export { default as remove } from '@ckeditor/ckeditor5-utils/src/dom/remove.js'; -export * from '@ckeditor/ckeditor5-utils/src/dom/scroll.js'; -export * from '@ckeditor/ckeditor5-utils/src/keyboard.js'; -export * from '@ckeditor/ckeditor5-utils/src/language.js'; -export { default as Locale, type LocaleTranslate, type Translations } from '@ckeditor/ckeditor5-utils/src/locale.js'; -export { default as Collection, type CollectionAddEvent, type CollectionChangeEvent, type CollectionRemoveEvent } from '@ckeditor/ckeditor5-utils/src/collection.js'; -export { default as first } from '@ckeditor/ckeditor5-utils/src/first.js'; -export { default as FocusTracker } from '@ckeditor/ckeditor5-utils/src/focustracker.js'; -export { default as KeystrokeHandler } from '@ckeditor/ckeditor5-utils/src/keystrokehandler.js'; -export { default as toArray, type ArrayOrItem, type ReadonlyArrayOrItem } from '@ckeditor/ckeditor5-utils/src/toarray.js'; -export { default as toMap } from '@ckeditor/ckeditor5-utils/src/tomap.js'; -export { default as priorities, type PriorityString } from '@ckeditor/ckeditor5-utils/src/priorities.js'; -export { default as retry, exponentialDelay } from '@ckeditor/ckeditor5-utils/src/retry.js'; -export { default as insertToPriorityArray } from '@ckeditor/ckeditor5-utils/src/inserttopriorityarray.js'; -export { default as spliceArray } from '@ckeditor/ckeditor5-utils/src/splicearray.js'; -export { default as uid } from '@ckeditor/ckeditor5-utils/src/uid.js'; -export { default as delay, type DelayedFunc } from '@ckeditor/ckeditor5-utils/src/delay.js'; -export { default as verifyLicense } from '@ckeditor/ckeditor5-utils/src/verifylicense.js'; -export { default as wait } from '@ckeditor/ckeditor5-utils/src/wait.js'; -export * from '@ckeditor/ckeditor5-utils/src/unicode.js'; -export { default as version, releaseDate } from '@ckeditor/ckeditor5-utils/src/version.js'; +export { default as env } from './env.js'; +export { default as diff, type DiffResult } from './diff.js'; +export { default as fastDiff } from './fastdiff.js'; +export { default as diffToChanges } from './difftochanges.js'; +export { default as mix } from './mix.js'; +export type { Constructor, Mixed } from './mix.js'; +export { default as EmitterMixin, type Emitter, type BaseEvent, type CallbackOptions, type EmitterMixinDelegateChain, type GetCallback, type GetCallbackOptions, type GetEventInfo, type GetNameOrEventInfo } from './emittermixin.js'; +export { default as EventInfo } from './eventinfo.js'; +export { default as ObservableMixin, type Observable, type DecoratedMethodEvent, type ObservableChangeEvent, type ObservableSetEvent } from './observablemixin.js'; +export { default as CKEditorError, logError, logWarning } from './ckeditorerror.js'; +export { default as ElementReplacer } from './elementreplacer.js'; +export { default as abortableDebounce, type AbortableFunc } from './abortabledebounce.js'; +export { default as count } from './count.js'; +export { default as compareArrays } from './comparearrays.js'; +export { default as createElement } from './dom/createelement.js'; +export { default as Config } from './config.js'; +export { default as isIterable } from './isiterable.js'; +export { default as DomEmitterMixin, type DomEmitter } from './dom/emittermixin.js'; +export { default as findClosestScrollableAncestor } from './dom/findclosestscrollableancestor.js'; +export { default as global } from './dom/global.js'; +export { default as getAncestors } from './dom/getancestors.js'; +export { default as getDataFromElement } from './dom/getdatafromelement.js'; +export { default as getBorderWidths } from './dom/getborderwidths.js'; +export { default as isText } from './dom/istext.js'; +export { default as Rect, type RectSource } from './dom/rect.js'; +export { default as ResizeObserver } from './dom/resizeobserver.js'; +export { default as setDataInElement } from './dom/setdatainelement.js'; +export { default as toUnit } from './dom/tounit.js'; +export { default as indexOf } from './dom/indexof.js'; +export { default as insertAt } from './dom/insertat.js'; +export { default as isComment } from './dom/iscomment.js'; +export { default as isNode } from './dom/isnode.js'; +export { default as isRange } from './dom/isrange.js'; +export { default as isValidAttributeName } from './dom/isvalidattributename.js'; +export { default as isVisible } from './dom/isvisible.js'; +export { getOptimalPosition, type Options as PositionOptions, type PositioningFunction, type DomPoint } from './dom/position.js'; +export { default as remove } from './dom/remove.js'; +export * from './dom/scroll.js'; +export * from './keyboard.js'; +export * from './language.js'; +export { default as Locale, type LocaleTranslate, type Translations } from './locale.js'; +export { default as Collection, type CollectionAddEvent, type CollectionChangeEvent, type CollectionRemoveEvent } from './collection.js'; +export { default as first } from './first.js'; +export { default as FocusTracker } from './focustracker.js'; +export { default as KeystrokeHandler } from './keystrokehandler.js'; +export { default as toArray, type ArrayOrItem, type ReadonlyArrayOrItem } from './toarray.js'; +export { default as toMap } from './tomap.js'; +export { default as priorities, type PriorityString } from './priorities.js'; +export { default as retry, exponentialDelay } from './retry.js'; +export { default as insertToPriorityArray } from './inserttopriorityarray.js'; +export { default as spliceArray } from './splicearray.js'; +export { default as uid } from './uid.js'; +export { default as delay, type DelayedFunc } from './delay.js'; +export { default as verifyLicense } from './verifylicense.js'; +export { default as wait } from './wait.js'; +export * from './unicode.js'; +export { default as version, releaseDate } from './version.js'; diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/inserttopriorityarray.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/inserttopriorityarray.d.ts index 3d008e4..54541e8 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/inserttopriorityarray.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/inserttopriorityarray.d.ts @@ -2,7 +2,7 @@ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ -import { type PriorityString } from '@ckeditor/ckeditor5-utils/src/priorities.js'; +import { type PriorityString } from './priorities.js'; /** * @module utils/inserttopriorityarray */ diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/keyboard.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/keyboard.d.ts index 3892bb3..83a7a36 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/keyboard.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/keyboard.d.ts @@ -7,7 +7,7 @@ * * @module utils/keyboard */ -import type { LanguageDirection } from '@ckeditor/ckeditor5-utils/src/language.js'; +import type { LanguageDirection } from './language.js'; /** * An object with `keyName => keyCode` pairs for a set of known keys. * diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/keystrokehandler.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/keystrokehandler.d.ts index 98d1b70..ea9cbe9 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/keystrokehandler.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/keystrokehandler.d.ts @@ -2,9 +2,9 @@ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ -import type { Emitter } from '@ckeditor/ckeditor5-utils/src/emittermixin.js'; -import { type KeystrokeInfo } from '@ckeditor/ckeditor5-utils/src/keyboard.js'; -import type { PriorityString } from '@ckeditor/ckeditor5-utils/src/priorities.js'; +import type { Emitter } from './emittermixin.js'; +import { type KeystrokeInfo } from './keyboard.js'; +import type { PriorityString } from './priorities.js'; /** * Keystroke handler allows registering callbacks for given keystrokes. * diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/locale.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/locale.d.ts index bd8a4a8..a5884cf 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/locale.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/locale.d.ts @@ -5,9 +5,9 @@ /** * @module utils/locale */ -import { type ArrayOrItem } from '@ckeditor/ckeditor5-utils/src/toarray.js'; -import { type Message } from '@ckeditor/ckeditor5-utils/src/translation-service.js'; -import { type LanguageDirection } from '@ckeditor/ckeditor5-utils/src/language.js'; +import { type ArrayOrItem } from './toarray.js'; +import { type Message } from './translation-service.js'; +import { type LanguageDirection } from './language.js'; /** * Represents the localization services. */ diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/observablemixin.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/observablemixin.d.ts index 07572e4..ed96a2c 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/observablemixin.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/observablemixin.d.ts @@ -5,8 +5,8 @@ /** * @module utils/observablemixin */ -import { type Emitter } from '@ckeditor/ckeditor5-utils/src/emittermixin.js'; -import type { Constructor, Mixed } from '@ckeditor/ckeditor5-utils/src/mix.js'; +import { type Emitter } from './emittermixin.js'; +import type { Constructor, Mixed } from './mix.js'; /** * A mixin that injects the "observable properties" and data binding functionality described in the * {@link ~Observable} interface. diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/translation-service.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/translation-service.d.ts index 122fb0e..e39f0fb 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/translation-service.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-utils/src/translation-service.d.ts @@ -7,9 +7,9 @@ */ import type { Translations } from './locale.js'; import { type ArrayOrItem } from './toarray.js'; -// declare global { -// var CKEDITOR_TRANSLATIONS: Translations; -// } +declare global { + var CKEDITOR_TRANSLATIONS: Translations; +} /** * Adds translations to existing ones or overrides the existing translations. These translations will later * be available for the {@link module:utils/locale~Locale#t `t()`} function. diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-widget/src/widgetresize.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-widget/src/widgetresize.d.ts index 5750aed..1948adf 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-widget/src/widgetresize.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-widget/src/widgetresize.d.ts @@ -5,10 +5,10 @@ /** * @module widget/widgetresize */ -import Resizer from '@ckeditor/ckeditor5-widget/src/widgetresize/resizer.js'; +import Resizer from './widgetresize/resizer.js'; import { Plugin, type Editor } from '@ckeditor/ckeditor5-core'; import { type Element, type ViewContainerElement } from '@ckeditor/ckeditor5-engine'; -import '@ckeditor/ckeditor5-widget/theme/widgetresize.css'; +import '../theme/widgetresize.css'; /** * The widget resize feature plugin. * diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/resizer.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/resizer.d.ts index a0809e9..21c331e 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/resizer.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/resizer.d.ts @@ -3,8 +3,8 @@ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ import { Rect, type DecoratedMethodEvent } from '@ckeditor/ckeditor5-utils'; -import ResizeState from '@ckeditor/ckeditor5-widget/src/widgetresize/resizerstate.js'; -import type { ResizerOptions } from '@ckeditor/ckeditor5-widget/src/widgetresize.js'; +import ResizeState from './resizerstate.js'; +import type { ResizerOptions } from '../widgetresize.js'; declare const Resizer_base: { new (): import("@ckeditor/ckeditor5-utils").Observable; prototype: import("@ckeditor/ckeditor5-utils").Observable; diff --git a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/resizerstate.d.ts b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/resizerstate.d.ts index 360ddb9..15bd975 100644 --- a/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/resizerstate.d.ts +++ b/vendor/ckeditor5/node_modules/@ckeditor/ckeditor5-widget/src/widgetresize/resizerstate.d.ts @@ -2,7 +2,7 @@ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ -import type { ResizerOptions } from '@ckeditor/ckeditor5-widget/src/widgetresize.js'; +import type { ResizerOptions } from '../widgetresize.js'; declare const ResizeState_base: { new (): import("@ckeditor/ckeditor5-utils").Observable; prototype: import("@ckeditor/ckeditor5-utils").Observable;