@node-projects/web-component-designer 0.0.247 → 0.0.248

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.
@@ -194,14 +194,18 @@ export class NpmPackageLoader {
194
194
  this.addToImportmap(baseUrl, packageJsonObj);
195
195
  }
196
196
  async addToImportmap(baseUrl, packageJsonObj) {
197
- //todo - use exports of package.json for importMap
198
- const importMap = { imports: {}, scopes: {} };
199
- let mainImport = packageJsonObj.main;
200
- if (packageJsonObj.module)
201
- mainImport = packageJsonObj.module;
202
- importMap.imports[packageJsonObj.name] = baseUrl + removeTrailing(mainImport, '/');
203
- importMap.imports[packageJsonObj.name + '/'] = baseUrl;
204
197
  //@ts-ignore
205
- importShim.addImportMap(importMap);
198
+ const map = importShim.getImportMap().imports;
199
+ if (!map.hasOwnProperty(packageJsonObj.name)) {
200
+ //todo - use exports of package.json for importMap
201
+ const importMap = { imports: {}, scopes: {} };
202
+ let mainImport = packageJsonObj.main;
203
+ if (packageJsonObj.module)
204
+ mainImport = packageJsonObj.module;
205
+ importMap.imports[packageJsonObj.name] = baseUrl + removeTrailing(mainImport, '/');
206
+ importMap.imports[packageJsonObj.name + '/'] = baseUrl;
207
+ //@ts-ignore
208
+ importShim.addImportMap(importMap);
209
+ }
206
210
  }
207
211
  }
@@ -35,7 +35,8 @@ export class CssPropertiesService extends CommonPropertiesService {
35
35
  "inset",
36
36
  "margin",
37
37
  "border",
38
- "padding"
38
+ "padding",
39
+ "overflow"
39
40
  ];
40
41
  grid = [
41
42
  "display",
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.0.247",
4
+ "version": "0.0.248",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "",