@contractspec/lib.example-shared-ui 6.0.6 → 6.0.7
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.log +90 -84
- package/AGENTS.md +43 -25
- package/README.md +63 -35
- package/dist/EvolutionDashboard.js +9 -9
- package/dist/EvolutionSidebar.js +15 -15
- package/dist/LocalDataIndicator.js +3 -3
- package/dist/MarkdownView.d.ts +0 -7
- package/dist/MarkdownView.js +76 -172
- package/dist/PersonalizationInsights.js +12 -12
- package/dist/SaveToStudioButton.js +2 -2
- package/dist/SpecDrivenTemplateShell.d.ts +1 -1
- package/dist/SpecDrivenTemplateShell.js +10 -10
- package/dist/SpecEditorPanel.js +3 -3
- package/dist/TemplateShell.js +10 -10
- package/dist/browser/EvolutionDashboard.js +9 -9
- package/dist/browser/EvolutionSidebar.js +15 -15
- package/dist/browser/LocalDataIndicator.js +3 -3
- package/dist/browser/MarkdownView.js +76 -172
- package/dist/browser/PersonalizationInsights.js +12 -12
- package/dist/browser/SaveToStudioButton.js +2 -2
- package/dist/browser/SpecDrivenTemplateShell.js +10 -10
- package/dist/browser/SpecEditorPanel.js +3 -3
- package/dist/browser/TemplateShell.js +10 -10
- package/dist/browser/hooks/index.js +29 -29
- package/dist/browser/index.js +193 -286
- package/dist/browser/lib/component-registry.js +1 -1
- package/dist/browser/markdown/formatPresentationName.js +9 -0
- package/dist/browser/markdown/useMarkdownPresentation.js +65 -0
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.js +29 -29
- package/dist/index.d.ts +12 -11
- package/dist/index.js +193 -286
- package/dist/lib/component-registry.js +1 -1
- package/dist/markdown/formatPresentationName.d.ts +1 -0
- package/dist/markdown/formatPresentationName.js +10 -0
- package/dist/markdown/useMarkdownPresentation.d.ts +21 -0
- package/dist/markdown/useMarkdownPresentation.js +66 -0
- package/dist/node/EvolutionDashboard.js +9 -9
- package/dist/node/EvolutionSidebar.js +15 -15
- package/dist/node/LocalDataIndicator.js +3 -3
- package/dist/node/MarkdownView.js +76 -172
- package/dist/node/PersonalizationInsights.js +12 -12
- package/dist/node/SaveToStudioButton.js +2 -2
- package/dist/node/SpecDrivenTemplateShell.js +10 -10
- package/dist/node/SpecEditorPanel.js +3 -3
- package/dist/node/TemplateShell.js +10 -10
- package/dist/node/hooks/index.js +29 -29
- package/dist/node/index.js +193 -286
- package/dist/node/lib/component-registry.js +1 -1
- package/dist/node/markdown/formatPresentationName.js +9 -0
- package/dist/node/markdown/useMarkdownPresentation.js +65 -0
- package/dist/utils/index.d.ts +1 -1
- package/package.json +38 -11
- package/src/EvolutionDashboard.tsx +415 -415
- package/src/EvolutionSidebar.tsx +245 -245
- package/src/LocalDataIndicator.tsx +28 -28
- package/src/MarkdownView.tsx +119 -372
- package/src/OverlayContextProvider.tsx +272 -272
- package/src/PersonalizationInsights.tsx +232 -232
- package/src/SaveToStudioButton.tsx +51 -51
- package/src/SpecDrivenTemplateShell.tsx +59 -59
- package/src/SpecEditorPanel.tsx +138 -138
- package/src/TemplateShell.tsx +50 -50
- package/src/bundles/ExampleTemplateBundle.ts +78 -78
- package/src/hooks/index.ts +3 -3
- package/src/hooks/useBehaviorTracking.ts +252 -252
- package/src/hooks/useEvolution.ts +437 -437
- package/src/hooks/useRegistryTemplates.ts +42 -42
- package/src/hooks/useSpecContent.ts +214 -214
- package/src/hooks/useWorkflowComposer.ts +567 -567
- package/src/index.ts +12 -11
- package/src/lib/component-registry.tsx +40 -40
- package/src/lib/runtime-context.tsx +31 -31
- package/src/lib/types.ts +57 -57
- package/src/markdown/formatPresentationName.ts +9 -0
- package/src/markdown/useMarkdownPresentation.ts +107 -0
- package/src/overlay-types.ts +15 -15
- package/src/utils/fetchPresentationData.ts +13 -13
- package/src/utils/generateSpecFromTemplate.ts +29 -29
- package/src/utils/index.ts +1 -1
- package/tsconfig.json +8 -8
|
@@ -6,86 +6,86 @@
|
|
|
6
6
|
import { defineModuleBundle } from '@contractspec/lib.surface-runtime/spec';
|
|
7
7
|
|
|
8
8
|
export const ExampleTemplateBundle = defineModuleBundle({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
meta: {
|
|
10
|
+
key: 'example.template',
|
|
11
|
+
version: '0.1.0',
|
|
12
|
+
title: 'Example Template',
|
|
13
|
+
description: 'Adaptive template shell for ContractSpec examples',
|
|
14
|
+
owners: ['team-platform'],
|
|
15
|
+
tags: ['example', 'template'],
|
|
16
|
+
stability: 'experimental',
|
|
17
|
+
},
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
routes: [
|
|
20
|
+
{
|
|
21
|
+
routeId: 'template',
|
|
22
|
+
path: '/sandbox',
|
|
23
|
+
defaultSurface: 'template-shell',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
27
|
+
surfaces: {
|
|
28
|
+
'template-shell': {
|
|
29
|
+
surfaceId: 'template-shell',
|
|
30
|
+
kind: 'workbench',
|
|
31
|
+
title: 'Template Shell',
|
|
32
|
+
slots: [
|
|
33
|
+
{
|
|
34
|
+
slotId: 'header',
|
|
35
|
+
role: 'header',
|
|
36
|
+
accepts: ['action-bar'],
|
|
37
|
+
cardinality: 'many',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
slotId: 'primary',
|
|
41
|
+
role: 'primary',
|
|
42
|
+
accepts: ['entity-section', 'rich-doc', 'form', 'custom-widget'],
|
|
43
|
+
cardinality: 'many',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
slotId: 'sidebar',
|
|
47
|
+
role: 'secondary',
|
|
48
|
+
accepts: ['entity-section', 'custom-widget'],
|
|
49
|
+
cardinality: 'one',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
53
|
+
layouts: [
|
|
54
|
+
{
|
|
55
|
+
layoutId: 'main-with-sidebar',
|
|
56
|
+
title: 'Main with sidebar',
|
|
57
|
+
root: {
|
|
58
|
+
type: 'panel-group',
|
|
59
|
+
direction: 'horizontal',
|
|
60
|
+
persistKey: 'example.template.main-sidebar',
|
|
61
|
+
children: [
|
|
62
|
+
{
|
|
63
|
+
type: 'panel-group',
|
|
64
|
+
direction: 'vertical',
|
|
65
|
+
persistKey: 'example.template.content',
|
|
66
|
+
children: [
|
|
67
|
+
{ type: 'slot', slotId: 'header' },
|
|
68
|
+
{ type: 'slot', slotId: 'primary' },
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
{ type: 'slot', slotId: 'sidebar' },
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
data: [],
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
78
|
+
verification: {
|
|
79
|
+
dimensions: {
|
|
80
|
+
guidance: 'Can reveal hints and walkthrough notes.',
|
|
81
|
+
density: 'Can select compact or balanced layouts.',
|
|
82
|
+
dataDepth: 'Controls content depth and expansion.',
|
|
83
|
+
control: 'Shows advanced options when allowed.',
|
|
84
|
+
media: 'Supports text-first and hybrid modes.',
|
|
85
|
+
pace: 'Maps to motion tokens and transitions.',
|
|
86
|
+
narrative: 'Can order summary before or after detail.',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
91
|
});
|
package/src/hooks/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './useSpecContent';
|
|
2
|
-
export * from './useEvolution';
|
|
3
1
|
export * from './useBehaviorTracking';
|
|
4
|
-
export * from './
|
|
2
|
+
export * from './useEvolution';
|
|
5
3
|
export * from './useRegistryTemplates';
|
|
4
|
+
export * from './useSpecContent';
|
|
5
|
+
export * from './useWorkflowComposer';
|