plggmatic 0.0.1 → 0.2.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.
Files changed (206) hide show
  1. package/README.md +150 -84
  2. package/dist/Catalog/index.d.ts +17 -0
  3. package/dist/Catalog/index.d.ts.map +1 -0
  4. package/dist/Catalog/model/tool.d.ts +101 -0
  5. package/dist/Catalog/model/tool.d.ts.map +1 -0
  6. package/dist/Catalog/usecase/adapter.d.ts +81 -0
  7. package/dist/Catalog/usecase/adapter.d.ts.map +1 -0
  8. package/dist/Catalog/usecase/catalog.d.ts +43 -0
  9. package/dist/Catalog/usecase/catalog.d.ts.map +1 -0
  10. package/dist/Catalog/usecase/runFlow.d.ts +77 -0
  11. package/dist/Catalog/usecase/runFlow.d.ts.map +1 -0
  12. package/dist/Component/index.d.ts +28 -0
  13. package/dist/Component/index.d.ts.map +1 -0
  14. package/dist/Component/model/interaction.d.ts +41 -0
  15. package/dist/Component/model/interaction.d.ts.map +1 -0
  16. package/dist/Component/model/navItem.d.ts +16 -0
  17. package/dist/Component/model/navItem.d.ts.map +1 -0
  18. package/dist/Component/usecase/breadcrumb.d.ts +26 -0
  19. package/dist/Component/usecase/breadcrumb.d.ts.map +1 -0
  20. package/dist/Component/usecase/button.d.ts +27 -0
  21. package/dist/Component/usecase/button.d.ts.map +1 -0
  22. package/dist/Component/usecase/checkbox.d.ts +20 -0
  23. package/dist/Component/usecase/checkbox.d.ts.map +1 -0
  24. package/dist/Component/usecase/colHead.d.ts +28 -0
  25. package/dist/Component/usecase/colHead.d.ts.map +1 -0
  26. package/dist/Component/usecase/confirmDialog.d.ts +25 -0
  27. package/dist/Component/usecase/confirmDialog.d.ts.map +1 -0
  28. package/dist/Component/usecase/navTree.d.ts +21 -0
  29. package/dist/Component/usecase/navTree.d.ts.map +1 -0
  30. package/dist/Component/usecase/selectInput.d.ts +28 -0
  31. package/dist/Component/usecase/selectInput.d.ts.map +1 -0
  32. package/dist/Component/usecase/textArea.d.ts +22 -0
  33. package/dist/Component/usecase/textArea.d.ts.map +1 -0
  34. package/dist/Component/usecase/textInput.d.ts +23 -0
  35. package/dist/Component/usecase/textInput.d.ts.map +1 -0
  36. package/dist/Component/usecase/textLink.d.ts +26 -0
  37. package/dist/Component/usecase/textLink.d.ts.map +1 -0
  38. package/dist/Component/usecase/themeToggle.d.ts +70 -0
  39. package/dist/Component/usecase/themeToggle.d.ts.map +1 -0
  40. package/dist/Component/usecase/toast.d.ts +32 -0
  41. package/dist/Component/usecase/toast.d.ts.map +1 -0
  42. package/dist/Component/usecase/typography.d.ts +33 -0
  43. package/dist/Component/usecase/typography.d.ts.map +1 -0
  44. package/dist/Declare/model/Action.d.ts +91 -0
  45. package/dist/Declare/model/Action.d.ts.map +1 -0
  46. package/dist/Declare/model/Adapter.d.ts +107 -0
  47. package/dist/Declare/model/Adapter.d.ts.map +1 -0
  48. package/dist/Declare/model/Collection.d.ts +55 -0
  49. package/dist/Declare/model/Collection.d.ts.map +1 -0
  50. package/dist/Declare/model/Declaration.d.ts +27 -0
  51. package/dist/Declare/model/Declaration.d.ts.map +1 -0
  52. package/dist/Declare/model/Menu.d.ts +21 -0
  53. package/dist/Declare/model/Menu.d.ts.map +1 -0
  54. package/dist/Declare/model/Query.d.ts +56 -0
  55. package/dist/Declare/model/Query.d.ts.map +1 -0
  56. package/dist/Declare/model/Row.d.ts +129 -0
  57. package/dist/Declare/model/Row.d.ts.map +1 -0
  58. package/dist/Declare/model/Source.d.ts +83 -0
  59. package/dist/Declare/model/Source.d.ts.map +1 -0
  60. package/dist/Declare/usecase/apply.d.ts +23 -0
  61. package/dist/Declare/usecase/apply.d.ts.map +1 -0
  62. package/dist/Declare/usecase/project.d.ts +66 -0
  63. package/dist/Declare/usecase/project.d.ts.map +1 -0
  64. package/dist/Declare/usecase/reconcile.d.ts +63 -0
  65. package/dist/Declare/usecase/reconcile.d.ts.map +1 -0
  66. package/dist/Flow/model/forms.d.ts +45 -0
  67. package/dist/Flow/model/forms.d.ts.map +1 -0
  68. package/dist/Flow/model/run.d.ts +74 -0
  69. package/dist/Flow/model/run.d.ts.map +1 -0
  70. package/dist/Flow/model/script.d.ts +279 -0
  71. package/dist/Flow/model/script.d.ts.map +1 -0
  72. package/dist/Flow/usecase/interpret.d.ts +17 -0
  73. package/dist/Flow/usecase/interpret.d.ts.map +1 -0
  74. package/dist/Flow/usecase/read.d.ts +46 -0
  75. package/dist/Flow/usecase/read.d.ts.map +1 -0
  76. package/dist/Form/index.d.ts +14 -0
  77. package/dist/Form/index.d.ts.map +1 -0
  78. package/dist/Form/model/control.d.ts +9 -0
  79. package/dist/Form/model/control.d.ts.map +1 -0
  80. package/dist/Form/model/submission.d.ts +30 -0
  81. package/dist/Form/model/submission.d.ts.map +1 -0
  82. package/dist/Form/usecase/controlParts.d.ts +30 -0
  83. package/dist/Form/usecase/controlParts.d.ts.map +1 -0
  84. package/dist/Form/usecase/formView.d.ts +21 -0
  85. package/dist/Form/usecase/formView.d.ts.map +1 -0
  86. package/dist/Form/usecase/parseForm.d.ts +28 -0
  87. package/dist/Form/usecase/parseForm.d.ts.map +1 -0
  88. package/dist/Layout/index.d.ts +16 -0
  89. package/dist/Layout/index.d.ts.map +1 -0
  90. package/dist/Layout/model/pane.d.ts +15 -0
  91. package/dist/Layout/model/pane.d.ts.map +1 -0
  92. package/dist/Layout/usecase/combinators.d.ts +49 -0
  93. package/dist/Layout/usecase/combinators.d.ts.map +1 -0
  94. package/dist/Meta/model/identity.d.ts +16 -0
  95. package/dist/Meta/model/identity.d.ts.map +1 -0
  96. package/dist/Render/index.d.ts +17 -0
  97. package/dist/Render/index.d.ts.map +1 -0
  98. package/dist/Render/model/mode.d.ts +13 -0
  99. package/dist/Render/model/mode.d.ts.map +1 -0
  100. package/dist/Render/model/screen.d.ts +27 -0
  101. package/dist/Render/model/screen.d.ts.map +1 -0
  102. package/dist/Render/usecase/multiColumn.d.ts +52 -0
  103. package/dist/Render/usecase/multiColumn.d.ts.map +1 -0
  104. package/dist/Render/usecase/parts.d.ts +56 -0
  105. package/dist/Render/usecase/parts.d.ts.map +1 -0
  106. package/dist/Render/usecase/renderMode.d.ts +17 -0
  107. package/dist/Render/usecase/renderMode.d.ts.map +1 -0
  108. package/dist/Render/usecase/singleColumn.d.ts +20 -0
  109. package/dist/Render/usecase/singleColumn.d.ts.map +1 -0
  110. package/dist/Schedule/model/Model.d.ts +103 -0
  111. package/dist/Schedule/model/Model.d.ts.map +1 -0
  112. package/dist/Schedule/model/Msg.d.ts +131 -0
  113. package/dist/Schedule/model/Msg.d.ts.map +1 -0
  114. package/dist/Schedule/model/Scene.d.ts +190 -0
  115. package/dist/Schedule/model/Scene.d.ts.map +1 -0
  116. package/dist/Schedule/model/View.d.ts +54 -0
  117. package/dist/Schedule/model/View.d.ts.map +1 -0
  118. package/dist/Schedule/usecase/chain.d.ts +16 -0
  119. package/dist/Schedule/usecase/chain.d.ts.map +1 -0
  120. package/dist/Schedule/usecase/codec.d.ts +44 -0
  121. package/dist/Schedule/usecase/codec.d.ts.map +1 -0
  122. package/dist/Schedule/usecase/lower.d.ts +45 -0
  123. package/dist/Schedule/usecase/lower.d.ts.map +1 -0
  124. package/dist/Schedule/usecase/scene.d.ts +16 -0
  125. package/dist/Schedule/usecase/scene.d.ts.map +1 -0
  126. package/dist/Schedule/usecase/schedule.d.ts +72 -0
  127. package/dist/Schedule/usecase/schedule.d.ts.map +1 -0
  128. package/dist/Schedule/usecase/update.d.ts +39 -0
  129. package/dist/Schedule/usecase/update.d.ts.map +1 -0
  130. package/dist/Style/index.d.ts +30 -0
  131. package/dist/Style/index.d.ts.map +1 -0
  132. package/dist/Style/model/appearance.d.ts +23 -0
  133. package/dist/Style/model/appearance.d.ts.map +1 -0
  134. package/dist/Style/model/breakpoint.d.ts +43 -0
  135. package/dist/Style/model/breakpoint.d.ts.map +1 -0
  136. package/dist/Style/model/hexColor.d.ts +24 -0
  137. package/dist/Style/model/hexColor.d.ts.map +1 -0
  138. package/dist/Style/model/metric.d.ts +35 -0
  139. package/dist/Style/model/metric.d.ts.map +1 -0
  140. package/dist/Style/model/palette.d.ts +38 -0
  141. package/dist/Style/model/palette.d.ts.map +1 -0
  142. package/dist/Style/model/scheme.d.ts +26 -0
  143. package/dist/Style/model/scheme.d.ts.map +1 -0
  144. package/dist/Style/model/syntax.d.ts +54 -0
  145. package/dist/Style/model/syntax.d.ts.map +1 -0
  146. package/dist/Style/model/theme.d.ts +58 -0
  147. package/dist/Style/model/theme.d.ts.map +1 -0
  148. package/dist/Style/model/token.d.ts +142 -0
  149. package/dist/Style/model/token.d.ts.map +1 -0
  150. package/dist/Style/model/typography.d.ts +83 -0
  151. package/dist/Style/model/typography.d.ts.map +1 -0
  152. package/dist/Style/model/zIndex.d.ts +25 -0
  153. package/dist/Style/model/zIndex.d.ts.map +1 -0
  154. package/dist/Style/usecase/appearanceScript.d.ts +43 -0
  155. package/dist/Style/usecase/appearanceScript.d.ts.map +1 -0
  156. package/dist/Style/usecase/chromeCss.d.ts +41 -0
  157. package/dist/Style/usecase/chromeCss.d.ts.map +1 -0
  158. package/dist/Style/usecase/contrast.d.ts +3 -0
  159. package/dist/Style/usecase/contrast.d.ts.map +1 -0
  160. package/dist/Style/usecase/metricCss.d.ts +17 -0
  161. package/dist/Style/usecase/metricCss.d.ts.map +1 -0
  162. package/dist/Style/usecase/reducedMotion.d.ts +20 -0
  163. package/dist/Style/usecase/reducedMotion.d.ts.map +1 -0
  164. package/dist/Style/usecase/schemeCss.d.ts +25 -0
  165. package/dist/Style/usecase/schemeCss.d.ts.map +1 -0
  166. package/dist/Style/usecase/syntaxCss.d.ts +14 -0
  167. package/dist/Style/usecase/syntaxCss.d.ts.map +1 -0
  168. package/dist/Style/usecase/utilities.d.ts +98 -0
  169. package/dist/Style/usecase/utilities.d.ts.map +1 -0
  170. package/dist/brand.d.ts +29 -0
  171. package/dist/brand.d.ts.map +1 -0
  172. package/dist/index.d.ts +52 -13
  173. package/dist/index.d.ts.map +1 -1
  174. package/dist/index.es.js +4369 -407
  175. package/dist/styleEntry.d.ts +29 -0
  176. package/dist/styleEntry.d.ts.map +1 -0
  177. package/dist/styleEntry.es.js +1036 -0
  178. package/package.json +17 -22
  179. package/dist/App/model/AppError.d.ts +0 -31
  180. package/dist/App/model/AppError.d.ts.map +0 -1
  181. package/dist/App/model/AppOptions.d.ts +0 -31
  182. package/dist/App/model/AppOptions.d.ts.map +0 -1
  183. package/dist/Build/usecase/build.d.ts +0 -48
  184. package/dist/Build/usecase/build.d.ts.map +0 -1
  185. package/dist/Cli/usecase/resolveOptions.d.ts +0 -27
  186. package/dist/Cli/usecase/resolveOptions.d.ts.map +0 -1
  187. package/dist/Cli/usecase/runApp.d.ts +0 -39
  188. package/dist/Cli/usecase/runApp.d.ts.map +0 -1
  189. package/dist/Config/usecase/fixtures/invalid.config.d.ts +0 -5
  190. package/dist/Config/usecase/fixtures/invalid.config.d.ts.map +0 -1
  191. package/dist/Config/usecase/fixtures/named-only.config.d.ts +0 -2
  192. package/dist/Config/usecase/fixtures/named-only.config.d.ts.map +0 -1
  193. package/dist/Config/usecase/fixtures/throws.config.d.ts +0 -2
  194. package/dist/Config/usecase/fixtures/throws.config.d.ts.map +0 -1
  195. package/dist/Config/usecase/fixtures/valid.config.d.ts +0 -5
  196. package/dist/Config/usecase/fixtures/valid.config.d.ts.map +0 -1
  197. package/dist/Config/usecase/loadConfig.d.ts +0 -15
  198. package/dist/Config/usecase/loadConfig.d.ts.map +0 -1
  199. package/dist/Routing/usecase/buildRouter.d.ts +0 -17
  200. package/dist/Routing/usecase/buildRouter.d.ts.map +0 -1
  201. package/dist/ssg.d.ts +0 -2
  202. package/dist/ssg.d.ts.map +0 -1
  203. package/dist/ssg.es.js +0 -54
  204. package/dist/style.d.ts +0 -2
  205. package/dist/style.d.ts.map +0 -1
  206. package/dist/style.es.js +0 -98
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "plggmatic",
3
- "version": "0.0.1",
4
- "description": "A pre-organized, lightweight, composable full-stack web application framework built on the plgg family: config loading, a router builder, static-build + dev-server orchestration, and a pre-organized CLI — the framework-generic seam an app supplies its content/render specifics to.",
3
+ "version": "0.2.0",
4
+ "description": "A column-oriented UI design framework on the plgg family: pane alignment, a typed light/dark color scheme, and fundamental components as pure functions returning plgg-view Html",
5
5
  "type": "module",
6
- "files": [
7
- "dist"
8
- ],
9
6
  "main": "dist/index.es.js",
10
7
  "module": "dist/index.es.js",
11
8
  "exports": {
@@ -13,18 +10,18 @@
13
10
  "types": "./dist/index.d.ts",
14
11
  "default": "./dist/index.es.js"
15
12
  },
16
- "./ssg": {
17
- "types": "./dist/ssg.d.ts",
18
- "default": "./dist/ssg.es.js"
19
- },
20
13
  "./style": {
21
- "types": "./dist/style.d.ts",
22
- "default": "./dist/style.es.js"
14
+ "types": "./dist/styleEntry.d.ts",
15
+ "default": "./dist/styleEntry.es.js"
23
16
  }
24
17
  },
25
18
  "types": "dist/index.d.ts",
19
+ "files": [
20
+ "dist"
21
+ ],
26
22
  "scripts": {
27
23
  "build": "plgg-bundle",
24
+ "prepack": "plgg-bundle",
28
25
  "test": "tsc --noEmit && plgg-test src",
29
26
  "tsc": "tsc --noEmit",
30
27
  "tsc:watch": "tsc --noEmit --watch",
@@ -34,27 +31,25 @@
34
31
  },
35
32
  "repository": {
36
33
  "type": "git",
37
- "url": "git+https://github.com/qmu/plgg.git"
34
+ "url": "git+https://github.com/qmu/qfs-viewer.git"
38
35
  },
39
36
  "author": "qmu",
40
37
  "license": "MIT",
41
38
  "bugs": {
42
- "url": "https://github.com/qmu/plgg/issues"
39
+ "url": "https://github.com/qmu/qfs-viewer/issues"
43
40
  },
44
- "homepage": "https://github.com/qmu/plgg#readme",
41
+ "homepage": "https://github.com/qmu/qfs-viewer#readme",
45
42
  "dependencies": {
46
43
  "plgg": "^0.0.27",
47
- "plgg-http": "^0.0.1",
48
- "plgg-server": "^0.0.2",
49
- "plgg-view": "^0.0.1",
50
- "plgg-md": "^0.0.1",
51
- "plgg-highlight": "^0.0.1",
52
- "plgg-cli": "^0.0.1"
44
+ "plgg-ir-language": "^0.0.1",
45
+ "plgg-ir-manifest": "^0.0.1",
46
+ "plgg-ir-syntax": "^0.0.1",
47
+ "plgg-view": "^0.0.2"
53
48
  },
54
49
  "devDependencies": {
55
50
  "@types/node": "^25.6.0",
56
- "plgg-bundle": "^0.0.2",
57
- "plgg-test": "^0.0.2",
51
+ "plgg-bundle": "^0.0.6",
52
+ "plgg-test": "^0.0.5",
58
53
  "typescript": "^6.0.3"
59
54
  }
60
55
  }
@@ -1,31 +0,0 @@
1
- import { type Box, type SoftStr, type Option, type InvalidError } from "plgg";
2
- /**
3
- * A failure while loading the consumer app's config
4
- * module: the file was missing, threw on import, or its
5
- * default export did not validate through the app-supplied
6
- * caster. `cause` carries the underlying {@link
7
- * InvalidError} when the failure was a validation miss.
8
- * Result-style, so config loading never throws.
9
- */
10
- export type ConfigLoadError = Box<"ConfigLoadError", {
11
- message: SoftStr;
12
- cause: Option<InvalidError>;
13
- }>;
14
- /**
15
- * Constructs a {@link ConfigLoadError}. `cause` is the
16
- * validation error when present.
17
- */
18
- export declare const configLoadError: ({ message, cause, }: {
19
- message: SoftStr;
20
- cause?: InvalidError;
21
- }) => ConfigLoadError;
22
- /**
23
- * Pattern matcher for folding a {@link ConfigLoadError}
24
- * with `match` by tag.
25
- */
26
- export declare const configLoadError$: () => {
27
- __tag: "ConfigLoadError";
28
- type: "tag";
29
- body: undefined;
30
- };
31
- //# sourceMappingURL=AppError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppError.d.ts","sourceRoot":"","sources":["../../../src/App/model/AppError.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,YAAY,EAIlB,MAAM,MAAM,CAAC;AAEd;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GAAG,GAAG,CAC/B,iBAAiB,EACjB;IACE,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;CAC7B,CACF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,qBAG7B;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB,KAAG,eAIA,CAAC;AAEL;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;CACC,CAAC"}
@@ -1,31 +0,0 @@
1
- import { type SoftStr } from "plgg";
2
- /**
3
- * The resolved inputs a single framework `build`/`dev` run
4
- * operates on — the framework-generic generalization of an
5
- * app's run-input contract. The pre-organized CLI fills
6
- * these from cwd defaults + flags; the programmatic API
7
- * takes them directly. Pure data, and deliberately free of
8
- * any app-specific config type: the app closes its own
9
- * validated config over the router factory it hands the
10
- * framework, so {@link AppOptions} stays generic.
11
- *
12
- * - `contentDir` — root of the authored content corpus.
13
- * - `outDir` — where the built site is written.
14
- * - `assetsDir` — static files copied verbatim.
15
- * - `base` — the deploy base path (e.g. `/plgg/`).
16
- */
17
- export type AppOptions = Readonly<{
18
- contentDir: SoftStr;
19
- outDir: SoftStr;
20
- assetsDir: SoftStr;
21
- base: SoftStr;
22
- }>;
23
- /**
24
- * The outcome of a successful `build`: where it wrote and
25
- * the output paths it emitted.
26
- */
27
- export type BuildReport = Readonly<{
28
- outDir: SoftStr;
29
- pages: ReadonlyArray<SoftStr>;
30
- }>;
31
- //# sourceMappingURL=AppOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppOptions.d.ts","sourceRoot":"","sources":["../../../src/App/model/AppOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpC;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CAC/B,CAAC,CAAC"}
@@ -1,48 +0,0 @@
1
- import { type SoftStr, type PromisedResult, type Defect, type Option } from "plgg";
2
- import { type Web } from "plgg-server";
3
- import { type SsgError } from "plgg-server/ssg";
4
- import { type AppOptions, type BuildReport } from "../../App/model/AppOptions";
5
- /**
6
- * The app-supplied pieces a static build needs from its
7
- * consumer:
8
- *
9
- * - `router` — a factory turning the discovered route set
10
- * into a plgg-server {@link Web} app (the app's
11
- * content→render→layout specifics, assembled via
12
- * {@link buildRouter}).
13
- * - `notFoundHtml` — the already-rendered 404 body written
14
- * as `outDir/404.html` (the framework never renders — the
15
- * app owns its theme).
16
- * - `linkCheck` — an OPTIONAL policy run after discovery
17
- * and BEFORE anything is written, so a broken link fails
18
- * the build as data; `none()` skips it.
19
- */
20
- export type BuildSpec<E> = Readonly<{
21
- router: (paths: ReadonlyArray<SoftStr>) => Web;
22
- notFoundHtml: SoftStr;
23
- linkCheck: Option<(paths: ReadonlyArray<SoftStr>) => PromisedResult<unknown, E>>;
24
- }>;
25
- /**
26
- * Build the static site from a content corpus into
27
- * `opts.outDir`, as one typed transform pipeline that
28
- * never throws:
29
- *
30
- * 1. {@link discoverPaths} crawls the corpus for route
31
- * paths;
32
- * 1b. the optional `spec.linkCheck` validates the routes
33
- * BEFORE anything is written — an `Err` (an app-typed
34
- * `E`) fails the build;
35
- * 2. {@link generateStatic} renders every path through the
36
- * app's `spec.router` and writes each to
37
- * `outDir/<path>/index.html`;
38
- * 3. {@link copyAssets} mirrors `assetsDir` verbatim;
39
- * 4. {@link write404} persists `spec.notFoundHtml` as
40
- * `outDir/404.html`.
41
- *
42
- * The framework owns the orchestration; the app supplies
43
- * the router factory, the 404 body, and any link-check
44
- * policy. The error channel folds to
45
- * `SsgError | Defect | E` at the edge.
46
- */
47
- export declare const build: <E>(opts: AppOptions, spec: BuildSpec<E>) => PromisedResult<BuildReport, SsgError | Defect | E>;
48
- //# sourceMappingURL=build.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/Build/usecase/build.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EAEZ,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,MAAM,EAKZ,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,KAAK,QAAQ,EAKd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,UAAU,EACf,KAAK,WAAW,EACjB,MAAM,gCAAgC,CAAC;AAExC;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,QAAQ,CAAC;IAClC,MAAM,EAAE,CACN,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,KAC1B,GAAG,CAAC;IACT,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,MAAM,CACf,CACE,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,KAC1B,cAAc,CAAC,OAAO,EAAE,CAAC,CAAC,CAChC,CAAC;CACH,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,KAAK,GAAI,CAAC,EACrB,MAAM,UAAU,EAChB,MAAM,SAAS,CAAC,CAAC,CAAC,KACjB,cAAc,CACf,WAAW,EACX,QAAQ,GAAG,MAAM,GAAG,CAAC,CAkFpB,CAAC"}
@@ -1,27 +0,0 @@
1
- import { type SoftStr } from "plgg";
2
- import { type Invocation } from "plgg-cli";
3
- import { type AppOptions } from "../../App/model/AppOptions";
4
- /**
5
- * The app-specific bit the framework cannot derive from
6
- * cwd + flags: the deploy `base`, read from the app's
7
- * validated config. The framework fills every other
8
- * {@link AppOptions} field.
9
- */
10
- export type AppRunContext = Readonly<{
11
- base: SoftStr;
12
- }>;
13
- /**
14
- * The config path for this run: `--config <path>` or the
15
- * cwd default `configFile` (the app names its own default,
16
- * e.g. `site.config.ts`).
17
- */
18
- export declare const configPathOf: (invocation: Invocation, configFile: SoftStr) => SoftStr;
19
- /**
20
- * Resolve {@link AppOptions} from cwd defaults, the parsed
21
- * invocation flags, and the app's {@link AppRunContext}.
22
- * `contentDir` defaults to cwd, `outDir` to `<cwd>/dist`,
23
- * `assetsDir` to `<contentDir>/public`; `base` and
24
- * `allowedHosts` come from the app config via `ctx`.
25
- */
26
- export declare const resolveOptions: (invocation: Invocation, ctx: AppRunContext) => AppOptions;
27
- //# sourceMappingURL=resolveOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveOptions.d.ts","sourceRoot":"","sources":["../../../src/Cli/usecase/resolveOptions.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IACnC,IAAI,EAAE,OAAO,CAAC;CACf,CAAC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,YAAY,GACvB,YAAY,UAAU,EACtB,YAAY,OAAO,KAClB,OAIA,CAAC;AAEJ;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GACzB,YAAY,UAAU,EACtB,KAAK,aAAa,KACjB,UAeF,CAAC"}
@@ -1,39 +0,0 @@
1
- import { type SoftStr, type Defect, type PromisedResult } from "plgg";
2
- import { type SsgError } from "plgg-server/ssg";
3
- import { type AppOptions } from "../../App/model/AppOptions";
4
- import { type ConfigLoadError } from "../../App/model/AppError";
5
- import { type BuildSpec } from "../../Build/usecase/build";
6
- import { type AppRunContext } from "./resolveOptions";
7
- /**
8
- * The declaration an app hands the framework to get a
9
- * pre-organized `build`/`dev` CLI: how to load + validate
10
- * its config, how to map that config to the app-specific
11
- * run context (deploy base + dev hosts) and the build/dev
12
- * specs (router factory, 404 body, link-check), and how to
13
- * render its error union as a one-line shell message. The
14
- * framework brings all the wiring — argv parsing, command
15
- * dispatch, the usage banner, and the `Result`→exit-code
16
- * fold — so an app's `cli.ts` stays a thin declaration.
17
- */
18
- export type AppDefinition<Config, E> = Readonly<{
19
- name: SoftStr;
20
- description: SoftStr;
21
- /** default config filename (e.g. `site.config.ts`). */
22
- configFile: SoftStr;
23
- loadConfig: (path: SoftStr) => PromisedResult<Config, ConfigLoadError>;
24
- context: (config: Config) => AppRunContext;
25
- buildSpec: (config: Config, opts: AppOptions) => BuildSpec<E>;
26
- formatError: (e: SsgError | Defect | E) => SoftStr;
27
- }>;
28
- /**
29
- * The pre-organized CLI: wire a plgg-cli `build` program
30
- * onto the framework build from an {@link AppDefinition},
31
- * and hand it to plgg-cli's {@link runCli} (which owns argv
32
- * parsing, dispatch, the usage banner, and the
33
- * `Result`→exit-code fold). An app's `cli.ts` is then just
34
- * `await runApp(definition)`. Dev/hot-reload is a toolchain
35
- * concern (`plgg-bundle dev`), not the framework's, so
36
- * there is no `dev` command.
37
- */
38
- export declare const runApp: <Config, E>(def: AppDefinition<Config, E>) => Promise<void>;
39
- //# sourceMappingURL=runApp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runApp.d.ts","sourceRoot":"","sources":["../../../src/Cli/usecase/runApp.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEX,KAAK,cAAc,EAIpB,MAAM,MAAM,CAAC;AASd,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EACL,KAAK,SAAS,EAEf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,aAAa,EAGnB,MAAM,sCAAsC,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,CAAC,MAAM,EAAE,CAAC,IAAI,QAAQ,CAAC;IAC9C,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,uDAAuD;IACvD,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,CACV,IAAI,EAAE,OAAO,KACV,cAAc,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC7C,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,aAAa,CAAC;IAC3C,SAAS,EAAE,CACT,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,KACb,SAAS,CAAC,CAAC,CAAC,CAAC;IAClB,WAAW,EAAE,CACX,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,CAAC,KACrB,OAAO,CAAC;CACd,CAAC,CAAC;AAyEH;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,GAAI,MAAM,EAAE,CAAC,EAC9B,KAAK,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,KAC5B,OAAO,CAAC,IAAI,CAed,CAAC"}
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- name: number;
3
- };
4
- export default _default;
5
- //# sourceMappingURL=invalid.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invalid.config.d.ts","sourceRoot":"","sources":["../../../../src/Config/usecase/fixtures/invalid.config.ts"],"names":[],"mappings":";;;AAGA,wBAEE"}
@@ -1,2 +0,0 @@
1
- export declare const other = "x";
2
- //# sourceMappingURL=named-only.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"named-only.config.d.ts","sourceRoot":"","sources":["../../../../src/Config/usecase/fixtures/named-only.config.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,MAAM,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=throws.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"throws.config.d.ts","sourceRoot":"","sources":["../../../../src/Config/usecase/fixtures/throws.config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC"}
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- };
4
- export default _default;
5
- //# sourceMappingURL=valid.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"valid.config.d.ts","sourceRoot":"","sources":["../../../../src/Config/usecase/fixtures/valid.config.ts"],"names":[],"mappings":";;;AAEA,wBAEE"}
@@ -1,15 +0,0 @@
1
- import { type SoftStr, type PromisedResult, type Result, type InvalidError } from "plgg";
2
- import { type ConfigLoadError } from "../../App/model/AppError";
3
- /**
4
- * Load and validate the consumer app's config module from
5
- * a path, through the app-supplied boundary `cast`. The TS
6
- * source is loaded through the dynamic `import` Node strips
7
- * types on (the same hook the app's bin registers), so no
8
- * separate transpile step is needed. A missing file or an
9
- * import-time throw becomes a typed {@link ConfigLoadError}
10
- * — config loading never throws. The framework owns the
11
- * import + default-pick + typed-error machinery; the app
12
- * supplies its own config schema via `cast`.
13
- */
14
- export declare const loadConfig: <T>(path: SoftStr, cast: (value: unknown) => Result<T, InvalidError>) => PromisedResult<T, ConfigLoadError>;
15
- //# sourceMappingURL=loadConfig.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loadConfig.d.ts","sourceRoot":"","sources":["../../../src/Config/usecase/loadConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,YAAY,EAKlB,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,8BAA8B,CAAC;AA2CtC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,EAC1B,MAAM,OAAO,EACb,MAAM,CACJ,KAAK,EAAE,OAAO,KACX,MAAM,CAAC,CAAC,EAAE,YAAY,CAAC,KAC3B,cAAc,CAAC,CAAC,EAAE,eAAe,CAgBjC,CAAC"}
@@ -1,17 +0,0 @@
1
- import { type SoftStr } from "plgg";
2
- import { type Web, type Handler } from "plgg-server";
3
- /**
4
- * The framework-generic ROUTER BUILDER: fold a discovered
5
- * route set into a plgg-server {@link Web} app, binding
6
- * ONE GET route per path to the single app-supplied
7
- * {@link Handler}. Because the handler reads the request
8
- * path from its {@link Context}, one handler serves every
9
- * registered route — the app supplies its own
10
- * content-source + renderer + layout inside that handler;
11
- * the framework owns only the assembly. Built data-last
12
- * over the paths through `web()`/`get()`, so feeding the
13
- * same `paths` to `generateStatic` renders exactly the
14
- * routes registered here.
15
- */
16
- export declare const buildRouter: (paths: ReadonlyArray<SoftStr>, handler: Handler) => Web;
17
- //# sourceMappingURL=buildRouter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildRouter.d.ts","sourceRoot":"","sources":["../../../src/Routing/usecase/buildRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,KAAK,GAAG,EACR,KAAK,OAAO,EAGb,MAAM,aAAa,CAAC;AAErB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,GACtB,OAAO,aAAa,CAAC,OAAO,CAAC,EAC7B,SAAS,OAAO,KACf,GAKA,CAAC"}
package/dist/ssg.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "plgg-server/ssg";
2
- //# sourceMappingURL=ssg.d.ts.map
package/dist/ssg.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"ssg.d.ts","sourceRoot":"","sources":["../src/ssg.ts"],"names":[],"mappings":"AAMA,cAAc,iBAAiB,CAAC"}
package/dist/ssg.es.js DELETED
@@ -1,54 +0,0 @@
1
- import * as __ext0 from "plgg-server/ssg";
2
- const __externals = {
3
- "plgg-server/ssg": __ext0
4
- };
5
- const __modules = {
6
- "src/ssg.ts": function (module, exports, require) {
7
- "use strict";
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("plgg-server/ssg"), exports);
24
-
25
- }
26
- };
27
- const __cache = {};
28
- function __require(id) {
29
- if (id in __cache) return __cache[id].exports;
30
- const fn = __modules[id];
31
- if (!fn) { if (id in __externals) return __externals[id]; return import(id); }
32
- const module = { exports: {} };
33
- __cache[id] = module;
34
- fn(module, module.exports, __require);
35
- return module.exports;
36
- }
37
- const __entry = __require("src/ssg.ts");
38
- export default __entry;
39
- export const {
40
- copyAssets,
41
- discoverPaths,
42
- generateStatic,
43
- nonHtmlBody,
44
- nonHtmlBody$,
45
- nonOkStatus,
46
- nonOkStatus$,
47
- renderFailed,
48
- renderFailed$,
49
- ssgPage,
50
- write404,
51
- writeFailed,
52
- writeFailed$,
53
- writeStatic
54
- } = __entry;
package/dist/style.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from "plgg-view/style";
2
- //# sourceMappingURL=style.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../src/style.ts"],"names":[],"mappings":"AAMA,cAAc,iBAAiB,CAAC"}
package/dist/style.es.js DELETED
@@ -1,98 +0,0 @@
1
- import * as __ext0 from "plgg-view/style";
2
- const __externals = {
3
- "plgg-view/style": __ext0
4
- };
5
- const __modules = {
6
- "src/style.ts": function (module, exports, require) {
7
- "use strict";
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("plgg-view/style"), exports);
24
-
25
- }
26
- };
27
- const __cache = {};
28
- function __require(id) {
29
- if (id in __cache) return __cache[id].exports;
30
- const fn = __modules[id];
31
- if (!fn) { if (id in __externals) return __externals[id]; return import(id); }
32
- const module = { exports: {} };
33
- __cache[id] = module;
34
- fn(module, module.exports, __require);
35
- return module.exports;
36
- }
37
- const __entry = __require("src/style.ts");
38
- export default __entry;
39
- export const {
40
- active,
41
- alignValue,
42
- bg,
43
- block,
44
- border,
45
- borderColor,
46
- center,
47
- color,
48
- colorValue,
49
- decl,
50
- flex,
51
- flexCol,
52
- focus,
53
- fontSizeValue,
54
- gap,
55
- grid,
56
- grow,
57
- h,
58
- hFull,
59
- hashClass,
60
- hover,
61
- inlineFlex,
62
- items,
63
- justify,
64
- justifyValue,
65
- left,
66
- listNone,
67
- m,
68
- maxW,
69
- mb,
70
- minW,
71
- ml,
72
- mr,
73
- mt,
74
- mx,
75
- my,
76
- opacity,
77
- outline,
78
- p,
79
- pb,
80
- pl,
81
- pointer,
82
- pr,
83
- pt,
84
- px,
85
- py,
86
- radiusValue,
87
- right,
88
- rounded,
89
- shadow,
90
- shadowValue,
91
- spacing,
92
- style_,
93
- text,
94
- w,
95
- wFull,
96
- weight,
97
- wrap
98
- } = __entry;