@worktile/theia 3.0.0 → 3.0.1
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/bundles/worktile-theia.umd.js +5 -13
- package/bundles/worktile-theia.umd.js.map +1 -1
- package/core/utils/index.d.ts +0 -1
- package/esm2015/core/create-plugin.js +3 -2
- package/esm2015/core/utils/flatten-deep-plugins.js +3 -2
- package/esm2015/core/utils/get-plugin-options.js +2 -2
- package/esm2015/core/utils/get-plugin.js +2 -3
- package/esm2015/core/utils/index.js +1 -2
- package/esm2015/core/utils/merge-options.js +2 -1
- package/fesm2015/worktile-theia.js +6 -13
- package/fesm2015/worktile-theia.js.map +1 -1
- package/package.json +1 -1
- package/core/utils/get-plugin-by-key.d.ts +0 -2
- package/esm2015/core/utils/get-plugin-by-key.js +0 -8
|
@@ -1410,7 +1410,7 @@
|
|
|
1410
1410
|
if (!plugins)
|
|
1411
1411
|
return;
|
|
1412
1412
|
plugins.forEach(function (plugin) {
|
|
1413
|
-
var p = plugin;
|
|
1413
|
+
var p = _.cloneDeep(plugin);
|
|
1414
1414
|
if (!p.options)
|
|
1415
1415
|
p.options = {};
|
|
1416
1416
|
if (!p.nestedStructureByKey)
|
|
@@ -1425,17 +1425,9 @@
|
|
|
1425
1425
|
return (_a = editor === null || editor === void 0 ? void 0 : editor.plugins) !== null && _a !== void 0 ? _a : [];
|
|
1426
1426
|
};
|
|
1427
1427
|
|
|
1428
|
-
var
|
|
1429
|
-
var plugins = {};
|
|
1430
|
-
if (editor === null || editor === void 0 ? void 0 : editor.pluginsByKey) {
|
|
1431
|
-
return editor.pluginsByKey;
|
|
1432
|
-
}
|
|
1433
|
-
return plugins;
|
|
1434
|
-
};
|
|
1428
|
+
var getPlugin = function (editor, key) { return editor.pluginsByKey[key]; };
|
|
1435
1429
|
|
|
1436
|
-
var
|
|
1437
|
-
|
|
1438
|
-
var getPluginOptions = function (editor, key) { var _a; return (_a = getPlugin(editor, key).options) !== null && _a !== void 0 ? _a : {}; };
|
|
1430
|
+
var getPluginOptions = function (editor, key) { var _a, _b; return (_b = (_a = getPlugin(editor, key)) === null || _a === void 0 ? void 0 : _a.options) !== null && _b !== void 0 ? _b : {}; };
|
|
1439
1431
|
|
|
1440
1432
|
var mergeOptions = function (plugin, override) {
|
|
1441
1433
|
var options = plugin.options;
|
|
@@ -1447,6 +1439,7 @@
|
|
|
1447
1439
|
}
|
|
1448
1440
|
if (util.isObject(options[option])) {
|
|
1449
1441
|
newOptions[option] = _.assign(options[option], override.options[option]);
|
|
1442
|
+
continue;
|
|
1450
1443
|
}
|
|
1451
1444
|
newOptions[option] = override.options[option] ? override.options[option] : options[option];
|
|
1452
1445
|
}
|
|
@@ -1523,7 +1516,7 @@
|
|
|
1523
1516
|
|
|
1524
1517
|
var createPluginFactory = function (defaultPlugin) { return function (override, overrideByKey) {
|
|
1525
1518
|
if (overrideByKey === void 0) { overrideByKey = {}; }
|
|
1526
|
-
return defaultPlugin;
|
|
1519
|
+
return _.cloneDeep(defaultPlugin);
|
|
1527
1520
|
}; };
|
|
1528
1521
|
|
|
1529
1522
|
var toolbarInitialize = function (toolbarItems, global, inline, quick) {
|
|
@@ -14909,7 +14902,6 @@
|
|
|
14909
14902
|
exports.getElementWidth = getElementWidth;
|
|
14910
14903
|
exports.getEndBlock = getEndBlock;
|
|
14911
14904
|
exports.getPlugin = getPlugin;
|
|
14912
|
-
exports.getPluginByKey = getPluginByKey;
|
|
14913
14905
|
exports.getPluginOptions = getPluginOptions;
|
|
14914
14906
|
exports.getPlugins = getPlugins;
|
|
14915
14907
|
exports.getRowsTotalHeight = getRowsTotalHeight;
|