@ckeditor/ckeditor5-footnotes 48.2.0-alpha.7 → 48.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/augmentation.d.ts +32 -32
- package/dist/commands/insertfootnotecommand.d.ts +16 -16
- package/dist/footnotes.d.ts +28 -28
- package/dist/footnotesclipboard.d.ts +33 -33
- package/dist/footnotesconfig.d.ts +25 -25
- package/dist/footnotesediting.d.ts +40 -40
- package/dist/footnotesproperties/commands/footnotesstartcommand.d.ts +23 -23
- package/dist/footnotesproperties/commands/footnotesstylecommand.d.ts +24 -24
- package/dist/footnotesproperties/footnotespropertiesconfig.d.ts +65 -65
- package/dist/footnotesproperties/footnotespropertiesediting.d.ts +37 -37
- package/dist/footnotesproperties/footnotespropertiesformatters.d.ts +18 -24
- package/dist/footnotesproperties/footnotespropertiesui.d.ts +36 -36
- package/dist/footnotesproperties/ui/footnotesdefinitionspropertiesview.d.ts +11 -11
- package/dist/footnotesproperties.d.ts +27 -27
- package/dist/footnotestracker.d.ts +89 -89
- package/dist/footnotesui.d.ts +27 -27
- package/dist/index.d.ts +19 -19
- package/dist/index.js +1 -1
- package/dist/modelelementtracker.d.ts +48 -48
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { type FootnotesDefinitionsCanonicalStyle } from
|
|
11
|
-
import { FootnotesTracker } from
|
|
12
|
-
import { FootnotesEditing } from
|
|
6
|
+
* @module footnotes/footnotesproperties/footnotespropertiesediting
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { type FootnotesDefinitionsCanonicalStyle } from "./footnotespropertiesconfig.js";
|
|
11
|
+
import { FootnotesTracker } from "../footnotestracker.js";
|
|
12
|
+
import { FootnotesEditing } from "../footnotesediting.js";
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
* A plugin that provides footnotes properties editing.
|
|
15
|
+
*/
|
|
16
16
|
export declare class FootnotesPropertiesEditing extends Plugin {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "FootnotesPropertiesEditing";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get requires(): PluginDependenciesOf<[FootnotesEditing, FootnotesTracker]>;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static override get isOfficialPlugin(): true;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static override get isPremiumPlugin(): true;
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
init(): void;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
* Normalizes footnotes list style by converting aliases to their canonical form.
|
|
40
|
+
*
|
|
41
|
+
* @param listStyle The list style value to normalize.
|
|
42
|
+
* @returns The canonical form of the list style.
|
|
43
|
+
*/
|
|
44
44
|
export declare function toCanonicalFootnotesListStyle(listStyle: unknown): FootnotesDefinitionsCanonicalStyle | null;
|
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* @module footnotes/footnotesproperties/footnotespropertiesformatters
|
|
7
|
+
*/
|
|
8
|
+
import type { FootnotesDefinitionsStyle } from "./footnotespropertiesconfig.js";
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* @param upper Whether to use uppercase letters.
|
|
23
|
-
* @returns The alphabetic representation of the number.
|
|
24
|
-
*/
|
|
25
|
-
export declare function formatLatinFootnote(n: number, upper: boolean): string;
|
|
26
|
-
export declare function formatRomanFootnote(n: number, upper: boolean): string;
|
|
27
|
-
export declare function formatArabicIndicFootnote(n: number): string;
|
|
10
|
+
* Formats provided footnote value using selected style.
|
|
11
|
+
*
|
|
12
|
+
* @param options Formatter options.
|
|
13
|
+
* @returns Formatted string.
|
|
14
|
+
*/
|
|
15
|
+
export declare function formatFootnoteListValue({ style, digits, value }: FormatFootnoteListValueOptions): string;
|
|
16
|
+
type FormatFootnoteListValueOptions = {
|
|
17
|
+
style?: FootnotesDefinitionsStyle;
|
|
18
|
+
digits: number;
|
|
19
|
+
value: number;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { ContextualBalloon } from
|
|
10
|
-
import { WidgetToolbarRepository } from
|
|
11
|
-
import { Plugin } from
|
|
12
|
-
import
|
|
6
|
+
* @module footnotes/footnotesproperties/footnotespropertiesui
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { ContextualBalloon } from "@ckeditor/ckeditor5-ui";
|
|
10
|
+
import { WidgetToolbarRepository } from "@ckeditor/ckeditor5-widget";
|
|
11
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
12
|
+
import "../../theme/footnotesproperties.css";
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
* A plugin that provides footnotes properties UI.
|
|
15
|
+
*/
|
|
16
16
|
export declare class FootnotesPropertiesUI extends Plugin {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
static get pluginName(): "FootnotesPropertiesUI";
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
static get requires(): PluginDependenciesOf<[ContextualBalloon, WidgetToolbarRepository]>;
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
static override get isOfficialPlugin(): true;
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static override get isPremiumPlugin(): true;
|
|
33
|
+
/**
|
|
34
|
+
* @inheritDoc
|
|
35
|
+
*/
|
|
36
|
+
init(): void;
|
|
37
|
+
/**
|
|
38
|
+
* @inheritDoc
|
|
39
|
+
*/
|
|
40
|
+
afterInit(): void;
|
|
41
41
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
* Fired when the footnotes start index value has changed via {@link ~FootnotesDefinitionsPropertiesView#startIndexFieldView}.
|
|
7
|
+
*
|
|
8
|
+
* @eventName ~FootnotesDefinitionsPropertiesView#listStart
|
|
9
|
+
*/
|
|
10
10
|
export type FootnotesDefinitionsPropertiesViewListStartEvent = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
name: "footnotesListStart";
|
|
12
|
+
args: [data: {
|
|
13
|
+
startIndex: number;
|
|
14
|
+
}];
|
|
15
15
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin } from
|
|
10
|
-
import { FootnotesPropertiesEditing } from
|
|
11
|
-
import { FootnotesPropertiesUI } from
|
|
6
|
+
* @module footnotes/footnotesproperties
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import { FootnotesPropertiesEditing } from "./footnotesproperties/footnotespropertiesediting.js";
|
|
11
|
+
import { FootnotesPropertiesUI } from "./footnotesproperties/footnotespropertiesui.js";
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
* The footnotes properties plugin.
|
|
14
|
+
*/
|
|
15
15
|
export declare class FootnotesProperties extends Plugin {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
static get pluginName(): "FootnotesProperties";
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires(): PluginDependenciesOf<[FootnotesPropertiesEditing, FootnotesPropertiesUI]>;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static override get isOfficialPlugin(): true;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static override get isPremiumPlugin(): true;
|
|
32
32
|
}
|
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Plugin, type Editor } from
|
|
10
|
-
import type { ModelElement } from
|
|
6
|
+
* @module footnotes/footnotestracker
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin, type Editor } from "@ckeditor/ckeditor5-core";
|
|
10
|
+
import type { ModelElement } from "@ckeditor/ckeditor5-engine";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
* The footnotes tracker. It keeps track of all footnotes in the editor.
|
|
13
|
+
*
|
|
14
|
+
* It is used by the {@link module:footnotes/footnotesediting~FootnotesEditing} to update the list of
|
|
15
|
+
* footnotes when they are added or removed.
|
|
16
|
+
*/
|
|
17
17
|
export declare class FootnotesTracker extends Plugin {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get pluginName(): "FootnotesTracker";
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static override get isOfficialPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static override get isPremiumPlugin(): true;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
constructor(editor: Editor);
|
|
34
|
+
/**
|
|
35
|
+
* @inheritDoc
|
|
36
|
+
*/
|
|
37
|
+
init(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the footnotes definitions container element.
|
|
40
|
+
*
|
|
41
|
+
* @returns The footnotes definitions container or `null` if it does not exist.
|
|
42
|
+
*/
|
|
43
|
+
getFootnotesDefinitionsObjectElement(): ModelElement | null;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the footnote with the given ID.
|
|
46
|
+
*
|
|
47
|
+
* @param footnoteId The ID of the footnote to find.
|
|
48
|
+
* @returns The footnote item or `null` if not found.
|
|
49
|
+
*/
|
|
50
|
+
getFootnote(footnoteId: string): Footnote | null;
|
|
51
|
+
/**
|
|
52
|
+
* Returns all footnotes in the editor.
|
|
53
|
+
*
|
|
54
|
+
* @returns An array of footnote items.
|
|
55
|
+
*/
|
|
56
|
+
getFootnotes(): Array<Footnote>;
|
|
57
|
+
/**
|
|
58
|
+
* Returns the registered footnote formatter.
|
|
59
|
+
*
|
|
60
|
+
* @returns The footnote formatter or `null` if not set.
|
|
61
|
+
*/
|
|
62
|
+
getFootnotesFormatter(): FootnoteFormatterCallback | null;
|
|
63
|
+
/**
|
|
64
|
+
* Registers a custom footnote formatter.
|
|
65
|
+
*
|
|
66
|
+
* @param formatter The footnote formatter to register.
|
|
67
|
+
*/
|
|
68
|
+
setFootnoteFormatter(formatter: FootnoteFormatterCallback): void;
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
* Footnote item stored in the {@link module:footnotes/footnotestracker~FootnotesTracker}.
|
|
72
|
+
*/
|
|
73
73
|
export type Footnote = {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
id: string;
|
|
75
|
+
reference: ModelElement;
|
|
76
|
+
definition: ModelElement;
|
|
77
77
|
};
|
|
78
78
|
/**
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
* Parameters for formatting footnote list values.
|
|
80
|
+
*/
|
|
81
81
|
export type FormatFootnoteListValueParams = {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
82
|
+
/**
|
|
83
|
+
* The footnote being formatted.
|
|
84
|
+
*/
|
|
85
|
+
footnote: Footnote;
|
|
86
|
+
/**
|
|
87
|
+
* The footnotes definitions container element.
|
|
88
|
+
*/
|
|
89
|
+
container: ModelElement;
|
|
90
|
+
/**
|
|
91
|
+
* Number of digits needed for the highest footnote number.
|
|
92
|
+
*/
|
|
93
|
+
digits: number;
|
|
94
|
+
/**
|
|
95
|
+
* The footnote number to format (1-based).
|
|
96
|
+
*/
|
|
97
|
+
value: number;
|
|
98
98
|
};
|
|
99
99
|
/**
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
* Footnote formatter interface.
|
|
101
|
+
*/
|
|
102
102
|
export type FootnoteFormatterCallback = (params: FormatFootnoteListValueParams) => string;
|
package/dist/footnotesui.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Plugin } from
|
|
6
|
-
import
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { Plugin } from "@ckeditor/ckeditor5-core";
|
|
6
|
+
import "../theme/footnotes.css";
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
* The footnotes UI plugin.
|
|
9
|
+
*/
|
|
10
10
|
export declare class FootnotesUI extends Plugin {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
static get pluginName(): "FootnotesUI";
|
|
15
|
+
/**
|
|
16
|
+
* @inheritDoc
|
|
17
|
+
*/
|
|
18
|
+
static override get isOfficialPlugin(): true;
|
|
19
|
+
/**
|
|
20
|
+
* @inheritDoc
|
|
21
|
+
*/
|
|
22
|
+
static override get isPremiumPlugin(): true;
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
init(): void;
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
override destroy(): void;
|
|
31
31
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
export { Footnotes } from
|
|
10
|
-
export { FootnotesEditing } from
|
|
11
|
-
export { FootnotesClipboard } from
|
|
12
|
-
export { FootnotesUI } from
|
|
13
|
-
export { InsertFootnoteCommand } from
|
|
14
|
-
export { FootnotesTracker, type Footnote, type FootnoteFormatterCallback, type FormatFootnoteListValueParams } from
|
|
15
|
-
export type { FootnotesConfig } from
|
|
16
|
-
export { FootnotesStyleCommand } from
|
|
17
|
-
export { FootnotesStartCommand } from
|
|
18
|
-
export { FootnotesPropertiesEditing } from
|
|
19
|
-
export { FootnotesPropertiesUI } from
|
|
20
|
-
export { FootnotesProperties } from
|
|
21
|
-
export type { FootnotesDefinitionsStyle, FootnotesPropertiesConfig } from
|
|
6
|
+
* @module footnotes
|
|
7
|
+
*/
|
|
8
|
+
import "./augmentation.js";
|
|
9
|
+
export { Footnotes } from "./footnotes.js";
|
|
10
|
+
export { FootnotesEditing } from "./footnotesediting.js";
|
|
11
|
+
export { FootnotesClipboard } from "./footnotesclipboard.js";
|
|
12
|
+
export { FootnotesUI } from "./footnotesui.js";
|
|
13
|
+
export { InsertFootnoteCommand } from "./commands/insertfootnotecommand.js";
|
|
14
|
+
export { FootnotesTracker, type Footnote, type FootnoteFormatterCallback, type FormatFootnoteListValueParams } from "./footnotestracker.js";
|
|
15
|
+
export type { FootnotesConfig } from "./footnotesconfig.js";
|
|
16
|
+
export { FootnotesStyleCommand } from "./footnotesproperties/commands/footnotesstylecommand.js";
|
|
17
|
+
export { FootnotesStartCommand } from "./footnotesproperties/commands/footnotesstartcommand.js";
|
|
18
|
+
export { FootnotesPropertiesEditing } from "./footnotesproperties/footnotespropertiesediting.js";
|
|
19
|
+
export { FootnotesPropertiesUI } from "./footnotesproperties/footnotespropertiesui.js";
|
|
20
|
+
export { FootnotesProperties } from "./footnotesproperties.js";
|
|
21
|
+
export type { FootnotesDefinitionsStyle, FootnotesPropertiesConfig } from "./footnotesproperties/footnotespropertiesconfig.js";
|