@contractspec/example.lifecycle-dashboard 1.44.1 → 1.45.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/.turbo/turbo-build$colon$bundle.log +6 -6
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +26 -0
- package/dist/example.d.ts +3 -29
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +16 -11
- package/dist/example.js.map +1 -1
- package/package.json +5 -5
- package/src/example.ts +16 -9
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -8,18 +8,18 @@ $ tsdown
|
|
|
8
8
|
[34mℹ[39m Cleaning 17 files
|
|
9
9
|
[34mℹ[39m [2mdist/[22m[1msnippets/page.js[22m [2m1.82 kB[22m [2m│ gzip: 0.87 kB[22m
|
|
10
10
|
[34mℹ[39m [2mdist/[22m[1mdocs/lifecycle-dashboard.docblock.js[22m [2m0.98 kB[22m [2m│ gzip: 0.56 kB[22m
|
|
11
|
-
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.91 kB[22m [2m│ gzip: 0.50 kB[22m
|
|
12
12
|
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.22 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
13
13
|
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
14
14
|
[34mℹ[39m [2mdist/[22msnippets/page.js.map [2m1.91 kB[22m [2m│ gzip: 0.91 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.44 kB[22m [2m│ gzip: 0.72 kB[22m
|
|
15
16
|
[34mℹ[39m [2mdist/[22mdocs/lifecycle-dashboard.docblock.js.map [2m1.32 kB[22m [2m│ gzip: 0.72 kB[22m
|
|
16
|
-
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.16 kB[22m [2m│ gzip: 0.61 kB[22m
|
|
17
|
-
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
18
17
|
[34mℹ[39m [2mdist/[22msnippets/page.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.12 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
19
19
|
[34mℹ[39m [2mdist/[22m[32m[1msnippets/page.d.ts[22m[39m [2m1.89 kB[22m [2m│ gzip: 0.88 kB[22m
|
|
20
|
-
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [
|
|
20
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.20 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
21
21
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.16 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
22
22
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
23
23
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/lifecycle-dashboard.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
24
|
-
[34mℹ[39m 15 files, total: 11.
|
|
25
|
-
[32m✔[39m Build complete in [
|
|
24
|
+
[34mℹ[39m 15 files, total: 11.19 kB
|
|
25
|
+
[32m✔[39m Build complete in [32m17362ms[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -9,18 +9,18 @@ $ tsdown
|
|
|
9
9
|
[34mℹ[39m Build start
|
|
10
10
|
[34mℹ[39m [2mdist/[22m[1msnippets/page.js[22m [2m1.82 kB[22m [2m│ gzip: 0.87 kB[22m
|
|
11
11
|
[34mℹ[39m [2mdist/[22m[1mdocs/lifecycle-dashboard.docblock.js[22m [2m0.98 kB[22m [2m│ gzip: 0.56 kB[22m
|
|
12
|
-
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.91 kB[22m [2m│ gzip: 0.50 kB[22m
|
|
13
13
|
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m0.22 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
14
14
|
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
15
15
|
[34mℹ[39m [2mdist/[22msnippets/page.js.map [2m1.91 kB[22m [2m│ gzip: 0.91 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.44 kB[22m [2m│ gzip: 0.72 kB[22m
|
|
16
17
|
[34mℹ[39m [2mdist/[22mdocs/lifecycle-dashboard.docblock.js.map [2m1.32 kB[22m [2m│ gzip: 0.72 kB[22m
|
|
17
|
-
[34mℹ[39m [2mdist/[22mexample.js.map [2m1.16 kB[22m [2m│ gzip: 0.61 kB[22m
|
|
18
|
-
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
19
18
|
[34mℹ[39m [2mdist/[22msnippets/page.d.ts.map [2m0.14 kB[22m [2m│ gzip: 0.13 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22mexample.d.ts.map [2m0.12 kB[22m [2m│ gzip: 0.12 kB[22m
|
|
20
20
|
[34mℹ[39m [2mdist/[22m[32m[1msnippets/page.d.ts[22m[39m [2m1.89 kB[22m [2m│ gzip: 0.88 kB[22m
|
|
21
|
-
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [
|
|
21
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.20 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
22
22
|
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.16 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
23
23
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
24
24
|
[34mℹ[39m [2mdist/[22m[32m[1mdocs/lifecycle-dashboard.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
25
|
-
[34mℹ[39m 15 files, total: 11.
|
|
26
|
-
[32m✔[39m Build complete in [
|
|
25
|
+
[34mℹ[39m 15 files, total: 11.19 kB
|
|
26
|
+
[32m✔[39m Build complete in [32m20289ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @contractspec/example.lifecycle-dashboard
|
|
2
2
|
|
|
3
|
+
## 1.45.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e73ca1d: feat: improve app config and examples contracts
|
|
8
|
+
feat: Contract layers support (features, examples, app-configs)
|
|
9
|
+
|
|
10
|
+
### New CLI Commands
|
|
11
|
+
- `contractspec list layers` - List all contract layers with filtering
|
|
12
|
+
|
|
13
|
+
### Enhanced Commands
|
|
14
|
+
- `contractspec ci` - New `layers` check category validates features/examples/config
|
|
15
|
+
- `contractspec doctor` - New `layers` health checks
|
|
16
|
+
- `contractspec integrity` - Now shows layer statistics
|
|
17
|
+
|
|
18
|
+
### New APIs
|
|
19
|
+
- `discoverLayers()` - Scan workspace for all layer files
|
|
20
|
+
- `scanExampleSource()` - Parse ExampleSpec from source code
|
|
21
|
+
- `isExampleFile()` - Check if file is an example spec
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [e73ca1d]
|
|
26
|
+
- @contractspec/lib.contracts@1.45.0
|
|
27
|
+
- @contractspec/lib.schema@1.45.0
|
|
28
|
+
|
|
3
29
|
## 1.44.1
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/dist/example.d.ts
CHANGED
|
@@ -1,33 +1,7 @@
|
|
|
1
|
+
import { ExampleSpec } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
1
3
|
//#region src/example.d.ts
|
|
2
|
-
declare const example:
|
|
3
|
-
readonly id: "lifecycle-dashboard";
|
|
4
|
-
readonly title: "Lifecycle Dashboard (snippet)";
|
|
5
|
-
readonly summary: "A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.";
|
|
6
|
-
readonly tags: readonly ["lifecycle", "dashboard", "nextjs", "snippet"];
|
|
7
|
-
readonly kind: "blueprint";
|
|
8
|
-
readonly visibility: "public";
|
|
9
|
-
readonly docs: {
|
|
10
|
-
readonly rootDocId: "docs.examples.lifecycle-dashboard";
|
|
11
|
-
};
|
|
12
|
-
readonly entrypoints: {
|
|
13
|
-
readonly packageName: "@contractspec/example.lifecycle-dashboard";
|
|
14
|
-
readonly docs: "./docs";
|
|
15
|
-
};
|
|
16
|
-
readonly surfaces: {
|
|
17
|
-
readonly templates: true;
|
|
18
|
-
readonly sandbox: {
|
|
19
|
-
readonly enabled: true;
|
|
20
|
-
readonly modes: readonly ["markdown", "specs"];
|
|
21
|
-
};
|
|
22
|
-
readonly studio: {
|
|
23
|
-
readonly enabled: true;
|
|
24
|
-
readonly installable: true;
|
|
25
|
-
};
|
|
26
|
-
readonly mcp: {
|
|
27
|
-
readonly enabled: true;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
};
|
|
4
|
+
declare const example: ExampleSpec;
|
|
31
5
|
//#endregion
|
|
32
6
|
export { example as default };
|
|
33
7
|
//# sourceMappingURL=example.d.ts.map
|
package/dist/example.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
|
package/dist/example.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
//#region src/example.ts
|
|
2
2
|
const example = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"lifecycle",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
meta: {
|
|
4
|
+
key: "lifecycle-dashboard",
|
|
5
|
+
version: "1.0.0",
|
|
6
|
+
title: "Lifecycle Dashboard (snippet)",
|
|
7
|
+
description: "A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.",
|
|
8
|
+
kind: "blueprint",
|
|
9
|
+
visibility: "public",
|
|
10
|
+
stability: "experimental",
|
|
11
|
+
owners: ["@platform.core"],
|
|
12
|
+
tags: [
|
|
13
|
+
"lifecycle",
|
|
14
|
+
"dashboard",
|
|
15
|
+
"nextjs",
|
|
16
|
+
"snippet"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
14
19
|
docs: { rootDocId: "docs.examples.lifecycle-dashboard" },
|
|
15
20
|
entrypoints: {
|
|
16
21
|
packageName: "@contractspec/example.lifecycle-dashboard",
|
package/dist/example.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"example.js","names":["example: ExampleSpec"],"sources":["../src/example.ts"],"sourcesContent":["import type { ExampleSpec } from '@contractspec/lib.contracts';\n\nconst example: ExampleSpec = {\n meta: {\n key: 'lifecycle-dashboard',\n version: '1.0.0',\n title: 'Lifecycle Dashboard (snippet)',\n description:\n 'A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.',\n kind: 'blueprint',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['lifecycle', 'dashboard', 'nextjs', 'snippet'],\n },\n docs: {\n rootDocId: 'docs.examples.lifecycle-dashboard',\n },\n entrypoints: {\n packageName: '@contractspec/example.lifecycle-dashboard',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown', 'specs'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n};\n\nexport default example;\n"],"mappings":";AAEA,MAAMA,UAAuB;CAC3B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAa;GAAa;GAAU;GAAU;EACtD;CACD,MAAM,EACJ,WAAW,qCACZ;CACD,aAAa;EACX,aAAa;EACb,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO,CAAC,YAAY,QAAQ;GAAE;EACxD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/example.lifecycle-dashboard",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.45.0",
|
|
4
4
|
"description": "Lifecycle dashboard example (snippet): how to call lifecycle-managed APIs and render a status card.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"test": "bun test"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@contractspec/lib.schema": "1.
|
|
31
|
-
"@contractspec/lib.contracts": "1.
|
|
30
|
+
"@contractspec/lib.schema": "1.45.0",
|
|
31
|
+
"@contractspec/lib.contracts": "1.45.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@contractspec/tool.tsdown": "1.
|
|
35
|
-
"@contractspec/tool.typescript": "1.
|
|
34
|
+
"@contractspec/tool.tsdown": "1.45.0",
|
|
35
|
+
"@contractspec/tool.typescript": "1.45.0",
|
|
36
36
|
"tsdown": "^0.18.3",
|
|
37
37
|
"typescript": "^5.9.3"
|
|
38
38
|
},
|
package/src/example.ts
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import type { ExampleSpec } from '@contractspec/lib.contracts';
|
|
2
|
+
|
|
3
|
+
const example: ExampleSpec = {
|
|
4
|
+
meta: {
|
|
5
|
+
key: 'lifecycle-dashboard',
|
|
6
|
+
version: '1.0.0',
|
|
7
|
+
title: 'Lifecycle Dashboard (snippet)',
|
|
8
|
+
description:
|
|
9
|
+
'A minimal dashboard page pattern: call lifecycle-managed endpoints and render a mobile-friendly status card.',
|
|
10
|
+
kind: 'blueprint',
|
|
11
|
+
visibility: 'public',
|
|
12
|
+
stability: 'experimental',
|
|
13
|
+
owners: ['@platform.core'],
|
|
14
|
+
tags: ['lifecycle', 'dashboard', 'nextjs', 'snippet'],
|
|
15
|
+
},
|
|
9
16
|
docs: {
|
|
10
17
|
rootDocId: 'docs.examples.lifecycle-dashboard',
|
|
11
18
|
},
|
|
@@ -19,6 +26,6 @@ const example = {
|
|
|
19
26
|
studio: { enabled: true, installable: true },
|
|
20
27
|
mcp: { enabled: true },
|
|
21
28
|
},
|
|
22
|
-
}
|
|
29
|
+
};
|
|
23
30
|
|
|
24
31
|
export default example;
|