truecanvas 0.4.0 → 0.5.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/README.md +7 -4
- package/dist/catalog-worker.js +1 -1
- package/dist/{chunk-WU7NBTJH.js → chunk-2IIAMOFH.js} +11 -3
- package/dist/{chunk-OVYSWA2F.js → chunk-A4QIAVTG.js} +12 -7
- package/dist/{chunk-M7B3W7EP.js → chunk-DV76O5SZ.js} +73 -4
- package/dist/cli.js +203 -133
- package/dist/core/index.d.ts +3 -1
- package/dist/core/index.js +2 -2
- package/dist/share/index.d.ts +4 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
package/dist/core/index.d.ts
CHANGED
|
@@ -139,6 +139,8 @@ interface ComponentSpec {
|
|
|
139
139
|
props: PropSpec[];
|
|
140
140
|
acceptsClassName: boolean;
|
|
141
141
|
acceptsChildren: boolean;
|
|
142
|
+
/** exported as the module's default (`export default Hero`): imported as `import Hero from` */
|
|
143
|
+
defaultExport?: boolean;
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
declare function parseCanvas(name: string, file: string, source: string): CanvasDoc;
|
|
@@ -215,7 +217,7 @@ declare class CanvasEditor {
|
|
|
215
217
|
unwrap(node: CanvasNode): void;
|
|
216
218
|
replace(node: CanvasNode, jsx: string): void;
|
|
217
219
|
private added;
|
|
218
|
-
ensureImport(name: string, from: string): void;
|
|
220
|
+
ensureImport(name: string, from: string, isDefault?: boolean): void;
|
|
219
221
|
/**
|
|
220
222
|
* Imports `name` from `from` and returns the local name to write in JSX. When
|
|
221
223
|
* the name is already taken by something else (another import, a local
|
package/dist/core/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
viteStylesheets,
|
|
29
29
|
wrapConfigExport,
|
|
30
30
|
writeCompare
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-A4QIAVTG.js";
|
|
32
32
|
import {
|
|
33
33
|
injectIds
|
|
34
34
|
} from "../chunk-TSHD2S36.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "../chunk-PBKX3SBC.js";
|
|
38
38
|
import {
|
|
39
39
|
Catalog
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-2IIAMOFH.js";
|
|
41
41
|
import {
|
|
42
42
|
ICON_LIBRARIES,
|
|
43
43
|
iconLibraries,
|
package/dist/share/index.d.ts
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
* The share viewer: one static page that reads ./manifest.json and lays the
|
|
3
3
|
* frozen frames out at their canvas positions, with pan and zoom (drag,
|
|
4
4
|
* wheel, pinch, keys). Frames are sandboxed iframes without scripts, under a
|
|
5
|
-
* transparent layer that takes every pointer event.
|
|
5
|
+
* transparent layer that takes every pointer event. When the version has a
|
|
6
|
+
* live site, each frame gets a "View live" button: the real site in a
|
|
7
|
+
* device-sized window, scripts and animations included, on its own origin.
|
|
8
|
+
* Self-contained: no
|
|
6
9
|
* build step, no dependencies, so the same file works locally and on a
|
|
7
10
|
* review site.
|
|
8
11
|
*/
|
package/dist/share/index.js
CHANGED
package/package.json
CHANGED