@ckeditor/ckeditor5-template 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/template.js +3 -3
- package/ckeditor5-metadata.json +1 -1
- 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/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/uk.po +1 -1
- package/lang/translations/uz.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 +5 -3
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/index.d.ts +10 -10
- package/src/index.js +2 -2
- package/src/template.d.ts +4 -4
- package/src/template.js +2 -2
- package/src/templatecommand.d.ts +2 -2
- package/src/templatecommand.js +2 -2
- package/src/templateediting.d.ts +2 -2
- package/src/templateediting.js +2 -2
- package/src/templateui.d.ts +2 -2
- package/src/templateui.js +2 -2
- package/src/ui/templatelistbuttonview.d.ts +4 -4
- package/src/ui/templatelistbuttonview.js +2 -2
- package/src/ui/templatelistitemview.d.ts +4 -4
- package/src/ui/templatelistitemview.js +2 -2
- package/src/ui/templatelistview.d.ts +2 -2
- package/src/ui/templatelistview.js +2 -2
- package/theme/template.css +1 -1
- package/theme/icons/template.svg +0 -1
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/uk.po
CHANGED
package/lang/translations/uz.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-template",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "41.1.0",
|
|
4
4
|
"description": "Template feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -19,10 +19,12 @@
|
|
|
19
19
|
"contentEditable",
|
|
20
20
|
"template"
|
|
21
21
|
],
|
|
22
|
+
"type": "module",
|
|
22
23
|
"main": "src/index.js",
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"ckeditor5": "
|
|
25
|
-
"@ckeditor/ckeditor5-ui": "
|
|
25
|
+
"ckeditor5": "41.1.0",
|
|
26
|
+
"@ckeditor/ckeditor5-ui": "41.1.0",
|
|
27
|
+
"ckeditor5-collaboration": "41.1.0"
|
|
26
28
|
},
|
|
27
29
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
28
30
|
"author": "CKSource (http://cksource.com/)",
|
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 { Template, TemplateCommand, TemplateEditing, TemplateUI, TemplateConfig } from './index';
|
|
5
|
+
import type { Template, TemplateCommand, TemplateEditing, TemplateUI, TemplateConfig } from './index.js';
|
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
|
7
7
|
interface PluginsMap {
|
|
8
8
|
[Template.pluginName]: Template;
|
package/src/augmentation.js
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { default as
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
import './augmentation';
|
|
5
|
+
/**
|
|
6
|
+
* @module template
|
|
7
|
+
*/
|
|
8
|
+
export { default as Template } from './template.js';
|
|
9
|
+
export { default as TemplateCommand } from './templatecommand.js';
|
|
10
|
+
export { default as TemplateEditing } from './templateediting.js';
|
|
11
|
+
export { default as TemplateUI } from './templateui.js';
|
|
12
|
+
export type { TemplateConfig, TemplateDefinition } from './template.js';
|
|
13
|
+
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
|
-
|
|
23
|
+
export{default as Template}from'./template.js';export{default as TemplateCommand}from'./templatecommand.js';export{default as TemplateEditing}from'./templateediting.js';export{default as TemplateUI}from'./templateui.js';import'./augmentation.js';
|
package/src/template.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 template/template
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
-
import TemplateEditing from './templateediting';
|
|
11
|
-
import TemplateUI from './templateui';
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
import TemplateEditing from './templateediting.js';
|
|
11
|
+
import TemplateUI from './templateui.js';
|
|
12
12
|
/**
|
|
13
13
|
* The template feature.
|
|
14
14
|
*
|
package/src/template.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
|
-
var
|
|
23
|
+
var _0x50ad=['requires','Template'];(function(_0xb6512e,_0x50addd){var _0x3011ad=function(_0x4eca84){while(--_0x4eca84){_0xb6512e['push'](_0xb6512e['shift']());}};_0x3011ad(++_0x50addd);}(_0x50ad,0x93));var _0x3011=function(_0xb6512e,_0x50addd){_0xb6512e=_0xb6512e-0x0;var _0x3011ad=_0x50ad[_0xb6512e];return _0x3011ad;};import{Plugin as _0x5c93ec}from'ckeditor5/src/core.js';import _0x47c41e from'./templateediting.js';import _0x2af505 from'./templateui.js';export default class m extends _0x5c93ec{static get[_0x3011('0x1')](){return[_0x47c41e,_0x2af505];}static get['pluginName'](){return _0x3011('0x0');}}
|
package/src/templatecommand.d.ts
CHANGED
|
@@ -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 template/templatecommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command } from 'ckeditor5/src/core';
|
|
9
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
10
10
|
/**
|
|
11
11
|
* The template command.
|
|
12
12
|
*
|
package/src/templatecommand.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 _0x21bb=['insertContent','function','toView','string','editor','toModel','data','execute','change','htmlProcessor'];(function(_0x108773,_0x21bb0f){const _0x2562cd=function(_0x1119d3){while(--_0x1119d3){_0x108773['push'](_0x108773['shift']());}};_0x2562cd(++_0x21bb0f);}(_0x21bb,0xa9));const _0x2562=function(_0x108773,_0x21bb0f){_0x108773=_0x108773-0x0;let _0x2562cd=_0x21bb[_0x108773];return _0x2562cd;};import{Command as _0x429a00}from'ckeditor5/src/core.js';export default class c extends _0x429a00{[_0x2562('0x8')](_0x2418c9){const {model:_0x40908e}=this[_0x2562('0x5')];let _0x4ace90;switch(typeof _0x2418c9){case _0x2562('0x4'):_0x4ace90=_0x2418c9;break;case _0x2562('0x2'):_0x4ace90=_0x2418c9();}_0x2562('0x4')==typeof _0x4ace90&&_0x40908e[_0x2562('0x9')](()=>{const _0x475d2a=this[_0x2562('0x5')][_0x2562('0x7')][_0x2562('0x0')][_0x2562('0x3')](_0x4ace90),_0x30c41a=this[_0x2562('0x5')]['data'][_0x2562('0x6')](_0x475d2a);_0x40908e[_0x2562('0x1')](_0x30c41a);});}}
|
package/src/templateediting.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 template/templateediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
9
|
/**
|
|
10
10
|
* The template editing plugin.
|
|
11
11
|
*/
|
package/src/templateediting.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 _0x5756=['templateLicenseKeyValid','templateLicenseKeyInvalid','template-trial-license-key-reached-limit-changes','editor','config','_licenseKeyCheckInterval','pluginName','commands','init','templateLicenseKeyTrial','get','licenseKey','templateLicenseKeyTrialLimit:operations','add','template-invalid-license-key','info'];(function(_0x492ad4,_0x575661){const _0x497e41=function(_0x5e3df4){while(--_0x5e3df4){_0x492ad4['push'](_0x492ad4['shift']());}};_0x497e41(++_0x575661);}(_0x5756,0x197));const _0x497e=function(_0x492ad4,_0x575661){_0x492ad4=_0x492ad4-0x0;let _0x497e41=_0x5756[_0x492ad4];return _0x497e41;};import{Plugin as _0x5e43ae}from'ckeditor5/src/core.js';import{CKEditorError as _0x134a5d}from'ckeditor5/src/utils.js';import _0x278fce from'./templatecommand.js';export default class r extends _0x5e43ae{static get[_0x497e('0xf')](){return'TemplateEditing';}constructor(_0x302f53){super(_0x302f53),this[_0x497e('0xe')]=null;}[_0x497e('0x1')](){const {editor:_0x1b0373}=this;_0x1b0373[_0x497e('0x0')][_0x497e('0x6')]('insertTemplate',new _0x278fce(_0x1b0373)),this[_0x497e('0x4')]=_0x1b0373[_0x497e('0xd')][_0x497e('0x3')]('licenseKey');const _0x25da0e=this[_0x497e('0xc')];this[_0x497e('0xe')]=setInterval(()=>{let _0x533265;for(const _0x2d1a02 in _0x25da0e){const _0x4f8e69=_0x2d1a02,_0x120f96=_0x25da0e[_0x4f8e69];if(_0x497e('0x2')===_0x120f96||_0x497e('0xa')===_0x120f96||_0x497e('0x9')===_0x120f96||_0x497e('0x5')===_0x120f96){delete _0x25da0e[_0x4f8e69],_0x533265=_0x120f96;break;}}if(_0x497e('0xa')===_0x533265)throw clearInterval(this[_0x497e('0xe')]),new _0x134a5d(_0x497e('0x7'),null);if(_0x497e('0x2')===_0x533265&&console[_0x497e('0x8')]('You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20template\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.'),'templateLicenseKeyTrialLimit:operations'===_0x533265)throw clearInterval(this[_0x497e('0xe')]),new _0x134a5d(_0x497e('0xb'),null);_0x497e('0x9')===_0x533265&&clearInterval(this[_0x497e('0xe')]);},0x3e8);}['destroy'](){this[_0x497e('0xe')]&&clearInterval(this[_0x497e('0xe')]);}}
|
package/src/templateui.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 template/templateui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
import '../theme/template.css';
|
|
10
10
|
/**
|
|
11
11
|
* The UI plugin of the template feature.
|