roosterjs 8.55.0 → 8.57.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/rooster-amd-min.js +1 -1
- package/dist/rooster-amd-min.js.map +1 -1
- package/dist/rooster-amd.d.ts +195 -25
- package/dist/rooster-amd.js +610 -217
- package/dist/rooster-amd.js.map +1 -1
- package/dist/rooster-min.js +1 -1
- package/dist/rooster-min.js.map +1 -1
- package/dist/rooster.d.ts +195 -25
- package/dist/rooster.js +610 -217
- package/dist/rooster.js.map +1 -1
- package/lib/createEditor.d.ts +1 -1
- package/lib/createEditor.js +1 -1
- package/lib/createEditor.js.map +1 -1
- package/lib-amd/createEditor.d.ts +1 -1
- package/lib-amd/createEditor.js +1 -1
- package/lib-amd/createEditor.js.map +1 -1
- package/lib-mjs/createEditor.d.ts +1 -1
- package/lib-mjs/createEditor.js +1 -1
- package/lib-mjs/createEditor.js.map +1 -1
- package/package.json +7 -7
package/lib/createEditor.d.ts
CHANGED
package/lib/createEditor.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var roosterjs_editor_plugins_1 = require("roosterjs-editor-plugins");
|
|
3
4
|
var roosterjs_editor_core_1 = require("roosterjs-editor-core");
|
|
4
5
|
var roosterjs_color_utils_1 = require("roosterjs-color-utils");
|
|
5
|
-
var roosterjs_editor_plugins_1 = require("roosterjs-editor-plugins");
|
|
6
6
|
/**
|
|
7
7
|
* Create an editor instance with most common options
|
|
8
8
|
* @param contentDiv The html div element needed for creating the editor
|
package/lib/createEditor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEditor.js","sourceRoot":"","sources":["../../../packages/roosterjs/lib/createEditor.ts"],"names":[],"mappings":";;AAAA,+DAA+C;
|
|
1
|
+
{"version":3,"file":"createEditor.js","sourceRoot":"","sources":["../../../packages/roosterjs/lib/createEditor.ts"],"names":[],"mappings":";;AAAA,qEAAyE;AACzE,+DAA+C;AAC/C,+DAAqD;AAGrD;;;;;;;GAOG;AACH,SAAwB,YAAY,CAChC,UAA0B,EAC1B,iBAAkC,EAClC,cAAuB;IAEvB,IAAI,OAAO,GAAmB,CAAC,IAAI,oCAAS,EAAE,EAAE,IAAI,gCAAK,EAAE,EAAE,IAAI,sCAAW,EAAE,CAAC,CAAC;IAEhF,IAAI,iBAAiB,EAAE;QACnB,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;KAC/C;IAED,IAAI,OAAO,GAAkB;QACzB,OAAO,EAAE,OAAO;QAChB,cAAc,EAAE,cAAc;QAC9B,YAAY,EAAE,oCAAY;QAC1B,aAAa,EAAE;YACX,UAAU,EAAE,oCAAoC;YAChD,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,SAAS;SACvB;KACJ,CAAC;IAEF,OAAO,IAAI,8BAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC;AAvBD,+BAuBC","sourcesContent":["import { ContentEdit, HyperLink, Paste } from 'roosterjs-editor-plugins';\r\nimport { Editor } from 'roosterjs-editor-core';\r\nimport { getDarkColor } from 'roosterjs-color-utils';\r\nimport type { EditorOptions, EditorPlugin, IEditor } from 'roosterjs-editor-types';\r\n\r\n/**\r\n * Create an editor instance with most common options\r\n * @param contentDiv The html div element needed for creating the editor\r\n * @param additionalPlugins The additional user defined plugins. Currently the default plugins that are already included are\r\n * ContentEdit, HyperLink and Paste, user don't need to add those.\r\n * @param initialContent The initial content to show in editor. It can't be removed by undo, user need to manually remove it if needed.\r\n * @returns The editor instance\r\n */\r\nexport default function createEditor(\r\n contentDiv: HTMLDivElement,\r\n additionalPlugins?: EditorPlugin[],\r\n initialContent?: string\r\n): IEditor {\r\n let plugins: EditorPlugin[] = [new HyperLink(), new Paste(), new ContentEdit()];\r\n\r\n if (additionalPlugins) {\r\n plugins = plugins.concat(additionalPlugins);\r\n }\r\n\r\n let options: EditorOptions = {\r\n plugins: plugins,\r\n initialContent: initialContent,\r\n getDarkColor: getDarkColor,\r\n defaultFormat: {\r\n fontFamily: 'Calibri,Arial,Helvetica,sans-serif',\r\n fontSize: '11pt',\r\n textColor: '#000000',\r\n },\r\n };\r\n\r\n return new Editor(contentDiv, options);\r\n}\r\n"]}
|
package/lib-amd/createEditor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(["require", "exports", "roosterjs-editor-
|
|
1
|
+
define(["require", "exports", "roosterjs-editor-plugins", "roosterjs-editor-core", "roosterjs-color-utils"], function (require, exports, roosterjs_editor_plugins_1, roosterjs_editor_core_1, roosterjs_color_utils_1) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEditor.js","sourceRoot":"","sources":["../../../packages/roosterjs/lib/createEditor.ts"],"names":[],"mappings":";;;IAKA;;;;;;;OAOG;IACH,SAAwB,YAAY,CAChC,UAA0B,EAC1B,iBAAkC,EAClC,cAAuB;QAEvB,IAAI,OAAO,GAAmB,CAAC,IAAI,oCAAS,EAAE,EAAE,IAAI,gCAAK,EAAE,EAAE,IAAI,sCAAW,EAAE,CAAC,CAAC;QAEhF,IAAI,iBAAiB,EAAE;YACnB,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;SAC/C;QAED,IAAI,OAAO,GAAkB;YACzB,OAAO,EAAE,OAAO;YAChB,cAAc,EAAE,cAAc;YAC9B,YAAY,EAAE,oCAAY;YAC1B,aAAa,EAAE;gBACX,UAAU,EAAE,oCAAoC;gBAChD,QAAQ,EAAE,MAAM;gBAChB,SAAS,EAAE,SAAS;aACvB;SACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"createEditor.js","sourceRoot":"","sources":["../../../packages/roosterjs/lib/createEditor.ts"],"names":[],"mappings":";;;IAKA;;;;;;;OAOG;IACH,SAAwB,YAAY,CAChC,UAA0B,EAC1B,iBAAkC,EAClC,cAAuB;QAEvB,IAAI,OAAO,GAAmB,CAAC,IAAI,oCAAS,EAAE,EAAE,IAAI,gCAAK,EAAE,EAAE,IAAI,sCAAW,EAAE,CAAC,CAAC;QAEhF,IAAI,iBAAiB,EAAE;YACnB,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;SAC/C;QAED,IAAI,OAAO,GAAkB;YACzB,OAAO,EAAE,OAAO;YAChB,cAAc,EAAE,cAAc;YAC9B,YAAY,EAAE,oCAAY;YAC1B,aAAa,EAAE;gBACX,UAAU,EAAE,oCAAoC;gBAChD,QAAQ,EAAE,MAAM;gBAChB,SAAS,EAAE,SAAS;aACvB;SACJ,CAAC;QAEF,OAAO,IAAI,8BAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;IAvBD,+BAuBC","sourcesContent":["import { ContentEdit, HyperLink, Paste } from 'roosterjs-editor-plugins';\r\nimport { Editor } from 'roosterjs-editor-core';\r\nimport { getDarkColor } from 'roosterjs-color-utils';\r\nimport type { EditorOptions, EditorPlugin, IEditor } from 'roosterjs-editor-types';\r\n\r\n/**\r\n * Create an editor instance with most common options\r\n * @param contentDiv The html div element needed for creating the editor\r\n * @param additionalPlugins The additional user defined plugins. Currently the default plugins that are already included are\r\n * ContentEdit, HyperLink and Paste, user don't need to add those.\r\n * @param initialContent The initial content to show in editor. It can't be removed by undo, user need to manually remove it if needed.\r\n * @returns The editor instance\r\n */\r\nexport default function createEditor(\r\n contentDiv: HTMLDivElement,\r\n additionalPlugins?: EditorPlugin[],\r\n initialContent?: string\r\n): IEditor {\r\n let plugins: EditorPlugin[] = [new HyperLink(), new Paste(), new ContentEdit()];\r\n\r\n if (additionalPlugins) {\r\n plugins = plugins.concat(additionalPlugins);\r\n }\r\n\r\n let options: EditorOptions = {\r\n plugins: plugins,\r\n initialContent: initialContent,\r\n getDarkColor: getDarkColor,\r\n defaultFormat: {\r\n fontFamily: 'Calibri,Arial,Helvetica,sans-serif',\r\n fontSize: '11pt',\r\n textColor: '#000000',\r\n },\r\n };\r\n\r\n return new Editor(contentDiv, options);\r\n}\r\n"]}
|
package/lib-mjs/createEditor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ContentEdit, HyperLink, Paste } from 'roosterjs-editor-plugins';
|
|
1
2
|
import { Editor } from 'roosterjs-editor-core';
|
|
2
3
|
import { getDarkColor } from 'roosterjs-color-utils';
|
|
3
|
-
import { ContentEdit, HyperLink, Paste } from 'roosterjs-editor-plugins';
|
|
4
4
|
/**
|
|
5
5
|
* Create an editor instance with most common options
|
|
6
6
|
* @param contentDiv The html div element needed for creating the editor
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEditor.js","sourceRoot":"","sources":["../../../packages/roosterjs/lib/createEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"createEditor.js","sourceRoot":"","sources":["../../../packages/roosterjs/lib/createEditor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAChC,UAA0B,EAC1B,iBAAkC,EAClC,cAAuB;IAEvB,IAAI,OAAO,GAAmB,CAAC,IAAI,SAAS,EAAE,EAAE,IAAI,KAAK,EAAE,EAAE,IAAI,WAAW,EAAE,CAAC,CAAC;IAEhF,IAAI,iBAAiB,EAAE;QACnB,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;KAC/C;IAED,IAAI,OAAO,GAAkB;QACzB,OAAO,EAAE,OAAO;QAChB,cAAc,EAAE,cAAc;QAC9B,YAAY,EAAE,YAAY;QAC1B,aAAa,EAAE;YACX,UAAU,EAAE,oCAAoC;YAChD,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,SAAS;SACvB;KACJ,CAAC;IAEF,OAAO,IAAI,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC","sourcesContent":["import { ContentEdit, HyperLink, Paste } from 'roosterjs-editor-plugins';\r\nimport { Editor } from 'roosterjs-editor-core';\r\nimport { getDarkColor } from 'roosterjs-color-utils';\r\nimport type { EditorOptions, EditorPlugin, IEditor } from 'roosterjs-editor-types';\r\n\r\n/**\r\n * Create an editor instance with most common options\r\n * @param contentDiv The html div element needed for creating the editor\r\n * @param additionalPlugins The additional user defined plugins. Currently the default plugins that are already included are\r\n * ContentEdit, HyperLink and Paste, user don't need to add those.\r\n * @param initialContent The initial content to show in editor. It can't be removed by undo, user need to manually remove it if needed.\r\n * @returns The editor instance\r\n */\r\nexport default function createEditor(\r\n contentDiv: HTMLDivElement,\r\n additionalPlugins?: EditorPlugin[],\r\n initialContent?: string\r\n): IEditor {\r\n let plugins: EditorPlugin[] = [new HyperLink(), new Paste(), new ContentEdit()];\r\n\r\n if (additionalPlugins) {\r\n plugins = plugins.concat(additionalPlugins);\r\n }\r\n\r\n let options: EditorOptions = {\r\n plugins: plugins,\r\n initialContent: initialContent,\r\n getDarkColor: getDarkColor,\r\n defaultFormat: {\r\n fontFamily: 'Calibri,Arial,Helvetica,sans-serif',\r\n fontSize: '11pt',\r\n textColor: '#000000',\r\n },\r\n };\r\n\r\n return new Editor(contentDiv, options);\r\n}\r\n"]}
|
package/package.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"description": "A simple facade for all roosterjs code",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.3.1",
|
|
6
|
-
"roosterjs-editor-types": "^8.
|
|
7
|
-
"roosterjs-editor-types-compatible": "^8.
|
|
8
|
-
"roosterjs-editor-dom": "^8.
|
|
9
|
-
"roosterjs-editor-core": "^8.
|
|
10
|
-
"roosterjs-editor-api": "^8.
|
|
11
|
-
"roosterjs-editor-plugins": "^8.
|
|
6
|
+
"roosterjs-editor-types": "^8.57.0",
|
|
7
|
+
"roosterjs-editor-types-compatible": "^8.57.0",
|
|
8
|
+
"roosterjs-editor-dom": "^8.57.0",
|
|
9
|
+
"roosterjs-editor-core": "^8.57.0",
|
|
10
|
+
"roosterjs-editor-api": "^8.57.0",
|
|
11
|
+
"roosterjs-editor-plugins": "^8.57.0",
|
|
12
12
|
"roosterjs-color-utils": "^1.1.0"
|
|
13
13
|
},
|
|
14
|
-
"version": "8.
|
|
14
|
+
"version": "8.57.0",
|
|
15
15
|
"main": "./lib/index.js",
|
|
16
16
|
"typings": "./lib/index.d.ts",
|
|
17
17
|
"license": "MIT",
|