@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 +1 -3
- package/dist/elements/helper/NpmPackageLoader.js +1 -1
- package/dist/elements/services/manifestParsers/WebcomponentManifestParserService.js +2 -2
- package/dist/elements/services/propertiesService/services/CssCurrentPropertiesService.js +1 -1
- package/dist/elements/services/propertiesService/services/CssPropertiesService.js +1 -1
- package/package.json +1 -1
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
|
-
-
|
|
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"
|
|
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, {
|
|
29
|
+
importOfFile = importShim(fileOrObject, { with: { type: 'json' } });
|
|
30
30
|
else
|
|
31
31
|
//@ts-ignore
|
|
32
|
-
importOfFile = import(fileOrObject, {
|
|
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"
|
|
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"
|
|
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