@ckeditor/ckeditor5-pagination 40.1.0 → 41.0.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.0.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.0.0",
|
|
16
|
+
"ckeditor5": "41.0.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 _0x248d=['totalPages','forceDisabled','scrollToPage','get','browserCheck','requires','config','init','set','pluginName','bind','editor'];(function(_0x3d604b,_0x248d15){const _0x189e98=function(_0xaeed79){while(--_0xaeed79){_0x3d604b['push'](_0x3d604b['shift']());}};_0x189e98(++_0x248d15);}(_0x248d,0x166));const _0x189e=function(_0x3d604b,_0x248d15){_0x3d604b=_0x3d604b-0x0;let _0x189e98=_0x248d[_0x3d604b];return _0x189e98;};import{Plugin as _0x315947}from'ckeditor5/src/core.js';import _0x321811 from'./paginationediting.js';import _0x25d69e from'./paginationui.js';import{env as _0x2d1936}from'ckeditor5/src/utils.js';export default class o extends _0x315947{static get[_0x189e('0xb')](){return'Pagination';}static get[_0x189e('0x7')](){return[_0x321811,_0x25d69e];}[_0x189e('0x9')](){this[_0x189e('0xa')]({'pageNumber':0x1,'totalPages':0x1});const _0x33c592=this[_0x189e('0x1')]['plugins'][_0x189e('0x5')](_0x321811);this[_0x189e('0x0')]('pageNumber')['to'](_0x33c592),this[_0x189e('0x0')](_0x189e('0x2'))['to'](_0x33c592),_0x2d1936['isBlink']||this[_0x189e('0x1')][_0x189e('0x8')][_0x189e('0x5')]('pagination.enableOnUnsupportedBrowsers')||this[_0x189e('0x3')](_0x189e('0x6'));}[_0x189e('0x4')](_0x11a759){this[_0x189e('0x1')]['plugins'][_0x189e('0x5')](_0x321811)[_0x189e('0x4')](_0x11a759);}}
|
|
@@ -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 _0x3a49=['editor','add','bind','getContainedElement','setAttribute','config','paginationLicenseKeyTrial','$text','pagination:','set','length','paginationLicenseKeyValid','requires','removeMarker','PaginationEditing','pluginName','get','setStyle','pagination-trial-license-key-reached-limit-changes','_updatePageBreakMarkers','listenTo','checkChild','schema','data-pagination-page','pageNumber','mapper','insert','totalPages','paginationLicenseKeyTrialLimit:operations','substring','modelRange','nodeAfter','addMarker','scrollToPage','toViewPosition','isEnabled','name','parent','span','writer','_setUpDataDowncastConversion','has','plugins','markers','dataDowncast','toViewElement','licenseKey','destroy','pagination','_licenseKeyCheckInterval','bindElementToMarker','change:pageBreaks','index','always','stop','info'];(function(_0x14709c,_0x3a490d){const _0x41c0ea=function(_0x7a20b7){while(--_0x7a20b7){_0x14709c['push'](_0x14709c['shift']());}};_0x41c0ea(++_0x3a490d);}(_0x3a49,0xb9));const _0x41c0=function(_0x14709c,_0x3a490d){_0x14709c=_0x14709c-0x0;let _0x41c0ea=_0x3a49[_0x14709c];return _0x41c0ea;};import{Plugin as _0x66d0e5}from'ckeditor5/src/core.js';import{CKEditorError as _0x11841f}from'ckeditor5/src/utils.js';import _0x1ee50f from'./paginationlookup.js';import _0x380667 from'./paginationrenderer.js';import'../theme/pagination.css';export default class e extends _0x66d0e5{static get[_0x41c0('0x36')](){return _0x41c0('0x35');}static get[_0x41c0('0x33')](){return[_0x1ee50f,_0x380667];}['init'](){this[_0x41c0('0x30')]({'pageNumber':0x1,'totalPages':0x1});const _0x249c12=this[_0x41c0('0x27')]['plugins'][_0x41c0('0x37')]('Pagination'),_0xa54a65=this['editor'][_0x41c0('0x19')]['get'](_0x1ee50f),_0x114c6c=this[_0x41c0('0x27')][_0x41c0('0x19')]['get'](_0x380667);this[_0x41c0('0x29')](_0x41c0('0x12'))['to'](_0x249c12),this[_0x41c0('0x17')](),this[_0x41c0('0x29')](_0x41c0('0x7'))['to'](_0x114c6c),this[_0x41c0('0x3')](_0xa54a65,_0x41c0('0x22'),(_0x1741b1,_0x2712be,_0x439368,_0x42f903)=>{this[_0x41c0('0xa')]=_0x439368[_0x41c0('0x31')],this['_updatePageBreakMarkers'](_0x439368,_0x42f903);});const _0x167804=this['editor'];this[_0x41c0('0x1d')]=_0x167804[_0x41c0('0x2c')]['get'](_0x41c0('0x1d')),this[_0x41c0('0x20')]=setInterval(()=>{let _0x20305b;for(const _0x29d95c in _0x167804){const _0x1e064b=_0x29d95c,_0x149784=_0x167804[_0x1e064b];if('paginationLicenseKeyTrial'===_0x149784||'paginationLicenseKeyInvalid'===_0x149784||'paginationLicenseKeyValid'===_0x149784||_0x41c0('0xb')===_0x149784){delete _0x167804[_0x1e064b],_0x20305b=_0x149784;break;}}if('paginationLicenseKeyInvalid'===_0x20305b)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x11841f('pagination-invalid-license-key',null);if(_0x41c0('0x2d')===_0x20305b&&console[_0x41c0('0x26')]('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.'),_0x41c0('0xb')===_0x20305b)throw clearInterval(this['_licenseKeyCheckInterval']),new _0x11841f(_0x41c0('0x1'),null);_0x41c0('0x32')===_0x20305b&&clearInterval(this['_licenseKeyCheckInterval']);},0x3e8);}[_0x41c0('0x1e')](){clearInterval(this[_0x41c0('0x20')]);}[_0x41c0('0x10')](_0x157b55){if(!this[_0x41c0('0x12')])return;_0x157b55<0x1&&(_0x157b55=0x1),_0x157b55>this[_0x41c0('0xa')]&&(_0x157b55=this[_0x41c0('0xa')]),this[_0x41c0('0x27')][_0x41c0('0x19')][_0x41c0('0x37')](_0x380667)[_0x41c0('0x10')](_0x157b55);}[_0x41c0('0x2')](_0x46c70b,_0x2c1bc2){const _0x2cf919=this['editor']['model'];this[_0x41c0('0x12')]&&_0x2cf919['change'](_0x4b4421=>{for(let _0x57abf9=0x1;_0x57abf9<_0x46c70b['length'];_0x57abf9++){const _0x9111c7=_0x46c70b[_0x57abf9][_0x41c0('0xd')],_0x2ffca2=_0x41c0('0x2f')+(_0x57abf9+0x1);_0x2cf919[_0x41c0('0x1a')][_0x41c0('0x18')](_0x2ffca2)?_0x4b4421['updateMarker'](_0x2ffca2,{'range':_0x9111c7}):_0x4b4421[_0x41c0('0xf')](_0x2ffca2,{'range':_0x9111c7,'usingOperation':!0x1,'affectsData':!0x0});}for(let _0x52ac94=_0x46c70b[_0x41c0('0x31')];_0x52ac94<_0x2c1bc2['length'];_0x52ac94++){const _0x467d27=_0x41c0('0x2f')+(_0x52ac94+0x1);_0x2cf919['markers']['has'](_0x467d27)&&_0x4b4421[_0x41c0('0x34')](_0x467d27);}});}[_0x41c0('0x17')](){const _0x1dac81=_0x41c0('0x1f');this[_0x41c0('0x27')]['conversion']['for'](_0x41c0('0x1b'))[_0x41c0('0x28')](_0x2e7b9a=>{_0x2e7b9a['on']('addMarker:'+_0x1dac81,(_0x5dcd01,{markerRange:_0x44f883,markerName:_0x1c8eb9},_0x48045d)=>{if(!_0x48045d['options'][_0x41c0('0x1f')])return;if(!_0x48045d['consumable']['consume'](_0x44f883,_0x5dcd01[_0x41c0('0x13')]))return;const _0x48cc28=_0x44f883[_0x41c0('0x2a')]();let _0x5b3d2b=_0x48cc28?_0x48045d[_0x41c0('0x8')]['toViewElement'](_0x48cc28):null;if(!_0x5b3d2b){const _0x55064d=_0x44f883['start'];if(_0x48045d[_0x41c0('0x5')][_0x41c0('0x4')](_0x55064d,_0x41c0('0x2e'))){const _0x394d3e=_0x48045d[_0x41c0('0x8')][_0x41c0('0x11')](_0x55064d);_0x5b3d2b=_0x48045d[_0x41c0('0x16')]['createContainerElement'](_0x41c0('0x15')),_0x5b3d2b['getFillerOffset']=()=>null,_0x48045d[_0x41c0('0x16')][_0x41c0('0x9')](_0x394d3e,_0x5b3d2b);}else{const _0x3415ac=_0x55064d[_0x41c0('0xe')];_0x5b3d2b=_0x48045d[_0x41c0('0x8')][_0x41c0('0x1c')](_0x3415ac);}}for(;_0x5b3d2b[_0x41c0('0x14')]!==_0x5b3d2b['root']&&0x0===_0x5b3d2b[_0x41c0('0x23')];)_0x5b3d2b=_0x5b3d2b[_0x41c0('0x14')];const _0x1b5c87=_0x1c8eb9[_0x41c0('0xc')](0xb);_0x48045d['writer'][_0x41c0('0x0')]('page-break-before',_0x41c0('0x24'),_0x5b3d2b),_0x48045d[_0x41c0('0x16')][_0x41c0('0x2b')](_0x41c0('0x6'),_0x1b5c87,_0x5b3d2b),_0x48045d[_0x41c0('0x8')][_0x41c0('0x21')](_0x5b3d2b,_0x1c8eb9),_0x5dcd01[_0x41c0('0x25')]();});});}}
|
|
@@ -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
|
*/
|