canvas-editor-engine 2.0.15 → 2.0.17

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/index.mjs CHANGED
@@ -1,5 +1,3 @@
1
- import { range } from "lodash";
2
-
3
1
  var extendStatics = function(d, b) {
4
2
  extendStatics = Object.setPrototypeOf || {
5
3
  __proto__: []
@@ -388,6 +386,14 @@ var Convert = function() {
388
386
  return Convert;
389
387
  }();
390
388
 
389
+ var range = function(start, end) {
390
+ var result = [];
391
+ for (var i = start; i < end; i++) {
392
+ result.push(i);
393
+ }
394
+ return result;
395
+ };
396
+
391
397
  var Filter = function() {
392
398
  function Filter(ctx) {
393
399
  this.ctx = ctx;
@@ -2105,6 +2111,22 @@ var PullProjectService = function() {
2105
2111
  return PullProjectService;
2106
2112
  }();
2107
2113
 
2114
+ (function() {
2115
+ if (window.Reflect === undefined || window.customElements === undefined || window.customElements.polyfillWrapFlushCallback) {
2116
+ return;
2117
+ }
2118
+ var BuiltInHTMLElement = HTMLElement;
2119
+ var wrapperForTheName = {
2120
+ HTMLElement: function HTMLElement() {
2121
+ return Reflect.construct(BuiltInHTMLElement, [], this.constructor);
2122
+ }
2123
+ };
2124
+ window.HTMLElement = wrapperForTheName["HTMLElement"];
2125
+ HTMLElement.prototype = BuiltInHTMLElement.prototype;
2126
+ HTMLElement.prototype.constructor = HTMLElement;
2127
+ Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement);
2128
+ })();
2129
+
2108
2130
  var CanvasEditorEngine = function() {
2109
2131
  function CanvasEditorEngine(webComponentTagName) {
2110
2132
  AppConfig.WEB_COMPONENT_TAG_NAME = webComponentTagName;
@@ -0,0 +1 @@
1
+ export declare const range: (start: number, end: number) => number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.0.15",
3
+ "version": "2.0.17",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -10,9 +10,8 @@
10
10
  "type": "module",
11
11
  "scripts": {
12
12
  "test": "node test/test.js",
13
- "build-ts": "tsc",
14
- "build": "npx webpack",
15
- "build:rollup": "rollup -c",
13
+ "build:ts": "tsc",
14
+ "build": "rollup -c",
16
15
  "realise": "npm version patch && npm publish"
17
16
  },
18
17
  "keywords": [
@@ -23,19 +22,13 @@
23
22
  "author": "SavaFeeD",
24
23
  "license": "ISC",
25
24
  "devDependencies": {
26
- "@types/lodash": "^4.17.10",
27
25
  "@types/node": "^22.7.4",
28
- "ts-loader": "^9.5.1",
29
26
  "typescript": "^5.7.2",
30
- "typescript-declaration-webpack-plugin": "^0.3.0",
31
- "webpack": "^5.97.1",
32
- "webpack-cli": "^5.1.4"
33
- },
34
- "dependencies": {
35
27
  "@rollup/plugin-terser": "^0.4.4",
36
28
  "@rollup/plugin-typescript": "^12.1.1",
37
- "lodash-es": "^4.17.21",
38
- "rollup": "^4.28.1",
29
+ "rollup": "^4.28.1"
30
+ },
31
+ "dependencies": {
39
32
  "tslib": "^2.8.1"
40
33
  }
41
34
  }