@vizhub/runtime 0.3.6 → 0.3.8
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/dist/cjs/index.js +5 -1
- package/dist/cjs/utils/vizContentToFileCollection.js +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/utils/vizContentToFileCollection.js +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/vizContentToFileCollection.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.createSlugCache = exports.createVizCache = exports.buildHTML = void 0;
|
3
|
+
exports.svelteCompilerUrl = exports.vizContentToFileCollection = exports.createSlugCache = exports.createVizCache = exports.buildHTML = void 0;
|
4
4
|
var buildHTML_js_1 = require("./buildHTML.js");
|
5
5
|
Object.defineProperty(exports, "buildHTML", { enumerable: true, get: function () { return buildHTML_js_1.buildHTML; } });
|
6
6
|
var vizCache_js_1 = require("./v3/vizCache.js");
|
7
7
|
Object.defineProperty(exports, "createVizCache", { enumerable: true, get: function () { return vizCache_js_1.createVizCache; } });
|
8
8
|
var slugCache_js_1 = require("./v3/slugCache.js");
|
9
9
|
Object.defineProperty(exports, "createSlugCache", { enumerable: true, get: function () { return slugCache_js_1.createSlugCache; } });
|
10
|
+
var vizContentToFileCollection_js_1 = require("./utils/vizContentToFileCollection.js");
|
11
|
+
Object.defineProperty(exports, "vizContentToFileCollection", { enumerable: true, get: function () { return vizContentToFileCollection_js_1.vizContentToFileCollection; } });
|
12
|
+
var transformSvelte_js_1 = require("./v3/transformSvelte.js");
|
13
|
+
Object.defineProperty(exports, "svelteCompilerUrl", { enumerable: true, get: function () { return transformSvelte_js_1.svelteCompilerUrl; } });
|
@@ -5,6 +5,7 @@ exports.vizContentToFileCollection = void 0;
|
|
5
5
|
* Converts VizContent format to FileCollection format
|
6
6
|
* VizContent has files as {id: {name, text}} structure
|
7
7
|
* FileCollection is a simple {name: text} structure
|
8
|
+
* TODO move to viz-utils
|
8
9
|
*/
|
9
10
|
const vizContentToFileCollection = (vizContent) => {
|
10
11
|
const fileCollection = {};
|
package/dist/esm/index.js
CHANGED
@@ -1,3 +1,5 @@
|
|
1
1
|
export { buildHTML } from "./buildHTML.js";
|
2
2
|
export { createVizCache } from "./v3/vizCache.js";
|
3
3
|
export { createSlugCache, } from "./v3/slugCache.js";
|
4
|
+
export { vizContentToFileCollection } from "./utils/vizContentToFileCollection.js";
|
5
|
+
export { svelteCompilerUrl } from "./v3/transformSvelte.js";
|
@@ -2,6 +2,7 @@
|
|
2
2
|
* Converts VizContent format to FileCollection format
|
3
3
|
* VizContent has files as {id: {name, text}} structure
|
4
4
|
* FileCollection is a simple {name: text} structure
|
5
|
+
* TODO move to viz-utils
|
5
6
|
*/
|
6
7
|
export const vizContentToFileCollection = (vizContent) => {
|
7
8
|
const fileCollection = {};
|
package/dist/types/index.d.ts
CHANGED
@@ -1,3 +1,5 @@
|
|
1
1
|
export { buildHTML } from "./buildHTML.js";
|
2
2
|
export { createVizCache, VizCache } from "./v3/vizCache.js";
|
3
3
|
export { createSlugCache, SlugCache, } from "./v3/slugCache.js";
|
4
|
+
export { vizContentToFileCollection } from "./utils/vizContentToFileCollection.js";
|
5
|
+
export { svelteCompilerUrl } from "./v3/transformSvelte.js";
|
@@ -3,5 +3,6 @@ import type { FileCollection, VizContent } from "@vizhub/viz-types";
|
|
3
3
|
* Converts VizContent format to FileCollection format
|
4
4
|
* VizContent has files as {id: {name, text}} structure
|
5
5
|
* FileCollection is a simple {name: text} structure
|
6
|
+
* TODO move to viz-utils
|
6
7
|
*/
|
7
8
|
export declare const vizContentToFileCollection: (vizContent: VizContent) => FileCollection;
|