@ckeditor/ckeditor5-pagination 40.2.0 → 41.1.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/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/pagination.js +2 -2
- package/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/jv.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/ug.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/index.d.ts +3 -3
- package/src/index.js +2 -2
- package/src/pagination.d.ts +4 -4
- package/src/pagination.js +2 -2
- package/src/paginationediting.d.ts +4 -4
- package/src/paginationediting.js +2 -2
- package/src/paginationlookup.d.ts +3 -3
- package/src/paginationlookup.js +2 -2
- package/src/paginationrenderer.d.ts +2 -2
- package/src/paginationrenderer.js +2 -2
- package/src/paginationui.d.ts +2 -2
- package/src/paginationui.js +2 -2
- package/src/ui/linesrepository.d.ts +2 -2
- package/src/ui/linesrepository.js +2 -2
- package/src/ui/lineview.d.ts +2 -2
- package/src/ui/lineview.js +2 -2
- package/src/ui/pagenavigatorview.d.ts +3 -3
- package/src/ui/pagenavigatorview.js +2 -2
- package/theme/line.css +1 -1
- package/theme/pagenavigator.css +1 -1
- package/theme/pagination.css +1 -1
package/lang/translations/jv.po
CHANGED
package/lang/translations/ko.po
CHANGED
package/lang/translations/lt.po
CHANGED
package/lang/translations/lv.po
CHANGED
package/lang/translations/ms.po
CHANGED
package/lang/translations/nl.po
CHANGED
package/lang/translations/no.po
CHANGED
package/lang/translations/pl.po
CHANGED
package/lang/translations/pt.po
CHANGED
package/lang/translations/ro.po
CHANGED
package/lang/translations/ru.po
CHANGED
package/lang/translations/sk.po
CHANGED
package/lang/translations/sr.po
CHANGED
package/lang/translations/sv.po
CHANGED
package/lang/translations/th.po
CHANGED
package/lang/translations/tr.po
CHANGED
package/lang/translations/ug.po
CHANGED
package/lang/translations/uk.po
CHANGED
package/lang/translations/ur.po
CHANGED
package/lang/translations/vi.po
CHANGED
package/lang/translations/zh.po
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-pagination",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "41.1.0",
|
|
4
4
|
"description": "Pagination feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
"ckeditor5-feature",
|
|
10
10
|
"ckeditor5-plugin"
|
|
11
11
|
],
|
|
12
|
+
"type": "module",
|
|
12
13
|
"main": "src/index.js",
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@ckeditor/ckeditor5-theme-lark": "
|
|
15
|
-
"ckeditor5": "
|
|
15
|
+
"@ckeditor/ckeditor5-theme-lark": "41.1.0",
|
|
16
|
+
"ckeditor5": "41.1.0",
|
|
16
17
|
"lodash-es": "4.17.21"
|
|
17
18
|
},
|
|
18
19
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import type { PaginationConfig, Pagination } from './index';
|
|
5
|
+
import type { PaginationConfig, Pagination } from './index.js';
|
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
|
7
7
|
interface EditorConfig {
|
|
8
8
|
/**
|
package/src/augmentation.js
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module pagination
|
|
7
7
|
*/
|
|
8
|
-
export { default as Pagination, type PaginationConfig, type PaginationMarginsConfig } from './pagination';
|
|
9
|
-
import './augmentation';
|
|
8
|
+
export { default as Pagination, type PaginationConfig, type PaginationMarginsConfig } from './pagination.js';
|
|
9
|
+
import './augmentation.js';
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export{default as Pagination}from'./pagination';import'./augmentation';
|
|
23
|
+
export{default as Pagination}from'./pagination.js';import'./augmentation.js';
|
package/src/pagination.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module pagination/pagination
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
-
import PaginationEditing from './paginationediting';
|
|
11
|
-
import PaginationUI from './paginationui';
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import PaginationEditing from './paginationediting.js';
|
|
11
|
+
import PaginationUI from './paginationui.js';
|
|
12
12
|
/**
|
|
13
13
|
* The pagination feature.
|
|
14
14
|
*/
|
package/src/pagination.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5949=['forceDisabled','config','init','pageNumber','totalPages','editor','scrollToPage','pagination.enableOnUnsupportedBrowsers','get','plugins','browserCheck','set','pluginName','bind','requires'];(function(_0x33ac5f,_0x5949a5){const _0x3ea67c=function(_0x4e0967){while(--_0x4e0967){_0x33ac5f['push'](_0x33ac5f['shift']());}};_0x3ea67c(++_0x5949a5);}(_0x5949,0x13d));const _0x3ea6=function(_0x33ac5f,_0x5949a5){_0x33ac5f=_0x33ac5f-0x0;let _0x3ea67c=_0x5949[_0x33ac5f];return _0x3ea67c;};import{Plugin as _0x5c62a9}from'ckeditor5/src/core.js';import _0x1d4976 from'./paginationediting.js';import _0x43feef from'./paginationui.js';import{env as _0x310ac1}from'ckeditor5/src/utils.js';export default class o extends _0x5c62a9{static get[_0x3ea6('0xa')](){return'Pagination';}static get[_0x3ea6('0xc')](){return[_0x1d4976,_0x43feef];}[_0x3ea6('0x0')](){this[_0x3ea6('0x9')]({'pageNumber':0x1,'totalPages':0x1});const _0x144ade=this[_0x3ea6('0x3')]['plugins'][_0x3ea6('0x6')](_0x1d4976);this[_0x3ea6('0xb')](_0x3ea6('0x1'))['to'](_0x144ade),this['bind'](_0x3ea6('0x2'))['to'](_0x144ade),_0x310ac1['isBlink']||this[_0x3ea6('0x3')][_0x3ea6('0xe')][_0x3ea6('0x6')](_0x3ea6('0x5'))||this[_0x3ea6('0xd')](_0x3ea6('0x8'));}[_0x3ea6('0x4')](_0x3dfd89){this['editor'][_0x3ea6('0x7')][_0x3ea6('0x6')](_0x1d4976)['scrollToPage'](_0x3dfd89);}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module pagination/paginationediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import PaginationLookup from './paginationlookup';
|
|
10
|
-
import PaginationRenderer from './paginationrenderer';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import PaginationLookup from './paginationlookup.js';
|
|
10
|
+
import PaginationRenderer from './paginationrenderer.js';
|
|
11
11
|
import '../theme/pagination.css';
|
|
12
12
|
/**
|
|
13
13
|
* The pagination editing plugin.
|
package/src/paginationediting.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43ee=['_licenseKeyCheckInterval','checkChild','consume','always','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20pagination\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','writer','for','Pagination','bindElementToMarker','length','options','paginationLicenseKeyInvalid','isEnabled','_updatePageBreakMarkers','add','addMarker','licenseKey','destroy','paginationLicenseKeyTrial','paginationLicenseKeyTrialLimit:operations','pagination-invalid-license-key','pagination','bind','removeMarker','init','data-pagination-page','get','dataDowncast','setStyle','listenTo','modelRange','markers','createContainerElement','mapper','stop','_setUpDataDowncastConversion','toViewElement','totalPages','setAttribute','plugins','parent','change','scrollToPage','nodeAfter','index','config','consumable','pagination:','requires','getFillerOffset','has','pageNumber','$text','name','editor','info','pluginName'];(function(_0x32cb50,_0x43ee99){const _0x4b806c=function(_0x37305b){while(--_0x37305b){_0x32cb50['push'](_0x32cb50['shift']());}};_0x4b806c(++_0x43ee99);}(_0x43ee,0x139));const _0x4b80=function(_0x32cb50,_0x43ee99){_0x32cb50=_0x32cb50-0x0;let _0x4b806c=_0x43ee[_0x32cb50];return _0x4b806c;};import{Plugin as _0x40a381}from'ckeditor5/src/core.js';import{CKEditorError as _0x48d53a}from'ckeditor5/src/utils.js';import _0x7b81d4 from'./paginationlookup.js';import _0x5ddf86 from'./paginationrenderer.js';import'../theme/pagination.css';export default class e extends _0x40a381{static get[_0x4b80('0x1c')](){return'PaginationEditing';}static get[_0x4b80('0x14')](){return[_0x7b81d4,_0x5ddf86];}[_0x4b80('0x35')](){this['set']({'pageNumber':0x1,'totalPages':0x1});const _0x3c807d=this[_0x4b80('0x1a')]['plugins'][_0x4b80('0x37')](_0x4b80('0x24')),_0x27a107=this[_0x4b80('0x1a')][_0x4b80('0xb')][_0x4b80('0x37')](_0x7b81d4),_0x5ca50e=this[_0x4b80('0x1a')][_0x4b80('0xb')][_0x4b80('0x37')](_0x5ddf86);this[_0x4b80('0x33')](_0x4b80('0x29'))['to'](_0x3c807d),this[_0x4b80('0x7')](),this[_0x4b80('0x33')](_0x4b80('0x17'))['to'](_0x5ca50e),this[_0x4b80('0x1')](_0x27a107,'change:pageBreaks',(_0xff8a49,_0x2a29d7,_0x24a92c,_0x518b71)=>{this[_0x4b80('0x9')]=_0x24a92c['length'],this[_0x4b80('0x2a')](_0x24a92c,_0x518b71);});const _0x10c9c4=this[_0x4b80('0x1a')];this[_0x4b80('0x2d')]=_0x10c9c4[_0x4b80('0x11')][_0x4b80('0x37')](_0x4b80('0x2d')),this[_0x4b80('0x1d')]=setInterval(()=>{let _0x2e040e;for(const _0x3875e8 in _0x10c9c4){const _0x558440=_0x3875e8,_0x603ad4=_0x10c9c4[_0x558440];if(_0x4b80('0x2f')===_0x603ad4||_0x4b80('0x28')===_0x603ad4||'paginationLicenseKeyValid'===_0x603ad4||_0x4b80('0x30')===_0x603ad4){delete _0x10c9c4[_0x558440],_0x2e040e=_0x603ad4;break;}}if(_0x4b80('0x28')===_0x2e040e)throw clearInterval(this[_0x4b80('0x1d')]),new _0x48d53a(_0x4b80('0x31'),null);if(_0x4b80('0x2f')===_0x2e040e&&console[_0x4b80('0x1b')](_0x4b80('0x21')),_0x4b80('0x30')===_0x2e040e)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x48d53a('pagination-trial-license-key-reached-limit-changes',null);'paginationLicenseKeyValid'===_0x2e040e&&clearInterval(this[_0x4b80('0x1d')]);},0x3e8);}[_0x4b80('0x2e')](){clearInterval(this['_licenseKeyCheckInterval']);}[_0x4b80('0xe')](_0xa71005){if(!this[_0x4b80('0x29')])return;_0xa71005<0x1&&(_0xa71005=0x1),_0xa71005>this['totalPages']&&(_0xa71005=this[_0x4b80('0x9')]),this[_0x4b80('0x1a')][_0x4b80('0xb')][_0x4b80('0x37')](_0x5ddf86)[_0x4b80('0xe')](_0xa71005);}[_0x4b80('0x2a')](_0x14fc09,_0x5e629d){const _0x438ea4=this[_0x4b80('0x1a')]['model'];this[_0x4b80('0x29')]&&_0x438ea4[_0x4b80('0xd')](_0xe8cab6=>{for(let _0x3e5421=0x1;_0x3e5421<_0x14fc09[_0x4b80('0x26')];_0x3e5421++){const _0x21d15b=_0x14fc09[_0x3e5421][_0x4b80('0x2')],_0x4a85b2=_0x4b80('0x13')+(_0x3e5421+0x1);_0x438ea4[_0x4b80('0x3')][_0x4b80('0x16')](_0x4a85b2)?_0xe8cab6['updateMarker'](_0x4a85b2,{'range':_0x21d15b}):_0xe8cab6[_0x4b80('0x2c')](_0x4a85b2,{'range':_0x21d15b,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x4d115e=_0x14fc09[_0x4b80('0x26')];_0x4d115e<_0x5e629d['length'];_0x4d115e++){const _0x3ade7e='pagination:'+(_0x4d115e+0x1);_0x438ea4[_0x4b80('0x3')][_0x4b80('0x16')](_0x3ade7e)&&_0xe8cab6[_0x4b80('0x34')](_0x3ade7e);}});}[_0x4b80('0x7')](){const _0x2c6d73='pagination';this[_0x4b80('0x1a')]['conversion'][_0x4b80('0x23')](_0x4b80('0x38'))[_0x4b80('0x2b')](_0x3f3b31=>{_0x3f3b31['on']('addMarker:'+_0x2c6d73,(_0x172bf7,{markerRange:_0x2a6f28,markerName:_0x366c0f},_0x39e931)=>{if(!_0x39e931[_0x4b80('0x27')][_0x4b80('0x32')])return;if(!_0x39e931[_0x4b80('0x12')][_0x4b80('0x1f')](_0x2a6f28,_0x172bf7[_0x4b80('0x19')]))return;const _0x3c8af0=_0x2a6f28['getContainedElement']();let _0x29f3bb=_0x3c8af0?_0x39e931[_0x4b80('0x5')][_0x4b80('0x8')](_0x3c8af0):null;if(!_0x29f3bb){const _0x3995f8=_0x2a6f28['start'];if(_0x39e931['schema'][_0x4b80('0x1e')](_0x3995f8,_0x4b80('0x18'))){const _0x992646=_0x39e931[_0x4b80('0x5')]['toViewPosition'](_0x3995f8);_0x29f3bb=_0x39e931[_0x4b80('0x22')][_0x4b80('0x4')]('span'),_0x29f3bb[_0x4b80('0x15')]=()=>null,_0x39e931[_0x4b80('0x22')]['insert'](_0x992646,_0x29f3bb);}else{const _0x5e0124=_0x3995f8[_0x4b80('0xf')];_0x29f3bb=_0x39e931['mapper'][_0x4b80('0x8')](_0x5e0124);}}for(;_0x29f3bb[_0x4b80('0xc')]!==_0x29f3bb['root']&&0x0===_0x29f3bb[_0x4b80('0x10')];)_0x29f3bb=_0x29f3bb[_0x4b80('0xc')];const _0xce01fe=_0x366c0f['substring'](0xb);_0x39e931[_0x4b80('0x22')][_0x4b80('0x0')]('page-break-before',_0x4b80('0x20'),_0x29f3bb),_0x39e931[_0x4b80('0x22')][_0x4b80('0xa')](_0x4b80('0x36'),_0xce01fe,_0x29f3bb),_0x39e931['mapper'][_0x4b80('0x25')](_0x29f3bb,_0x366c0f),_0x172bf7[_0x4b80('0x6')]();});});}}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module pagination/paginationlookup
|
|
7
7
|
*/
|
|
8
|
-
import type { Range } from 'ckeditor5/src/engine';
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import type { Range } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
10
|
/**
|
|
11
11
|
* The pagination lookup plugin.
|
|
12
12
|
*/
|