@node-projects/web-component-designer 0.1.5 → 0.1.7

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.
@@ -2,12 +2,7 @@ import { PreDefinedElementsService } from "../services/elementsService/PreDefine
2
2
  import { WebcomponentManifestElementsService } from "../services/elementsService/WebcomponentManifestElementsService.js";
3
3
  import { WebcomponentManifestPropertiesService } from "../services/propertiesService/services/WebcomponentManifestPropertiesService.js";
4
4
  import { removeLeading, removeTrailing } from "./Helper.js";
5
- //TODO: remove this code when import asserts are supported
6
- let packageHacks;
7
- //@ts-ignore
8
- packageHacks = await import("./NpmPackageHacks.json", { assert: { type: 'json' } });
9
- if (packageHacks.default)
10
- packageHacks = packageHacks.default;
5
+ import packageHacks from "./NpmPackageHacks.json" assert { type: 'json' };
11
6
  export class NpmPackageLoader {
12
7
  static registryPatchedTohandleErrors;
13
8
  //packageSource = '//unpkg.com/';
@@ -3,12 +3,7 @@ import { RefreshMode } from '../IPropertiesService.js';
3
3
  import { CommonPropertiesService } from './CommonPropertiesService.js';
4
4
  import { ValueType } from '../ValueType.js';
5
5
  import { NodeType } from '../../../item/NodeType.js';
6
- //TODO: remove this code when import asserts are supported
7
- let cssProperties;
8
- //@ts-ignore
9
- cssProperties = await import("./CssProperties.json", { assert: { type: 'json' } });
10
- if (cssProperties.default)
11
- cssProperties = cssProperties.default;
6
+ import cssProperties from "./CssProperties.json" assert { type: 'json' };
12
7
  const localName = '<local>';
13
8
  export class CssCurrentPropertiesService extends CommonPropertiesService {
14
9
  getRefreshMode(designItem) {
@@ -5,12 +5,7 @@ import { RefreshMode } from '../IPropertiesService.js';
5
5
  import { PropertiesHelper } from './PropertiesHelper.js';
6
6
  import { GridAssignedRowColumnPropertyEditor } from '../propertyEditors/special/GridAssignedRowColumnPropertyEditor.js';
7
7
  import { MetricsPropertyEditor } from '../propertyEditors/special/MetricsPropertyEditor.js';
8
- //TODO: remove this code when import asserts are supported
9
- let cssProperties;
10
- //@ts-ignore
11
- cssProperties = await import("./CssProperties.json", { assert: { type: 'json' } });
12
- if (cssProperties.default)
13
- cssProperties = cssProperties.default;
8
+ import cssProperties from "./CssProperties.json" assert { type: 'json' };
14
9
  export class CssPropertiesService extends CommonPropertiesService {
15
10
  getRefreshMode(designItem) {
16
11
  return RefreshMode.none;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "A UI designer for Polymer apps",
3
3
  "name": "@node-projects/web-component-designer",
4
- "version": "0.1.5",
4
+ "version": "0.1.7",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",
@@ -12,7 +12,7 @@
12
12
  "prepublishOnly": "npm run build"
13
13
  },
14
14
  "dependencies": {
15
- "@node-projects/base-custom-webcomponent": "^0.17.2"
15
+ "@node-projects/base-custom-webcomponent": "^0.18.1"
16
16
  },
17
17
  "devDependencies": {
18
18
  "mdn-data": "^2.1.0"