@nimtech/nimpress 2.3.1
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/.claude/rules/changelog-entries.md +229 -0
- package/.claude/rules/chunk-cycles.md +23 -0
- package/.claude/rules/component-modules.md +152 -0
- package/.claude/rules/dbml-pages.md +118 -0
- package/.claude/rules/deploy.md +47 -0
- package/.claude/rules/doc-pages.md +93 -0
- package/.claude/rules/docs-authoring.md +90 -0
- package/.claude/rules/docs-sync.md +59 -0
- package/.claude/rules/file-layout.md +49 -0
- package/.claude/rules/frontmatter.md +91 -0
- package/.claude/rules/page-types.md +108 -0
- package/.claude/rules/paths.md +27 -0
- package/.claude/rules/roadmap-entries.md +154 -0
- package/.claude/rules/style.md +61 -0
- package/LICENSE +201 -0
- package/README.md +137 -0
- package/bin/nimpress.mjs +7 -0
- package/config.schema.json +555 -0
- package/dist/DbmlNote-CTwTd5vM.js +21 -0
- package/dist/DbmlTable-BXIyJnLV.js +209 -0
- package/dist/cli.es.js +1265 -0
- package/dist/nimpress.es.js +8896 -0
- package/dist/plugin-DQtunTIv.js +8268 -0
- package/dist/plugin.es.js +23 -0
- package/dist/src/api/CodeExamples.svelte.d.ts +1 -0
- package/dist/src/api/MethodBadge.svelte.d.ts +1 -0
- package/dist/src/api/OpenApiRoot.svelte.d.ts +1 -0
- package/dist/src/api/Operation.svelte.d.ts +1 -0
- package/dist/src/api/ParamRow.svelte.d.ts +1 -0
- package/dist/src/api/Schema.svelte.d.ts +1 -0
- package/dist/src/api/TryDialog.svelte.d.ts +1 -0
- package/dist/src/api/TryPanel.svelte.d.ts +1 -0
- package/dist/src/api/refs.d.ts +12 -0
- package/dist/src/api/refs.d.ts.map +1 -0
- package/dist/src/api/tryState.d.ts +21 -0
- package/dist/src/api/tryState.d.ts.map +1 -0
- package/dist/src/api/types.d.ts +63 -0
- package/dist/src/api/types.d.ts.map +1 -0
- package/dist/src/auth/AccountMenu.svelte.d.ts +1 -0
- package/dist/src/auth/guard.d.ts +5 -0
- package/dist/src/auth/guard.d.ts.map +1 -0
- package/dist/src/auth/session.d.ts +8 -0
- package/dist/src/auth/session.d.ts.map +1 -0
- package/dist/src/banner.d.ts +23 -0
- package/dist/src/banner.d.ts.map +1 -0
- package/dist/src/cli/export.d.ts +4 -0
- package/dist/src/cli/export.d.ts.map +1 -0
- package/dist/src/cli/guard.d.ts +3 -0
- package/dist/src/cli/guard.d.ts.map +1 -0
- package/dist/src/cli/init.d.ts +2 -0
- package/dist/src/cli/init.d.ts.map +1 -0
- package/dist/src/cli/lint.d.ts +11 -0
- package/dist/src/cli/lint.d.ts.map +1 -0
- package/dist/src/cli/modules.d.ts +3 -0
- package/dist/src/cli/modules.d.ts.map +1 -0
- package/dist/src/cli/shared.d.ts +6 -0
- package/dist/src/cli/shared.d.ts.map +1 -0
- package/dist/src/cli/site.d.ts +7 -0
- package/dist/src/cli/site.d.ts.map +1 -0
- package/dist/src/cli.d.ts +5 -0
- package/dist/src/cli.d.ts.map +1 -0
- package/dist/src/config/base.d.ts +4 -0
- package/dist/src/config/base.d.ts.map +1 -0
- package/dist/src/config/chunkCycles.d.ts +10 -0
- package/dist/src/config/chunkCycles.d.ts.map +1 -0
- package/dist/src/config/defaults.d.ts +4 -0
- package/dist/src/config/defaults.d.ts.map +1 -0
- package/dist/src/config/html.d.ts +3 -0
- package/dist/src/config/html.d.ts.map +1 -0
- package/dist/src/config/load.d.ts +20 -0
- package/dist/src/config/load.d.ts.map +1 -0
- package/dist/src/config/paths.d.ts +8 -0
- package/dist/src/config/paths.d.ts.map +1 -0
- package/dist/src/config/schema.d.ts +1238 -0
- package/dist/src/config/schema.d.ts.map +1 -0
- package/dist/src/config/viteConfig.d.ts +11 -0
- package/dist/src/config/viteConfig.d.ts.map +1 -0
- package/dist/src/dbml/erd.d.ts +59 -0
- package/dist/src/dbml/erd.d.ts.map +1 -0
- package/dist/src/framework/configStore.d.ts +7 -0
- package/dist/src/framework/configStore.d.ts.map +1 -0
- package/dist/src/framework/createNimpressApp.d.ts +10 -0
- package/dist/src/framework/createNimpressApp.d.ts.map +1 -0
- package/dist/src/framework/gated.d.ts +5 -0
- package/dist/src/framework/gated.d.ts.map +1 -0
- package/dist/src/framework/hashSpy.d.ts +7 -0
- package/dist/src/framework/hashSpy.d.ts.map +1 -0
- package/dist/src/framework/pageMeta.d.ts +4 -0
- package/dist/src/framework/pageMeta.d.ts.map +1 -0
- package/dist/src/framework/pageStyles.d.ts +2 -0
- package/dist/src/framework/pageStyles.d.ts.map +1 -0
- package/dist/src/framework/router.d.ts +5 -0
- package/dist/src/framework/router.d.ts.map +1 -0
- package/dist/src/framework/stores/feed.d.ts +8 -0
- package/dist/src/framework/stores/feed.d.ts.map +1 -0
- package/dist/src/framework/stores/sidebar.d.ts +4 -0
- package/dist/src/framework/stores/sidebar.d.ts.map +1 -0
- package/dist/src/framework/stores/theme.d.ts +6 -0
- package/dist/src/framework/stores/theme.d.ts.map +1 -0
- package/dist/src/framework/stores/viewer.d.ts +6 -0
- package/dist/src/framework/stores/viewer.d.ts.map +1 -0
- package/dist/src/icons/FullscreenIcon.svelte.d.ts +1 -0
- package/dist/src/icons/IconAdd.svelte.d.ts +1 -0
- package/dist/src/icons/IconChevron.svelte.d.ts +1 -0
- package/dist/src/icons/IconClear.svelte.d.ts +1 -0
- package/dist/src/icons/IconConsole.svelte.d.ts +1 -0
- package/dist/src/icons/IconDock.svelte.d.ts +1 -0
- package/dist/src/icons/IconDownload.svelte.d.ts +1 -0
- package/dist/src/icons/IconJson.svelte.d.ts +1 -0
- package/dist/src/icons/IconMinus.svelte.d.ts +1 -0
- package/dist/src/icons/IconMock.svelte.d.ts +1 -0
- package/dist/src/icons/IconMoon.svelte.d.ts +1 -0
- package/dist/src/icons/IconOpen.svelte.d.ts +1 -0
- package/dist/src/icons/IconReload.svelte.d.ts +1 -0
- package/dist/src/icons/IconRemove.svelte.d.ts +1 -0
- package/dist/src/icons/IconShadow.svelte.d.ts +1 -0
- package/dist/src/icons/IconSun.svelte.d.ts +1 -0
- package/dist/src/index.d.ts +44 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/layout/App.svelte.d.ts +1 -0
- package/dist/src/layout/AppRoot.svelte.d.ts +1 -0
- package/dist/src/layout/BackToTop.svelte.d.ts +1 -0
- package/dist/src/layout/Breadcrumbs.svelte.d.ts +1 -0
- package/dist/src/layout/GatedPage.svelte.d.ts +1 -0
- package/dist/src/layout/Header.svelte.d.ts +1 -0
- package/dist/src/layout/HomePage.svelte.d.ts +1 -0
- package/dist/src/layout/RightToc.svelte.d.ts +1 -0
- package/dist/src/layout/Sidebar.svelte.d.ts +1 -0
- package/dist/src/layout/SidebarNode.svelte.d.ts +1 -0
- package/dist/src/markdown/Actions.svelte.d.ts +1 -0
- package/dist/src/markdown/CalloutCheck.svelte.d.ts +1 -0
- package/dist/src/markdown/CalloutInfo.svelte.d.ts +1 -0
- package/dist/src/markdown/CalloutNote.svelte.d.ts +1 -0
- package/dist/src/markdown/CalloutTip.svelte.d.ts +1 -0
- package/dist/src/markdown/CalloutWarning.svelte.d.ts +1 -0
- package/dist/src/markdown/Card.svelte.d.ts +1 -0
- package/dist/src/markdown/CardGroup.svelte.d.ts +1 -0
- package/dist/src/markdown/ChangelogPage.svelte.d.ts +1 -0
- package/dist/src/markdown/CodeBlock.svelte.d.ts +1 -0
- package/dist/src/markdown/CodeEditor.svelte.d.ts +1 -0
- package/dist/src/markdown/CodeGroup.svelte.d.ts +1 -0
- package/dist/src/markdown/ComponentEmbed.svelte.d.ts +1 -0
- package/dist/src/markdown/ComponentPage.svelte.d.ts +1 -0
- package/dist/src/markdown/ControlNode.svelte.d.ts +1 -0
- package/dist/src/markdown/DBMLBlock.svelte.d.ts +1 -0
- package/dist/src/markdown/DbmlNote.svelte.d.ts +1 -0
- package/dist/src/markdown/DbmlPage.svelte.d.ts +1 -0
- package/dist/src/markdown/DbmlTable.svelte.d.ts +1 -0
- package/dist/src/markdown/DragDivider.svelte.d.ts +1 -0
- package/dist/src/markdown/Feature.svelte.d.ts +1 -0
- package/dist/src/markdown/FeatureGrid.svelte.d.ts +1 -0
- package/dist/src/markdown/HeroPage.svelte.d.ts +1 -0
- package/dist/src/markdown/MermaidBlock.svelte.d.ts +1 -0
- package/dist/src/markdown/Page.svelte.d.ts +1 -0
- package/dist/src/markdown/PlanetFooter.svelte.d.ts +1 -0
- package/dist/src/markdown/RoadmapBlob.svelte.d.ts +1 -0
- package/dist/src/markdown/RoadmapNode.svelte.d.ts +1 -0
- package/dist/src/markdown/RoadmapPage.svelte.d.ts +1 -0
- package/dist/src/markdown/SubscribeDialog.svelte.d.ts +1 -0
- package/dist/src/mock/index.d.ts +42 -0
- package/dist/src/mock/index.d.ts.map +1 -0
- package/dist/src/modules/autoStory.d.ts +5 -0
- package/dist/src/modules/autoStory.d.ts.map +1 -0
- package/dist/src/modules/componentData.d.ts +14 -0
- package/dist/src/modules/componentData.d.ts.map +1 -0
- package/dist/src/modules/harness.d.ts +25 -0
- package/dist/src/modules/harness.d.ts.map +1 -0
- package/dist/src/modules/importStorybook.d.ts +12 -0
- package/dist/src/modules/importStorybook.d.ts.map +1 -0
- package/dist/src/modules/lint.d.ts +3 -0
- package/dist/src/modules/lint.d.ts.map +1 -0
- package/dist/src/modules/pages.d.ts +10 -0
- package/dist/src/modules/pages.d.ts.map +1 -0
- package/dist/src/modules/parse/dts.d.ts +4 -0
- package/dist/src/modules/parse/dts.d.ts.map +1 -0
- package/dist/src/modules/parse/svelte.d.ts +3 -0
- package/dist/src/modules/parse/svelte.d.ts.map +1 -0
- package/dist/src/modules/parse/typeMembers.d.ts +64 -0
- package/dist/src/modules/parse/typeMembers.d.ts.map +1 -0
- package/dist/src/modules/parse/vue.d.ts +3 -0
- package/dist/src/modules/parse/vue.d.ts.map +1 -0
- package/dist/src/modules/resolve.d.ts +9 -0
- package/dist/src/modules/resolve.d.ts.map +1 -0
- package/dist/src/modules/schema.d.ts +53 -0
- package/dist/src/modules/schema.d.ts.map +1 -0
- package/dist/src/modules/stories.d.ts +4 -0
- package/dist/src/modules/stories.d.ts.map +1 -0
- package/dist/src/search/SearchModal.svelte.d.ts +1 -0
- package/dist/src/search/indexer.d.ts +5 -0
- package/dist/src/search/indexer.d.ts.map +1 -0
- package/dist/src/story/index.d.ts +17 -0
- package/dist/src/story/index.d.ts.map +1 -0
- package/dist/src/subscribe/subscribe.d.ts +5 -0
- package/dist/src/subscribe/subscribe.d.ts.map +1 -0
- package/dist/src/types.d.ts +531 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/story.es.js +10 -0
- package/dist/style.css +1 -0
- package/dist/tailwind.preset.d.ts +4 -0
- package/dist/tailwind.preset.d.ts.map +1 -0
- package/dist/tailwind.preset.es.js +67 -0
- package/dist/typeMembers-CNvE92EX.js +538 -0
- package/package.json +125 -0
- package/src/harness/svelte/ComponentHarness.svelte +12 -0
- package/src/harness/svelte/ComponentHarnessEffects.svelte +24 -0
- package/src/harness/svelte/ComponentHarnessOverlay.svelte +9 -0
- package/src/harness/svelte/ComponentStory.svelte +9 -0
- package/src/harness/svelte/DefaultHarness.svelte +15 -0
- package/src/harness/svelte/HarnessRoot.svelte +22 -0
- package/src/harness/svelte/context.svelte.ts +33 -0
- package/src/harness/svelte/index.ts +12 -0
- package/src/harness/vue/ComponentHarness.vue +16 -0
- package/src/harness/vue/ComponentHarnessEffects.vue +27 -0
- package/src/harness/vue/ComponentHarnessOverlay.vue +12 -0
- package/src/harness/vue/ComponentStory.vue +16 -0
- package/src/harness/vue/DefaultHarness.vue +14 -0
- package/src/harness/vue/context.ts +37 -0
- package/src/harness/vue/index.ts +11 -0
- package/src/mock/index.ts +88 -0
- package/src/styles/app.css +3 -0
- package/src/styles/preflight.css +540 -0
- package/src/styles/theme.css +81 -0
- package/src/styles/tokens.css +150 -0
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"title": "Nimpress config",
|
|
4
|
+
"description": "Configuration for a nimpress site. Every field has a default, so a config can be as small as a title. A nimpress.config.ts using defineConfig gets the same descriptions through the exported types and additionally accepts functions such as auth.guard.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"$schema": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"title": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Site title shown in the header and the tab.",
|
|
13
|
+
"examples": [
|
|
14
|
+
"Nimtech Components"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"logo": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Header logo url, absolute or under assetUrlBase.",
|
|
20
|
+
"examples": [
|
|
21
|
+
"/assets/logo.svg"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"github": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Repository url rendered as the header GitHub link.",
|
|
27
|
+
"examples": [
|
|
28
|
+
"https://github.com/nimling/nimpress"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"brand": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"description": "Brand colors written onto the theme tokens.",
|
|
34
|
+
"properties": {
|
|
35
|
+
"primary": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Brand color written onto --np-brand.",
|
|
38
|
+
"examples": [
|
|
39
|
+
"#CC785C"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"primaryHover": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Hover variant written onto --np-brand-hover.",
|
|
45
|
+
"examples": [
|
|
46
|
+
"#B86A52"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"footer": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Site wide footer line, overridable per page with the footer frontmatter field."
|
|
54
|
+
},
|
|
55
|
+
"navRoutes": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"description": "Extra header navigation routes.",
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"required": [
|
|
61
|
+
"text",
|
|
62
|
+
"link"
|
|
63
|
+
],
|
|
64
|
+
"properties": {
|
|
65
|
+
"text": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "Label in the header."
|
|
68
|
+
},
|
|
69
|
+
"link": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Route or url the entry opens."
|
|
72
|
+
},
|
|
73
|
+
"gate": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "Gate value a viewer must satisfy to see the entry."
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"auth": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"description": "OAuth 2.0 session login. The build time guard function for gated pages needs a nimpress.config.ts, json carries no functions.",
|
|
83
|
+
"required": [
|
|
84
|
+
"issuer",
|
|
85
|
+
"clientId"
|
|
86
|
+
],
|
|
87
|
+
"properties": {
|
|
88
|
+
"issuer": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"description": "OAuth 2.0 issuer url.",
|
|
91
|
+
"examples": [
|
|
92
|
+
"https://auth.example.io"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"clientId": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"description": "OAuth client id of this site.",
|
|
98
|
+
"examples": [
|
|
99
|
+
"samna-developer"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"scopes": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"description": "Requested scopes.",
|
|
105
|
+
"examples": [
|
|
106
|
+
"openid profile email"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"redirectPath": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "Redirect path on this origin.",
|
|
112
|
+
"examples": [
|
|
113
|
+
"/auth/callback"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"headers": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"description": "Extra headers sent to the auth endpoints.",
|
|
119
|
+
"additionalProperties": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"endpoints": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"description": "Endpoint overrides when discovery is unavailable.",
|
|
126
|
+
"properties": {
|
|
127
|
+
"discovery": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
"authorization": {
|
|
131
|
+
"type": "string"
|
|
132
|
+
},
|
|
133
|
+
"token": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
},
|
|
136
|
+
"userinfo": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"endSession": {
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
"jwks": {
|
|
143
|
+
"type": "string"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"client": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"description": "Path to a client module exporting authFunctions and subscribeFunctions.",
|
|
152
|
+
"examples": [
|
|
153
|
+
"./docs/client.ts"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"subscribe": {
|
|
157
|
+
"type": "object",
|
|
158
|
+
"description": "Changelog subscription wiring.",
|
|
159
|
+
"properties": {
|
|
160
|
+
"endpoint": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"description": "Subscription endpoint receiving feed subscriptions."
|
|
163
|
+
},
|
|
164
|
+
"appSlug": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"description": "App slug the subscription registers under."
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"meta": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"description": "SEO, robots, llms.txt, webmanifest, and security.txt emission.",
|
|
173
|
+
"properties": {
|
|
174
|
+
"keywords": {
|
|
175
|
+
"type": "array",
|
|
176
|
+
"items": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
"description": "Site wide keywords merged into every page head."
|
|
180
|
+
},
|
|
181
|
+
"localeAlternates": {
|
|
182
|
+
"type": "array",
|
|
183
|
+
"items": {
|
|
184
|
+
"type": "string"
|
|
185
|
+
},
|
|
186
|
+
"description": "Locale codes emitted as hreflang alternates.",
|
|
187
|
+
"examples": [
|
|
188
|
+
[
|
|
189
|
+
"en",
|
|
190
|
+
"nb"
|
|
191
|
+
]
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"organization": {
|
|
195
|
+
"type": "object",
|
|
196
|
+
"description": "Organization JSON LD object written on every page."
|
|
197
|
+
},
|
|
198
|
+
"robots": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"properties": {
|
|
201
|
+
"block": {
|
|
202
|
+
"type": "array",
|
|
203
|
+
"items": {
|
|
204
|
+
"type": "string"
|
|
205
|
+
},
|
|
206
|
+
"description": "Crawler user agents to disallow."
|
|
207
|
+
},
|
|
208
|
+
"append": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"description": "Extra lines appended to robots.txt."
|
|
211
|
+
},
|
|
212
|
+
"custom": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"description": "Full robots.txt replacement, overrides everything else."
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"llms": {
|
|
219
|
+
"type": "object",
|
|
220
|
+
"properties": {
|
|
221
|
+
"summary": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"description": "One line summary at the top of llms.txt."
|
|
224
|
+
},
|
|
225
|
+
"append": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"description": "Extra markdown appended to llms.txt."
|
|
228
|
+
},
|
|
229
|
+
"full": {
|
|
230
|
+
"type": "boolean",
|
|
231
|
+
"description": "Also emit llms-full.txt with every page body."
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"og": {
|
|
236
|
+
"type": "object",
|
|
237
|
+
"properties": {
|
|
238
|
+
"width": {
|
|
239
|
+
"type": "number",
|
|
240
|
+
"description": "OpenGraph image width.",
|
|
241
|
+
"examples": [
|
|
242
|
+
1200
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
"height": {
|
|
246
|
+
"type": "number",
|
|
247
|
+
"description": "OpenGraph image height.",
|
|
248
|
+
"examples": [
|
|
249
|
+
600
|
|
250
|
+
]
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"webmanifest": {
|
|
255
|
+
"type": "object",
|
|
256
|
+
"description": "site.webmanifest content, emitted verbatim."
|
|
257
|
+
},
|
|
258
|
+
"humans": {
|
|
259
|
+
"type": "string",
|
|
260
|
+
"description": "humans.txt content, emitted verbatim."
|
|
261
|
+
},
|
|
262
|
+
"security": {
|
|
263
|
+
"type": "object",
|
|
264
|
+
"properties": {
|
|
265
|
+
"contact": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"description": "security.txt Contact line."
|
|
268
|
+
},
|
|
269
|
+
"policy": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"description": "security.txt Policy url."
|
|
272
|
+
},
|
|
273
|
+
"languages": {
|
|
274
|
+
"type": "string",
|
|
275
|
+
"description": "security.txt Preferred-Languages."
|
|
276
|
+
},
|
|
277
|
+
"canonical": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"description": "security.txt Canonical url."
|
|
280
|
+
},
|
|
281
|
+
"expires": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"description": "security.txt Expires timestamp."
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"site": {
|
|
290
|
+
"type": "object",
|
|
291
|
+
"description": "Canonical site identity used for absolute urls, sitemap, and social cards.",
|
|
292
|
+
"required": [
|
|
293
|
+
"title"
|
|
294
|
+
],
|
|
295
|
+
"properties": {
|
|
296
|
+
"title": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"description": "Canonical site name."
|
|
299
|
+
},
|
|
300
|
+
"url": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"description": "Canonical origin, required for sitemap, feeds, and absolute social urls.",
|
|
303
|
+
"examples": [
|
|
304
|
+
"https://developer.example.io"
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
"description": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"description": "Default meta description."
|
|
310
|
+
},
|
|
311
|
+
"ogImage": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"description": "Default social card image."
|
|
314
|
+
},
|
|
315
|
+
"twitterSite": {
|
|
316
|
+
"type": "string",
|
|
317
|
+
"description": "Twitter site handle.",
|
|
318
|
+
"examples": [
|
|
319
|
+
"@nimling"
|
|
320
|
+
]
|
|
321
|
+
},
|
|
322
|
+
"locale": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"description": "Site locale.",
|
|
325
|
+
"examples": [
|
|
326
|
+
"en_US"
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
"base": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"description": "Url prefix the whole site is served under, for a project page or a subfolder deploy.",
|
|
334
|
+
"default": "/",
|
|
335
|
+
"examples": [
|
|
336
|
+
"/nimpress/"
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
"contentDir": {
|
|
340
|
+
"type": "string",
|
|
341
|
+
"description": "Folder holding the markdown content.",
|
|
342
|
+
"default": "docs"
|
|
343
|
+
},
|
|
344
|
+
"assetsDir": {
|
|
345
|
+
"type": "string",
|
|
346
|
+
"description": "Root assets folder copied into the build. Never inside contentDir.",
|
|
347
|
+
"default": "assets"
|
|
348
|
+
},
|
|
349
|
+
"assetUrlBase": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"description": "Url base the assets folder serves under.",
|
|
352
|
+
"default": "/assets"
|
|
353
|
+
},
|
|
354
|
+
"paths": {
|
|
355
|
+
"type": "object",
|
|
356
|
+
"description": "Build output, cache, export, and served route folders. Every field is optional and carries a default.",
|
|
357
|
+
"properties": {
|
|
358
|
+
"out": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"description": "Build output root.",
|
|
361
|
+
"default": "dist"
|
|
362
|
+
},
|
|
363
|
+
"cache": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"description": "Cache root for every nimpress operation, layered per feature beneath it.",
|
|
366
|
+
"default": "node_modules/.nimpress"
|
|
367
|
+
},
|
|
368
|
+
"export": {
|
|
369
|
+
"type": "string",
|
|
370
|
+
"description": "Folder the export command collects pages into for the docs-sync pipeline.",
|
|
371
|
+
"default": ".nimpress"
|
|
372
|
+
},
|
|
373
|
+
"modules": {
|
|
374
|
+
"type": "string",
|
|
375
|
+
"description": "Folder under out and url route segment for the component module harness bundles, served at /<modules>/<system>/.",
|
|
376
|
+
"default": "_components"
|
|
377
|
+
},
|
|
378
|
+
"guarded": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"description": "Folder under out and url route segment for guarded bundles, served at /<guarded>/<bundle>/.",
|
|
381
|
+
"default": "_guarded"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"exclude": {
|
|
386
|
+
"type": "array",
|
|
387
|
+
"items": {
|
|
388
|
+
"type": "string"
|
|
389
|
+
},
|
|
390
|
+
"description": "Slug prefixes excluded from the site.",
|
|
391
|
+
"examples": [
|
|
392
|
+
[
|
|
393
|
+
"drafts"
|
|
394
|
+
]
|
|
395
|
+
]
|
|
396
|
+
},
|
|
397
|
+
"defaultFrontmatter": {
|
|
398
|
+
"type": "object",
|
|
399
|
+
"description": "Frontmatter defaults applied to every page that leaves the field unset.",
|
|
400
|
+
"examples": [
|
|
401
|
+
{
|
|
402
|
+
"lastUpdated": true
|
|
403
|
+
}
|
|
404
|
+
]
|
|
405
|
+
},
|
|
406
|
+
"defaultFrontmatterExclude": {
|
|
407
|
+
"type": "array",
|
|
408
|
+
"items": {
|
|
409
|
+
"type": "string"
|
|
410
|
+
},
|
|
411
|
+
"description": "Path prefixes the frontmatter defaults skip.",
|
|
412
|
+
"examples": [
|
|
413
|
+
[
|
|
414
|
+
"/api"
|
|
415
|
+
]
|
|
416
|
+
]
|
|
417
|
+
},
|
|
418
|
+
"banner": {
|
|
419
|
+
"description": "Dev server banner, false disables it.",
|
|
420
|
+
"oneOf": [
|
|
421
|
+
{
|
|
422
|
+
"type": "boolean",
|
|
423
|
+
"const": false
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"type": "object",
|
|
427
|
+
"properties": {
|
|
428
|
+
"title": {
|
|
429
|
+
"type": "string",
|
|
430
|
+
"description": "Banner title, defaults to the site title."
|
|
431
|
+
},
|
|
432
|
+
"tagline": {
|
|
433
|
+
"type": "string",
|
|
434
|
+
"description": "Line under the title."
|
|
435
|
+
},
|
|
436
|
+
"company": {
|
|
437
|
+
"type": "string",
|
|
438
|
+
"description": "Company name in the banner footer."
|
|
439
|
+
},
|
|
440
|
+
"version": {
|
|
441
|
+
"type": "string",
|
|
442
|
+
"description": "Version label, defaults to the consumer package version."
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
]
|
|
447
|
+
},
|
|
448
|
+
"css": {
|
|
449
|
+
"description": "Extra stylesheets loaded after the framework styles.",
|
|
450
|
+
"oneOf": [
|
|
451
|
+
{
|
|
452
|
+
"type": "string"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"type": "array",
|
|
456
|
+
"items": {
|
|
457
|
+
"type": "string"
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"examples": [
|
|
462
|
+
"docs/overrides.css"
|
|
463
|
+
]
|
|
464
|
+
},
|
|
465
|
+
"vite": {
|
|
466
|
+
"type": "object",
|
|
467
|
+
"description": "Vite overrides merged into the site and harness configs.",
|
|
468
|
+
"examples": [
|
|
469
|
+
{
|
|
470
|
+
"resolve": {
|
|
471
|
+
"alias": {
|
|
472
|
+
"@": "./src"
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
]
|
|
477
|
+
},
|
|
478
|
+
"modules": {
|
|
479
|
+
"type": "array",
|
|
480
|
+
"description": "Component workshop systems, one entry per component library.",
|
|
481
|
+
"items": {
|
|
482
|
+
"type": "object",
|
|
483
|
+
"required": [
|
|
484
|
+
"name",
|
|
485
|
+
"framework"
|
|
486
|
+
],
|
|
487
|
+
"properties": {
|
|
488
|
+
"name": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"description": "System identifier, the folder name under the modules route and the value component pages reference in data.system.",
|
|
491
|
+
"examples": [
|
|
492
|
+
"nimtech"
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
"framework": {
|
|
496
|
+
"type": "string",
|
|
497
|
+
"enum": [
|
|
498
|
+
"vue",
|
|
499
|
+
"svelte"
|
|
500
|
+
],
|
|
501
|
+
"description": "Component framework of this system."
|
|
502
|
+
},
|
|
503
|
+
"source": {
|
|
504
|
+
"type": "string",
|
|
505
|
+
"description": "Local component tree, resolved as <source>/<Name>/<Name>.<ext> or <source>/<Name>.<ext>.",
|
|
506
|
+
"examples": [
|
|
507
|
+
"./src/components"
|
|
508
|
+
]
|
|
509
|
+
},
|
|
510
|
+
"package": {
|
|
511
|
+
"type": "string",
|
|
512
|
+
"description": "Released npm package the harness imports components from when they do not resolve from source.",
|
|
513
|
+
"examples": [
|
|
514
|
+
"@nimling/components-nimtech"
|
|
515
|
+
]
|
|
516
|
+
},
|
|
517
|
+
"version": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"description": "Version pin recorded on exported pages."
|
|
520
|
+
},
|
|
521
|
+
"css": {
|
|
522
|
+
"type": "array",
|
|
523
|
+
"items": {
|
|
524
|
+
"type": "string"
|
|
525
|
+
},
|
|
526
|
+
"description": "Stylesheets loaded inside the harness iframe."
|
|
527
|
+
},
|
|
528
|
+
"setup": {
|
|
529
|
+
"type": "string",
|
|
530
|
+
"description": "Module replacing the harness bootstrap: default export carries install(app) and companion for vue, a bare function for svelte."
|
|
531
|
+
},
|
|
532
|
+
"harness": {
|
|
533
|
+
"type": "string",
|
|
534
|
+
"description": "Relative path to the system harness component wrapping every story, .ts, .tsx, .vue, or .svelte."
|
|
535
|
+
},
|
|
536
|
+
"port": {
|
|
537
|
+
"type": "number",
|
|
538
|
+
"description": "Fixed dev port for this system's harness server.",
|
|
539
|
+
"examples": [
|
|
540
|
+
6161
|
|
541
|
+
]
|
|
542
|
+
},
|
|
543
|
+
"visibility": {
|
|
544
|
+
"type": "string",
|
|
545
|
+
"enum": [
|
|
546
|
+
"visible",
|
|
547
|
+
"dev-only"
|
|
548
|
+
],
|
|
549
|
+
"description": "dev-only keeps the system in nimpress dev and out of the built bundle."
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "svelte/internal/disclose-version";
|
|
2
|
+
import * as t from "svelte/internal/client";
|
|
3
|
+
var v = t.from_html('<span class="np-erd-note-title svelte-d4qnng"> </span>'), f = t.from_html('<div class="np-erd-note svelte-d4qnng"><!> <p class="np-erd-note-body svelte-d4qnng"> </p></div>');
|
|
4
|
+
function c(s, e) {
|
|
5
|
+
t.push(e, !0);
|
|
6
|
+
var a = f(), n = t.child(a);
|
|
7
|
+
{
|
|
8
|
+
var i = (r) => {
|
|
9
|
+
var d = v(), p = t.child(d, !0);
|
|
10
|
+
t.reset(d), t.template_effect(() => t.set_text(p, e.data.title)), t.append(r, d);
|
|
11
|
+
};
|
|
12
|
+
t.if(n, (r) => {
|
|
13
|
+
e.data.title && r(i);
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
var l = t.sibling(n, 2), o = t.child(l, !0);
|
|
17
|
+
t.reset(l), t.reset(a), t.template_effect(() => t.set_text(o, e.data.body)), t.append(s, a), t.pop();
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
c as default
|
|
21
|
+
};
|