feat:detail konten, detail task

This commit is contained in:
Anang Yusman 2025-01-09 04:01:32 +08:00
parent b91e8d249d
commit 377b7cddc4
468 changed files with 2453 additions and 14938 deletions

View File

@ -244,21 +244,23 @@ const CalendarView = ({ categories }: CalendarViewProps) => {
return ( return (
<> <>
<p>{title}</p> <p className="ml-1">{title}</p>
<p className=" text-xs text-start mt-2">Create By: {createdByName}</p> <p className="ml-1 text-xs text-start mt-2">
Create By: {createdByName}
</p>
</> </>
); );
}; };
const handleClassName = (arg: EventContentArg) => { const handleClassName = (arg: EventContentArg) => {
if (arg.event.extendedProps.calendar === "mabes") { if (arg.event.extendedProps.calendar === "mabes") {
return "primary"; return "bg-yellow-500 border-none";
} else if (arg.event.extendedProps.calendar === "polda") { } else if (arg.event.extendedProps.calendar === "polda") {
return "success"; return "bg-blue-400 border-none";
} else if (arg.event.extendedProps.calendar === "polres") { } else if (arg.event.extendedProps.calendar === "polres") {
return "destructive"; return "bg-slate-400 border-none";
} else if (arg.event.extendedProps.calendar === "international") { } else if (arg.event.extendedProps.calendar === "international") {
return "info"; return "bg-green-400 border-none";
} else { } else {
return "primary"; return "primary";
} }

View File

@ -153,7 +153,7 @@ const columns: ColumnDef<any>[] = [
View View
</DropdownMenuItem> </DropdownMenuItem>
</Link> </Link>
<Link href={`/contributor/content/Audio/update/${row.original.id}`}> <Link href={`/contributor/content/audio/update/${row.original.id}`}>
<DropdownMenuItem className="p-2 border-b text-default-700 group focus:bg-default focus:text-primary-foreground rounded-none"> <DropdownMenuItem className="p-2 border-b text-default-700 group focus:bg-default focus:text-primary-foreground rounded-none">
<SquarePen className="w-4 h-4 me-1.5" /> <SquarePen className="w-4 h-4 me-1.5" />
Edit Edit

View File

@ -26,6 +26,7 @@ import {
} from "@/components/ui/table"; } from "@/components/ui/table";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { import {
ChevronDown,
ChevronLeft, ChevronLeft,
ChevronRight, ChevronRight,
Eye, Eye,
@ -39,6 +40,7 @@ import {
import { cn, getCookiesDecrypt } from "@/lib/utils"; import { cn, getCookiesDecrypt } from "@/lib/utils";
import { import {
DropdownMenu, DropdownMenu,
DropdownMenuCheckboxItem,
DropdownMenuContent, DropdownMenuContent,
DropdownMenuItem, DropdownMenuItem,
DropdownMenuTrigger, DropdownMenuTrigger,
@ -176,7 +178,7 @@ const TableImage = () => {
/> />
</InputGroup> </InputGroup>
</div> </div>
<div className="flex-none"> <div className="flex flex-row items-center gap-3">
<Input <Input
placeholder="Filter Status..." placeholder="Filter Status..."
value={ value={
@ -187,6 +189,34 @@ const TableImage = () => {
} }
className="max-w-sm " className="max-w-sm "
/> />
<div className="flex items-center py-4">
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" className="ml-auto" size="md">
Columns <ChevronDown />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
{table
.getAllColumns()
.filter((column) => column.getCanHide())
.map((column) => {
return (
<DropdownMenuCheckboxItem
key={column.id}
className="capitalize"
checked={column.getIsVisible()}
onCheckedChange={(value) =>
column.toggleVisibility(!!value)
}
>
{column.id}
</DropdownMenuCheckboxItem>
);
})}
</DropdownMenuContent>
</DropdownMenu>
</div>
</div> </div>
</div> </div>
<Table className="overflow-hidden mt-3"> <Table className="overflow-hidden mt-3">

View File

@ -55,6 +55,7 @@ import { getCookiesDecrypt } from "@/lib/utils";
import { Icon } from "@iconify/react/dist/iconify.js"; import { Icon } from "@iconify/react/dist/iconify.js";
import { error } from "@/lib/swal"; import { error } from "@/lib/swal";
import dynamic from "next/dynamic"; import dynamic from "next/dynamic";
import ReactAudioPlayer from "react-audio-player";
const imageSchema = z.object({ const imageSchema = z.object({
title: z.string().min(1, { message: "Judul diperlukan" }), title: z.string().min(1, { message: "Judul diperlukan" }),
@ -137,6 +138,7 @@ export default function FormAudioDetail() {
const [files, setFiles] = useState<FileType[]>([]); const [files, setFiles] = useState<FileType[]>([]);
const [rejectedFiles, setRejectedFiles] = useState<number[]>([]); const [rejectedFiles, setRejectedFiles] = useState<number[]>([]);
const [isMabesApprover, setIsMabesApprover] = useState(false); const [isMabesApprover, setIsMabesApprover] = useState(false);
const [audioPlaying, setAudioPlaying] = useState<any>(null);
let fileTypeId = "4"; let fileTypeId = "4";
@ -336,6 +338,14 @@ export default function FormAudioDetail() {
return false; return false;
}; };
const handleAudioPlayPause = (audioSrc: string) => {
if (audioPlaying === audioSrc) {
setAudioPlaying(null); // Pause if the same audio is clicked
} else {
setAudioPlaying(audioSrc); // Play the new audio
}
};
const submitApprovalSuccesss = () => { const submitApprovalSuccesss = () => {
MySwal.fire({ MySwal.fire({
title: "Sukses", title: "Sukses",
@ -427,30 +437,23 @@ export default function FormAudioDetail() {
className="w-full" className="w-full"
> >
{detailThumb?.map((data: any) => { {detailThumb?.map((data: any) => {
const isAudio =
data.endsWith(".webm") ||
data.endsWith(".mp3") ||
data.endsWith(".ogg");
return ( return (
<SwiperSlide key={data.id}> <SwiperSlide key={data.id}>
{isAudio ? ( <div className="relative">
<audio <ReactAudioPlayer src={data} autoPlay controls />
className="object-fill h-full w-full rounded-md" {/* <button
src={data.secondaryUrl} className="absolute bottom-2 left-2 text-white bg-black p-1 rounded"
controls onClick={() => handleAudioPlayPause(data)}
/> >
) : ( {audioPlaying === data ? "Pause" : "Play"}
<img </button> */}
className="object-fill h-full w-full rounded-md" </div>
src={data.secondaryUrl}
alt={` ${data.id}`}
/>
)}
</SwiperSlide> </SwiperSlide>
); );
})} })}
</Swiper> </Swiper>
<div className="mt-2">
{/* <div className="mt-2">
<Swiper <Swiper
onSwiper={setThumbsSwiper} onSwiper={setThumbsSwiper}
slidesPerView={6} slidesPerView={6}
@ -461,30 +464,26 @@ export default function FormAudioDetail() {
modules={[Pagination, Thumbs]} modules={[Pagination, Thumbs]}
> >
{detailThumb?.map((data: any) => { {detailThumb?.map((data: any) => {
const isAudio =
data.endsWith(".webm") ||
data.endsWith(".mp3") ||
data.endsWith(".ogg");
return ( return (
<SwiperSlide key={data.id}> <SwiperSlide key={data.id}>
{isAudio ? ( <div className="relative">
<audio <ReactAudioPlayer src={data} autoPlay controls />
className="object-cover h-[60px] w-[80px]" <button
src={data.secondaryUrl} className="absolute bottom-2 left-2 text-white bg-black p-1 rounded"
controls onClick={() =>
/> handleAudioPlayPause(data.secondaryUrl)
) : ( }
<img >
className="object-cover h-[60px] w-[80px]" {audioPlaying === data.secondaryUrl
src={data.secondaryUrl} ? "Pause"
alt={` ${data.id}`} : "Play"}
/> </button>
)} </div>
</SwiperSlide> </SwiperSlide>
); );
})} })}
</Swiper> </Swiper>
</div> </div> */}
</div> </div>
</div> </div>
</div> </div>

View File

@ -53,15 +53,6 @@ import { error, loading } from "@/config/swal";
import { Item } from "@radix-ui/react-dropdown-menu"; import { Item } from "@radix-ui/react-dropdown-menu";
import dynamic from "next/dynamic"; import dynamic from "next/dynamic";
const imageSchema = z.object({
title: z.string().min(1, { message: "Judul diperlukan" }),
description: z
.string()
.min(2, { message: "Narasi Penugasan harus lebih dari 2 karakter." }),
creatorName: z.string().min(1, { message: "Creator diperlukan" }),
// tags: z.string().min(1, { message: "Judul diperlukan" }),
});
interface FileWithPreview extends File { interface FileWithPreview extends File {
preview: string; preview: string;
} }
@ -87,7 +78,7 @@ export default function FormAudio() {
const MySwal = withReactContent(Swal); const MySwal = withReactContent(Swal);
const router = useRouter(); const router = useRouter();
const editor = useRef(null); const editor = useRef(null);
type ImageSchema = z.infer<typeof imageSchema>; type AudioSchema = z.infer<typeof audioSchema>;
const [selectedFiles, setSelectedFiles] = useState<File[]>([]); const [selectedFiles, setSelectedFiles] = useState<File[]>([]);
const taskId = Cookies.get("taskId"); const taskId = Cookies.get("taskId");
@ -155,13 +146,28 @@ export default function FormAudio() {
}, },
}); });
const audioSchema = z.object({
title: z.string().min(1, { message: "Judul diperlukan" }),
description: z
.string()
.min(2, { message: "Narasi Penugasan harus lebih dari 2 karakter." })
.or(
z.literal(articleBody || "").refine((val) => val.length > 0, {
message: "Deskripsi diperlukan.",
})
),
creatorName: z.string().min(1, { message: "Creator diperlukan" }),
// tags: z.string().min(1, { message: "Judul diperlukan" }),
});
const { const {
control, control,
handleSubmit, handleSubmit,
getValues,
setValue, setValue,
formState: { errors }, formState: { errors },
} = useForm<ImageSchema>({ } = useForm<AudioSchema>({
resolver: zodResolver(imageSchema), resolver: zodResolver(audioSchema),
}); });
const doGenerateMainKeyword = async () => { const doGenerateMainKeyword = async () => {
@ -424,15 +430,21 @@ export default function FormAudio() {
} }
}; };
const save = async (data: ImageSchema) => { const save = async (data: AudioSchema) => {
loading(); loading();
const finalTags = tags.join(", "); const finalTags = tags.join(", ");
const finalTitle = isSwitchOn ? title : data.title; const finalTitle = isSwitchOn ? title : data.title;
const finalDescription = articleBody || data.description;
if (!finalDescription.trim()) {
MySwal.fire("Error", "Deskripsi tidak boleh kosong.", "error");
return;
}
const requestData = { const requestData = {
...data, ...data,
title: finalTitle, title: finalTitle,
description: data.description, description: finalDescription,
htmlDescription: data.description, htmlDescription: finalDescription,
fileTypeId, fileTypeId,
categoryId: selectedCategory, categoryId: selectedCategory,
subCategoryId: selectedCategory, subCategoryId: selectedCategory,
@ -489,7 +501,7 @@ export default function FormAudio() {
// MySwal.fire("Sukses", "Data berhasil disimpan.", "success"); // MySwal.fire("Sukses", "Data berhasil disimpan.", "success");
}; };
const onSubmit = (data: ImageSchema) => { const onSubmit = (data: AudioSchema) => {
MySwal.fire({ MySwal.fire({
title: "Simpan Data", title: "Simpan Data",
text: "Apakah Anda yakin ingin menyimpan data ini?", text: "Apakah Anda yakin ingin menyimpan data ini?",
@ -651,6 +663,13 @@ export default function FormAudio() {
setFiles([]); setFiles([]);
}; };
useEffect(() => {
// Jika input title kosong, isi dengan hasil generate title
if (!getValues("title") && title) {
setValue("title", title);
}
}, [title, getValues, setValue]);
return ( return (
<form onSubmit={handleSubmit(onSubmit)}> <form onSubmit={handleSubmit(onSubmit)}>
<div className="flex lg:flex-row gap-10"> <div className="flex lg:flex-row gap-10">
@ -871,6 +890,7 @@ export default function FormAudio() {
color="primary" color="primary"
onClick={handleGenerateArtikel} onClick={handleGenerateArtikel}
size="sm" size="sm"
type="button"
> >
Generate Article Generate Article
</Button> </Button>

View File

@ -31,6 +31,9 @@ import {
import { detailMedia } from "@/service/curated-content/curated-content"; import { detailMedia } from "@/service/curated-content/curated-content";
import { Badge } from "@/components/ui/badge"; import { Badge } from "@/components/ui/badge";
import { MailIcon } from "lucide-react"; import { MailIcon } from "lucide-react";
import { Swiper, SwiperSlide } from "swiper/react";
import ReactAudioPlayer from "react-audio-player";
import { FreeMode, Navigation, Thumbs } from "swiper/modules";
const imageSchema = z.object({ const imageSchema = z.object({
title: z.string().min(1, { message: "Judul diperlukan" }), title: z.string().min(1, { message: "Judul diperlukan" }),
@ -81,7 +84,8 @@ export default function FormAudioUpdate() {
const [detail, setDetail] = useState<Detail>(); const [detail, setDetail] = useState<Detail>();
const [refresh, setRefresh] = useState(false); const [refresh, setRefresh] = useState(false);
const [selectedPublishers, setSelectedPublishers] = useState<number[]>([]); const [selectedPublishers, setSelectedPublishers] = useState<number[]>([]);
const [detailThumb, setDetailThumb] = useState<any>([]);
const [thumbsSwiper, setThumbsSwiper] = useState<any>(null);
const [selectedTarget, setSelectedTarget] = useState(""); const [selectedTarget, setSelectedTarget] = useState("");
const [unitSelection, setUnitSelection] = useState({ const [unitSelection, setUnitSelection] = useState({
allUnit: false, allUnit: false,
@ -190,7 +194,13 @@ export default function FormAudioUpdate() {
setSelectedTarget(matchingCategory.name); setSelectedTarget(matchingCategory.name);
} }
setSelectedTarget(details.categoryId); // Untuk dropdown setSelectedTarget(details.categoryId);
const filesData = details.files || [];
const fileUrls = filesData.map((file: { secondaryUrl: string }) =>
file.secondaryUrl ? file.secondaryUrl : "default-image.jpg"
);
setDetailThumb(fileUrls);
} }
} }
initState(); initState();
@ -251,7 +261,7 @@ export default function FormAudioUpdate() {
<div className="flex lg:flex-row gap-10"> <div className="flex lg:flex-row gap-10">
<Card className="w-full lg:w-8/12"> <Card className="w-full lg:w-8/12">
<div className="px-6 py-6"> <div className="px-6 py-6">
<p className="text-lg font-semibold mb-3">Form Konten Foto</p> <p className="text-lg font-semibold mb-3">Form Konten Audio</p>
<div className="gap-5 mb-5"> <div className="gap-5 mb-5">
{/* Input Title */} {/* Input Title */}
<div className="space-y-2 py-3"> <div className="space-y-2 py-3">
@ -319,6 +329,63 @@ export default function FormAudioUpdate() {
</p> </p>
)} )}
</div> </div>
<Label className="text-xl text-black">File Mediaaa</Label>
<div className="w-full">
<Swiper
thumbs={{ swiper: thumbsSwiper }}
modules={[FreeMode, Navigation, Thumbs]}
navigation={false}
className="w-full"
>
{detailThumb?.map((data: any) => {
return (
<SwiperSlide key={data.id}>
<div className="relative">
<ReactAudioPlayer src={data} autoPlay controls />
{/* <button
className="absolute bottom-2 left-2 text-white bg-black p-1 rounded"
onClick={() => handleAudioPlayPause(data)}
>
{audioPlaying === data ? "Pause" : "Play"}
</button> */}
</div>
</SwiperSlide>
);
})}
</Swiper>
{/* <div className="mt-2">
<Swiper
onSwiper={setThumbsSwiper}
slidesPerView={6}
spaceBetween={8}
pagination={{
clickable: true,
}}
modules={[Pagination, Thumbs]}
>
{detailThumb?.map((data: any) => {
return (
<SwiperSlide key={data.id}>
<div className="relative">
<ReactAudioPlayer src={data} autoPlay controls />
<button
className="absolute bottom-2 left-2 text-white bg-black p-1 rounded"
onClick={() =>
handleAudioPlayPause(data.secondaryUrl)
}
>
{audioPlaying === data.secondaryUrl
? "Pause"
: "Play"}
</button>
</div>
</SwiperSlide>
);
})}
</Swiper>
</div> */}
</div>
</div> </div>
</div> </div>
</Card> </Card>

View File

@ -55,15 +55,6 @@ import { data } from "jquery";
import { options } from "@fullcalendar/core/preact.js"; import { options } from "@fullcalendar/core/preact.js";
import dynamic from "next/dynamic"; import dynamic from "next/dynamic";
const imageSchema = z.object({
title: z.string().min(1, { message: "Judul diperlukan" }),
description: z
.string()
.min(2, { message: "Narasi Penugasan harus lebih dari 2 karakter." }),
creatorName: z.string().min(1, { message: "Creator diperlukan" }),
// tags: z.string().min(1, { message: "Judul diperlukan" }),
});
interface FileWithPreview extends File { interface FileWithPreview extends File {
preview: string; preview: string;
} }
@ -161,9 +152,24 @@ export default function FormImage() {
}, },
}); });
const imageSchema = z.object({
title: z.string().min(1, { message: "Judul diperlukan" }),
description: z
.string()
.min(2, { message: "Narasi Penugasan harus lebih dari 2 karakter." })
.or(
z.literal(articleBody || "").refine((val) => val.length > 0, {
message: "Deskripsi diperlukan.",
})
),
creatorName: z.string().min(1, { message: "Creator diperlukan" }),
// tags: z.string().min(1, { message: "Judul diperlukan" }),
});
const { const {
control, control,
handleSubmit, handleSubmit,
getValues,
setValue, setValue,
formState: { errors }, formState: { errors },
} = useForm<ImageSchema>({ } = useForm<ImageSchema>({
@ -434,11 +440,16 @@ export default function FormImage() {
loading(); loading();
const finalTags = tags.join(", "); const finalTags = tags.join(", ");
const finalTitle = isSwitchOn ? title : data.title; const finalTitle = isSwitchOn ? title : data.title;
const finalDescription = articleBody || data.description;
if (!finalDescription.trim()) {
MySwal.fire("Error", "Deskripsi tidak boleh kosong.", "error");
return;
}
const requestData = { const requestData = {
...data, ...data,
title: finalTitle, title: finalTitle,
description: data.description, description: finalDescription,
htmlDescription: data.description, htmlDescription: finalDescription,
fileTypeId, fileTypeId,
categoryId: selectedCategory, categoryId: selectedCategory,
subCategoryId: selectedCategory, subCategoryId: selectedCategory,
@ -662,6 +673,13 @@ export default function FormImage() {
setFiles([]); setFiles([]);
}; };
useEffect(() => {
// Jika input title kosong, isi dengan hasil generate title
if (!getValues("title") && title) {
setValue("title", title);
}
}, [title, getValues, setValue]);
return ( return (
<form onSubmit={handleSubmit(onSubmit)}> <form onSubmit={handleSubmit(onSubmit)}>
<div className="flex lg:flex-row gap-10"> <div className="flex lg:flex-row gap-10">

View File

@ -243,9 +243,11 @@ export default function FormTeksDetail() {
setSelectedTarget(details.categoryId); // Untuk dropdown setSelectedTarget(details.categoryId); // Untuk dropdown
const filesData = details.files || []; const filesData = details.files || [];
const fileUrls = filesData.map((file: { url: string }) => const fileUrls = filesData.map((file: any) => ({
file.url ? file.url : "default-image.jpg" url: file.secondaryUrl || "default-image.jpg",
); format: file.format,
fileName: file.fileName,
}));
setDetailThumb(fileUrls); setDetailThumb(fileUrls);
} }
} }
@ -427,30 +429,42 @@ export default function FormTeksDetail() {
navigation={false} navigation={false}
className="w-full" className="w-full"
> >
{detailThumb?.map((data: any) => ( {detailThumb?.map((data: any, index: number) => (
<SwiperSlide key={data.id}> <SwiperSlide key={index}>
{[".jpg", ".jpeg", ".png", ".webp"].includes( {[".jpg", ".jpeg", ".png", ".webp"].includes(
data.format data.format
) ? ( ) ? (
// Menampilkan gambar
<img <img
className="object-fill h-full w-full rounded-md" className="object-fill h-full w-full rounded-md"
src={data.url} src={data.url}
alt={data.fileName} alt={data.fileName || "File"}
/> />
) : [".pdf", ".docx", ".txt"].includes(data.format) ? ( ) : data.format === ".pdf" ? (
// Menampilkan PDF menggunakan iframe
<iframe <iframe
className="w-full h-96 rounded-md" className="w-full h-96 rounded-md"
src={data.url} src={data.url}
title={data.fileName} title={data.fileName || "PDF File"}
/>
) : [".docx", ".ppt", ".pptx"].includes(data.format) ? (
// Menampilkan file dokumen menggunakan Office Viewer
<iframe
className="w-full h-96 rounded-md"
src={`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(
data.url
)}`}
title={data.fileName || "Document"}
/> />
) : ( ) : (
// Menampilkan link jika format tidak dikenali
<a <a
href={data} href={data.url}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className="block text-blue-500 underline" className="block text-blue-500 underline"
> >
View {data.fileName} View {data.fileName || "File"}
</a> </a>
)} )}
</SwiperSlide> </SwiperSlide>
@ -464,8 +478,8 @@ export default function FormTeksDetail() {
pagination={{ clickable: true }} pagination={{ clickable: true }}
modules={[Pagination, Thumbs]} modules={[Pagination, Thumbs]}
> >
{detailThumb?.map((data: any) => ( {detailThumb?.map((data: any, index: number) => (
<SwiperSlide key={data.id}> <SwiperSlide key={index}>
{[".jpg", ".jpeg", ".png", ".webp"].includes( {[".jpg", ".jpeg", ".png", ".webp"].includes(
data.format data.format
) ? ( ) ? (

View File

@ -53,15 +53,6 @@ import { error, loading } from "@/config/swal";
import { Item } from "@radix-ui/react-dropdown-menu"; import { Item } from "@radix-ui/react-dropdown-menu";
import dynamic from "next/dynamic"; import dynamic from "next/dynamic";
const teksSchema = z.object({
title: z.string().min(1, { message: "Judul diperlukan" }),
description: z
.string()
.min(2, { message: "Narasi Penugasan harus lebih dari 2 karakter." }),
creatorName: z.string().min(1, { message: "Creator diperlukan" }),
// tags: z.string().min(1, { message: "Judul diperlukan" }),
});
interface FileWithPreview extends File { interface FileWithPreview extends File {
preview: string; preview: string;
} }
@ -155,9 +146,24 @@ export default function FormTeks() {
}, },
}); });
const teksSchema = z.object({
title: z.string().min(1, { message: "Judul diperlukan" }),
description: z
.string()
.min(2, { message: "Narasi Penugasan harus lebih dari 2 karakter." })
.or(
z.literal(articleBody || "").refine((val) => val.length > 0, {
message: "Deskripsi diperlukan.",
})
),
creatorName: z.string().min(1, { message: "Creator diperlukan" }),
// tags: z.string().min(1, { message: "Judul diperlukan" }),
});
const { const {
control, control,
handleSubmit, handleSubmit,
getValues,
setValue, setValue,
formState: { errors }, formState: { errors },
} = useForm<TeksSchema>({ } = useForm<TeksSchema>({
@ -428,11 +434,16 @@ export default function FormTeks() {
loading(); loading();
const finalTags = tags.join(", "); const finalTags = tags.join(", ");
const finalTitle = isSwitchOn ? title : data.title; const finalTitle = isSwitchOn ? title : data.title;
const finalDescription = articleBody || data.description;
if (!finalDescription.trim()) {
MySwal.fire("Error", "Deskripsi tidak boleh kosong.", "error");
return;
}
const requestData = { const requestData = {
...data, ...data,
title: finalTitle, title: finalTitle,
description: data.description, description: finalDescription,
htmlDescription: data.description, htmlDescription: finalDescription,
fileTypeId, fileTypeId,
categoryId: selectedCategory, categoryId: selectedCategory,
subCategoryId: selectedCategory, subCategoryId: selectedCategory,
@ -651,6 +662,13 @@ export default function FormTeks() {
setFiles([]); setFiles([]);
}; };
useEffect(() => {
// Jika input title kosong, isi dengan hasil generate title
if (!getValues("title") && title) {
setValue("title", title);
}
}, [title, getValues, setValue]);
return ( return (
<form onSubmit={handleSubmit(onSubmit)}> <form onSubmit={handleSubmit(onSubmit)}>
<div className="flex lg:flex-row gap-10"> <div className="flex lg:flex-row gap-10">

View File

@ -60,15 +60,6 @@ const CustomEditor = dynamic(
{ ssr: false } { ssr: false }
); );
const teksSchema = z.object({
title: z.string().min(1, { message: "Judul diperlukan" }),
description: z
.string()
.min(2, { message: "Narasi Penugasan harus lebih dari 2 karakter." }),
creatorName: z.string().min(1, { message: "Creator diperlukan" }),
// tags: z.string().min(1, { message: "Judul diperlukan" }),
});
interface FileWithPreview extends File { interface FileWithPreview extends File {
preview: string; preview: string;
} }
@ -87,7 +78,7 @@ export default function FormVideo() {
const MySwal = withReactContent(Swal); const MySwal = withReactContent(Swal);
const router = useRouter(); const router = useRouter();
const editor = useRef(null); const editor = useRef(null);
type TeksSchema = z.infer<typeof teksSchema>; type VideoSchema = z.infer<typeof videoSchema>;
const [selectedFiles, setSelectedFiles] = useState<File[]>([]); const [selectedFiles, setSelectedFiles] = useState<File[]>([]);
const taskId = Cookies.get("taskId"); const taskId = Cookies.get("taskId");
@ -155,13 +146,28 @@ export default function FormVideo() {
}, },
}); });
const videoSchema = z.object({
title: z.string().min(1, { message: "Judul diperlukan" }),
description: z
.string()
.min(2, { message: "Narasi Penugasan harus lebih dari 2 karakter." })
.or(
z.literal(articleBody || "").refine((val) => val.length > 0, {
message: "Deskripsi diperlukan.",
})
),
creatorName: z.string().min(1, { message: "Creator diperlukan" }),
// tags: z.string().min(1, { message: "Judul diperlukan" }),
});
const { const {
control, control,
handleSubmit, handleSubmit,
getValues,
setValue, setValue,
formState: { errors }, formState: { errors },
} = useForm<TeksSchema>({ } = useForm<VideoSchema>({
resolver: zodResolver(teksSchema), resolver: zodResolver(videoSchema),
}); });
const doGenerateMainKeyword = async () => { const doGenerateMainKeyword = async () => {
@ -424,15 +430,20 @@ export default function FormVideo() {
} }
}; };
const save = async (data: TeksSchema) => { const save = async (data: VideoSchema) => {
loading(); loading();
const finalTags = tags.join(", "); const finalTags = tags.join(", ");
const finalTitle = isSwitchOn ? title : data.title; const finalTitle = isSwitchOn ? title : data.title;
const finalDescription = articleBody || data.description;
if (!finalDescription.trim()) {
MySwal.fire("Error", "Deskripsi tidak boleh kosong.", "error");
return;
}
const requestData = { const requestData = {
...data, ...data,
title: finalTitle, title: finalTitle,
description: data.description, description: finalDescription,
htmlDescription: data.description, htmlDescription: finalDescription,
fileTypeId, fileTypeId,
categoryId: selectedCategory, categoryId: selectedCategory,
subCategoryId: selectedCategory, subCategoryId: selectedCategory,
@ -489,7 +500,7 @@ export default function FormVideo() {
// MySwal.fire("Sukses", "Data berhasil disimpan.", "success"); // MySwal.fire("Sukses", "Data berhasil disimpan.", "success");
}; };
const onSubmit = (data: TeksSchema) => { const onSubmit = (data: VideoSchema) => {
MySwal.fire({ MySwal.fire({
title: "Simpan Data", title: "Simpan Data",
text: "Apakah Anda yakin ingin menyimpan data ini?", text: "Apakah Anda yakin ingin menyimpan data ini?",
@ -651,6 +662,13 @@ export default function FormVideo() {
setFiles([]); setFiles([]);
}; };
useEffect(() => {
// Jika input title kosong, isi dengan hasil generate title
if (!getValues("title") && title) {
setValue("title", title);
}
}, [title, getValues, setValue]);
return ( return (
<form onSubmit={handleSubmit(onSubmit)}> <form onSubmit={handleSubmit(onSubmit)}>
<div className="flex lg:flex-row gap-10"> <div className="flex lg:flex-row gap-10">

View File

@ -21,7 +21,9 @@ import { Checkbox } from "@/components/ui/checkbox";
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"; import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
import JoditEditor from "jodit-react"; import JoditEditor from "jodit-react";
import { import {
createAssignmentResponse,
createTask, createTask,
getAssignmentResponseList,
getTask, getTask,
getUserLevelForAssignments, getUserLevelForAssignments,
} from "@/service/task"; } from "@/service/task";
@ -35,6 +37,9 @@ import {
import { ChevronDown, ChevronUp } from "lucide-react"; import { ChevronDown, ChevronUp } from "lucide-react";
import dynamic from "next/dynamic"; import dynamic from "next/dynamic";
import { Link } from "@/components/navigation"; import { Link } from "@/components/navigation";
import { Textarea } from "@/components/ui/textarea";
import { loading } from "@/lib/swal";
import { getCookiesDecrypt } from "@/lib/utils";
const taskSchema = z.object({ const taskSchema = z.object({
uniqueCode: z.string().min(1, { message: "Judul diperlukan" }), uniqueCode: z.string().min(1, { message: "Judul diperlukan" }),
@ -63,8 +68,16 @@ export type taskDetail = {
broadcastType: string; broadcastType: string;
narration: string; narration: string;
is_active: string; is_active: string;
isDone: any;
}; };
interface ListData {
id: number;
name: string;
content: string;
timestamp: string;
}
const ViewEditor = dynamic( const ViewEditor = dynamic(
() => { () => {
return import("@/components/editor/view-editor"); return import("@/components/editor/view-editor");
@ -80,6 +93,9 @@ export default function FormTaskDetail() {
const { id } = useParams() as { id: string }; const { id } = useParams() as { id: string };
console.log(id); console.log(id);
const userLevelNumber = getCookiesDecrypt("ulne");
const userId = getCookiesDecrypt("uie");
// State for various form fields // State for various form fields
const [taskOutput, setTaskOutput] = useState({ const [taskOutput, setTaskOutput] = useState({
all: false, all: false,
@ -102,6 +118,11 @@ export default function FormTaskDetail() {
const [checkedLevels, setCheckedLevels] = useState(new Set()); const [checkedLevels, setCheckedLevels] = useState(new Set());
const [expandedPolda, setExpandedPolda] = useState([{}]); const [expandedPolda, setExpandedPolda] = useState([{}]);
const [isLoading, setIsLoading] = useState(false); const [isLoading, setIsLoading] = useState(false);
const [responses, setResponses] = useState<Response[]>([]);
const [response, setResponse] = useState<string>("");
const [showInput, setShowInput] = useState<boolean>(false);
const [listData, setListData] = useState([]);
const [message, setMessage] = useState<string>("");
const [platformTypeVisible, setPlatformTypeVisible] = useState(false); const [platformTypeVisible, setPlatformTypeVisible] = useState(false);
const [unitSelection, setUnitSelection] = useState({ const [unitSelection, setUnitSelection] = useState({
@ -286,6 +307,76 @@ export default function FormTaskDetail() {
})); }));
}; };
// const handleToggleInput = () => {
// setShowInput((prev: any) => !prev); // Toggle visibility of input field
// };
useEffect(() => {
async function initState() {
// loading();
const response = await getAssignmentResponseList(id);
console.log("data", response?.data?.data);
console.log("userLvl", userLevelNumber);
setListData(response?.data?.data);
close();
}
initState();
}, []);
// const handleSubmitResponse = () => {
// console.log("Response Submitted:", response);
// setShowInput(false); // Optionally hide the input after submission
// };
const handleToggleInput = (): void => {
setShowInput(!showInput);
};
const handleInputChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {
setMessage(e.target.value);
};
// const handleSubmitResponse = (): void => {
// if (response.trim()) {
// const newResponse: Response = {
// id: Date.now(), // Unique ID for each response
// name: "Mabes Polri - Approver",
// content: response,
// timestamp: new Date().toLocaleString("id-ID"), // Format timestamp for Indonesia locale
// };
// setResponses([newResponse, ...responses]); // Add new response to the top
// setResponse(""); // Reset textarea
// setShowInput(false); // Hide input
// }
// };
const postData = () => {
sendSuggestionParent();
};
async function sendSuggestionParent() {
if (message?.length > 1) {
loading();
const data = {
assignmentId: id,
message, // Gunakan response di sini
parentId: null,
};
const response = await createAssignmentResponse(data);
console.log(response);
setMessage("");
const responseGet = await getAssignmentResponseList(id);
console.log(responseGet?.data?.data);
setListData(responseGet?.data?.data);
close();
}
}
return ( return (
<Card> <Card>
<div className="px-6 py-6"> <div className="px-6 py-6">
@ -559,13 +650,80 @@ export default function FormTaskDetail() {
)} )}
</div> </div>
</div> </div>
<div className="flex flex-row justify-end gap-3">
<div className="mt-4"> <div className="">
<Link href={"/contributor/task"}> <Button
<Button color="primary" variant={"outline"}> color="primary"
Cancel variant={"outline"}
onClick={handleToggleInput}
>
Beri Tanggapan
</Button> </Button>
</Link> </div>
<div className="">
<Button color="primary" variant={"default"}>
Terima Tugas
</Button>
</div>
<div className="">
<Button color="primary" variant={"default"}>
Hasil Upload
</Button>
</div>
</div>
{showInput && (
<div className="mt-4 border p-4 rounded bg-gray-50">
<Textarea
placeholder="Tulis tanggapan Anda di sini..."
value={message}
onChange={handleInputChange}
/>
<div className="flex justify-end mt-3">
<Button
color="primary"
onClick={() => postData()}
type="button"
>
Kirim Tanggapan
</Button>
</div>
</div>
)}
<div className="mt-6">
<h3 className="text-lg font-bold">Tanggapan</h3>
{listData?.map((item: any) => (
<div
key={item.id}
className="border p-4 mt-2 rounded bg-gray-100 flex flex-col"
>
<div className="flex justify-between items-center">
<span className="font-medium">{item.name}</span>
<span className="text-sm text-gray-500">
{item.timestamp}
</span>
</div>
<p className="mt-2">{item.content}</p>
<div className="flex gap-2 mt-2">
<button className="text-blue-500 hover:underline">
Balas
</button>
<button className="text-red-500 hover:underline">
Hapus
</button>
</div>
</div>
))}
</div>
<div className="flex justify-center mt-4">
{detail?.isDone !== true &&
(Number(userLevelNumber) !== 3 ||
Number(userLevelNumber) == 2) ? (
<Button color="primary" variant={"outline"}>
Forward
</Button>
) : (
""
)}
</div> </div>
</form> </form>
) : ( ) : (

13068
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -9,6 +9,7 @@
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"@ckeditor/ckeditor5-react": "^6.2.0",
"@dnd-kit/core": "^6.1.0", "@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^7.0.0", "@dnd-kit/modifiers": "^7.0.0",
"@dnd-kit/sortable": "^8.0.0", "@dnd-kit/sortable": "^8.0.0",
@ -67,6 +68,7 @@
"apexcharts": "^3.49.2", "apexcharts": "^3.49.2",
"axios": "^1.7.8", "axios": "^1.7.8",
"chart.js": "^4.4.3", "chart.js": "^4.4.3",
"ckeditor5-custom-build": "file:vendor/ckeditor5",
"class-variance-authority": "^0.7.0", "class-variance-authority": "^0.7.0",
"cleave.js": "^1.6.0", "cleave.js": "^1.6.0",
"clsx": "^2.1.1", "clsx": "^2.1.1",
@ -100,6 +102,7 @@
"react": "^18", "react": "^18",
"react-advanced-news-ticker": "^1.0.1", "react-advanced-news-ticker": "^1.0.1",
"react-apexcharts": "^1.4.1", "react-apexcharts": "^1.4.1",
"react-audio-player": "^0.17.0",
"react-audio-voice-recorder": "^2.2.0", "react-audio-voice-recorder": "^2.2.0",
"react-chartjs-2": "^5.2.0", "react-chartjs-2": "^5.2.0",
"react-cssfx-loading": "^2.1.0", "react-cssfx-loading": "^2.1.0",
@ -132,8 +135,6 @@
"tailwind-merge": "^2.5.5", "tailwind-merge": "^2.5.5",
"tailwindcss-animate": "^1.0.7", "tailwindcss-animate": "^1.0.7",
"tus-js-client": "^4.2.3", "tus-js-client": "^4.2.3",
"@ckeditor/ckeditor5-react": "^6.2.0",
"ckeditor5-custom-build": "file:vendor/ckeditor5",
"use-places-autocomplete": "^4.0.1", "use-places-autocomplete": "^4.0.1",
"vaul": "^0.9.1", "vaul": "^0.9.1",
"yup": "^1.6.1", "yup": "^1.6.1",

View File

@ -5,9 +5,9 @@
/** /**
* @module alignment/alignment * @module alignment/alignment
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from '@ckeditor/ckeditor5-alignment/node_modules/ckeditor5/src/core.js';
import AlignmentEditing from './alignmentediting.js'; import AlignmentEditing from '@ckeditor/ckeditor5-alignment/src/alignmentediting.js';
import AlignmentUI from './alignmentui.js'; import AlignmentUI from '@ckeditor/ckeditor5-alignment/src/alignmentui.js';
/** /**
* The text alignment plugin. * The text alignment plugin.
* *

View File

@ -5,8 +5,8 @@
/** /**
* @module alignment/alignmentcommand * @module alignment/alignmentcommand
*/ */
import { Command } from 'ckeditor5/src/core.js'; import { Command } from '@ckeditor/ckeditor5-alignment/node_modules/ckeditor5/src/core.js';
import type { SupportedOption } from './alignmentconfig.js'; import type { SupportedOption } from '@ckeditor/ckeditor5-alignment/src/alignmentconfig.js';
/** /**
* The alignment command plugin. * The alignment command plugin.
*/ */

View File

@ -5,7 +5,7 @@
/** /**
* @module alignment/alignmentediting * @module alignment/alignmentediting
*/ */
import { Plugin, type Editor } from 'ckeditor5/src/core.js'; import { Plugin, type Editor } from '@ckeditor/ckeditor5-alignment/node_modules/ckeditor5/src/core';
/** /**
* The alignment editing feature. It introduces the {@link module:alignment/alignmentcommand~AlignmentCommand command} and adds * The alignment editing feature. It introduces the {@link module:alignment/alignmentcommand~AlignmentCommand command} and adds
* the `alignment` attribute for block elements in the {@link module:engine/model/model~Model model}. * the `alignment` attribute for block elements in the {@link module:engine/model/model~Model model}.

View File

@ -5,8 +5,8 @@
/** /**
* @module alignment/alignmentui * @module alignment/alignmentui
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from '@ckeditor/ckeditor5-alignment/node_modules/ckeditor5/src/core.js';
import type { SupportedOption } from './alignmentconfig.js'; import type { SupportedOption } from '@ckeditor/ckeditor5-alignment/src/alignmentconfig.js';
/** /**
* The default alignment UI plugin. * The default alignment UI plugin.
* *

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type { Alignment, AlignmentEditing, AlignmentUI, AlignmentCommand, AlignmentConfig } from './index.js'; import type { Alignment, AlignmentEditing, AlignmentUI, AlignmentCommand, AlignmentConfig } from '@ckeditor/ckeditor5-alignment';
declare module '@ckeditor/ckeditor5-core' { declare module '@ckeditor/ckeditor5-core' {
interface EditorConfig { interface EditorConfig {
/** /**

View File

@ -5,9 +5,9 @@
/** /**
* @module alignment * @module alignment
*/ */
export { default as Alignment } from './alignment.js'; export { default as Alignment } from '@ckeditor/ckeditor5-alignment/src/alignment.js';
export { default as AlignmentEditing } from './alignmentediting.js'; export { default as AlignmentEditing } from '@ckeditor/ckeditor5-alignment/src/alignmentediting.js';
export { default as AlignmentUI } from './alignmentui.js'; export { default as AlignmentUI } from '@ckeditor/ckeditor5-alignment/src/alignmentui.js';
export type { default as AlignmentCommand } from './alignmentcommand.js'; export type { default as AlignmentCommand } from '@ckeditor/ckeditor5-alignment/src/alignmentcommand.js';
export type { AlignmentConfig } from './alignmentconfig.js'; export type { AlignmentConfig } from '@ckeditor/ckeditor5-alignment/src/alignmentconfig.js';
import './augmentation.js'; import '@ckeditor/ckeditor5-alignment/src/augmentation.js';

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type { Autoformat } from './index.js'; import type { Autoformat } from '@ckeditor/ckeditor5-autoformat';
declare module '@ckeditor/ckeditor5-core' { declare module '@ckeditor/ckeditor5-core' {
interface PluginsMap { interface PluginsMap {
[Autoformat.pluginName]: Autoformat; [Autoformat.pluginName]: Autoformat;

View File

@ -5,5 +5,5 @@
/** /**
* @module autoformat * @module autoformat
*/ */
export { default as Autoformat } from './autoformat.js'; export { default as Autoformat } from '@ckeditor/ckeditor5-autoformat/src/autoformat.js';
import './augmentation.js'; import '@ckeditor/ckeditor5-autoformat/src/augmentation.js';

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type { Superscript, Subscript, Bold, Code, AttributeCommand, BoldUI, CodeEditing, CodeUI, Italic, ItalicEditing, ItalicUI, Strikethrough, StrikethroughEditing, StrikethroughUI, SubscriptEditing, SubscriptUI, SuperscriptEditing, SuperscriptUI, Underline, UnderlineEditing, UnderlineUI } from './index.js'; import type { Superscript, Subscript, Bold, Code, AttributeCommand, BoldUI, CodeEditing, CodeUI, Italic, ItalicEditing, ItalicUI, Strikethrough, StrikethroughEditing, StrikethroughUI, SubscriptEditing, SubscriptUI, SuperscriptEditing, SuperscriptUI, Underline, UnderlineEditing, UnderlineUI } from '@ckeditor/ckeditor5-basic-styles';
declare module '@ckeditor/ckeditor5-core' { declare module '@ckeditor/ckeditor5-core' {
interface PluginsMap { interface PluginsMap {
[Superscript.pluginName]: Superscript; [Superscript.pluginName]: Superscript;

View File

@ -6,8 +6,8 @@
* @module basic-styles/bold * @module basic-styles/bold
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from 'ckeditor5/src/core.js';
import BoldEditing from './bold/boldediting.js'; import BoldEditing from '@ckeditor/ckeditor5-basic-styles/src/bold/boldediting.js';
import BoldUI from './bold/boldui.js'; import BoldUI from '@ckeditor/ckeditor5-basic-styles/src/bold/boldui.js';
/** /**
* The bold feature. * The bold feature.
* *

View File

@ -6,9 +6,9 @@
* @module basic-styles/code * @module basic-styles/code
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from 'ckeditor5/src/core.js';
import CodeEditing from './code/codeediting.js'; import CodeEditing from '@ckeditor/ckeditor5-basic-styles/src/code/codeediting.js';
import CodeUI from './code/codeui.js'; import CodeUI from '@ckeditor/ckeditor5-basic-styles/src/code/codeui.js';
import '../theme/code.css'; import '@ckeditor/ckeditor5-basic-styles/theme/code.css';
/** /**
* The code feature. * The code feature.
* *

View File

@ -6,7 +6,7 @@
* @module basic-styles/code/codeui * @module basic-styles/code/codeui
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from 'ckeditor5/src/core.js';
import '../../theme/code.css'; import '@ckeditor/ckeditor5-basic-styles/theme/code.css';
/** /**
* The code UI feature. It introduces the Code button. * The code UI feature. It introduces the Code button.
*/ */

View File

@ -5,26 +5,26 @@
/** /**
* @module basic-styles * @module basic-styles
*/ */
export { default as Bold } from './bold.js'; export { default as Bold } from '@ckeditor/ckeditor5-basic-styles/src/bold.js';
export { default as BoldEditing } from './bold/boldediting.js'; export { default as BoldEditing } from '@ckeditor/ckeditor5-basic-styles/src/bold/boldediting.js';
export { default as BoldUI } from './bold/boldui.js'; export { default as BoldUI } from '@ckeditor/ckeditor5-basic-styles/src/bold/boldui.js';
export { default as Code } from './code.js'; export { default as Code } from '@ckeditor/ckeditor5-basic-styles/src/code.js';
export { default as CodeEditing } from './code/codeediting.js'; export { default as CodeEditing } from '@ckeditor/ckeditor5-basic-styles/src/code/codeediting.js';
export { default as CodeUI } from './code/codeui.js'; export { default as CodeUI } from '@ckeditor/ckeditor5-basic-styles/src/code/codeui.js';
export { default as Italic } from './italic.js'; export { default as Italic } from '@ckeditor/ckeditor5-basic-styles/src/italic.js';
export { default as ItalicEditing } from './italic/italicediting.js'; export { default as ItalicEditing } from '@ckeditor/ckeditor5-basic-styles/src/italic/italicediting.js';
export { default as ItalicUI } from './italic/italicui.js'; export { default as ItalicUI } from '@ckeditor/ckeditor5-basic-styles/src/italic/italicui.js';
export { default as Strikethrough } from './strikethrough.js'; export { default as Strikethrough } from '@ckeditor/ckeditor5-basic-styles/src/strikethrough.js';
export { default as StrikethroughEditing } from './strikethrough/strikethroughediting.js'; export { default as StrikethroughEditing } from '@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughediting.js';
export { default as StrikethroughUI } from './strikethrough/strikethroughui.js'; export { default as StrikethroughUI } from '@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughui.js';
export { default as Subscript } from './subscript.js'; export { default as Subscript } from '@ckeditor/ckeditor5-basic-styles/src/subscript.js';
export { default as SubscriptEditing } from './subscript/subscriptediting.js'; export { default as SubscriptEditing } from '@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptediting.js';
export { default as SubscriptUI } from './subscript/subscriptui.js'; export { default as SubscriptUI } from '@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptui.js';
export { default as Superscript } from './superscript.js'; export { default as Superscript } from '@ckeditor/ckeditor5-basic-styles/src/superscript.js';
export { default as SuperscriptEditing } from './superscript/superscriptediting.js'; export { default as SuperscriptEditing } from '@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptediting.js';
export { default as SuperscriptUI } from './superscript/superscriptui.js'; export { default as SuperscriptUI } from '@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptui.js';
export { default as Underline } from './underline.js'; export { default as Underline } from '@ckeditor/ckeditor5-basic-styles/src/underline.js';
export { default as UnderlineEditing } from './underline/underlineediting.js'; export { default as UnderlineEditing } from '@ckeditor/ckeditor5-basic-styles/src/underline/underlineediting.js';
export { default as UnderlineUI } from './underline/underlineui.js'; export { default as UnderlineUI } from '@ckeditor/ckeditor5-basic-styles/src/underline/underlineui.js';
export type { default as AttributeCommand } from './attributecommand.js'; export type { default as AttributeCommand } from '@ckeditor/ckeditor5-basic-styles/src/attributecommand.js';
import './augmentation.js'; import '@ckeditor/ckeditor5-basic-styles/src/augmentation.js';

View File

@ -6,8 +6,8 @@
* @module basic-styles/italic * @module basic-styles/italic
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from 'ckeditor5/src/core.js';
import ItalicEditing from './italic/italicediting.js'; import ItalicEditing from '@ckeditor/ckeditor5-basic-styles/src/italic/italicediting.js';
import ItalicUI from './italic/italicui.js'; import ItalicUI from '@ckeditor/ckeditor5-basic-styles/src/italic/italicui.js';
/** /**
* The italic feature. * The italic feature.
* *

View File

@ -6,8 +6,8 @@
* @module basic-styles/strikethrough * @module basic-styles/strikethrough
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from 'ckeditor5/src/core.js';
import StrikethroughEditing from './strikethrough/strikethroughediting.js'; import StrikethroughEditing from '@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughediting.js';
import StrikethroughUI from './strikethrough/strikethroughui.js'; import StrikethroughUI from '@ckeditor/ckeditor5-basic-styles/src/strikethrough/strikethroughui.js';
/** /**
* The strikethrough feature. * The strikethrough feature.
* *

View File

@ -6,8 +6,8 @@
* @module basic-styles/subscript * @module basic-styles/subscript
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from 'ckeditor5/src/core.js';
import SubscriptEditing from './subscript/subscriptediting.js'; import SubscriptEditing from '@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptediting.js';
import SubscriptUI from './subscript/subscriptui.js'; import SubscriptUI from '@ckeditor/ckeditor5-basic-styles/src/subscript/subscriptui.js';
/** /**
* The subscript feature. * The subscript feature.
* *

View File

@ -6,8 +6,8 @@
* @module basic-styles/superscript * @module basic-styles/superscript
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from 'ckeditor5/src/core.js';
import SuperscriptEditing from './superscript/superscriptediting.js'; import SuperscriptEditing from '@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptediting.js';
import SuperscriptUI from './superscript/superscriptui.js'; import SuperscriptUI from '@ckeditor/ckeditor5-basic-styles/src/superscript/superscriptui.js';
/** /**
* The superscript feature. * The superscript feature.
* *

View File

@ -6,8 +6,8 @@
* @module basic-styles/underline * @module basic-styles/underline
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from 'ckeditor5/src/core.js';
import UnderlineEditing from './underline/underlineediting.js'; import UnderlineEditing from '@ckeditor/ckeditor5-basic-styles/src/underline/underlineediting.js';
import UnderlineUI from './underline/underlineui.js'; import UnderlineUI from '@ckeditor/ckeditor5-basic-styles/src/underline/underlineui.js';
/** /**
* The underline feature. * The underline feature.
* *

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type { BlockQuote, BlockQuoteCommand, BlockQuoteEditing, BlockQuoteUI } from './index.js'; import type { BlockQuote, BlockQuoteCommand, BlockQuoteEditing, BlockQuoteUI } from '@ckeditor/ckeditor5-block-quote';
declare module '@ckeditor/ckeditor5-core' { declare module '@ckeditor/ckeditor5-core' {
interface PluginsMap { interface PluginsMap {
[BlockQuote.pluginName]: BlockQuote; [BlockQuote.pluginName]: BlockQuote;

View File

@ -6,8 +6,8 @@
* @module block-quote/blockquote * @module block-quote/blockquote
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from 'ckeditor5/src/core.js';
import BlockQuoteEditing from './blockquoteediting.js'; import BlockQuoteEditing from '@ckeditor/ckeditor5-block-quote/src/blockquoteediting.js';
import BlockQuoteUI from './blockquoteui.js'; import BlockQuoteUI from '@ckeditor/ckeditor5-block-quote/src/blockquoteui.js';
/** /**
* The block quote plugin. * The block quote plugin.
* *

View File

@ -6,7 +6,7 @@
* @module block-quote/blockquoteui * @module block-quote/blockquoteui
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from 'ckeditor5/src/core.js';
import '../theme/blockquote.css'; import '@ckeditor/ckeditor5-block-quote/theme/blockquote.css';
/** /**
* The block quote UI plugin. * The block quote UI plugin.
* *

View File

@ -5,8 +5,8 @@
/** /**
* @module block-quote * @module block-quote
*/ */
export { default as BlockQuote } from './blockquote.js'; export { default as BlockQuote } from '@ckeditor/ckeditor5-block-quote/src/blockquote.js';
export { default as BlockQuoteEditing } from './blockquoteediting.js'; export { default as BlockQuoteEditing } from '@ckeditor/ckeditor5-block-quote/src/blockquoteediting.js';
export { default as BlockQuoteUI } from './blockquoteui.js'; export { default as BlockQuoteUI } from '@ckeditor/ckeditor5-block-quote/src/blockquoteui.js';
export type { default as BlockQuoteCommand } from './blockquotecommand.js'; export type { default as BlockQuoteCommand } from '@ckeditor/ckeditor5-block-quote/src/blockquotecommand.js';
import './augmentation.js'; import '@ckeditor/ckeditor5-block-quote/src/augmentation.js';

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type { Clipboard, ClipboardPipeline, PastePlainText, DragDrop, DragDropTarget, DragDropBlockToolbar, ClipboardMarkersUtils } from './index.js'; import type { Clipboard, ClipboardPipeline, PastePlainText, DragDrop, DragDropTarget, DragDropBlockToolbar, ClipboardMarkersUtils } from '@ckeditor/ckeditor5-clipboard';
declare module '@ckeditor/ckeditor5-core' { declare module '@ckeditor/ckeditor5-core' {
interface PluginsMap { interface PluginsMap {
[Clipboard.pluginName]: Clipboard; [Clipboard.pluginName]: Clipboard;

View File

@ -6,10 +6,10 @@
* @module clipboard/clipboard * @module clipboard/clipboard
*/ */
import { Plugin } from '@ckeditor/ckeditor5-core'; import { Plugin } from '@ckeditor/ckeditor5-core';
import ClipboardPipeline from './clipboardpipeline.js'; import ClipboardPipeline from '@ckeditor/ckeditor5-clipboard/src/clipboardpipeline.js';
import DragDrop from './dragdrop.js'; import DragDrop from '@ckeditor/ckeditor5-clipboard/src/dragdrop.js';
import PastePlainText from './pasteplaintext.js'; import PastePlainText from '@ckeditor/ckeditor5-clipboard/src/pasteplaintext.js';
import ClipboardMarkersUtils from './clipboardmarkersutils.js'; import ClipboardMarkersUtils from '@ckeditor/ckeditor5-clipboard/src/clipboardmarkersutils.js';
/** /**
* The clipboard feature. * The clipboard feature.
* *

View File

@ -7,7 +7,7 @@
*/ */
import { Plugin } from '@ckeditor/ckeditor5-core'; import { Plugin } from '@ckeditor/ckeditor5-core';
import type { DataTransfer, DocumentFragment, Range, ViewDocumentFragment, ViewRange, Selection, DocumentSelection } from '@ckeditor/ckeditor5-engine'; import type { DataTransfer, DocumentFragment, Range, ViewDocumentFragment, ViewRange, Selection, DocumentSelection } from '@ckeditor/ckeditor5-engine';
import ClipboardMarkersUtils from './clipboardmarkersutils.js'; import ClipboardMarkersUtils from '@ckeditor/ckeditor5-clipboard/src/clipboardmarkersutils.js';
/** /**
* The clipboard pipeline feature. It is responsible for intercepting the `paste` and `drop` events and * The clipboard pipeline feature. It is responsible for intercepting the `paste` and `drop` events and
* passing the pasted content through a series of events in order to insert it into the editor's content. * passing the pasted content through a series of events in order to insert it into the editor's content.

View File

@ -7,10 +7,10 @@
*/ */
import { Plugin } from '@ckeditor/ckeditor5-core'; import { Plugin } from '@ckeditor/ckeditor5-core';
import { Widget } from '@ckeditor/ckeditor5-widget'; import { Widget } from '@ckeditor/ckeditor5-widget';
import ClipboardPipeline from './clipboardpipeline.js'; import ClipboardPipeline from '@ckeditor/ckeditor5-clipboard/src/clipboardpipeline.js';
import DragDropTarget from './dragdroptarget.js'; import DragDropTarget from '@ckeditor/ckeditor5-clipboard/src/dragdroptarget.js';
import DragDropBlockToolbar from './dragdropblocktoolbar.js'; import DragDropBlockToolbar from '@ckeditor/ckeditor5-clipboard/src/dragdropblocktoolbar.js';
import '../theme/clipboard.css'; import '@ckeditor/ckeditor5-clipboard/theme/clipboard.css';
/** /**
* The drag and drop feature. It works on top of the {@link module:clipboard/clipboardpipeline~ClipboardPipeline}. * The drag and drop feature. It works on top of the {@link module:clipboard/clipboardpipeline~ClipboardPipeline}.
* *

View File

@ -5,13 +5,13 @@
/** /**
* @module clipboard * @module clipboard
*/ */
export { default as Clipboard } from './clipboard.js'; export { default as Clipboard } from '@ckeditor/ckeditor5-clipboard/src/clipboard.js';
export { default as ClipboardPipeline, type ClipboardContentInsertionEvent, type ClipboardContentInsertionData, type ClipboardInputTransformationEvent, type ClipboardInputTransformationData, type ClipboardOutputTransformationEvent, type ClipboardOutputTransformationData, type ViewDocumentClipboardOutputEvent } from './clipboardpipeline.js'; export { default as ClipboardPipeline, type ClipboardContentInsertionEvent, type ClipboardContentInsertionData, type ClipboardInputTransformationEvent, type ClipboardInputTransformationData, type ClipboardOutputTransformationEvent, type ClipboardOutputTransformationData, type ViewDocumentClipboardOutputEvent } from '@ckeditor/ckeditor5-clipboard/src/clipboardpipeline.js';
export { default as ClipboardMarkersUtils, type ClipboardMarkerRestrictedAction, type ClipboardMarkerConfiguration } from './clipboardmarkersutils.js'; export { default as ClipboardMarkersUtils, type ClipboardMarkerRestrictedAction, type ClipboardMarkerConfiguration } from '@ckeditor/ckeditor5-clipboard/src/clipboardmarkersutils.js';
export type { ClipboardEventData } from './clipboardobserver.js'; export type { ClipboardEventData } from '@ckeditor/ckeditor5-clipboard/src/clipboardobserver.js';
export { default as DragDrop } from './dragdrop.js'; export { default as DragDrop } from '@ckeditor/ckeditor5-clipboard/src/dragdrop.js';
export { default as PastePlainText } from './pasteplaintext.js'; export { default as PastePlainText } from '@ckeditor/ckeditor5-clipboard/src/pasteplaintext.js';
export { default as DragDropTarget } from './dragdroptarget.js'; export { default as DragDropTarget } from '@ckeditor/ckeditor5-clipboard/src/dragdroptarget.js';
export { default as DragDropBlockToolbar } from './dragdropblocktoolbar.js'; export { default as DragDropBlockToolbar } from '@ckeditor/ckeditor5-clipboard/src/dragdropblocktoolbar.js';
export type { ViewDocumentClipboardInputEvent, ViewDocumentCopyEvent, ViewDocumentCutEvent } from './clipboardobserver.js'; export type { ViewDocumentClipboardInputEvent, ViewDocumentCopyEvent, ViewDocumentCutEvent } from '@ckeditor/ckeditor5-clipboard/src/clipboardobserver.js';
import './augmentation.js'; import '@ckeditor/ckeditor5-clipboard/src/augmentation.js';

View File

@ -6,7 +6,7 @@
* @module clipboard/pasteplaintext * @module clipboard/pasteplaintext
*/ */
import { Plugin } from '@ckeditor/ckeditor5-core'; import { Plugin } from '@ckeditor/ckeditor5-core';
import ClipboardPipeline from './clipboardpipeline.js'; import ClipboardPipeline from '@ckeditor/ckeditor5-clipboard/src/clipboardpipeline.js';
/** /**
* The plugin detects the user's intention to paste plain text. * The plugin detects the user's intention to paste plain text.
* *

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type { CloudServices, CloudServicesConfig, CloudServicesCore } from './index.js'; import type { CloudServices, CloudServicesConfig, CloudServicesCore } from '@ckeditor/ckeditor5-cloud-services';
declare module '@ckeditor/ckeditor5-core' { declare module '@ckeditor/ckeditor5-core' {
interface EditorConfig { interface EditorConfig {
/** /**

View File

@ -6,9 +6,9 @@
* @module cloud-services/cloudservices * @module cloud-services/cloudservices
*/ */
import { ContextPlugin } from 'ckeditor5/src/core.js'; import { ContextPlugin } from 'ckeditor5/src/core.js';
import CloudServicesCore from './cloudservicescore.js'; import CloudServicesCore from '@ckeditor/ckeditor5-cloud-services/src/cloudservicescore.js';
import type { CloudServicesConfig, TokenUrl } from './cloudservicesconfig.js'; import type { CloudServicesConfig, TokenUrl } from '@ckeditor/ckeditor5-cloud-services/src/cloudservicesconfig.js';
import type { InitializedToken } from './token/token.js'; import type { InitializedToken } from '@ckeditor/ckeditor5-cloud-services/src/token/token.js';
/** /**
* Plugin introducing the integration between CKEditor 5 and CKEditor Cloud Services . * Plugin introducing the integration between CKEditor 5 and CKEditor Cloud Services .
* *

View File

@ -6,9 +6,9 @@
* @module cloud-services/cloudservicescore * @module cloud-services/cloudservicescore
*/ */
import { ContextPlugin } from 'ckeditor5/src/core.js'; import { ContextPlugin } from 'ckeditor5/src/core.js';
import type { TokenUrl } from './cloudservicesconfig.js'; import type { TokenUrl } from '@ckeditor/ckeditor5-cloud-services/src/cloudservicesconfig.js';
import Token, { type InitializedToken, type TokenOptions } from './token/token.js'; import Token, { type InitializedToken, type TokenOptions } from '@ckeditor/ckeditor5-cloud-services/src/token/token.js';
import UploadGateway from './uploadgateway/uploadgateway.js'; import UploadGateway from '@ckeditor/ckeditor5-cloud-services/src/uploadgateway/uploadgateway.js';
/** /**
* The `CloudServicesCore` plugin exposes the base API for communication with CKEditor Cloud Services. * The `CloudServicesCore` plugin exposes the base API for communication with CKEditor Cloud Services.
*/ */

View File

@ -5,10 +5,10 @@
/** /**
* @module cloud-services * @module cloud-services
*/ */
export { default as CloudServices } from './cloudservices.js'; export { default as CloudServices } from '@ckeditor/ckeditor5-cloud-services/src/cloudservices.js';
export { default as CloudServicesCore } from './cloudservicescore.js'; export { default as CloudServicesCore } from '@ckeditor/ckeditor5-cloud-services/src/cloudservicescore.js';
export { TokenUrl, type CloudServicesConfig } from './cloudservicesconfig.js'; export { TokenUrl, type CloudServicesConfig } from '@ckeditor/ckeditor5-cloud-services/src/cloudservicesconfig.js';
export type { default as Token, InitializedToken } from './token/token.js'; export type { default as Token, InitializedToken } from '@ckeditor/ckeditor5-cloud-services/src/token/token.js';
export type { default as UploadGateway } from './uploadgateway/uploadgateway.js'; export type { default as UploadGateway } from '@ckeditor/ckeditor5-cloud-services/src/uploadgateway/uploadgateway.js';
export type { default as FileUploader } from './uploadgateway/fileuploader.js'; export type { default as FileUploader } from '@ckeditor/ckeditor5-cloud-services/src/uploadgateway/fileuploader.js';
import './augmentation.js'; import '@ckeditor/ckeditor5-cloud-services/src/augmentation.js';

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type { TokenUrl } from '../cloudservicesconfig.js'; import type { TokenUrl } from '@ckeditor/ckeditor5-cloud-services/src/cloudservicesconfig.js';
declare const Token_base: { declare const Token_base: {
new (): import("ckeditor5/src/utils.js").Observable; new (): import("ckeditor5/src/utils.js").Observable;
prototype: import("ckeditor5/src/utils.js").Observable; prototype: import("ckeditor5/src/utils.js").Observable;

View File

@ -6,7 +6,7 @@
* @module cloud-services/uploadgateway/fileuploader * @module cloud-services/uploadgateway/fileuploader
*/ */
import type { UploadResponse } from 'ckeditor5/src/upload.js'; import type { UploadResponse } from 'ckeditor5/src/upload.js';
import type { InitializedToken } from '../token/token.js'; import type { InitializedToken } from '@ckeditor/ckeditor5-cloud-services/src/token/token.js';
declare const FileUploader_base: { declare const FileUploader_base: {
new (): import("ckeditor5/src/utils.js").Emitter; new (): import("ckeditor5/src/utils.js").Emitter;
prototype: import("ckeditor5/src/utils.js").Emitter; prototype: import("ckeditor5/src/utils.js").Emitter;

View File

@ -5,8 +5,8 @@
/** /**
* @module cloud-services/uploadgateway/uploadgateway * @module cloud-services/uploadgateway/uploadgateway
*/ */
import FileUploader from './fileuploader.js'; import FileUploader from '@ckeditor/ckeditor5-cloud-services/src/uploadgateway/fileuploader.js';
import type { InitializedToken } from '../token/token.js'; import type { InitializedToken } from '@ckeditor/ckeditor5-cloud-services/src/token/token.js';
/** /**
* UploadGateway abstracts file uploads to CKEditor Cloud Services. * UploadGateway abstracts file uploads to CKEditor Cloud Services.
*/ */

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type { CodeBlock, CodeBlockCommand, CodeBlockConfig, CodeBlockEditing, CodeBlockUI, IndentCodeBlockCommand, OutdentCodeBlockCommand } from './index.js'; import type { CodeBlock, CodeBlockCommand, CodeBlockConfig, CodeBlockEditing, CodeBlockUI, IndentCodeBlockCommand, OutdentCodeBlockCommand } from '@ckeditor/ckeditor5-code-block';
declare module '@ckeditor/ckeditor5-core' { declare module '@ckeditor/ckeditor5-core' {
interface EditorConfig { interface EditorConfig {
/** /**

View File

@ -5,9 +5,9 @@
/** /**
* @module code-block/codeblock * @module code-block/codeblock
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from '@ckeditor/ckeditor5-code-block/node_modules/ckeditor5/src/core.js';
import CodeBlockEditing from './codeblockediting.js'; import CodeBlockEditing from '@ckeditor/ckeditor5-code-block/src/codeblockediting.js';
import CodeBlockUI from './codeblockui.js'; import CodeBlockUI from '@ckeditor/ckeditor5-code-block/src/codeblockui.js';
/** /**
* The code block plugin. * The code block plugin.
* *

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import { Command, type Editor } from 'ckeditor5/src/core.js'; import { Command, type Editor } from '@ckeditor/ckeditor5-code-block/node_modules/ckeditor5/src/core';
/** /**
* The code block command plugin. * The code block command plugin.
*/ */

View File

@ -5,8 +5,8 @@
/** /**
* @module code-block/codeblockediting * @module code-block/codeblockediting
*/ */
import { Plugin, type Editor } from 'ckeditor5/src/core.js'; import { Plugin, type Editor } from '@ckeditor/ckeditor5-code-block/node_modules/ckeditor5/src/core';
import { ShiftEnter } from 'ckeditor5/src/enter.js'; import { ShiftEnter } from '@ckeditor/ckeditor5-code-block/node_modules/ckeditor5/src/enter';
/** /**
* The editing part of the code block feature. * The editing part of the code block feature.
* *

View File

@ -5,8 +5,8 @@
/** /**
* @module code-block/codeblockui * @module code-block/codeblockui
*/ */
import { Plugin } from 'ckeditor5/src/core.js'; import { Plugin } from '@ckeditor/ckeditor5-code-block/node_modules/ckeditor5/src/core';
import '../theme/codeblock.css'; import '@ckeditor/ckeditor5-code-block/theme/codeblock.css';
/** /**
* The code block UI plugin. * The code block UI plugin.
* *

View File

@ -5,7 +5,7 @@
/** /**
* @module code-block/indentcodeblockcommand * @module code-block/indentcodeblockcommand
*/ */
import { Command, type Editor } from 'ckeditor5/src/core.js'; import { Command, type Editor } from '@ckeditor/ckeditor5-code-block/node_modules/ckeditor5/src/core';
/** /**
* The code block indentation increase command plugin. * The code block indentation increase command plugin.
*/ */

View File

@ -5,11 +5,11 @@
/** /**
* @module code-block * @module code-block
*/ */
export { default as CodeBlock } from './codeblock.js'; export { default as CodeBlock } from '@ckeditor/ckeditor5-code-block/src/codeblock.js';
export { default as CodeBlockEditing } from './codeblockediting.js'; export { default as CodeBlockEditing } from '@ckeditor/ckeditor5-code-block/src/codeblockediting.js';
export { default as CodeBlockUI } from './codeblockui.js'; export { default as CodeBlockUI } from '@ckeditor/ckeditor5-code-block/src/codeblockui.js';
export type { default as CodeBlockCommand } from './codeblockcommand.js'; export type { default as CodeBlockCommand } from '@ckeditor/ckeditor5-code-block/src/codeblockcommand.js';
export type { default as IndentCodeBlockCommand } from './indentcodeblockcommand.js'; export type { default as IndentCodeBlockCommand } from '@ckeditor/ckeditor5-code-block/src/indentcodeblockcommand.js';
export type { default as OutdentCodeBlockCommand } from './outdentcodeblockcommand.js'; export type { default as OutdentCodeBlockCommand } from '@ckeditor/ckeditor5-code-block/src/outdentcodeblockcommand.js';
export type { CodeBlockConfig } from './codeblockconfig.js'; export type { CodeBlockConfig } from '@ckeditor/ckeditor5-code-block/src/codeblockconfig.js';
import './augmentation.js'; import '@ckeditor/ckeditor5-code-block/src/augmentation.js';

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import { Command, type Editor } from 'ckeditor5/src/core.js'; import { Command, type Editor } from '@ckeditor/ckeditor5-code-block/node_modules/ckeditor5/src/core';
/** /**
* The code block indentation decrease command plugin. * The code block indentation decrease command plugin.
*/ */

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type Editor from './editor/editor.js'; import type Editor from '@ckeditor/ckeditor5-core/src/editor/editor.js';
export declare const DEFAULT_GROUP_ID: "common"; export declare const DEFAULT_GROUP_ID: "common";
/** /**
* A common namespace for various accessibility features of the editor. * A common namespace for various accessibility features of the editor.

View File

@ -6,7 +6,7 @@
* @module core/command * @module core/command
*/ */
import { type DecoratedMethodEvent } from '@ckeditor/ckeditor5-utils'; import { type DecoratedMethodEvent } from '@ckeditor/ckeditor5-utils';
import type Editor from './editor/editor.js'; import type Editor from '@ckeditor/ckeditor5-core/src/editor/editor.js';
declare const Command_base: { declare const Command_base: {
new (): import("@ckeditor/ckeditor5-utils").Observable; new (): import("@ckeditor/ckeditor5-utils").Observable;
prototype: import("@ckeditor/ckeditor5-utils").Observable; prototype: import("@ckeditor/ckeditor5-utils").Observable;

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type Command from './command.js'; import type Command from '@ckeditor/ckeditor5-core/src/command.js';
/** /**
* Collection of commands. Its instance is available in {@link module:core/editor/editor~Editor#commands `editor.commands`}. * Collection of commands. Its instance is available in {@link module:core/editor/editor~Editor#commands `editor.commands`}.
*/ */

View File

@ -6,10 +6,10 @@
* @module core/context * @module core/context
*/ */
import { Config, Collection, Locale, type LocaleTranslate } from '@ckeditor/ckeditor5-utils'; import { Config, Collection, Locale, type LocaleTranslate } from '@ckeditor/ckeditor5-utils';
import PluginCollection from './plugincollection.js'; import PluginCollection from '@ckeditor/ckeditor5-core/src/plugincollection.js';
import type Editor from './editor/editor.js'; import type Editor from '@ckeditor/ckeditor5-core/src/editor/editor.js';
import type { LoadedPlugins, PluginConstructor } from './plugin.js'; import type { LoadedPlugins, PluginConstructor } from '@ckeditor/ckeditor5-core/src/plugin.js';
import type { EditorConfig } from './editor/editorconfig.js'; import type { EditorConfig } from '@ckeditor/ckeditor5-core/src/editor/editorconfig.js';
/** /**
* Provides a common, higher-level environment for solutions that use multiple {@link module:core/editor/editor~Editor editors} * Provides a common, higher-level environment for solutions that use multiple {@link module:core/editor/editor~Editor editors}
* or plugins that work outside the editor. Use it instead of {@link module:core/editor/editor~Editor.create `Editor.create()`} * or plugins that work outside the editor. Use it instead of {@link module:core/editor/editor~Editor.create `Editor.create()`}

View File

@ -6,11 +6,11 @@
* @module core/contextplugin * @module core/contextplugin
*/ */
import { type Collection, type Config, type Locale, type LocaleTranslate } from '@ckeditor/ckeditor5-utils'; import { type Collection, type Config, type Locale, type LocaleTranslate } from '@ckeditor/ckeditor5-utils';
import type Editor from './editor/editor.js'; import type Editor from '@ckeditor/ckeditor5-core/src/editor/editor.js';
import type { EditorConfig } from './editor/editorconfig.js'; import type { EditorConfig } from '@ckeditor/ckeditor5-core/src/editor/editorconfig.js';
import type Context from './context.js'; import type Context from '@ckeditor/ckeditor5-core/src/context.js';
import type { PluginDependencies, PluginInterface } from './plugin.js'; import type { PluginDependencies, PluginInterface } from '@ckeditor/ckeditor5-core/src/plugin.js';
import type PluginCollection from './plugincollection.js'; import type PluginCollection from '@ckeditor/ckeditor5-core/src/plugincollection.js';
declare const ContextPlugin_base: { declare const ContextPlugin_base: {
new (): import("@ckeditor/ckeditor5-utils").Observable; new (): import("@ckeditor/ckeditor5-utils").Observable;
prototype: import("@ckeditor/ckeditor5-utils").Observable; prototype: import("@ckeditor/ckeditor5-utils").Observable;

View File

@ -6,7 +6,7 @@
* @module core/editingkeystrokehandler * @module core/editingkeystrokehandler
*/ */
import { KeystrokeHandler, type PriorityString } from '@ckeditor/ckeditor5-utils'; import { KeystrokeHandler, type PriorityString } from '@ckeditor/ckeditor5-utils';
import type Editor from './editor/editor.js'; import type Editor from '@ckeditor/ckeditor5-core/src/editor/editor.js';
/** /**
* A keystroke handler for editor editing. Its instance is available * A keystroke handler for editor editing. Its instance is available
* in {@link module:core/editor/editor~Editor#keystrokes} so plugins * in {@link module:core/editor/editor~Editor#keystrokes} so plugins

View File

@ -8,13 +8,13 @@
import { Config, type Locale, type LocaleTranslate } from '@ckeditor/ckeditor5-utils'; import { Config, type Locale, type LocaleTranslate } from '@ckeditor/ckeditor5-utils';
import { Conversion, DataController, EditingController, Model } from '@ckeditor/ckeditor5-engine'; import { Conversion, DataController, EditingController, Model } from '@ckeditor/ckeditor5-engine';
import type { EditorUI } from '@ckeditor/ckeditor5-ui'; import type { EditorUI } from '@ckeditor/ckeditor5-ui';
import Context from '../context.js'; import Context from '@ckeditor/ckeditor5-core/src/context.js';
import PluginCollection from '../plugincollection.js'; import PluginCollection from '@ckeditor/ckeditor5-core/src/plugincollection.js';
import CommandCollection, { type CommandsMap } from '../commandcollection.js'; import CommandCollection, { type CommandsMap } from '@ckeditor/ckeditor5-core/src/commandcollection.js';
import EditingKeystrokeHandler from '../editingkeystrokehandler.js'; import EditingKeystrokeHandler from '@ckeditor/ckeditor5-core/src/editingkeystrokehandler.js';
import Accessibility from '../accessibility.js'; import Accessibility from '@ckeditor/ckeditor5-core/src/accessibility.js';
import type { LoadedPlugins, PluginConstructor } from '../plugin.js'; import type { LoadedPlugins, PluginConstructor } from '@ckeditor/ckeditor5-core/src/plugin.js';
import type { EditorConfig } from './editorconfig.js'; import type { EditorConfig } from '@ckeditor/ckeditor5-core/src/editor/editorconfig.js';
declare const Editor_base: { declare const Editor_base: {
new (): import("@ckeditor/ckeditor5-utils").Observable; new (): import("@ckeditor/ckeditor5-utils").Observable;
prototype: import("@ckeditor/ckeditor5-utils").Observable; prototype: import("@ckeditor/ckeditor5-utils").Observable;

View File

@ -6,9 +6,9 @@
* @module core/editor/editorconfig * @module core/editor/editorconfig
*/ */
import type { ArrayOrItem, Translations } from '@ckeditor/ckeditor5-utils'; import type { ArrayOrItem, Translations } from '@ckeditor/ckeditor5-utils';
import type Context from '../context.js'; import type Context from '@ckeditor/ckeditor5-core/src/context.js';
import type { PluginConstructor } from '../plugin.js'; import type { PluginConstructor } from '@ckeditor/ckeditor5-core/src/plugin.js';
import type Editor from './editor.js'; import type Editor from '@ckeditor/ckeditor5-core/src/editor/editor.js';
import type { MenuBarConfig } from '@ckeditor/ckeditor5-ui'; import type { MenuBarConfig } from '@ckeditor/ckeditor5-ui';
/** /**
* CKEditor configuration options. * CKEditor configuration options.

View File

@ -2,8 +2,8 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type { default as Editor } from '../editor.js'; import type { default as Editor } from '@ckeditor/ckeditor5-core/src/editor/editor.js';
import type { ElementApi } from './elementapimixin.js'; import type { ElementApi } from '@ckeditor/ckeditor5-core/src/editor/utils/elementapimixin.js';
/** /**
* Checks if the editor is initialized on a `<textarea>` element that belongs to a form. If yes, it updates the editor's element * Checks if the editor is initialized on a `<textarea>` element that belongs to a form. If yes, it updates the editor's element
* content before submitting the form. * content before submitting the form.

View File

@ -5,7 +5,7 @@
/** /**
* @module core/editor/utils/dataapimixin * @module core/editor/utils/dataapimixin
*/ */
import type Editor from '../editor.js'; import type Editor from '@ckeditor/ckeditor5-core/src/editor/editor.js';
import type { Constructor } from '@ckeditor/ckeditor5-utils'; import type { Constructor } from '@ckeditor/ckeditor5-utils';
/** /**
* Implementation of the {@link module:core/editor/utils/dataapimixin~DataApi}. * Implementation of the {@link module:core/editor/utils/dataapimixin~DataApi}.

View File

@ -6,7 +6,7 @@
* @module core/editor/utils/elementapimixin * @module core/editor/utils/elementapimixin
*/ */
import { type Constructor, type Mixed } from '@ckeditor/ckeditor5-utils'; import { type Constructor, type Mixed } from '@ckeditor/ckeditor5-utils';
import type Editor from '../editor.js'; import type Editor from '@ckeditor/ckeditor5-core/src/editor/editor.js';
/** /**
* Implementation of the {@link module:core/editor/utils/elementapimixin~ElementApi}. * Implementation of the {@link module:core/editor/utils/elementapimixin~ElementApi}.
*/ */

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type { default as Editor } from '../editor.js'; import type { default as Editor } from '@ckeditor/ckeditor5-core/src/editor/editor.js';
/** /**
* Marks the source element on which the editor was initialized. This prevents other editor instances from using this element. * Marks the source element on which the editor was initialized. This prevents other editor instances from using this element.
* *

View File

@ -5,23 +5,23 @@
/** /**
* @module core * @module core
*/ */
export { default as Plugin, type PluginDependencies, type PluginConstructor } from './plugin.js'; export { default as Plugin, type PluginDependencies, type PluginConstructor } from '@ckeditor/ckeditor5-core/src/plugin.js';
export { default as Command, type CommandExecuteEvent } from './command.js'; export { default as Command, type CommandExecuteEvent } from '@ckeditor/ckeditor5-core/src/command.js';
export { default as MultiCommand } from './multicommand.js'; export { default as MultiCommand } from '@ckeditor/ckeditor5-core/src/multicommand.js';
export type { CommandsMap } from './commandcollection.js'; export type { CommandsMap } from '@ckeditor/ckeditor5-core/src/commandcollection.js';
export type { PluginsMap, default as PluginCollection } from './plugincollection.js'; export type { PluginsMap, default as PluginCollection } from '@ckeditor/ckeditor5-core/src/plugincollection.js';
export { default as Context, type ContextConfig } from './context.js'; export { default as Context, type ContextConfig } from '@ckeditor/ckeditor5-core/src/context.js';
export { default as ContextPlugin, type ContextPluginDependencies } from './contextplugin.js'; export { default as ContextPlugin, type ContextPluginDependencies } from '@ckeditor/ckeditor5-core/src/contextplugin.js';
export { type EditingKeystrokeCallback } from './editingkeystrokehandler.js'; export { type EditingKeystrokeCallback } from '@ckeditor/ckeditor5-core/src/editingkeystrokehandler.js';
export type { PartialBy, NonEmptyArray } from './typings.js'; export type { PartialBy, NonEmptyArray } from '@ckeditor/ckeditor5-core/src/typings.js';
export { default as Editor, type EditorReadyEvent, type EditorDestroyEvent } from './editor/editor.js'; export { default as Editor, type EditorReadyEvent, type EditorDestroyEvent } from '@ckeditor/ckeditor5-core/src/editor/editor.js';
export type { EditorConfig, LanguageConfig, ToolbarConfig, ToolbarConfigItem, UiConfig } from './editor/editorconfig.js'; export type { EditorConfig, LanguageConfig, ToolbarConfig, ToolbarConfigItem, UiConfig } from '@ckeditor/ckeditor5-core/src/editor/editorconfig.js';
export { default as attachToForm } from './editor/utils/attachtoform.js'; export { default as attachToForm } from '@ckeditor/ckeditor5-core/src/editor/utils/attachtoform.js';
export { default as DataApiMixin, type DataApi } from './editor/utils/dataapimixin.js'; export { default as DataApiMixin, type DataApi } from '@ckeditor/ckeditor5-core/src/editor/utils/dataapimixin.js';
export { default as ElementApiMixin, type ElementApi } from './editor/utils/elementapimixin.js'; export { default as ElementApiMixin, type ElementApi } from '@ckeditor/ckeditor5-core/src/editor/utils/elementapimixin.js';
export { default as secureSourceElement } from './editor/utils/securesourceelement.js'; export { default as secureSourceElement } from '@ckeditor/ckeditor5-core/src/editor/utils/securesourceelement.js';
export { default as PendingActions, type PendingAction } from './pendingactions.js'; export { default as PendingActions, type PendingAction } from '@ckeditor/ckeditor5-core/src/pendingactions.js';
export type { KeystrokeInfos as KeystrokeInfoDefinitions, KeystrokeInfoGroup as KeystrokeInfoGroupDefinition, KeystrokeInfoCategory as KeystrokeInfoCategoryDefinition, KeystrokeInfoDefinition as KeystrokeInfoDefinition } from './accessibility.js'; export type { KeystrokeInfos as KeystrokeInfoDefinitions, KeystrokeInfoGroup as KeystrokeInfoGroupDefinition, KeystrokeInfoCategory as KeystrokeInfoCategoryDefinition, KeystrokeInfoDefinition as KeystrokeInfoDefinition } from '@ckeditor/ckeditor5-core/src/accessibility.js';
export declare const icons: { export declare const icons: {
bold: string; bold: string;
cancel: string; cancel: string;
@ -86,4 +86,4 @@ export declare const icons: {
outdent: string; outdent: string;
table: string; table: string;
}; };
import './augmentation.js'; import '@ckeditor/ckeditor5-core/src/augmentation.js';

View File

@ -5,7 +5,7 @@
/** /**
* @module core/multicommand * @module core/multicommand
*/ */
import Command from './command.js'; import Command from '@ckeditor/ckeditor5-core/src/command.js';
import { type PriorityString } from '@ckeditor/ckeditor5-utils'; import { type PriorityString } from '@ckeditor/ckeditor5-utils';
/** /**
* A CKEditor command that aggregates other commands. * A CKEditor command that aggregates other commands.

View File

@ -5,7 +5,7 @@
/** /**
* @module core/pendingactions * @module core/pendingactions
*/ */
import ContextPlugin from './contextplugin.js'; import ContextPlugin from '@ckeditor/ckeditor5-core/src/contextplugin.js';
import { type CollectionAddEvent, type CollectionRemoveEvent, type Observable } from '@ckeditor/ckeditor5-utils'; import { type CollectionAddEvent, type CollectionRemoveEvent, type Observable } from '@ckeditor/ckeditor5-utils';
/** /**
* The list of pending editor actions. * The list of pending editor actions.

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type Editor from './editor/editor.js'; import type Editor from '@ckeditor/ckeditor5-core/src/editor/editor.js';
declare const Plugin_base: { declare const Plugin_base: {
new (): import("@ckeditor/ckeditor5-utils").Observable; new (): import("@ckeditor/ckeditor5-utils").Observable;
prototype: import("@ckeditor/ckeditor5-utils").Observable; prototype: import("@ckeditor/ckeditor5-utils").Observable;

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type { LoadedPlugins, PluginClassConstructor, PluginConstructor, PluginInterface } from './plugin.js'; import type { LoadedPlugins, PluginClassConstructor, PluginConstructor, PluginInterface } from '@ckeditor/ckeditor5-core/src/plugin.js';
declare const PluginCollection_base: { declare const PluginCollection_base: {
new (): import("@ckeditor/ckeditor5-utils").Emitter; new (): import("@ckeditor/ckeditor5-utils").Emitter;
prototype: import("@ckeditor/ckeditor5-utils").Emitter; prototype: import("@ckeditor/ckeditor5-utils").Emitter;

View File

@ -5,7 +5,7 @@
/** /**
* @module editor-classic/classiceditor * @module editor-classic/classiceditor
*/ */
import ClassicEditorUI from './classiceditorui.js'; import ClassicEditorUI from '@ckeditor/ckeditor5-editor-classic/src/classiceditorui.js';
import { Editor, Context, type EditorConfig } from 'ckeditor5/src/core.js'; import { Editor, Context, type EditorConfig } from 'ckeditor5/src/core.js';
import { ContextWatchdog, EditorWatchdog } from 'ckeditor5/src/watchdog.js'; import { ContextWatchdog, EditorWatchdog } from 'ckeditor5/src/watchdog.js';
declare const ClassicEditor_base: import("ckeditor5/src/utils.js").Mixed<typeof Editor, import("ckeditor5/src/core.js").ElementApi>; declare const ClassicEditor_base: import("ckeditor5/src/utils.js").Mixed<typeof Editor, import("ckeditor5/src/core.js").ElementApi>;

View File

@ -7,7 +7,7 @@
*/ */
import type { Editor } from 'ckeditor5/src/core.js'; import type { Editor } from 'ckeditor5/src/core.js';
import { EditorUI } from 'ckeditor5/src/ui.js'; import { EditorUI } from 'ckeditor5/src/ui.js';
import type ClassicEditorUIView from './classiceditoruiview.js'; import type ClassicEditorUIView from '@ckeditor/ckeditor5-editor-classic/src/classiceditoruiview.js';
/** /**
* The classic editor UI class. * The classic editor UI class.
*/ */

View File

@ -8,7 +8,7 @@
import { BoxedEditorUIView, InlineEditableUIView, MenuBarView, StickyPanelView, ToolbarView } from 'ckeditor5/src/ui.js'; import { BoxedEditorUIView, InlineEditableUIView, MenuBarView, StickyPanelView, ToolbarView } from 'ckeditor5/src/ui.js';
import type { Locale } from 'ckeditor5/src/utils.js'; import type { Locale } from 'ckeditor5/src/utils.js';
import type { EditingView } from 'ckeditor5/src/engine.js'; import type { EditingView } from 'ckeditor5/src/engine.js';
import '../theme/classiceditor.css'; import '@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';
/** /**
* Classic editor UI view. Uses an inline editable and a sticky toolbar, all * Classic editor UI view. Uses an inline editable and a sticky toolbar, all
* enclosed in a boxed UI view. * enclosed in a boxed UI view.

View File

@ -5,4 +5,4 @@
/** /**
* @module editor-classic * @module editor-classic
*/ */
export { default as ClassicEditor } from './classiceditor.js'; export { default as ClassicEditor } from '@ckeditor/ckeditor5-editor-classic/src/classiceditor.js';

View File

@ -2,21 +2,21 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import Mapper from '../conversion/mapper.js'; import Mapper from '@ckeditor/ckeditor5-engine/src/conversion/mapper.js';
import DowncastDispatcher from '../conversion/downcastdispatcher.js'; import DowncastDispatcher from '@ckeditor/ckeditor5-engine/src/conversion/downcastdispatcher.js';
import UpcastDispatcher from '../conversion/upcastdispatcher.js'; import UpcastDispatcher from '@ckeditor/ckeditor5-engine/src/conversion/upcastdispatcher.js';
import ViewDocumentFragment from '../view/documentfragment.js'; import ViewDocumentFragment from '@ckeditor/ckeditor5-engine/src/view/documentfragment.js';
import ViewDocument from '../view/document.js'; import ViewDocument from '@ckeditor/ckeditor5-engine/src/view/document.js';
import type ViewElement from '../view/element.js'; import type ViewElement from '@ckeditor/ckeditor5-engine/src/view/element.js';
import type { StylesProcessor } from '../view/stylesmap.js'; import type { StylesProcessor } from '@ckeditor/ckeditor5-engine/src/view/stylesmap.js';
import type { MatcherPattern } from '../view/matcher.js'; import type { MatcherPattern } from '@ckeditor/ckeditor5-engine/src/view/matcher.js';
import type Model from '../model/model.js'; import type Model from '@ckeditor/ckeditor5-engine/src/model/model.js';
import type ModelElement from '../model/element.js'; import type ModelElement from '@ckeditor/ckeditor5-engine/src/model/element.js';
import type ModelDocumentFragment from '../model/documentfragment.js'; import type ModelDocumentFragment from '@ckeditor/ckeditor5-engine/src/model/documentfragment.js';
import type { SchemaContextDefinition } from '../model/schema.js'; import type { SchemaContextDefinition } from '@ckeditor/ckeditor5-engine/src/model/schema.js';
import type { BatchType } from '../model/batch.js'; import type { BatchType } from '@ckeditor/ckeditor5-engine/src/model/batch.js';
import HtmlDataProcessor from '../dataprocessor/htmldataprocessor.js'; import HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor.js';
import type DataProcessor from '../dataprocessor/dataprocessor.js'; import type DataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/dataprocessor.js';
declare const DataController_base: { declare const DataController_base: {
new (): import("@ckeditor/ckeditor5-utils").Emitter; new (): import("@ckeditor/ckeditor5-utils").Emitter;
prototype: import("@ckeditor/ckeditor5-utils").Emitter; prototype: import("@ckeditor/ckeditor5-utils").Emitter;

View File

@ -2,13 +2,13 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import View from '../view/view.js'; import View from '@ckeditor/ckeditor5-engine/src/view/view.js';
import Mapper from '../conversion/mapper.js'; import Mapper from '@ckeditor/ckeditor5-engine/src/conversion/mapper.js';
import DowncastDispatcher from '../conversion/downcastdispatcher.js'; import DowncastDispatcher from '@ckeditor/ckeditor5-engine/src/conversion/downcastdispatcher.js';
import type { default as Model } from '../model/model.js'; import type { default as Model } from '@ckeditor/ckeditor5-engine/src/model/model.js';
import type ModelItem from '../model/item.js'; import type ModelItem from '@ckeditor/ckeditor5-engine/src/model/item.js';
import type { Marker } from '../model/markercollection.js'; import type { Marker } from '@ckeditor/ckeditor5-engine/src/model/markercollection.js';
import type { StylesProcessor } from '../view/stylesmap.js'; import type { StylesProcessor } from '@ckeditor/ckeditor5-engine/src/view/stylesmap.js';
declare const EditingController_base: { declare const EditingController_base: {
new (): import("@ckeditor/ckeditor5-utils").Observable; new (): import("@ckeditor/ckeditor5-utils").Observable;
prototype: import("@ckeditor/ckeditor5-utils").Observable; prototype: import("@ckeditor/ckeditor5-utils").Observable;

View File

@ -6,12 +6,12 @@
* @module engine/conversion/conversion * @module engine/conversion/conversion
*/ */
import { type ArrayOrItem, type PriorityString } from '@ckeditor/ckeditor5-utils'; import { type ArrayOrItem, type PriorityString } from '@ckeditor/ckeditor5-utils';
import UpcastHelpers from './upcasthelpers.js'; import UpcastHelpers from '@ckeditor/ckeditor5-engine/src/conversion/upcasthelpers.js';
import DowncastHelpers, { type AttributeCreatorFunction, type AttributeDescriptor } from './downcasthelpers.js'; import DowncastHelpers, { type AttributeCreatorFunction, type AttributeDescriptor } from '@ckeditor/ckeditor5-engine/src/conversion/downcasthelpers.js';
import type DowncastDispatcher from './downcastdispatcher.js'; import type DowncastDispatcher from '@ckeditor/ckeditor5-engine/src/conversion/downcastdispatcher.js';
import type UpcastDispatcher from './upcastdispatcher.js'; import type UpcastDispatcher from '@ckeditor/ckeditor5-engine/src/conversion/upcastdispatcher.js';
import type ElementDefinition from '../view/elementdefinition.js'; import type ElementDefinition from '@ckeditor/ckeditor5-engine/src/view/elementdefinition.js';
import type { MatcherPattern } from '../view/matcher.js'; import type { MatcherPattern } from '@ckeditor/ckeditor5-engine/src/view/matcher.js';
/** /**
* A utility class that helps add converters to upcast and downcast dispatchers. * A utility class that helps add converters to upcast and downcast dispatchers.
* *

View File

@ -5,19 +5,19 @@
/** /**
* @module engine/conversion/downcastdispatcher * @module engine/conversion/downcastdispatcher
*/ */
import Consumable from './modelconsumable.js'; import Consumable from '@ckeditor/ckeditor5-engine/src/conversion/modelconsumable.js';
import Range from '../model/range.js'; import Range from '@ckeditor/ckeditor5-engine/src/model/range.js';
import type { default as Differ, DiffItem } from '../model/differ.js'; import type { default as Differ, DiffItem } from '@ckeditor/ckeditor5-engine/src/model/differ.js';
import type { default as MarkerCollection } from '../model/markercollection.js'; import type { default as MarkerCollection } from '@ckeditor/ckeditor5-engine/src/model/markercollection.js';
import type DocumentSelection from '../model/documentselection.js'; import type DocumentSelection from '@ckeditor/ckeditor5-engine/src/model/documentselection.js';
import type DowncastWriter from '../view/downcastwriter.js'; import type DowncastWriter from '@ckeditor/ckeditor5-engine/src/view/downcastwriter.js';
import type Element from '../model/element.js'; import type Element from '@ckeditor/ckeditor5-engine/src/model/element.js';
import type Item from '../model/item.js'; import type Item from '@ckeditor/ckeditor5-engine/src/model/item.js';
import type Mapper from './mapper.js'; import type Mapper from '@ckeditor/ckeditor5-engine/src/conversion/mapper.js';
import type Position from '../model/position.js'; import type Position from '@ckeditor/ckeditor5-engine/src/model/position.js';
import type Schema from '../model/schema.js'; import type Schema from '@ckeditor/ckeditor5-engine/src/model/schema.js';
import type Selection from '../model/selection.js'; import type Selection from '@ckeditor/ckeditor5-engine/src/model/selection.js';
import type ViewElement from '../view/element.js'; import type ViewElement from '@ckeditor/ckeditor5-engine/src/view/element.js';
declare const DowncastDispatcher_base: { declare const DowncastDispatcher_base: {
new (): import("@ckeditor/ckeditor5-utils").Emitter; new (): import("@ckeditor/ckeditor5-utils").Emitter;
prototype: import("@ckeditor/ckeditor5-utils").Emitter; prototype: import("@ckeditor/ckeditor5-utils").Emitter;

View File

@ -7,23 +7,23 @@
* *
* @module engine/conversion/downcasthelpers * @module engine/conversion/downcasthelpers
*/ */
import ModelRange from '../model/range.js'; import ModelRange from '@ckeditor/ckeditor5-engine/src/model/range.js';
import ModelSelection from '../model/selection.js'; import ModelSelection from '@ckeditor/ckeditor5-engine/src/model/selection.js';
import ModelDocumentSelection from '../model/documentselection.js'; import ModelDocumentSelection from '@ckeditor/ckeditor5-engine/src/model/documentselection.js';
import ModelElement from '../model/element.js'; import ModelElement from '@ckeditor/ckeditor5-engine/src/model/element.js';
import ModelPosition from '../model/position.js'; import ModelPosition from '@ckeditor/ckeditor5-engine/src/model/position.js';
import ViewAttributeElement from '../view/attributeelement.js'; import ViewAttributeElement from '@ckeditor/ckeditor5-engine/src/view/attributeelement.js';
import ConversionHelpers from './conversionhelpers.js'; import ConversionHelpers from '@ckeditor/ckeditor5-engine/src/conversion/conversionhelpers.js';
import type { default as DowncastDispatcher, DowncastConversionApi } from './downcastdispatcher.js'; import type { default as DowncastDispatcher, DowncastConversionApi } from '@ckeditor/ckeditor5-engine/src/conversion/downcastdispatcher.js';
import type ModelConsumable from './modelconsumable.js'; import type ModelConsumable from '@ckeditor/ckeditor5-engine/src/conversion/modelconsumable.js';
import type ModelNode from '../model/node.js'; import type ModelNode from '@ckeditor/ckeditor5-engine/src/model/node.js';
import type ModelItem from '../model/item.js'; import type ModelItem from '@ckeditor/ckeditor5-engine/src/model/item.js';
import type ModelTextProxy from '../model/textproxy.js'; import type ModelTextProxy from '@ckeditor/ckeditor5-engine/src/model/textproxy.js';
import type ModelText from '../model/text.js'; import type ModelText from '@ckeditor/ckeditor5-engine/src/model/text.js';
import type DowncastWriter from '../view/downcastwriter.js'; import type DowncastWriter from '@ckeditor/ckeditor5-engine/src/view/downcastwriter.js';
import type ElementDefinition from '../view/elementdefinition.js'; import type ElementDefinition from '@ckeditor/ckeditor5-engine/src/view/elementdefinition.js';
import type UIElement from '../view/uielement.js'; import type UIElement from '@ckeditor/ckeditor5-engine/src/view/uielement.js';
import type ViewElement from '../view/element.js'; import type ViewElement from '@ckeditor/ckeditor5-engine/src/view/element.js';
import { type EventInfo, type PriorityString } from '@ckeditor/ckeditor5-utils'; import { type EventInfo, type PriorityString } from '@ckeditor/ckeditor5-utils';
/** /**
* Downcast conversion helper functions. * Downcast conversion helper functions.

View File

@ -5,15 +5,15 @@
/** /**
* @module engine/conversion/mapper * @module engine/conversion/mapper
*/ */
import ModelPosition from '../model/position.js'; import ModelPosition from '@ckeditor/ckeditor5-engine/src/model/position.js';
import ModelRange from '../model/range.js'; import ModelRange from '@ckeditor/ckeditor5-engine/src/model/range.js';
import ViewPosition from '../view/position.js'; import ViewPosition from '@ckeditor/ckeditor5-engine/src/view/position.js';
import ViewRange from '../view/range.js'; import ViewRange from '@ckeditor/ckeditor5-engine/src/view/range.js';
import type ViewDocumentFragment from '../view/documentfragment.js'; import type ViewDocumentFragment from '@ckeditor/ckeditor5-engine/src/view/documentfragment.js';
import type ViewElement from '../view/element.js'; import type ViewElement from '@ckeditor/ckeditor5-engine/src/view/element.js';
import type ModelElement from '../model/element.js'; import type ModelElement from '@ckeditor/ckeditor5-engine/src/model/element.js';
import type ModelDocumentFragment from '../model/documentfragment.js'; import type ModelDocumentFragment from '@ckeditor/ckeditor5-engine/src/model/documentfragment.js';
import type ViewNode from '../view/node.js'; import type ViewNode from '@ckeditor/ckeditor5-engine/src/view/node.js';
declare const Mapper_base: { declare const Mapper_base: {
new (): import("@ckeditor/ckeditor5-utils").Emitter; new (): import("@ckeditor/ckeditor5-utils").Emitter;
prototype: import("@ckeditor/ckeditor5-utils").Emitter; prototype: import("@ckeditor/ckeditor5-utils").Emitter;

View File

@ -5,11 +5,11 @@
/** /**
* @module engine/conversion/modelconsumable * @module engine/conversion/modelconsumable
*/ */
import TextProxy from '../model/textproxy.js'; import TextProxy from '@ckeditor/ckeditor5-engine/src/model/textproxy.js';
import type Item from '../model/item.js'; import type Item from '@ckeditor/ckeditor5-engine/src/model/item.js';
import type Selection from '../model/selection.js'; import type Selection from '@ckeditor/ckeditor5-engine/src/model/selection.js';
import type DocumentSelection from '../model/documentselection.js'; import type DocumentSelection from '@ckeditor/ckeditor5-engine/src/model/documentselection.js';
import type Range from '../model/range.js'; import type Range from '@ckeditor/ckeditor5-engine/src/model/range.js';
/** /**
* Manages a list of consumable values for the {@link module:engine/model/item~Item model items}. * Manages a list of consumable values for the {@link module:engine/model/item~Item model items}.
* *

View File

@ -5,18 +5,18 @@
/** /**
* @module engine/conversion/upcastdispatcher * @module engine/conversion/upcastdispatcher
*/ */
import ViewConsumable from './viewconsumable.js'; import ViewConsumable from '@ckeditor/ckeditor5-engine/src/conversion/viewconsumable.js';
import ModelRange from '../model/range.js'; import ModelRange from '@ckeditor/ckeditor5-engine/src/model/range.js';
import ModelPosition from '../model/position.js'; import ModelPosition from '@ckeditor/ckeditor5-engine/src/model/position.js';
import type ModelElement from '../model/element.js'; import type ModelElement from '@ckeditor/ckeditor5-engine/src/model/element.js';
import type ModelNode from '../model/node.js'; import type ModelNode from '@ckeditor/ckeditor5-engine/src/model/node.js';
import type ViewElement from '../view/element.js'; import type ViewElement from '@ckeditor/ckeditor5-engine/src/view/element.js';
import type ViewText from '../view/text.js'; import type ViewText from '@ckeditor/ckeditor5-engine/src/view/text.js';
import type ViewDocumentFragment from '../view/documentfragment.js'; import type ViewDocumentFragment from '@ckeditor/ckeditor5-engine/src/view/documentfragment.js';
import type ModelDocumentFragment from '../model/documentfragment.js'; import type ModelDocumentFragment from '@ckeditor/ckeditor5-engine/src/model/documentfragment.js';
import type { default as Schema, SchemaContextDefinition } from '../model/schema.js'; import type { default as Schema, SchemaContextDefinition } from '@ckeditor/ckeditor5-engine/src/model/schema.js';
import type ModelWriter from '../model/writer.js'; import type ModelWriter from '@ckeditor/ckeditor5-engine/src/model/writer.js';
import type ViewItem from '../view/item.js'; import type ViewItem from '@ckeditor/ckeditor5-engine/src/view/item.js';
declare const UpcastDispatcher_base: { declare const UpcastDispatcher_base: {
new (): import("@ckeditor/ckeditor5-utils").Emitter; new (): import("@ckeditor/ckeditor5-utils").Emitter;
prototype: import("@ckeditor/ckeditor5-utils").Emitter; prototype: import("@ckeditor/ckeditor5-utils").Emitter;

View File

@ -2,15 +2,15 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import { type ClassPatterns, type MatcherPattern, type PropertyPatterns } from '../view/matcher.js'; import { type ClassPatterns, type MatcherPattern, type PropertyPatterns } from '@ckeditor/ckeditor5-engine/src/view/matcher.js';
import ConversionHelpers from './conversionhelpers.js'; import ConversionHelpers from '@ckeditor/ckeditor5-engine/src/conversion/conversionhelpers.js';
import type { default as UpcastDispatcher, UpcastConversionApi, UpcastConversionData } from './upcastdispatcher.js'; import type { default as UpcastDispatcher, UpcastConversionApi, UpcastConversionData } from '@ckeditor/ckeditor5-engine/src/conversion/upcastdispatcher.js';
import type ModelElement from '../model/element.js'; import type ModelElement from '@ckeditor/ckeditor5-engine/src/model/element.js';
import type { ViewDocumentFragment, ViewElement, ViewText } from '../index.js'; import type { ViewDocumentFragment, ViewElement, ViewText } from '@ckeditor/ckeditor5-engine';
import type Mapper from './mapper.js'; import type Mapper from '@ckeditor/ckeditor5-engine/src/conversion/mapper.js';
import type Model from '../model/model.js'; import type Model from '@ckeditor/ckeditor5-engine/src/model/model.js';
import type ViewSelection from '../view/selection.js'; import type ViewSelection from '@ckeditor/ckeditor5-engine/src/view/selection.js';
import type ViewDocumentSelection from '../view/documentselection.js'; import type ViewDocumentSelection from '@ckeditor/ckeditor5-engine/src/view/documentselection.js';
import { type EventInfo, type PriorityString } from '@ckeditor/ckeditor5-utils'; import { type EventInfo, type PriorityString } from '@ckeditor/ckeditor5-utils';
/** /**
* Contains the {@link module:engine/view/view view} to {@link module:engine/model/model model} converters for * Contains the {@link module:engine/view/view view} to {@link module:engine/model/model model} converters for

View File

@ -2,11 +2,11 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type Element from '../view/element.js'; import type Element from '@ckeditor/ckeditor5-engine/src/view/element.js';
import type Node from '../view/node.js'; import type Node from '@ckeditor/ckeditor5-engine/src/view/node.js';
import type Text from '../view/text.js'; import type Text from '@ckeditor/ckeditor5-engine/src/view/text.js';
import type DocumentFragment from '../view/documentfragment.js'; import type DocumentFragment from '@ckeditor/ckeditor5-engine/src/view/documentfragment.js';
import type { Match } from '../view/matcher.js'; import type { Match } from '@ckeditor/ckeditor5-engine/src/view/matcher.js';
/** /**
* Class used for handling consumption of view {@link module:engine/view/element~Element elements}, * Class used for handling consumption of view {@link module:engine/view/element~Element elements},
* {@link module:engine/view/text~Text text nodes} and {@link module:engine/view/documentfragment~DocumentFragment document fragments}. * {@link module:engine/view/text~Text text nodes} and {@link module:engine/view/documentfragment~DocumentFragment document fragments}.

View File

@ -5,8 +5,8 @@
/** /**
* @module engine/dataprocessor/dataprocessor * @module engine/dataprocessor/dataprocessor
*/ */
import type ViewDocumentFragment from '../view/documentfragment.js'; import type ViewDocumentFragment from '@ckeditor/ckeditor5-engine/src/view/documentfragment.js';
import type { MatcherPattern } from '../view/matcher.js'; import type { MatcherPattern } from '@ckeditor/ckeditor5-engine/src/view/matcher.js';
/** /**
* The data processor interface. It should be implemented by actual data processors. * The data processor interface. It should be implemented by actual data processors.
* *

View File

@ -2,12 +2,12 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import DomConverter from '../view/domconverter.js'; import DomConverter from '@ckeditor/ckeditor5-engine/src/view/domconverter.js';
import type DataProcessor from './dataprocessor.js'; import type DataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/dataprocessor.js';
import type HtmlWriter from './htmlwriter.js'; import type HtmlWriter from '@ckeditor/ckeditor5-engine/src/dataprocessor/htmlwriter.js';
import type ViewDocument from '../view/document.js'; import type ViewDocument from '@ckeditor/ckeditor5-engine/src/view/document.js';
import type ViewDocumentFragment from '../view/documentfragment.js'; import type ViewDocumentFragment from '@ckeditor/ckeditor5-engine/src/view/documentfragment.js';
import type { MatcherPattern } from '../view/matcher.js'; import type { MatcherPattern } from '@ckeditor/ckeditor5-engine/src/view/matcher.js';
/** /**
* The HTML data processor class. * The HTML data processor class.
* This data processor implementation uses HTML as input and output data. * This data processor implementation uses HTML as input and output data.

View File

@ -5,109 +5,109 @@
/** /**
* @module engine * @module engine
*/ */
export * from './view/placeholder.js'; export * from '@ckeditor/ckeditor5-engine/src/view/placeholder.js';
export { default as EditingController } from './controller/editingcontroller.js'; export { default as EditingController } from '@ckeditor/ckeditor5-engine/src/controller/editingcontroller.js';
export { default as DataController, type DataControllerInitEvent, type DataControllerSetEvent, type DataControllerToModelEvent, type DataControllerToViewEvent } from './controller/datacontroller.js'; export { default as DataController, type DataControllerInitEvent, type DataControllerSetEvent, type DataControllerToModelEvent, type DataControllerToViewEvent } from '@ckeditor/ckeditor5-engine/src/controller/datacontroller.js';
export { default as Conversion } from './conversion/conversion.js'; export { default as Conversion } from '@ckeditor/ckeditor5-engine/src/conversion/conversion.js';
export type { default as DowncastDispatcher, DowncastAddMarkerEvent, DowncastAttributeEvent, DowncastConversionApi, DowncastInsertEvent, DowncastRemoveEvent, DowncastRemoveMarkerEvent, DowncastSelectionEvent } from './conversion/downcastdispatcher.js'; export type { default as DowncastDispatcher, DowncastAddMarkerEvent, DowncastAttributeEvent, DowncastConversionApi, DowncastInsertEvent, DowncastRemoveEvent, DowncastRemoveMarkerEvent, DowncastSelectionEvent } from '@ckeditor/ckeditor5-engine/src/conversion/downcastdispatcher.js';
export type { default as UpcastDispatcher, UpcastConversionApi, UpcastConversionData, UpcastElementEvent, UpcastTextEvent } from './conversion/upcastdispatcher.js'; export type { default as UpcastDispatcher, UpcastConversionApi, UpcastConversionData, UpcastElementEvent, UpcastTextEvent } from '@ckeditor/ckeditor5-engine/src/conversion/upcastdispatcher.js';
export type { AddHighlightCallback, AttributeDescriptor, ElementCreatorFunction, HighlightDescriptor, RemoveHighlightCallback, MarkerElementCreatorFunction, SlotFilter } from './conversion/downcasthelpers.js'; export type { AddHighlightCallback, AttributeDescriptor, ElementCreatorFunction, HighlightDescriptor, RemoveHighlightCallback, MarkerElementCreatorFunction, SlotFilter } from '@ckeditor/ckeditor5-engine/src/conversion/downcasthelpers.js';
export type { default as Mapper, MapperModelToViewPositionEvent, MapperViewToModelPositionEvent } from './conversion/mapper.js'; export type { default as Mapper, MapperModelToViewPositionEvent, MapperViewToModelPositionEvent } from '@ckeditor/ckeditor5-engine/src/conversion/mapper.js';
export type { default as ModelConsumable } from './conversion/modelconsumable.js'; export type { default as ModelConsumable } from '@ckeditor/ckeditor5-engine/src/conversion/modelconsumable.js';
export type { Consumables, default as ViewConsumable } from './conversion/viewconsumable.js'; export type { Consumables, default as ViewConsumable } from '@ckeditor/ckeditor5-engine/src/conversion/viewconsumable.js';
export type { default as DataProcessor } from './dataprocessor/dataprocessor.js'; export type { default as DataProcessor } from '@ckeditor/ckeditor5-engine/src/dataprocessor/dataprocessor.js';
export { default as HtmlDataProcessor } from './dataprocessor/htmldataprocessor.js'; export { default as HtmlDataProcessor } from '@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor.js';
export type { default as Operation } from './model/operation/operation.js'; export type { default as Operation } from '@ckeditor/ckeditor5-engine/src/model/operation/operation.js';
export { default as InsertOperation } from './model/operation/insertoperation.js'; export { default as InsertOperation } from '@ckeditor/ckeditor5-engine/src/model/operation/insertoperation.js';
export { default as MoveOperation } from './model/operation/moveoperation.js'; export { default as MoveOperation } from '@ckeditor/ckeditor5-engine/src/model/operation/moveoperation.js';
export { default as MergeOperation } from './model/operation/mergeoperation.js'; export { default as MergeOperation } from '@ckeditor/ckeditor5-engine/src/model/operation/mergeoperation.js';
export { default as SplitOperation } from './model/operation/splitoperation.js'; export { default as SplitOperation } from '@ckeditor/ckeditor5-engine/src/model/operation/splitoperation.js';
export { default as MarkerOperation } from './model/operation/markeroperation.js'; export { default as MarkerOperation } from '@ckeditor/ckeditor5-engine/src/model/operation/markeroperation.js';
export { default as OperationFactory } from './model/operation/operationfactory.js'; export { default as OperationFactory } from '@ckeditor/ckeditor5-engine/src/model/operation/operationfactory.js';
export { default as AttributeOperation } from './model/operation/attributeoperation.js'; export { default as AttributeOperation } from '@ckeditor/ckeditor5-engine/src/model/operation/attributeoperation.js';
export { default as RenameOperation } from './model/operation/renameoperation.js'; export { default as RenameOperation } from '@ckeditor/ckeditor5-engine/src/model/operation/renameoperation.js';
export { default as RootAttributeOperation } from './model/operation/rootattributeoperation.js'; export { default as RootAttributeOperation } from '@ckeditor/ckeditor5-engine/src/model/operation/rootattributeoperation.js';
export { default as RootOperation } from './model/operation/rootoperation.js'; export { default as RootOperation } from '@ckeditor/ckeditor5-engine/src/model/operation/rootoperation.js';
export { default as NoOperation } from './model/operation/nooperation.js'; export { default as NoOperation } from '@ckeditor/ckeditor5-engine/src/model/operation/nooperation.js';
export { transformSets } from './model/operation/transform.js'; export { transformSets } from '@ckeditor/ckeditor5-engine/src/model/operation/transform.js';
export { default as DocumentSelection, type DocumentSelectionChangeRangeEvent, type DocumentSelectionChangeMarkerEvent, type DocumentSelectionChangeAttributeEvent } from './model/documentselection.js'; export { default as DocumentSelection, type DocumentSelectionChangeRangeEvent, type DocumentSelectionChangeMarkerEvent, type DocumentSelectionChangeAttributeEvent } from '@ckeditor/ckeditor5-engine/src/model/documentselection.js';
export { default as Range } from './model/range.js'; export { default as Range } from '@ckeditor/ckeditor5-engine/src/model/range.js';
export { default as LiveRange, type LiveRangeChangeRangeEvent } from './model/liverange.js'; export { default as LiveRange, type LiveRangeChangeRangeEvent } from '@ckeditor/ckeditor5-engine/src/model/liverange.js';
export { default as LivePosition } from './model/liveposition.js'; export { default as LivePosition } from '@ckeditor/ckeditor5-engine/src/model/liveposition.js';
export { default as Model } from './model/model.js'; export { default as Model } from '@ckeditor/ckeditor5-engine/src/model/model.js';
export { default as TreeWalker, type TreeWalkerValue } from './model/treewalker.js'; export { default as TreeWalker, type TreeWalkerValue } from '@ckeditor/ckeditor5-engine/src/model/treewalker.js';
export { default as Element } from './model/element.js'; export { default as Element } from '@ckeditor/ckeditor5-engine/src/model/element.js';
export { default as Position, type PositionOffset } from './model/position.js'; export { default as Position, type PositionOffset } from '@ckeditor/ckeditor5-engine/src/model/position.js';
export { default as DocumentFragment } from './model/documentfragment.js'; export { default as DocumentFragment } from '@ckeditor/ckeditor5-engine/src/model/documentfragment.js';
export { default as History } from './model/history.js'; export { default as History } from '@ckeditor/ckeditor5-engine/src/model/history.js';
export { default as Text } from './model/text.js'; export { default as Text } from '@ckeditor/ckeditor5-engine/src/model/text.js';
export { default as TextProxy } from './model/textproxy.js'; export { default as TextProxy } from '@ckeditor/ckeditor5-engine/src/model/textproxy.js';
export type { default as Document, ModelPostFixer } from './model/document.js'; export type { default as Document, ModelPostFixer } from '@ckeditor/ckeditor5-engine/src/model/document.js';
export type { Marker } from './model/markercollection.js'; export type { Marker } from '@ckeditor/ckeditor5-engine/src/model/markercollection.js';
export type { default as Batch } from './model/batch.js'; export type { default as Batch } from '@ckeditor/ckeditor5-engine/src/model/batch.js';
export type { default as Differ, DiffItem, DiffItemAttribute, DiffItemInsert, DiffItemRemove } from './model/differ.js'; export type { default as Differ, DiffItem, DiffItemAttribute, DiffItemInsert, DiffItemRemove } from '@ckeditor/ckeditor5-engine/src/model/differ.js';
export type { default as Item } from './model/item.js'; export type { default as Item } from '@ckeditor/ckeditor5-engine/src/model/item.js';
export type { default as Node, NodeAttributes } from './model/node.js'; export type { default as Node, NodeAttributes } from '@ckeditor/ckeditor5-engine/src/model/node.js';
export type { default as RootElement } from './model/rootelement.js'; export type { default as RootElement } from '@ckeditor/ckeditor5-engine/src/model/rootelement.js';
export type { default as Schema, SchemaAttributeCheckCallback, SchemaChildCheckCallback, AttributeProperties, SchemaItemDefinition } from './model/schema.js'; export type { default as Schema, SchemaAttributeCheckCallback, SchemaChildCheckCallback, AttributeProperties, SchemaItemDefinition } from '@ckeditor/ckeditor5-engine/src/model/schema.js';
export type { default as Selection, Selectable } from './model/selection.js'; export type { default as Selection, Selectable } from '@ckeditor/ckeditor5-engine/src/model/selection.js';
export type { default as TypeCheckable } from './model/typecheckable.js'; export type { default as TypeCheckable } from '@ckeditor/ckeditor5-engine/src/model/typecheckable.js';
export type { default as Writer } from './model/writer.js'; export type { default as Writer } from '@ckeditor/ckeditor5-engine/src/model/writer.js';
export type { DocumentChangeEvent } from './model/document.js'; export type { DocumentChangeEvent } from '@ckeditor/ckeditor5-engine/src/model/document.js';
export type { DocumentSelectionChangeEvent } from './model/documentselection.js'; export type { DocumentSelectionChangeEvent } from '@ckeditor/ckeditor5-engine/src/model/documentselection.js';
export type { ModelApplyOperationEvent, ModelDeleteContentEvent, ModelGetSelectedContentEvent, ModelInsertContentEvent, ModelInsertObjectEvent, ModelModifySelectionEvent, ModelCanEditAtEvent } from './model/model.js'; export type { ModelApplyOperationEvent, ModelDeleteContentEvent, ModelGetSelectedContentEvent, ModelInsertContentEvent, ModelInsertObjectEvent, ModelModifySelectionEvent, ModelCanEditAtEvent } from '@ckeditor/ckeditor5-engine/src/model/model.js';
export type { SelectionChangeRangeEvent } from './model/selection.js'; export type { SelectionChangeRangeEvent } from '@ckeditor/ckeditor5-engine/src/model/selection.js';
export { default as DataTransfer } from './view/datatransfer.js'; export { default as DataTransfer } from '@ckeditor/ckeditor5-engine/src/view/datatransfer.js';
export { default as DomConverter } from './view/domconverter.js'; export { default as DomConverter } from '@ckeditor/ckeditor5-engine/src/view/domconverter.js';
export { default as Renderer } from './view/renderer.js'; export { default as Renderer } from '@ckeditor/ckeditor5-engine/src/view/renderer.js';
export { default as EditingView } from './view/view.js'; export { default as EditingView } from '@ckeditor/ckeditor5-engine/src/view/view.js';
export { default as ViewDocument } from './view/document.js'; export { default as ViewDocument } from '@ckeditor/ckeditor5-engine/src/view/document.js';
export { default as ViewText } from './view/text.js'; export { default as ViewText } from '@ckeditor/ckeditor5-engine/src/view/text.js';
export { default as ViewElement, type ElementAttributes as ViewElementAttributes } from './view/element.js'; export { default as ViewElement, type ElementAttributes as ViewElementAttributes } from '@ckeditor/ckeditor5-engine/src/view/element.js';
export { default as ViewContainerElement } from './view/containerelement.js'; export { default as ViewContainerElement } from '@ckeditor/ckeditor5-engine/src/view/containerelement.js';
export { default as ViewEditableElement } from './view/editableelement.js'; export { default as ViewEditableElement } from '@ckeditor/ckeditor5-engine/src/view/editableelement.js';
export { default as ViewRootEditableElement } from './view/rooteditableelement.js'; export { default as ViewRootEditableElement } from '@ckeditor/ckeditor5-engine/src/view/rooteditableelement.js';
export { default as ViewAttributeElement } from './view/attributeelement.js'; export { default as ViewAttributeElement } from '@ckeditor/ckeditor5-engine/src/view/attributeelement.js';
export { default as ViewEmptyElement } from './view/emptyelement.js'; export { default as ViewEmptyElement } from '@ckeditor/ckeditor5-engine/src/view/emptyelement.js';
export { default as ViewRawElement } from './view/rawelement.js'; export { default as ViewRawElement } from '@ckeditor/ckeditor5-engine/src/view/rawelement.js';
export { default as ViewUIElement } from './view/uielement.js'; export { default as ViewUIElement } from '@ckeditor/ckeditor5-engine/src/view/uielement.js';
export { default as ViewDocumentFragment } from './view/documentfragment.js'; export { default as ViewDocumentFragment } from '@ckeditor/ckeditor5-engine/src/view/documentfragment.js';
export { default as ViewTreeWalker, type TreeWalkerValue as ViewTreeWalkerValue } from './view/treewalker.js'; export { default as ViewTreeWalker, type TreeWalkerValue as ViewTreeWalkerValue } from '@ckeditor/ckeditor5-engine/src/view/treewalker.js';
export type { default as ViewElementDefinition, ElementObjectDefinition } from './view/elementdefinition.js'; export type { default as ViewElementDefinition, ElementObjectDefinition } from '@ckeditor/ckeditor5-engine/src/view/elementdefinition.js';
export type { default as ViewDocumentSelection } from './view/documentselection.js'; export type { default as ViewDocumentSelection } from '@ckeditor/ckeditor5-engine/src/view/documentselection.js';
export { default as AttributeElement } from './view/attributeelement.js'; export { default as AttributeElement } from '@ckeditor/ckeditor5-engine/src/view/attributeelement.js';
export type { default as ViewItem } from './view/item.js'; export type { default as ViewItem } from '@ckeditor/ckeditor5-engine/src/view/item.js';
export type { default as ViewNode } from './view/node.js'; export type { default as ViewNode } from '@ckeditor/ckeditor5-engine/src/view/node.js';
export type { default as ViewPosition, PositionOffset as ViewPositionOffset } from './view/position.js'; export type { default as ViewPosition, PositionOffset as ViewPositionOffset } from '@ckeditor/ckeditor5-engine/src/view/position.js';
export type { default as ViewRange } from './view/range.js'; export type { default as ViewRange } from '@ckeditor/ckeditor5-engine/src/view/range.js';
export type { default as ViewSelection, ViewSelectionChangeEvent, Selectable as ViewSelectable } from './view/selection.js'; export type { default as ViewSelection, ViewSelectionChangeEvent, Selectable as ViewSelectable } from '@ckeditor/ckeditor5-engine/src/view/selection.js';
export type { default as ViewTypeCheckable } from './view/typecheckable.js'; export type { default as ViewTypeCheckable } from '@ckeditor/ckeditor5-engine/src/view/typecheckable.js';
export { getFillerOffset } from './view/containerelement.js'; export { getFillerOffset } from '@ckeditor/ckeditor5-engine/src/view/containerelement.js';
export { default as Observer } from './view/observer/observer.js'; export { default as Observer } from '@ckeditor/ckeditor5-engine/src/view/observer/observer.js';
export { default as ClickObserver } from './view/observer/clickobserver.js'; export { default as ClickObserver } from '@ckeditor/ckeditor5-engine/src/view/observer/clickobserver.js';
export { default as DomEventObserver } from './view/observer/domeventobserver.js'; export { default as DomEventObserver } from '@ckeditor/ckeditor5-engine/src/view/observer/domeventobserver.js';
export { default as MouseObserver } from './view/observer/mouseobserver.js'; export { default as MouseObserver } from '@ckeditor/ckeditor5-engine/src/view/observer/mouseobserver.js';
export { default as TabObserver } from './view/observer/tabobserver.js'; export { default as TabObserver } from '@ckeditor/ckeditor5-engine/src/view/observer/tabobserver.js';
export { default as FocusObserver } from './view/observer/focusobserver.js'; export { default as FocusObserver } from '@ckeditor/ckeditor5-engine/src/view/observer/focusobserver.js';
export { default as DowncastWriter } from './view/downcastwriter.js'; export { default as DowncastWriter } from '@ckeditor/ckeditor5-engine/src/view/downcastwriter.js';
export { default as UpcastWriter } from './view/upcastwriter.js'; export { default as UpcastWriter } from '@ckeditor/ckeditor5-engine/src/view/upcastwriter.js';
export { default as Matcher, type MatcherPattern, type MatcherObjectPattern, type Match, type MatchResult } from './view/matcher.js'; export { default as Matcher, type MatcherPattern, type MatcherObjectPattern, type Match, type MatchResult } from '@ckeditor/ckeditor5-engine/src/view/matcher.js';
export { default as BubblingEventInfo } from './view/observer/bubblingeventinfo.js'; export { default as BubblingEventInfo } from '@ckeditor/ckeditor5-engine/src/view/observer/bubblingeventinfo.js';
export { default as DomEventData } from './view/observer/domeventdata.js'; export { default as DomEventData } from '@ckeditor/ckeditor5-engine/src/view/observer/domeventdata.js';
export type { BubblingEvent } from './view/observer/bubblingemittermixin.js'; export type { BubblingEvent } from '@ckeditor/ckeditor5-engine/src/view/observer/bubblingemittermixin.js';
export type { ViewDocumentArrowKeyEvent } from './view/observer/arrowkeysobserver.js'; export type { ViewDocumentArrowKeyEvent } from '@ckeditor/ckeditor5-engine/src/view/observer/arrowkeysobserver.js';
export type { ViewDocumentCompositionStartEvent, ViewDocumentCompositionUpdateEvent, ViewDocumentCompositionEndEvent } from './view/observer/compositionobserver.js'; export type { ViewDocumentCompositionStartEvent, ViewDocumentCompositionUpdateEvent, ViewDocumentCompositionEndEvent } from '@ckeditor/ckeditor5-engine/src/view/observer/compositionobserver.js';
export type { ViewDocumentInputEvent } from './view/observer/inputobserver.js'; export type { ViewDocumentInputEvent } from '@ckeditor/ckeditor5-engine/src/view/observer/inputobserver.js';
export type { ViewDocumentKeyDownEvent, ViewDocumentKeyUpEvent, KeyEventData } from './view/observer/keyobserver.js'; export type { ViewDocumentKeyDownEvent, ViewDocumentKeyUpEvent, KeyEventData } from '@ckeditor/ckeditor5-engine/src/view/observer/keyobserver.js';
export type { ViewDocumentLayoutChangedEvent } from './view/document.js'; export type { ViewDocumentLayoutChangedEvent } from '@ckeditor/ckeditor5-engine/src/view/document.js';
export type { ViewDocumentMouseDownEvent, ViewDocumentMouseUpEvent, ViewDocumentMouseOverEvent, ViewDocumentMouseOutEvent } from './view/observer/mouseobserver.js'; export type { ViewDocumentMouseDownEvent, ViewDocumentMouseUpEvent, ViewDocumentMouseOverEvent, ViewDocumentMouseOutEvent } from '@ckeditor/ckeditor5-engine/src/view/observer/mouseobserver.js';
export type { ViewDocumentTabEvent } from './view/observer/tabobserver.js'; export type { ViewDocumentTabEvent } from '@ckeditor/ckeditor5-engine/src/view/observer/tabobserver.js';
export type { ViewDocumentClickEvent } from './view/observer/clickobserver.js'; export type { ViewDocumentClickEvent } from '@ckeditor/ckeditor5-engine/src/view/observer/clickobserver.js';
export type { ViewDocumentSelectionChangeEvent } from './view/observer/selectionobserver.js'; export type { ViewDocumentSelectionChangeEvent } from '@ckeditor/ckeditor5-engine/src/view/observer/selectionobserver.js';
export type { ViewRenderEvent, ViewScrollToTheSelectionEvent } from './view/view.js'; export type { ViewRenderEvent, ViewScrollToTheSelectionEvent } from '@ckeditor/ckeditor5-engine/src/view/view.js';
export { default as StylesMap, StylesProcessor, type BoxSides } from './view/stylesmap.js'; export { default as StylesMap, StylesProcessor, type BoxSides } from '@ckeditor/ckeditor5-engine/src/view/stylesmap.js';
export * from './view/styles/background.js'; export * from '@ckeditor/ckeditor5-engine/src/view/styles/background.js';
export * from './view/styles/border.js'; export * from '@ckeditor/ckeditor5-engine/src/view/styles/border.js';
export * from './view/styles/margin.js'; export * from '@ckeditor/ckeditor5-engine/src/view/styles/margin.js';
export * from './view/styles/padding.js'; export * from '@ckeditor/ckeditor5-engine/src/view/styles/padding.js';
export * from './view/styles/utils.js'; export * from '@ckeditor/ckeditor5-engine/src/view/styles/utils.js';

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type Operation from './operation/operation.js'; import type Operation from '@ckeditor/ckeditor5-engine/src/model/operation/operation.js';
/** /**
* A batch instance groups model changes ({@link module:engine/model/operation/operation~Operation operations}). All operations * A batch instance groups model changes ({@link module:engine/model/operation/operation~Operation operations}). All operations
* grouped in a single batch can be reverted together, so you can also think about a batch as of a single undo step. If you want * grouped in a single batch can be reverted together, so you can also think about a batch as of a single undo step. If you want

View File

@ -5,13 +5,13 @@
/** /**
* @module engine/model/differ * @module engine/model/differ
*/ */
import Position from './position.js'; import Position from '@ckeditor/ckeditor5-engine/src/model/position.js';
import Range from './range.js'; import Range from '@ckeditor/ckeditor5-engine/src/model/range.js';
import type { default as MarkerCollection, MarkerData } from './markercollection.js'; import type { default as MarkerCollection, MarkerData } from '@ckeditor/ckeditor5-engine/src/model/markercollection.js';
import type Element from './element.js'; import type Element from '@ckeditor/ckeditor5-engine/src/model/element.js';
import type Item from './item.js'; import type Item from '@ckeditor/ckeditor5-engine/src/model/item.js';
import type RootElement from './rootelement.js'; import type RootElement from '@ckeditor/ckeditor5-engine/src/model/rootelement.js';
import type Operation from './operation/operation.js'; import type Operation from '@ckeditor/ckeditor5-engine/src/model/operation/operation.js';
/** /**
* Calculates the difference between two model states. * Calculates the difference between two model states.
* *

View File

@ -5,14 +5,14 @@
/** /**
* @module engine/model/document * @module engine/model/document
*/ */
import Differ from './differ.js'; import Differ from '@ckeditor/ckeditor5-engine/src/model/differ.js';
import DocumentSelection from './documentselection.js'; import DocumentSelection from '@ckeditor/ckeditor5-engine/src/model/documentselection.js';
import History from './history.js'; import History from '@ckeditor/ckeditor5-engine/src/model/history.js';
import RootElement from './rootelement.js'; import RootElement from '@ckeditor/ckeditor5-engine/src/model/rootelement.js';
import type { default as Model } from './model.js'; import type { default as Model } from '@ckeditor/ckeditor5-engine/src/model/model.js';
import type Batch from './batch.js'; import type Batch from '@ckeditor/ckeditor5-engine/src/model/batch.js';
import type Range from './range.js'; import type Range from '@ckeditor/ckeditor5-engine/src/model/range.js';
import type Writer from './writer.js'; import type Writer from '@ckeditor/ckeditor5-engine/src/model/writer.js';
import { Collection } from '@ckeditor/ckeditor5-utils'; import { Collection } from '@ckeditor/ckeditor5-utils';
declare const Document_base: { declare const Document_base: {
new (): import("@ckeditor/ckeditor5-utils").Emitter; new (): import("@ckeditor/ckeditor5-utils").Emitter;

View File

@ -5,10 +5,10 @@
/** /**
* @module engine/model/documentfragment * @module engine/model/documentfragment
*/ */
import TypeCheckable from './typecheckable.js'; import TypeCheckable from '@ckeditor/ckeditor5-engine/src/model/typecheckable.js';
import type Item from './item.js'; import type Item from '@ckeditor/ckeditor5-engine/src/model/item.js';
import type Node from './node.js'; import type Node from '@ckeditor/ckeditor5-engine/src/model/node.js';
import type Range from './range.js'; import type Range from '@ckeditor/ckeditor5-engine/src/model/range.js';
/** /**
* DocumentFragment represents a part of model which does not have a common root but its top-level nodes * DocumentFragment represents a part of model which does not have a common root but its top-level nodes
* can be seen as siblings. In other words, it is a detached part of model tree, without a root. * can be seen as siblings. In other words, it is a detached part of model tree, without a root.

View File

@ -5,14 +5,14 @@
/** /**
* @module engine/model/documentselection * @module engine/model/documentselection
*/ */
import TypeCheckable from './typecheckable.js'; import TypeCheckable from '@ckeditor/ckeditor5-engine/src/model/typecheckable.js';
import Selection, { type SelectionChangeAttributeEvent, type SelectionChangeRangeEvent } from './selection.js'; import Selection, { type SelectionChangeAttributeEvent, type SelectionChangeRangeEvent } from '@ckeditor/ckeditor5-engine/src/model/selection.js';
import type { default as Document } from './document.js'; import type { default as Document } from '@ckeditor/ckeditor5-engine/src/model/document.js';
import type { Marker } from './markercollection.js'; import type { Marker } from '@ckeditor/ckeditor5-engine/src/model/markercollection.js';
import type Element from './element.js'; import type Element from '@ckeditor/ckeditor5-engine/src/model/element.js';
import type Item from './item.js'; import type Item from '@ckeditor/ckeditor5-engine/src/model/item.js';
import type { default as Position, PositionOffset } from './position.js'; import type { default as Position, PositionOffset } from '@ckeditor/ckeditor5-engine/src/model/position.js';
import type Range from './range.js'; import type Range from '@ckeditor/ckeditor5-engine/src/model/range.js';
import { Collection } from '@ckeditor/ckeditor5-utils'; import { Collection } from '@ckeditor/ckeditor5-utils';
declare const DocumentSelection_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof TypeCheckable, import("@ckeditor/ckeditor5-utils").Emitter>; declare const DocumentSelection_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof TypeCheckable, import("@ckeditor/ckeditor5-utils").Emitter>;
/** /**

View File

@ -5,8 +5,8 @@
/** /**
* @module engine/model/element * @module engine/model/element
*/ */
import Node, { type NodeAttributes } from './node.js'; import Node, { type NodeAttributes } from '@ckeditor/ckeditor5-engine/src/model/node.js';
import type Item from './item.js'; import type Item from '@ckeditor/ckeditor5-engine/src/model/item.js';
/** /**
* Model element. Type of {@link module:engine/model/node~Node node} that has a {@link module:engine/model/element~Element#name name} and * Model element. Type of {@link module:engine/model/node~Node node} that has a {@link module:engine/model/element~Element#name name} and
* {@link module:engine/model/element~Element#getChildren child nodes}. * {@link module:engine/model/element~Element#getChildren child nodes}.

View File

@ -2,7 +2,7 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type Operation from './operation/operation.js'; import type Operation from '@ckeditor/ckeditor5-engine/src/model/operation/operation.js';
/** /**
* @module engine/model/history * @module engine/model/history
*/ */

View File

@ -2,8 +2,8 @@
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved. * @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 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/ */
import type Node from './node.js'; import type Node from '@ckeditor/ckeditor5-engine/src/model/node.js';
import type TextProxy from './textproxy.js'; import type TextProxy from '@ckeditor/ckeditor5-engine/src/model/textproxy.js';
/** /**
* @module engine/model/item * @module engine/model/item
*/ */

View File

@ -5,10 +5,10 @@
/** /**
* @module engine/model/liveposition * @module engine/model/liveposition
*/ */
import Position, { type PositionOffset, type PositionStickiness } from './position.js'; import Position, { type PositionOffset, type PositionStickiness } from '@ckeditor/ckeditor5-engine/src/model/position.js';
import type DocumentFragment from './documentfragment.js'; import type DocumentFragment from '@ckeditor/ckeditor5-engine/src/model/documentfragment.js';
import type Item from './item.js'; import type Item from '@ckeditor/ckeditor5-engine/src/model/item.js';
import type RootElement from './rootelement.js'; import type RootElement from '@ckeditor/ckeditor5-engine/src/model/rootelement.js';
declare const LivePosition_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof Position, import("@ckeditor/ckeditor5-utils").Emitter>; declare const LivePosition_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof Position, import("@ckeditor/ckeditor5-utils").Emitter>;
/** /**
* `LivePosition` is a type of {@link module:engine/model/position~Position Position} * `LivePosition` is a type of {@link module:engine/model/position~Position Position}

View File

@ -5,11 +5,11 @@
/** /**
* @module engine/model/liverange * @module engine/model/liverange
*/ */
import Range from './range.js'; import Range from '@ckeditor/ckeditor5-engine/src/model/range.js';
import type DocumentFragment from './documentfragment.js'; import type DocumentFragment from '@ckeditor/ckeditor5-engine/src/model/documentfragment.js';
import type Element from './element.js'; import type Element from '@ckeditor/ckeditor5-engine/src/model/element.js';
import type Item from './item.js'; import type Item from '@ckeditor/ckeditor5-engine/src/model/item.js';
import type Position from './position.js'; import type Position from '@ckeditor/ckeditor5-engine/src/model/position.js';
declare const LiveRange_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof Range, import("@ckeditor/ckeditor5-utils").Emitter>; declare const LiveRange_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof Range, import("@ckeditor/ckeditor5-utils").Emitter>;
/** /**
* `LiveRange` is a type of {@link module:engine/model/range~Range Range} * `LiveRange` is a type of {@link module:engine/model/range~Range Range}

Some files were not shown because too many files have changed in this diff Show More