@contractspec/example.learning-journey-ui-onboarding 1.57.0 → 1.58.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.log +58 -62
- package/.turbo/turbo-prebuild.log +1 -0
- package/CHANGELOG.md +19 -0
- package/dist/OnboardingMiniApp.d.ts +4 -14
- package/dist/OnboardingMiniApp.d.ts.map +1 -1
- package/dist/OnboardingMiniApp.js +991 -59
- package/dist/browser/OnboardingMiniApp.js +994 -0
- package/dist/browser/components/CodeSnippet.js +65 -0
- package/dist/browser/components/JourneyMap.js +59 -0
- package/dist/browser/components/StepChecklist.js +97 -0
- package/dist/browser/components/index.js +219 -0
- package/dist/browser/docs/index.js +22 -0
- package/dist/browser/docs/learning-journey-ui-onboarding.docblock.js +22 -0
- package/dist/browser/example.js +32 -0
- package/dist/browser/index.js +1116 -0
- package/dist/browser/views/Overview.js +240 -0
- package/dist/browser/views/Progress.js +275 -0
- package/dist/browser/views/Steps.js +192 -0
- package/dist/browser/views/Timeline.js +213 -0
- package/dist/browser/views/index.js +915 -0
- package/dist/components/CodeSnippet.d.ts +5 -13
- package/dist/components/CodeSnippet.d.ts.map +1 -1
- package/dist/components/CodeSnippet.js +63 -47
- package/dist/components/JourneyMap.d.ts +6 -14
- package/dist/components/JourneyMap.d.ts.map +1 -1
- package/dist/components/JourneyMap.js +57 -46
- package/dist/components/StepChecklist.d.ts +10 -22
- package/dist/components/StepChecklist.d.ts.map +1 -1
- package/dist/components/StepChecklist.js +95 -77
- package/dist/components/index.d.ts +4 -4
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +219 -4
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +23 -1
- package/dist/docs/learning-journey-ui-onboarding.docblock.d.ts +2 -1
- package/dist/docs/learning-journey-ui-onboarding.docblock.d.ts.map +1 -0
- package/dist/docs/learning-journey-ui-onboarding.docblock.js +21 -18
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +31 -39
- package/dist/index.d.ts +6 -12
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1117 -14
- package/dist/node/OnboardingMiniApp.js +994 -0
- package/dist/node/components/CodeSnippet.js +65 -0
- package/dist/node/components/JourneyMap.js +59 -0
- package/dist/node/components/StepChecklist.js +97 -0
- package/dist/node/components/index.js +219 -0
- package/dist/node/docs/index.js +22 -0
- package/dist/node/docs/learning-journey-ui-onboarding.docblock.js +22 -0
- package/dist/node/example.js +32 -0
- package/dist/node/index.js +1116 -0
- package/dist/node/views/Overview.js +240 -0
- package/dist/node/views/Progress.js +275 -0
- package/dist/node/views/Steps.js +192 -0
- package/dist/node/views/Timeline.js +213 -0
- package/dist/node/views/index.js +915 -0
- package/dist/views/Overview.d.ts +4 -12
- package/dist/views/Overview.d.ts.map +1 -1
- package/dist/views/Overview.js +238 -177
- package/dist/views/Progress.d.ts +3 -10
- package/dist/views/Progress.d.ts.map +1 -1
- package/dist/views/Progress.js +273 -158
- package/dist/views/Steps.d.ts +2 -11
- package/dist/views/Steps.d.ts.map +1 -1
- package/dist/views/Steps.js +188 -87
- package/dist/views/Timeline.d.ts +2 -10
- package/dist/views/Timeline.d.ts.map +1 -1
- package/dist/views/Timeline.js +211 -95
- package/dist/views/index.d.ts +5 -5
- package/dist/views/index.d.ts.map +1 -0
- package/dist/views/index.js +915 -5
- package/package.json +155 -39
- package/tsdown.config.js +1 -2
- package/.turbo/turbo-build$colon$bundle.log +0 -59
- package/dist/OnboardingMiniApp.js.map +0 -1
- package/dist/components/CodeSnippet.js.map +0 -1
- package/dist/components/JourneyMap.js.map +0 -1
- package/dist/components/StepChecklist.js.map +0 -1
- package/dist/docs/learning-journey-ui-onboarding.docblock.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/views/Overview.js.map +0 -1
- package/dist/views/Progress.js.map +0 -1
- package/dist/views/Steps.js.map +0 -1
- package/dist/views/Timeline.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,220 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
1
|
+
// @bun
|
|
2
|
+
// src/components/StepChecklist.tsx
|
|
3
|
+
import { Button } from "@contractspec/lib.design-system";
|
|
4
|
+
import { cn } from "@contractspec/lib.ui-kit-core";
|
|
5
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
6
|
+
"use client";
|
|
7
|
+
function StepChecklist({
|
|
8
|
+
step,
|
|
9
|
+
stepNumber,
|
|
10
|
+
isCompleted,
|
|
11
|
+
isCurrent,
|
|
12
|
+
isExpanded,
|
|
13
|
+
onToggle,
|
|
14
|
+
onComplete
|
|
15
|
+
}) {
|
|
16
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
17
|
+
className: cn("rounded-xl border transition-all", isCompleted && "border-green-500/50 bg-green-500/5", isCurrent && !isCompleted && "border-violet-500 bg-violet-500/5", !isCompleted && !isCurrent && "border-border"),
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsxDEV("button", {
|
|
20
|
+
type: "button",
|
|
21
|
+
className: "flex w-full items-center gap-4 p-4 text-left",
|
|
22
|
+
onClick: onToggle,
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
25
|
+
className: cn("flex h-8 w-8 shrink-0 items-center justify-center rounded-full border-2 text-sm font-semibold transition-colors", isCompleted && "border-green-500 bg-green-500 text-white", isCurrent && !isCompleted && "border-violet-500 text-violet-500", !isCompleted && !isCurrent && "border-muted-foreground text-muted-foreground"),
|
|
26
|
+
children: isCompleted ? "\u2713" : stepNumber
|
|
27
|
+
}, undefined, false, undefined, this),
|
|
28
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
29
|
+
className: "min-w-0 flex-1",
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ jsxDEV("h4", {
|
|
32
|
+
className: cn("font-semibold", isCompleted && "text-green-500", isCurrent && !isCompleted && "text-foreground", !isCompleted && !isCurrent && "text-muted-foreground"),
|
|
33
|
+
children: step.title
|
|
34
|
+
}, undefined, false, undefined, this),
|
|
35
|
+
!isExpanded && step.description && /* @__PURE__ */ jsxDEV("p", {
|
|
36
|
+
className: "text-muted-foreground truncate text-sm",
|
|
37
|
+
children: step.description
|
|
38
|
+
}, undefined, false, undefined, this)
|
|
39
|
+
]
|
|
40
|
+
}, undefined, true, undefined, this),
|
|
41
|
+
step.xpReward && /* @__PURE__ */ jsxDEV("span", {
|
|
42
|
+
className: cn("shrink-0 rounded-full px-2 py-1 text-xs font-semibold", isCompleted ? "bg-green-500/10 text-green-500" : "bg-muted text-muted-foreground"),
|
|
43
|
+
children: [
|
|
44
|
+
"+",
|
|
45
|
+
step.xpReward,
|
|
46
|
+
" XP"
|
|
47
|
+
]
|
|
48
|
+
}, undefined, true, undefined, this),
|
|
49
|
+
/* @__PURE__ */ jsxDEV("span", {
|
|
50
|
+
className: cn("shrink-0 transition-transform", isExpanded && "rotate-180"),
|
|
51
|
+
children: "\u25BC"
|
|
52
|
+
}, undefined, false, undefined, this)
|
|
53
|
+
]
|
|
54
|
+
}, undefined, true, undefined, this),
|
|
55
|
+
isExpanded && /* @__PURE__ */ jsxDEV("div", {
|
|
56
|
+
className: "border-t px-4 py-4",
|
|
57
|
+
children: [
|
|
58
|
+
step.description && /* @__PURE__ */ jsxDEV("p", {
|
|
59
|
+
className: "text-muted-foreground mb-4",
|
|
60
|
+
children: step.description
|
|
61
|
+
}, undefined, false, undefined, this),
|
|
62
|
+
step.instructions && /* @__PURE__ */ jsxDEV("div", {
|
|
63
|
+
className: "bg-muted mb-4 rounded-lg p-4",
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ jsxDEV("p", {
|
|
66
|
+
className: "mb-2 text-sm font-medium",
|
|
67
|
+
children: "Instructions:"
|
|
68
|
+
}, undefined, false, undefined, this),
|
|
69
|
+
/* @__PURE__ */ jsxDEV("p", {
|
|
70
|
+
className: "text-muted-foreground text-sm",
|
|
71
|
+
children: step.instructions
|
|
72
|
+
}, undefined, false, undefined, this)
|
|
73
|
+
]
|
|
74
|
+
}, undefined, true, undefined, this),
|
|
75
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
76
|
+
className: "flex flex-wrap gap-2",
|
|
77
|
+
children: [
|
|
78
|
+
step.actionUrl && /* @__PURE__ */ jsxDEV(Button, {
|
|
79
|
+
variant: "outline",
|
|
80
|
+
size: "sm",
|
|
81
|
+
onClick: () => window.open(step.actionUrl, "_blank"),
|
|
82
|
+
children: step.actionLabel ?? "Try it"
|
|
83
|
+
}, undefined, false, undefined, this),
|
|
84
|
+
!isCompleted && /* @__PURE__ */ jsxDEV(Button, {
|
|
85
|
+
size: "sm",
|
|
86
|
+
onClick: onComplete,
|
|
87
|
+
children: "Mark as Complete"
|
|
88
|
+
}, undefined, false, undefined, this)
|
|
89
|
+
]
|
|
90
|
+
}, undefined, true, undefined, this)
|
|
91
|
+
]
|
|
92
|
+
}, undefined, true, undefined, this)
|
|
93
|
+
]
|
|
94
|
+
}, undefined, true, undefined, this);
|
|
95
|
+
}
|
|
4
96
|
|
|
5
|
-
|
|
97
|
+
// src/components/JourneyMap.tsx
|
|
98
|
+
import { cn as cn2 } from "@contractspec/lib.ui-kit-web/ui/utils";
|
|
99
|
+
import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
|
|
100
|
+
"use client";
|
|
101
|
+
var SURFACE_ICONS = {
|
|
102
|
+
templates: "\uD83D\uDCCB",
|
|
103
|
+
"spec-editor": "\u270F\uFE0F",
|
|
104
|
+
regenerator: "\uD83D\uDD04",
|
|
105
|
+
playground: "\uD83C\uDFAE",
|
|
106
|
+
evolution: "\uD83E\uDD16",
|
|
107
|
+
dashboard: "\uD83D\uDCCA",
|
|
108
|
+
settings: "\u2699\uFE0F",
|
|
109
|
+
default: "\uD83D\uDCCD"
|
|
110
|
+
};
|
|
111
|
+
function JourneyMap({
|
|
112
|
+
steps,
|
|
113
|
+
completedStepIds,
|
|
114
|
+
currentStepId
|
|
115
|
+
}) {
|
|
116
|
+
return /* @__PURE__ */ jsxDEV2("div", {
|
|
117
|
+
className: "relative overflow-x-auto pb-4",
|
|
118
|
+
children: /* @__PURE__ */ jsxDEV2("div", {
|
|
119
|
+
className: "flex min-w-max items-center gap-2",
|
|
120
|
+
children: steps.map((step, index) => {
|
|
121
|
+
const isCompleted = completedStepIds.includes(step.id);
|
|
122
|
+
const isCurrent = step.id === currentStepId;
|
|
123
|
+
const surface = step.metadata?.surface ?? "default";
|
|
124
|
+
const icon = SURFACE_ICONS[surface] ?? SURFACE_ICONS.default;
|
|
125
|
+
return /* @__PURE__ */ jsxDEV2("div", {
|
|
126
|
+
className: "flex items-center",
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ jsxDEV2("div", {
|
|
129
|
+
className: "flex flex-col items-center gap-2",
|
|
130
|
+
children: [
|
|
131
|
+
/* @__PURE__ */ jsxDEV2("div", {
|
|
132
|
+
className: cn2("flex h-14 w-14 items-center justify-center rounded-2xl border-2 text-2xl transition-all", isCompleted && "border-green-500 bg-green-500/10", isCurrent && !isCompleted && "border-violet-500 bg-violet-500/10 ring-4 ring-violet-500/20", !isCompleted && !isCurrent && "border-muted bg-muted/50"),
|
|
133
|
+
children: isCompleted ? "\u2713" : icon
|
|
134
|
+
}, undefined, false, undefined, this),
|
|
135
|
+
/* @__PURE__ */ jsxDEV2("div", {
|
|
136
|
+
className: "text-center",
|
|
137
|
+
children: /* @__PURE__ */ jsxDEV2("p", {
|
|
138
|
+
className: cn2("max-w-[100px] truncate text-xs font-medium", isCompleted && "text-green-500", isCurrent && !isCompleted && "text-violet-500", !isCompleted && !isCurrent && "text-muted-foreground"),
|
|
139
|
+
children: step.title
|
|
140
|
+
}, undefined, false, undefined, this)
|
|
141
|
+
}, undefined, false, undefined, this)
|
|
142
|
+
]
|
|
143
|
+
}, undefined, true, undefined, this),
|
|
144
|
+
index < steps.length - 1 && /* @__PURE__ */ jsxDEV2("div", {
|
|
145
|
+
className: cn2("mx-2 h-1 w-8 rounded-full transition-colors", completedStepIds.includes(steps[index + 1]?.id ?? "") ? "bg-green-500" : isCompleted ? "bg-green-500/50" : "bg-muted")
|
|
146
|
+
}, undefined, false, undefined, this)
|
|
147
|
+
]
|
|
148
|
+
}, step.id, true, undefined, this);
|
|
149
|
+
})
|
|
150
|
+
}, undefined, false, undefined, this)
|
|
151
|
+
}, undefined, false, undefined, this);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// src/components/CodeSnippet.tsx
|
|
155
|
+
import { useState } from "react";
|
|
156
|
+
import { Button as Button2 } from "@contractspec/lib.design-system";
|
|
157
|
+
import { jsxDEV as jsxDEV3, Fragment } from "react/jsx-dev-runtime";
|
|
158
|
+
"use client";
|
|
159
|
+
function CodeSnippet({
|
|
160
|
+
code,
|
|
161
|
+
language = "typescript",
|
|
162
|
+
title
|
|
163
|
+
}) {
|
|
164
|
+
const [copied, setCopied] = useState(false);
|
|
165
|
+
const handleCopy = async () => {
|
|
166
|
+
await navigator.clipboard.writeText(code);
|
|
167
|
+
setCopied(true);
|
|
168
|
+
setTimeout(() => setCopied(false), 2000);
|
|
169
|
+
};
|
|
170
|
+
return /* @__PURE__ */ jsxDEV3("div", {
|
|
171
|
+
className: "bg-muted/50 overflow-hidden rounded-lg border",
|
|
172
|
+
children: [
|
|
173
|
+
/* @__PURE__ */ jsxDEV3("div", {
|
|
174
|
+
className: "bg-muted flex items-center justify-between border-b px-4 py-2",
|
|
175
|
+
children: [
|
|
176
|
+
/* @__PURE__ */ jsxDEV3("div", {
|
|
177
|
+
className: "flex items-center gap-2",
|
|
178
|
+
children: [
|
|
179
|
+
/* @__PURE__ */ jsxDEV3("span", {
|
|
180
|
+
className: "text-muted-foreground text-xs font-medium uppercase",
|
|
181
|
+
children: language
|
|
182
|
+
}, undefined, false, undefined, this),
|
|
183
|
+
title && /* @__PURE__ */ jsxDEV3(Fragment, {
|
|
184
|
+
children: [
|
|
185
|
+
/* @__PURE__ */ jsxDEV3("span", {
|
|
186
|
+
className: "text-muted-foreground",
|
|
187
|
+
children: "\u2022"
|
|
188
|
+
}, undefined, false, undefined, this),
|
|
189
|
+
/* @__PURE__ */ jsxDEV3("span", {
|
|
190
|
+
className: "text-sm",
|
|
191
|
+
children: title
|
|
192
|
+
}, undefined, false, undefined, this)
|
|
193
|
+
]
|
|
194
|
+
}, undefined, true, undefined, this)
|
|
195
|
+
]
|
|
196
|
+
}, undefined, true, undefined, this),
|
|
197
|
+
/* @__PURE__ */ jsxDEV3(Button2, {
|
|
198
|
+
variant: "ghost",
|
|
199
|
+
size: "sm",
|
|
200
|
+
onClick: handleCopy,
|
|
201
|
+
className: "h-7 text-xs",
|
|
202
|
+
children: copied ? "\u2713 Copied" : "Copy"
|
|
203
|
+
}, undefined, false, undefined, this)
|
|
204
|
+
]
|
|
205
|
+
}, undefined, true, undefined, this),
|
|
206
|
+
/* @__PURE__ */ jsxDEV3("pre", {
|
|
207
|
+
className: "overflow-x-auto p-4",
|
|
208
|
+
children: /* @__PURE__ */ jsxDEV3("code", {
|
|
209
|
+
className: "text-sm",
|
|
210
|
+
children: code
|
|
211
|
+
}, undefined, false, undefined, this)
|
|
212
|
+
}, undefined, false, undefined, this)
|
|
213
|
+
]
|
|
214
|
+
}, undefined, true, undefined, this);
|
|
215
|
+
}
|
|
216
|
+
export {
|
|
217
|
+
StepChecklist,
|
|
218
|
+
JourneyMap,
|
|
219
|
+
CodeSnippet
|
|
220
|
+
};
|
package/dist/docs/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import './learning-journey-ui-onboarding.docblock';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/docs/index.ts"],"names":[],"mappings":"AAAA,OAAO,2CAA2C,CAAC"}
|
package/dist/docs/index.js
CHANGED
|
@@ -1 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
// src/docs/learning-journey-ui-onboarding.docblock.ts
|
|
3
|
+
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
4
|
+
var blocks = [
|
|
5
|
+
{
|
|
6
|
+
id: "docs.examples.learning-journey-ui-onboarding",
|
|
7
|
+
title: "Learning Journey UI \u2014 Onboarding",
|
|
8
|
+
summary: "UI mini-app components for onboarding: checklists, snippets, and journey mapping.",
|
|
9
|
+
kind: "reference",
|
|
10
|
+
visibility: "public",
|
|
11
|
+
route: "/docs/examples/learning-journey-ui-onboarding",
|
|
12
|
+
tags: ["learning", "ui", "onboarding"],
|
|
13
|
+
body: `## Includes
|
|
14
|
+
- Onboarding mini-app shell
|
|
15
|
+
- Views: overview, steps, progress, timeline
|
|
16
|
+
- Components: step checklist, code snippet, journey map
|
|
17
|
+
|
|
18
|
+
## Notes
|
|
19
|
+
- Compose with design system components.
|
|
20
|
+
- Ensure accessible labels and keyboard navigation.`
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
registerDocBlocks(blocks);
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=learning-journey-ui-onboarding.docblock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"learning-journey-ui-onboarding.docblock.d.ts","sourceRoot":"","sources":["../../src/docs/learning-journey-ui-onboarding.docblock.ts"],"names":[],"mappings":""}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/docs/learning-journey-ui-onboarding.docblock.ts
|
|
1
3
|
import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
|
|
4
|
+
var blocks = [
|
|
5
|
+
{
|
|
6
|
+
id: "docs.examples.learning-journey-ui-onboarding",
|
|
7
|
+
title: "Learning Journey UI \u2014 Onboarding",
|
|
8
|
+
summary: "UI mini-app components for onboarding: checklists, snippets, and journey mapping.",
|
|
9
|
+
kind: "reference",
|
|
10
|
+
visibility: "public",
|
|
11
|
+
route: "/docs/examples/learning-journey-ui-onboarding",
|
|
12
|
+
tags: ["learning", "ui", "onboarding"],
|
|
13
|
+
body: `## Includes
|
|
14
|
+
- Onboarding mini-app shell
|
|
15
|
+
- Views: overview, steps, progress, timeline
|
|
16
|
+
- Components: step checklist, code snippet, journey map
|
|
2
17
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
visibility: "public",
|
|
10
|
-
route: "/docs/examples/learning-journey-ui-onboarding",
|
|
11
|
-
tags: [
|
|
12
|
-
"learning",
|
|
13
|
-
"ui",
|
|
14
|
-
"onboarding"
|
|
15
|
-
],
|
|
16
|
-
body: `## Includes\n- Onboarding mini-app shell\n- Views: overview, steps, progress, timeline\n- Components: step checklist, code snippet, journey map\n\n## Notes\n- Compose with design system components.\n- Ensure accessible labels and keyboard navigation.`
|
|
17
|
-
}]);
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
//# sourceMappingURL=learning-journey-ui-onboarding.docblock.js.map
|
|
18
|
+
## Notes
|
|
19
|
+
- Compose with design system components.
|
|
20
|
+
- Ensure accessible labels and keyboard navigation.`
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
registerDocBlocks(blocks);
|
package/dist/example.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//#region src/example.d.ts
|
|
4
|
-
declare const example: _contractspec_lib_contracts0.ExampleSpec;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { example as default };
|
|
1
|
+
declare const example: import("@contractspec/lib.contracts").ExampleSpec;
|
|
2
|
+
export default example;
|
|
7
3
|
//# sourceMappingURL=example.d.ts.map
|
package/dist/example.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","
|
|
1
|
+
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../src/example.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO,mDA0BX,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
package/dist/example.js
CHANGED
|
@@ -1,41 +1,33 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/example.ts
|
|
1
3
|
import { defineExample } from "@contractspec/lib.contracts";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
sandbox: {
|
|
28
|
-
enabled: true,
|
|
29
|
-
modes: ["playground", "markdown"]
|
|
30
|
-
},
|
|
31
|
-
studio: {
|
|
32
|
-
enabled: true,
|
|
33
|
-
installable: true
|
|
34
|
-
},
|
|
35
|
-
mcp: { enabled: true }
|
|
36
|
-
}
|
|
4
|
+
var example = defineExample({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "learning-journey-ui-onboarding",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
title: "Learning Journey UI \u2014 Onboarding",
|
|
9
|
+
description: "UI mini-app for onboarding patterns: checklists, code snippets, journey map.",
|
|
10
|
+
kind: "ui",
|
|
11
|
+
visibility: "public",
|
|
12
|
+
stability: "experimental",
|
|
13
|
+
owners: ["@platform.core"],
|
|
14
|
+
tags: ["learning", "ui", "onboarding"]
|
|
15
|
+
},
|
|
16
|
+
docs: {
|
|
17
|
+
rootDocId: "docs.examples.learning-journey-ui-onboarding"
|
|
18
|
+
},
|
|
19
|
+
entrypoints: {
|
|
20
|
+
packageName: "@contractspec/example.learning-journey-ui-onboarding",
|
|
21
|
+
docs: "./docs"
|
|
22
|
+
},
|
|
23
|
+
surfaces: {
|
|
24
|
+
templates: true,
|
|
25
|
+
sandbox: { enabled: true, modes: ["playground", "markdown"] },
|
|
26
|
+
studio: { enabled: true, installable: true },
|
|
27
|
+
mcp: { enabled: true }
|
|
28
|
+
}
|
|
37
29
|
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
var example_default = example;
|
|
31
|
+
export {
|
|
32
|
+
example_default as default
|
|
33
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import { Overview } from "./views/Overview.js";
|
|
8
|
-
import { Steps } from "./views/Steps.js";
|
|
9
|
-
import { Progress as ProgressView } from "./views/Progress.js";
|
|
10
|
-
import { Timeline } from "./views/Timeline.js";
|
|
11
|
-
import "./views/index.js";
|
|
12
|
-
export { CodeSnippet, JourneyMap, OnboardingMiniApp, Overview, ProgressView as Progress, StepChecklist, Steps, Timeline, example };
|
|
1
|
+
export { OnboardingMiniApp } from './OnboardingMiniApp';
|
|
2
|
+
export { Overview, Steps, Progress, Timeline } from './views';
|
|
3
|
+
export { StepChecklist, CodeSnippet, JourneyMap } from './components';
|
|
4
|
+
export { default as example } from './example';
|
|
5
|
+
import './docs';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG9D,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,QAAQ,CAAC"}
|