@node-projects/web-component-designer 0.1.121 → 0.1.123

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/README.md CHANGED
@@ -16,9 +16,7 @@ https://www.npmjs.com/package/@node-projects/web-component-designer
16
16
 
17
17
  ## Browser support
18
18
 
19
- - At the moment Chrome, and Firefox Nightly with Experimental Import Assertions enabled.
20
- But when import Assertions are landing in Safari and Firefox they will work again.
21
- And you could transpile them away in the meantime.
19
+ - Chrome/Firefox & Safari
22
20
 
23
21
  ## Developing
24
22
 
@@ -2,7 +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
- import packageHacks from "./NpmPackageHacks.json" assert { type: 'json' };
5
+ import packageHacks from "./NpmPackageHacks.json" with { type: 'json' };
6
6
  export class NpmPackageLoader {
7
7
  static registryPatchedTohandleErrors;
8
8
  //packageSource = '//unpkg.com/';
@@ -26,10 +26,10 @@ export class WebcomponentManifestParserService extends AbstractPropertiesService
26
26
  //@ts-ignore
27
27
  if (window.importShim)
28
28
  //@ts-ignore
29
- importOfFile = importShim(fileOrObject, { assert: { type: 'json' } });
29
+ importOfFile = importShim(fileOrObject, { with: { type: 'json' } });
30
30
  else
31
31
  //@ts-ignore
32
- importOfFile = import(fileOrObject, { assert: { type: 'json' } });
32
+ importOfFile = import(fileOrObject, { with: { type: 'json' } });
33
33
  importOfFile.then(module => {
34
34
  this._packageData = module.default;
35
35
  this._parseManifest();
@@ -3,7 +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
- import cssProperties from "./CssProperties.json" assert { type: 'json' };
6
+ import cssProperties from "./CssProperties.json" with { type: 'json' };
7
7
  import { BindingTarget } from '../../../item/BindingTarget.js';
8
8
  const localName = '<local>';
9
9
  export class CssCurrentPropertiesService extends CommonPropertiesService {
@@ -5,7 +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
- import cssProperties from "./CssProperties.json" assert { type: 'json' };
8
+ import cssProperties from "./CssProperties.json" with { type: 'json' };
9
9
  export class CssPropertiesService extends CommonPropertiesService {
10
10
  getRefreshMode(designItem) {
11
11
  return RefreshMode.none;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "A WYSIWYG designer webcomponent for html components",
3
3
  "name": "@node-projects/web-component-designer",
4
- "version": "0.1.121",
4
+ "version": "0.1.123",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",