foss-design 0.9.8 → 0.9.10
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.
|
@@ -37,9 +37,15 @@ export declare class ApiError extends Error {
|
|
|
37
37
|
export declare const localSource: ViewerSource;
|
|
38
38
|
/** The JSON files of a `design build` site, relative to its root. */
|
|
39
39
|
export declare const staticSource: ViewerSource;
|
|
40
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* `url` against a unit's base, or '' when it may not be loaded. Docs come from builds anyone who
|
|
42
|
+
* can push has written, so a URL is only kept when it is http(s) and, for a unit build, inside
|
|
43
|
+
* that unit's base: a `javascript:` frame source would run with the viewer's own origin.
|
|
44
|
+
*/
|
|
41
45
|
export declare function resolveUrl(url: string, base: string): string;
|
|
42
|
-
/**
|
|
46
|
+
/** An external page for a `url` item: http or https only. */
|
|
47
|
+
export declare function externalUrl(url: string): string;
|
|
48
|
+
/** A canvas with its frame, snapshot and image URLs resolved against its unit's base, unsafe ones dropped. */
|
|
43
49
|
export declare function resolveCanvas(doc: CanvasDoc, base: string): CanvasDoc;
|
|
44
50
|
/** A design system with its specimen and asset URLs resolved against the system unit's base. */
|
|
45
51
|
export declare function resolveSystem(doc: SystemDoc, base: string): SystemDoc;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foss-design",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.10",
|
|
4
4
|
"description": "Design canvases and design systems for coding agents: live, animated, clickable screens on an infinite canvas, served locally from a .design folder.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|