@construct-space/cli 1.1.9 → 1.1.12
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/index.js +975 -313
- package/dist/templates/space/full/space.manifest.json.tmpl +1 -1
- package/dist/templates/space/space.manifest.json.tmpl +1 -1
- package/dist/templates/space/widgets/2x1.vue.tmpl +0 -7
- package/dist/templates/space/widgets/4x1.vue.tmpl +0 -7
- package/package.json +2 -2
- package/templates/space/full/space.manifest.json.tmpl +1 -1
- package/templates/space/space.manifest.json.tmpl +1 -1
- package/templates/space/widgets/2x1.vue.tmpl +0 -7
- package/templates/space/widgets/4x1.vue.tmpl +0 -7
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
/**
|
|
3
3
|
* {{.DisplayName}} Summary Widget — 2×1 compact view
|
|
4
|
-
*
|
|
5
|
-
* Widgets run inside a closed Shadow DOM sandbox.
|
|
6
|
-
* Use the injected widgetApi for theme and actions — do not access
|
|
7
|
-
* window, document, or global stores directly.
|
|
8
4
|
*/
|
|
9
|
-
import { inject } from 'vue'
|
|
10
|
-
|
|
11
|
-
const api = inject<{ theme: { mode: string; vars: Record<string, string> }; space: { id: string; name: string } }>('widgetApi')
|
|
12
5
|
</script>
|
|
13
6
|
|
|
14
7
|
<template>
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
/**
|
|
3
3
|
* {{.DisplayName}} Summary Widget — 4×1 wide view
|
|
4
|
-
*
|
|
5
|
-
* Widgets run inside a closed Shadow DOM sandbox.
|
|
6
|
-
* Use the injected widgetApi for theme and actions — do not access
|
|
7
|
-
* window, document, or global stores directly.
|
|
8
4
|
*/
|
|
9
|
-
import { inject } from 'vue'
|
|
10
|
-
|
|
11
|
-
const api = inject<{ theme: { mode: string; vars: Record<string, string> }; space: { id: string; name: string } }>('widgetApi')
|
|
12
5
|
</script>
|
|
13
6
|
|
|
14
7
|
<template>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@construct-space/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "Construct CLI — scaffold, build, develop, and publish spaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"templates"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "bun build src/index.ts --outdir dist --target bun --format esm && cp -r templates dist/",
|
|
19
|
+
"build": "bun scripts/embed-templates.ts && bun build src/index.ts --outdir dist --target bun --format esm && cp -r templates dist/",
|
|
20
20
|
"dev": "bun run src/index.ts",
|
|
21
21
|
"test": "bun test",
|
|
22
22
|
"typecheck": "tsc --noEmit"
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
/**
|
|
3
3
|
* {{.DisplayName}} Summary Widget — 2×1 compact view
|
|
4
|
-
*
|
|
5
|
-
* Widgets run inside a closed Shadow DOM sandbox.
|
|
6
|
-
* Use the injected widgetApi for theme and actions — do not access
|
|
7
|
-
* window, document, or global stores directly.
|
|
8
4
|
*/
|
|
9
|
-
import { inject } from 'vue'
|
|
10
|
-
|
|
11
|
-
const api = inject<{ theme: { mode: string; vars: Record<string, string> }; space: { id: string; name: string } }>('widgetApi')
|
|
12
5
|
</script>
|
|
13
6
|
|
|
14
7
|
<template>
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
/**
|
|
3
3
|
* {{.DisplayName}} Summary Widget — 4×1 wide view
|
|
4
|
-
*
|
|
5
|
-
* Widgets run inside a closed Shadow DOM sandbox.
|
|
6
|
-
* Use the injected widgetApi for theme and actions — do not access
|
|
7
|
-
* window, document, or global stores directly.
|
|
8
4
|
*/
|
|
9
|
-
import { inject } from 'vue'
|
|
10
|
-
|
|
11
|
-
const api = inject<{ theme: { mode: string; vars: Record<string, string> }; space: { id: string; name: string } }>('widgetApi')
|
|
12
5
|
</script>
|
|
13
6
|
|
|
14
7
|
<template>
|