@ckeditor/ckeditor5-template 40.2.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/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.0.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.0.0",
|
|
26
|
+
"@ckeditor/ckeditor5-ui": "41.0.0",
|
|
27
|
+
"ckeditor5-collaboration": "41.0.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 _0x3d8f=['Template','requires'];(function(_0x3041a8,_0x3d8fcc){var _0x413e2a=function(_0x2b6901){while(--_0x2b6901){_0x3041a8['push'](_0x3041a8['shift']());}};_0x413e2a(++_0x3d8fcc);}(_0x3d8f,0x12e));var _0x413e=function(_0x3041a8,_0x3d8fcc){_0x3041a8=_0x3041a8-0x0;var _0x413e2a=_0x3d8f[_0x3041a8];return _0x413e2a;};import{Plugin as _0x4a92a1}from'ckeditor5/src/core.js';import _0x45768a from'./templateediting.js';import _0x29406e from'./templateui.js';export default class m extends _0x4a92a1{static get[_0x413e('0x1')](){return[_0x45768a,_0x29406e];}static get['pluginName'](){return _0x413e('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 _0x339e=['toView','data','execute','function','toModel','editor','htmlProcessor','insertContent','string'];(function(_0x3a1c26,_0x339ee1){const _0x2aa5d6=function(_0x1bd6ed){while(--_0x1bd6ed){_0x3a1c26['push'](_0x3a1c26['shift']());}};_0x2aa5d6(++_0x339ee1);}(_0x339e,0x158));const _0x2aa5=function(_0x3a1c26,_0x339ee1){_0x3a1c26=_0x3a1c26-0x0;let _0x2aa5d6=_0x339e[_0x3a1c26];return _0x2aa5d6;};import{Command as _0x28cbe4}from'ckeditor5/src/core.js';export default class c extends _0x28cbe4{[_0x2aa5('0x0')](_0x4022eb){const {model:_0x147eaa}=this[_0x2aa5('0x3')];let _0x166525;switch(typeof _0x4022eb){case _0x2aa5('0x6'):_0x166525=_0x4022eb;break;case _0x2aa5('0x1'):_0x166525=_0x4022eb();}'string'==typeof _0x166525&&_0x147eaa['change'](()=>{const _0x43a5dc=this[_0x2aa5('0x3')][_0x2aa5('0x8')][_0x2aa5('0x4')][_0x2aa5('0x7')](_0x166525),_0x29889c=this[_0x2aa5('0x3')][_0x2aa5('0x8')][_0x2aa5('0x2')](_0x43a5dc);_0x147eaa[_0x2aa5('0x5')](_0x29889c);});}}
|
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 _0x2bb1=['config','destroy','insertTemplate','templateLicenseKeyTrialLimit:operations','template-invalid-license-key','templateLicenseKeyInvalid','init','licenseKey','templateLicenseKeyTrial','_licenseKeyCheckInterval','template-trial-license-key-reached-limit-changes','commands','templateLicenseKeyValid','get','pluginName','add','TemplateEditing'];(function(_0x411a32,_0x2bb171){const _0xc5efba=function(_0x569e47){while(--_0x569e47){_0x411a32['push'](_0x411a32['shift']());}};_0xc5efba(++_0x2bb171);}(_0x2bb1,0x175));const _0xc5ef=function(_0x411a32,_0x2bb171){_0x411a32=_0x411a32-0x0;let _0xc5efba=_0x2bb1[_0x411a32];return _0xc5efba;};import{Plugin as _0x134443}from'ckeditor5/src/core.js';import{CKEditorError as _0x4cf484}from'ckeditor5/src/utils.js';import _0x407e59 from'./templatecommand.js';export default class r extends _0x134443{static get[_0xc5ef('0xf')](){return _0xc5ef('0x0');}constructor(_0x35441f){super(_0x35441f),this['_licenseKeyCheckInterval']=null;}[_0xc5ef('0x7')](){const {editor:_0x49a53d}=this;_0x49a53d[_0xc5ef('0xc')][_0xc5ef('0x10')](_0xc5ef('0x3'),new _0x407e59(_0x49a53d)),this[_0xc5ef('0x8')]=_0x49a53d[_0xc5ef('0x1')][_0xc5ef('0xe')](_0xc5ef('0x8'));const _0x5b7765=this['editor'];this[_0xc5ef('0xa')]=setInterval(()=>{let _0x3b76f0;for(const _0x16ed02 in _0x5b7765){const _0x5138a7=_0x16ed02,_0x5abc8f=_0x5b7765[_0x5138a7];if('templateLicenseKeyTrial'===_0x5abc8f||_0xc5ef('0x6')===_0x5abc8f||_0xc5ef('0xd')===_0x5abc8f||_0xc5ef('0x4')===_0x5abc8f){delete _0x5b7765[_0x5138a7],_0x3b76f0=_0x5abc8f;break;}}if(_0xc5ef('0x6')===_0x3b76f0)throw clearInterval(this[_0xc5ef('0xa')]),new _0x4cf484(_0xc5ef('0x5'),null);if(_0xc5ef('0x9')===_0x3b76f0&&console['info']('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.'),_0xc5ef('0x4')===_0x3b76f0)throw clearInterval(this[_0xc5ef('0xa')]),new _0x4cf484(_0xc5ef('0xb'),null);'templateLicenseKeyValid'===_0x3b76f0&&clearInterval(this[_0xc5ef('0xa')]);},0x3e8);}[_0xc5ef('0x2')](){this[_0xc5ef('0xa')]&&clearInterval(this['_licenseKeyCheckInterval']);}}
|
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.
|