@pronto-tools-and-more/components-renderer 11.0.0 → 11.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components-renderer",
3
- "version": "11.0.0",
3
+ "version": "11.1.0",
4
4
  "description": "",
5
5
  "main": "src/componentsRendererMain.js",
6
6
  "type": "module",
@@ -1,5 +1,7 @@
1
+ import * as DoLoadSwc from "../DoLoadSwc/DoLoadSwc.js";
1
2
  import * as RenderViews from "../RenderViews/RenderViews.js";
2
3
 
3
4
  export const commandMap = {
4
5
  "RenderViews.renderViews": RenderViews.renderViews,
6
+ "RenderViews.loadSwc": DoLoadSwc.doLoadSwc,
5
7
  };
@@ -0,0 +1,8 @@
1
+ import * as Assert from "../Assert/Assert.js";
2
+ import * as LoadSwc from "../LoadSwc/LoadSwc.js";
3
+ import * as SwcNodePath from "../SwcNodePath/SwcNodePath.js";
4
+
5
+ export const doLoadSwc = async (tsconfigPath) => {
6
+ Assert.string(tsconfigPath);
7
+ await LoadSwc.loadSwc(SwcNodePath.swcNodePath, tsconfigPath);
8
+ };
@@ -0,0 +1,9 @@
1
+ let id = 0;
2
+
3
+ export const reset = () => {
4
+ id = 0;
5
+ };
6
+
7
+ export const create = () => {
8
+ return ++id;
9
+ };
@@ -0,0 +1 @@
1
+ export const pidKey = "data-prid";