@mailwoman/react 9.3.0 → 9.4.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 (159) hide show
  1. package/fonts.css +59 -0
  2. package/lib/common/About.tsx +89 -0
  3. package/lib/common/KindBadge.tsx +2 -7
  4. package/lib/common/confidence-tiers.ts +50 -0
  5. package/lib/common/text-tokens.ts +88 -0
  6. package/lib/index.ts +30 -28
  7. package/lib/map/CompareToggle.tsx +2 -2
  8. package/lib/map/{GeocoderDemo.tsx → Geocoder.tsx} +40 -40
  9. package/lib/map/{DemoControls.tsx → GeocoderControls.tsx} +16 -17
  10. package/lib/map/{DemoMap.tsx → MapCanvas.tsx} +15 -15
  11. package/lib/map/PlaceMarker.tsx +1 -1
  12. package/lib/map/ResolvedPlaceLayers.tsx +3 -3
  13. package/lib/map/ResultCamera.tsx +1 -1
  14. package/lib/map/ResultPanel.tsx +2 -2
  15. package/lib/map/VersionPicker.tsx +3 -3
  16. package/lib/map/fake-runtime.ts +122 -0
  17. package/lib/map/index.ts +16 -16
  18. package/lib/map/map-debug.ts +51 -0
  19. package/lib/map/place-render.ts +3 -2
  20. package/lib/map/types.ts +41 -39
  21. package/lib/map/{useDemoGeocode.ts → useGeocode.ts} +8 -8
  22. package/lib/pipeline/CandidatePicker.tsx +1 -1
  23. package/lib/pipeline/ComponentTable.tsx +1 -2
  24. package/lib/pipeline/ConfidenceCell.tsx +7 -19
  25. package/lib/pipeline/FailureDiagnostic.tsx +56 -0
  26. package/lib/pipeline/ResolvedPlace.tsx +17 -4
  27. package/lib/pipeline/SpanHighlight.tsx +97 -0
  28. package/lib/pipeline/TimingPanel.tsx +65 -0
  29. package/lib/pipeline/TreeView.tsx +55 -0
  30. package/lib/pipeline/copy.ts +1 -1
  31. package/lib/pipeline/types.ts +2 -75
  32. package/lib/pipeline/useParsePipeline.ts +2 -1
  33. package/lib/poi/types.ts +2 -1
  34. package/lib/runtime/{useDemoRuntime.ts → useReleaseRuntime.ts} +22 -24
  35. package/out/common/About.d.ts +12 -0
  36. package/out/common/About.d.ts.map +1 -0
  37. package/out/common/About.js +5 -0
  38. package/out/common/About.js.map +1 -0
  39. package/out/common/KindBadge.d.ts +2 -9
  40. package/out/common/KindBadge.d.ts.map +1 -1
  41. package/out/common/KindBadge.js.map +1 -1
  42. package/out/common/confidence-tiers.d.ts +36 -0
  43. package/out/common/confidence-tiers.d.ts.map +1 -0
  44. package/out/common/confidence-tiers.js +42 -0
  45. package/out/common/confidence-tiers.js.map +1 -0
  46. package/out/common/text-tokens.d.ts +46 -0
  47. package/out/common/text-tokens.d.ts.map +1 -0
  48. package/out/common/text-tokens.js +52 -0
  49. package/out/common/text-tokens.js.map +1 -0
  50. package/out/index.d.ts +14 -5
  51. package/out/index.d.ts.map +1 -1
  52. package/out/index.js +8 -2
  53. package/out/index.js.map +1 -1
  54. package/out/map/CompareToggle.d.ts +2 -2
  55. package/out/map/CompareToggle.d.ts.map +1 -1
  56. package/out/map/{GeocoderDemo.d.ts → Geocoder.d.ts} +17 -17
  57. package/out/map/Geocoder.d.ts.map +1 -0
  58. package/out/map/{GeocoderDemo.js → Geocoder.js} +25 -25
  59. package/out/map/Geocoder.js.map +1 -0
  60. package/out/map/{DemoControls.d.ts → GeocoderControls.d.ts} +16 -17
  61. package/out/map/GeocoderControls.d.ts.map +1 -0
  62. package/out/map/{DemoControls.js → GeocoderControls.js} +2 -2
  63. package/out/map/GeocoderControls.js.map +1 -0
  64. package/out/map/{DemoMap.d.ts → MapCanvas.d.ts} +15 -15
  65. package/out/map/MapCanvas.d.ts.map +1 -0
  66. package/out/map/{DemoMap.js → MapCanvas.js} +2 -2
  67. package/out/map/MapCanvas.js.map +1 -0
  68. package/out/map/PlaceMarker.d.ts +1 -1
  69. package/out/map/ResolvedPlaceLayers.d.ts +3 -3
  70. package/out/map/ResultCamera.d.ts +1 -1
  71. package/out/map/ResultCamera.js +1 -1
  72. package/out/map/ResultPanel.d.ts +2 -2
  73. package/out/map/ResultPanel.d.ts.map +1 -1
  74. package/out/map/ResultPanel.js.map +1 -1
  75. package/out/map/VersionPicker.d.ts +3 -3
  76. package/out/map/VersionPicker.d.ts.map +1 -1
  77. package/out/map/fake-runtime.d.ts +38 -0
  78. package/out/map/fake-runtime.d.ts.map +1 -0
  79. package/out/map/fake-runtime.js +107 -0
  80. package/out/map/fake-runtime.js.map +1 -0
  81. package/out/map/index.d.ts +10 -10
  82. package/out/map/index.d.ts.map +1 -1
  83. package/out/map/index.js +6 -6
  84. package/out/map/index.js.map +1 -1
  85. package/out/map/map-debug.d.ts +31 -0
  86. package/out/map/map-debug.d.ts.map +1 -0
  87. package/out/map/map-debug.js +31 -0
  88. package/out/map/map-debug.js.map +1 -0
  89. package/out/map/place-render.d.ts +2 -2
  90. package/out/map/place-render.d.ts.map +1 -1
  91. package/out/map/place-render.js +1 -1
  92. package/out/map/place-render.js.map +1 -1
  93. package/out/map/types.d.ts +41 -39
  94. package/out/map/types.d.ts.map +1 -1
  95. package/out/map/types.js +5 -5
  96. package/out/map/{useDemoGeocode.d.ts → useGeocode.d.ts} +9 -9
  97. package/out/map/useGeocode.d.ts.map +1 -0
  98. package/out/map/{useDemoGeocode.js → useGeocode.js} +4 -4
  99. package/out/map/useGeocode.js.map +1 -0
  100. package/out/pipeline/CandidatePicker.d.ts +1 -1
  101. package/out/pipeline/CandidatePicker.d.ts.map +1 -1
  102. package/out/pipeline/CandidatePicker.js.map +1 -1
  103. package/out/pipeline/ComponentTable.d.ts +1 -1
  104. package/out/pipeline/ComponentTable.d.ts.map +1 -1
  105. package/out/pipeline/ComponentTable.js.map +1 -1
  106. package/out/pipeline/ConfidenceCell.d.ts +2 -2
  107. package/out/pipeline/ConfidenceCell.d.ts.map +1 -1
  108. package/out/pipeline/ConfidenceCell.js +4 -16
  109. package/out/pipeline/ConfidenceCell.js.map +1 -1
  110. package/out/pipeline/FailureDiagnostic.d.ts +15 -0
  111. package/out/pipeline/FailureDiagnostic.d.ts.map +1 -0
  112. package/out/pipeline/FailureDiagnostic.js +21 -0
  113. package/out/pipeline/FailureDiagnostic.js.map +1 -0
  114. package/out/pipeline/ResolvedPlace.d.ts +1 -1
  115. package/out/pipeline/ResolvedPlace.d.ts.map +1 -1
  116. package/out/pipeline/ResolvedPlace.js +4 -10
  117. package/out/pipeline/ResolvedPlace.js.map +1 -1
  118. package/out/pipeline/SpanHighlight.d.ts +23 -0
  119. package/out/pipeline/SpanHighlight.d.ts.map +1 -0
  120. package/out/pipeline/SpanHighlight.js +31 -0
  121. package/out/pipeline/SpanHighlight.js.map +1 -0
  122. package/out/pipeline/TimingPanel.d.ts +16 -0
  123. package/out/pipeline/TimingPanel.d.ts.map +1 -0
  124. package/out/pipeline/TimingPanel.js +20 -0
  125. package/out/pipeline/TimingPanel.js.map +1 -0
  126. package/out/pipeline/TreeView.d.ts +17 -0
  127. package/out/pipeline/TreeView.d.ts.map +1 -0
  128. package/out/pipeline/TreeView.js +15 -0
  129. package/out/pipeline/TreeView.js.map +1 -0
  130. package/out/pipeline/copy.d.ts +1 -1
  131. package/out/pipeline/copy.d.ts.map +1 -1
  132. package/out/pipeline/types.d.ts +2 -68
  133. package/out/pipeline/types.d.ts.map +1 -1
  134. package/out/pipeline/types.js +1 -1
  135. package/out/pipeline/useParsePipeline.d.ts +2 -1
  136. package/out/pipeline/useParsePipeline.d.ts.map +1 -1
  137. package/out/pipeline/useParsePipeline.js.map +1 -1
  138. package/out/poi/types.d.ts +2 -1
  139. package/out/poi/types.d.ts.map +1 -1
  140. package/out/runtime/{useDemoRuntime.d.ts → useReleaseRuntime.d.ts} +18 -20
  141. package/out/runtime/useReleaseRuntime.d.ts.map +1 -0
  142. package/out/runtime/{useDemoRuntime.js → useReleaseRuntime.js} +4 -4
  143. package/out/runtime/useReleaseRuntime.js.map +1 -0
  144. package/package.json +139 -29
  145. package/styleframe.config.ts +321 -0
  146. package/styles.css +1074 -664
  147. package/tokens/index.css +115 -0
  148. package/tokens/tokens.json +521 -0
  149. package/tokens/tokens.resolver.json +185 -0
  150. package/out/map/DemoControls.d.ts.map +0 -1
  151. package/out/map/DemoControls.js.map +0 -1
  152. package/out/map/DemoMap.d.ts.map +0 -1
  153. package/out/map/DemoMap.js.map +0 -1
  154. package/out/map/GeocoderDemo.d.ts.map +0 -1
  155. package/out/map/GeocoderDemo.js.map +0 -1
  156. package/out/map/useDemoGeocode.d.ts.map +0 -1
  157. package/out/map/useDemoGeocode.js.map +0 -1
  158. package/out/runtime/useDemoRuntime.d.ts.map +0 -1
  159. package/out/runtime/useDemoRuntime.js.map +0 -1
@@ -8,7 +8,8 @@
8
8
  * INJECTED async function ({@link POILiveSearch}) so the httpvfs/worker implementation stays out of this
9
9
  * package's browser graph (it lives in the docs site, which knows where the layer is served).
10
10
  */
11
- import type { POIPhraseLookup, QueryKindResult, createKindClassifier } from "@mailwoman/kind-classifier";
11
+ import type { QueryKindResult } from "@mailwoman/core/pipeline";
12
+ import type { POIPhraseLookup, createKindClassifier } from "@mailwoman/kind-classifier";
12
13
  import type { createPOITaxonomyLookup } from "@mailwoman/poi-taxonomy/table";
13
14
  export type TaxonomyLookup = ReturnType<typeof createPOITaxonomyLookup>;
14
15
  export type CategoryRecord = NonNullable<ReturnType<TaxonomyLookup["getPOICategory"]>>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../lib/poi/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACxG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAE5E,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEvE,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,UAAU,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAA;AAEtF;;GAEG;AACH,MAAM,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AU,EAAE,MAAM,CAAA;CAAE,GAC/D;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACtC;IAAE,MAAM,EAAE,aAAa,CAAA;CAAE,CAAA;AAE5B;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,mBAAmB,EAAE,MAAM,EAAE,CAAA;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACtB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAA;AAElC;;GAEG;AACH,MAAM,MAAM,eAAe,GACxB;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAClB;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,GACrB;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,YAAY,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAA;AAElE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,CAAA"}
@@ -3,8 +3,8 @@
3
3
  * @license AGPL-3.0
4
4
  * @author Teffen Ellis, et al.
5
5
  *
6
- * `useDemoRuntime` — the headless load-orchestration hook shared by every mailwoman demo surface (the
7
- * inline doc-embeds via `DemoEmbed`, and the geocoder map page). It owns the version-selection state
6
+ * `useReleaseRuntime` — the headless load-orchestration hook shared by every mailwoman browser surface (the
7
+ * inline doc-embeds via `RuntimeEmbed`, and the geocoder). It owns the version-selection state
8
8
  * machine, the per-version load SEQUENCING, cancellation, and the ready / loading / error state — but
9
9
  * NOTHING model- or map-specific. The actual asset fetchers (the ONNX classifier factory, the httpvfs
10
10
  * WOF opener, the FST fetch, the releases.json fetch) are INJECTED by the host as async functions, so
@@ -19,7 +19,7 @@
19
19
  /**
20
20
  * The minimal contract a release-manifest entry must satisfy. Hosts extend this with their own fields.
21
21
  */
22
- export interface DemoReleaseBase {
22
+ export interface ReleaseBase {
23
23
  /**
24
24
  * The version tag this entry describes (matched against `selectedVersion`).
25
25
  */
@@ -32,7 +32,7 @@ export interface DemoReleaseBase {
32
32
  /**
33
33
  * The releases manifest the host fetches — the default version plus the selectable release entries.
34
34
  */
35
- export interface DemoManifest<TRelease extends DemoReleaseBase = DemoReleaseBase> {
35
+ export interface ReleaseManifest<TRelease extends ReleaseBase = ReleaseBase> {
36
36
  /**
37
37
  * The version selected on first load (before the user picks another).
38
38
  */
@@ -47,7 +47,7 @@ export interface DemoManifest<TRelease extends DemoReleaseBase = DemoReleaseBase
47
47
  * staged step labels/index THROUGH these setters (all no-op once the load is superseded/aborted), while the hook owns
48
48
  * the terminal state (revealing the assets + clearing progress on success, surfacing the error on failure).
49
49
  */
50
- export interface DemoAssetsLoadContext {
50
+ export interface AssetsLoadContext {
51
51
  /**
52
52
  * Aborts when this load is superseded (version/backend switch) or the provider unmounts.
53
53
  */
@@ -76,37 +76,35 @@ export interface DemoAssetsLoadContext {
76
76
  /**
77
77
  * The injected loaders the hook orchestrates. Nothing here is model- or map-aware — the host owns all that.
78
78
  */
79
- export interface DemoRuntimeConfig<TAssets, TRelease extends DemoReleaseBase = DemoReleaseBase> {
79
+ export interface ReleaseRuntimeConfig<TAssets, TRelease extends ReleaseBase = ReleaseBase> {
80
80
  /**
81
- * Fetch + normalize the releases manifest. Returns `null` when no manifest is available (the demo then shows nothing
82
- * selectable). Rejecting surfaces `errorMessage`. Runs once on mount.
81
+ * Fetch + normalize the releases manifest. Returns `null` when no manifest is available (the surface then shows
82
+ * nothing selectable). Rejecting surfaces `errorMessage`. Runs once on mount.
83
83
  */
84
- loadManifest: (signal: AbortSignal) => Promise<DemoManifest<TRelease> | null>;
84
+ loadManifest: (signal: AbortSignal) => Promise<ReleaseManifest<TRelease> | null>;
85
85
  /**
86
86
  * Load the full asset bundle for one release — the classifier, FST, WOF lookup, calibrator, whatever the host needs.
87
87
  * Runs on every version or `forceWASM` change. Report progress via `ctx`; return the bundle. Rejecting surfaces
88
88
  * `errorMessage`. Bail early when `ctx.signal.aborted` — the hook discards a superseded result regardless.
89
89
  */
90
- loadAssets: (release: TRelease, ctx: DemoAssetsLoadContext) => Promise<TAssets>;
90
+ loadAssets: (release: TRelease, ctx: AssetsLoadContext) => Promise<TAssets>;
91
91
  /**
92
92
  * The progress line shown before the manifest arrives. @default "Loading releases…"
93
93
  */
94
94
  initialProgress?: string;
95
95
  }
96
96
  /**
97
- * The state `useDemoRuntime` produces — the load-orchestration state a demo surface renders + re-projects.
97
+ * The state `useReleaseRuntime` produces — the load-orchestration state a surface renders + re-projects.
98
98
  *
99
- * NAMING (phase 4): this is the LOADER STATE, deliberately distinct from {@link DemoRuntime} (the injected runtime
100
- * contract `<GeocoderDemo>` consumes). The two were same-stem before (`UseDemoRuntime` vs `DemoRuntime`); phase 4
101
- * disambiguates by renaming the loader-state type to `DemoLoaderState`. A host builds a {@link DemoRuntime} by pairing
102
- * this loader state (assets + backend + version) with the map surface (style, overlays, bias, parse) — see the map
103
- * subpath's `DemoRuntime`.
99
+ * This is the LOADER STATE, deliberately distinct from {@link GeocoderRuntime} (the injected runtime contract
100
+ * `<Geocoder>` consumes). A host builds a {@link GeocoderRuntime} by pairing this loader state (assets + backend +
101
+ * version) with the map surface (style, overlays, bias, parse) see the map subpath's `GeocoderRuntime`.
104
102
  */
105
- export interface DemoLoaderState<TAssets, TRelease extends DemoReleaseBase = DemoReleaseBase> {
103
+ export interface ReleaseLoaderState<TAssets, TRelease extends ReleaseBase = ReleaseBase> {
106
104
  /**
107
105
  * The releases manifest, once fetched.
108
106
  */
109
- manifest: DemoManifest<TRelease> | null;
107
+ manifest: ReleaseManifest<TRelease> | null;
110
108
  /**
111
109
  * The currently-selected version, or `null` before the manifest resolves.
112
110
  */
@@ -163,5 +161,5 @@ export interface DemoLoaderState<TAssets, TRelease extends DemoReleaseBase = Dem
163
161
  * change reloads the bundle via `loadAssets`, the previous load aborted first. The assets are revealed ATOMICALLY when
164
162
  * `loadAssets` resolves (so `ready` flips exactly once per load), and consumers wait on `ready`.
165
163
  */
166
- export declare function useDemoRuntime<TAssets, TRelease extends DemoReleaseBase = DemoReleaseBase>(config: DemoRuntimeConfig<TAssets, TRelease>): DemoLoaderState<TAssets, TRelease>;
167
- //# sourceMappingURL=useDemoRuntime.d.ts.map
164
+ export declare function useReleaseRuntime<TAssets, TRelease extends ReleaseBase = ReleaseBase>(config: ReleaseRuntimeConfig<TAssets, TRelease>): ReleaseLoaderState<TAssets, TRelease>;
165
+ //# sourceMappingURL=useReleaseRuntime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReleaseRuntime.d.ts","sourceRoot":"","sources":["../../lib/runtime/useReleaseRuntime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,QAAQ,SAAS,WAAW,GAAG,WAAW;IAC1E;;OAEG;IACH,cAAc,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,QAAQ,EAAE,QAAQ,EAAE,CAAA;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,MAAM,EAAE,WAAW,CAAA;IACnB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC;;OAEG;IACH,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IACzC;;OAEG;IACH,YAAY,EAAE,CAAC,KAAK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ACH,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;CAC1C;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,QAAQ,SAAS,WAAW,GAAG,WAAW,EACpF,MAAM,EAAE,oBAAoB,CAAC,OAAO,EAAE,QAAQ,CAAC,GAC7C,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,CA+HvC"}
@@ -3,8 +3,8 @@
3
3
  * @license AGPL-3.0
4
4
  * @author Teffen Ellis, et al.
5
5
  *
6
- * `useDemoRuntime` — the headless load-orchestration hook shared by every mailwoman demo surface (the
7
- * inline doc-embeds via `DemoEmbed`, and the geocoder map page). It owns the version-selection state
6
+ * `useReleaseRuntime` — the headless load-orchestration hook shared by every mailwoman browser surface (the
7
+ * inline doc-embeds via `RuntimeEmbed`, and the geocoder). It owns the version-selection state
8
8
  * machine, the per-version load SEQUENCING, cancellation, and the ready / loading / error state — but
9
9
  * NOTHING model- or map-specific. The actual asset fetchers (the ONNX classifier factory, the httpvfs
10
10
  * WOF opener, the FST fetch, the releases.json fetch) are INJECTED by the host as async functions, so
@@ -24,7 +24,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
24
24
  * change reloads the bundle via `loadAssets`, the previous load aborted first. The assets are revealed ATOMICALLY when
25
25
  * `loadAssets` resolves (so `ready` flips exactly once per load), and consumers wait on `ready`.
26
26
  */
27
- export function useDemoRuntime(config) {
27
+ export function useReleaseRuntime(config) {
28
28
  const { initialProgress = "Loading releases…" } = config;
29
29
  const [manifest, setManifest] = useState(null);
30
30
  const [selectedVersion, setSelectedVersion] = useState(null);
@@ -134,4 +134,4 @@ export function useDemoRuntime(config) {
134
134
  setForceWASM,
135
135
  };
136
136
  }
137
- //# sourceMappingURL=useDemoRuntime.js.map
137
+ //# sourceMappingURL=useReleaseRuntime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReleaseRuntime.js","sourceRoot":"","sources":["../../lib/runtime/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ACT,aAAa;QACb,YAAY;KACZ,CAAA;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailwoman/react",
3
- "version": "9.3.0",
3
+ "version": "9.4.0",
4
4
  "description": "React components + headless hooks for mailwoman — parse/geocode/POI explorers, Storybook-tested, Docusaurus-independent.",
5
5
  "license": "AGPL-3.0-only OR LicenseRef-Commercial",
6
6
  "repository": {
@@ -15,6 +15,10 @@
15
15
  "out/**/*.d.ts.map",
16
16
  "README.md",
17
17
  "styles.css",
18
+ "fonts.css",
19
+ "tokens/index.css",
20
+ "tokens/tokens.json",
21
+ "tokens/tokens.resolver.json",
18
22
  "*.ts",
19
23
  "*.tsx",
20
24
  "**/*.ts",
@@ -34,7 +38,9 @@
34
38
  ],
35
39
  "type": "module",
36
40
  "sideEffects": [
37
- "./styles.css"
41
+ "./styles.css",
42
+ "./fonts.css",
43
+ "./tokens/index.css"
38
44
  ],
39
45
  "imports": {
40
46
  "#index": {
@@ -56,6 +62,9 @@
56
62
  "exports": {
57
63
  "./package.json": "./package.json",
58
64
  "./styles.css": "./styles.css",
65
+ "./tokens.css": "./tokens/index.css",
66
+ "./fonts.css": "./fonts.css",
67
+ "./tokens.json": "./tokens/tokens.json",
59
68
  ".": {
60
69
  "types": "./out/index.d.ts",
61
70
  "node": "./out/index.js",
@@ -76,6 +85,16 @@
76
85
  "node": "./out/common/KindBadge.js",
77
86
  "default": "./out/common/KindBadge.js"
78
87
  },
88
+ "./common/confidence-tiers": {
89
+ "types": "./out/common/confidence-tiers.d.ts",
90
+ "node": "./out/common/confidence-tiers.js",
91
+ "default": "./out/common/confidence-tiers.js"
92
+ },
93
+ "./common/text-tokens": {
94
+ "types": "./out/common/text-tokens.d.ts",
95
+ "node": "./out/common/text-tokens.js",
96
+ "default": "./out/common/text-tokens.js"
97
+ },
79
98
  "./common/LoadingIndicator": {
80
99
  "types": "./out/common/LoadingIndicator.d.ts",
81
100
  "node": "./out/common/LoadingIndicator.js",
@@ -86,15 +105,15 @@
86
105
  "node": "./out/common/PresetChips.js",
87
106
  "default": "./out/common/PresetChips.js"
88
107
  },
89
- "./map/DemoMap": {
90
- "types": "./out/map/DemoMap.d.ts",
91
- "node": "./out/map/DemoMap.js",
92
- "default": "./out/map/DemoMap.js"
108
+ "./map/MapCanvas": {
109
+ "types": "./out/map/MapCanvas.d.ts",
110
+ "node": "./out/map/MapCanvas.js",
111
+ "default": "./out/map/MapCanvas.js"
93
112
  },
94
- "./map/GeocoderDemo": {
95
- "types": "./out/map/GeocoderDemo.d.ts",
96
- "node": "./out/map/GeocoderDemo.js",
97
- "default": "./out/map/GeocoderDemo.js"
113
+ "./map/Geocoder": {
114
+ "types": "./out/map/Geocoder.d.ts",
115
+ "node": "./out/map/Geocoder.js",
116
+ "default": "./out/map/Geocoder.js"
98
117
  },
99
118
  "./map/place-render": {
100
119
  "types": "./out/map/place-render.d.ts",
@@ -146,6 +165,41 @@
146
165
  "node": "./out/map/ResultPanel.js",
147
166
  "default": "./out/map/ResultPanel.js"
148
167
  },
168
+ "./map/fake-runtime": {
169
+ "types": "./out/map/fake-runtime.d.ts",
170
+ "node": "./out/map/fake-runtime.js",
171
+ "default": "./out/map/fake-runtime.js"
172
+ },
173
+ "./map/map-debug": {
174
+ "types": "./out/map/map-debug.d.ts",
175
+ "node": "./out/map/map-debug.js",
176
+ "default": "./out/map/map-debug.js"
177
+ },
178
+ "./common/About": {
179
+ "types": "./out/common/About.d.ts",
180
+ "node": "./out/common/About.js",
181
+ "default": "./out/common/About.js"
182
+ },
183
+ "./pipeline/FailureDiagnostic": {
184
+ "types": "./out/pipeline/FailureDiagnostic.d.ts",
185
+ "node": "./out/pipeline/FailureDiagnostic.js",
186
+ "default": "./out/pipeline/FailureDiagnostic.js"
187
+ },
188
+ "./pipeline/SpanHighlight": {
189
+ "types": "./out/pipeline/SpanHighlight.d.ts",
190
+ "node": "./out/pipeline/SpanHighlight.js",
191
+ "default": "./out/pipeline/SpanHighlight.js"
192
+ },
193
+ "./pipeline/TimingPanel": {
194
+ "types": "./out/pipeline/TimingPanel.d.ts",
195
+ "node": "./out/pipeline/TimingPanel.js",
196
+ "default": "./out/pipeline/TimingPanel.js"
197
+ },
198
+ "./pipeline/TreeView": {
199
+ "types": "./out/pipeline/TreeView.d.ts",
200
+ "node": "./out/pipeline/TreeView.js",
201
+ "default": "./out/pipeline/TreeView.js"
202
+ },
149
203
  "./map/usePlaceAutocomplete": {
150
204
  "types": "./out/map/usePlaceAutocomplete.d.ts",
151
205
  "node": "./out/map/usePlaceAutocomplete.js",
@@ -201,10 +255,10 @@
201
255
  "node": "./out/poi/usePOISearch.js",
202
256
  "default": "./out/poi/usePOISearch.js"
203
257
  },
204
- "./runtime/useDemoRuntime": {
205
- "types": "./out/runtime/useDemoRuntime.d.ts",
206
- "node": "./out/runtime/useDemoRuntime.js",
207
- "default": "./out/runtime/useDemoRuntime.js"
258
+ "./runtime/useReleaseRuntime": {
259
+ "types": "./out/runtime/useReleaseRuntime.d.ts",
260
+ "node": "./out/runtime/useReleaseRuntime.js",
261
+ "default": "./out/runtime/useReleaseRuntime.js"
208
262
  }
209
263
  },
210
264
  "publishConfig": {
@@ -212,6 +266,9 @@
212
266
  "exports": {
213
267
  "./package.json": "./package.json",
214
268
  "./styles.css": "./styles.css",
269
+ "./tokens.css": "./tokens/index.css",
270
+ "./fonts.css": "./fonts.css",
271
+ "./tokens.json": "./tokens/tokens.json",
215
272
  ".": {
216
273
  "types": "./out/index.d.ts",
217
274
  "node": "./out/index.js",
@@ -232,6 +289,16 @@
232
289
  "node": "./out/common/KindBadge.js",
233
290
  "default": "./out/common/KindBadge.js"
234
291
  },
292
+ "./common/confidence-tiers": {
293
+ "types": "./out/common/confidence-tiers.d.ts",
294
+ "node": "./out/common/confidence-tiers.js",
295
+ "default": "./out/common/confidence-tiers.js"
296
+ },
297
+ "./common/text-tokens": {
298
+ "types": "./out/common/text-tokens.d.ts",
299
+ "node": "./out/common/text-tokens.js",
300
+ "default": "./out/common/text-tokens.js"
301
+ },
235
302
  "./common/LoadingIndicator": {
236
303
  "types": "./out/common/LoadingIndicator.d.ts",
237
304
  "node": "./out/common/LoadingIndicator.js",
@@ -242,15 +309,15 @@
242
309
  "node": "./out/common/PresetChips.js",
243
310
  "default": "./out/common/PresetChips.js"
244
311
  },
245
- "./map/DemoMap": {
246
- "types": "./out/map/DemoMap.d.ts",
247
- "node": "./out/map/DemoMap.js",
248
- "default": "./out/map/DemoMap.js"
312
+ "./map/MapCanvas": {
313
+ "types": "./out/map/MapCanvas.d.ts",
314
+ "node": "./out/map/MapCanvas.js",
315
+ "default": "./out/map/MapCanvas.js"
249
316
  },
250
- "./map/GeocoderDemo": {
251
- "types": "./out/map/GeocoderDemo.d.ts",
252
- "node": "./out/map/GeocoderDemo.js",
253
- "default": "./out/map/GeocoderDemo.js"
317
+ "./map/Geocoder": {
318
+ "types": "./out/map/Geocoder.d.ts",
319
+ "node": "./out/map/Geocoder.js",
320
+ "default": "./out/map/Geocoder.js"
254
321
  },
255
322
  "./map/place-render": {
256
323
  "types": "./out/map/place-render.d.ts",
@@ -302,6 +369,41 @@
302
369
  "node": "./out/map/ResultPanel.js",
303
370
  "default": "./out/map/ResultPanel.js"
304
371
  },
372
+ "./map/fake-runtime": {
373
+ "types": "./out/map/fake-runtime.d.ts",
374
+ "node": "./out/map/fake-runtime.js",
375
+ "default": "./out/map/fake-runtime.js"
376
+ },
377
+ "./map/map-debug": {
378
+ "types": "./out/map/map-debug.d.ts",
379
+ "node": "./out/map/map-debug.js",
380
+ "default": "./out/map/map-debug.js"
381
+ },
382
+ "./common/About": {
383
+ "types": "./out/common/About.d.ts",
384
+ "node": "./out/common/About.js",
385
+ "default": "./out/common/About.js"
386
+ },
387
+ "./pipeline/FailureDiagnostic": {
388
+ "types": "./out/pipeline/FailureDiagnostic.d.ts",
389
+ "node": "./out/pipeline/FailureDiagnostic.js",
390
+ "default": "./out/pipeline/FailureDiagnostic.js"
391
+ },
392
+ "./pipeline/SpanHighlight": {
393
+ "types": "./out/pipeline/SpanHighlight.d.ts",
394
+ "node": "./out/pipeline/SpanHighlight.js",
395
+ "default": "./out/pipeline/SpanHighlight.js"
396
+ },
397
+ "./pipeline/TimingPanel": {
398
+ "types": "./out/pipeline/TimingPanel.d.ts",
399
+ "node": "./out/pipeline/TimingPanel.js",
400
+ "default": "./out/pipeline/TimingPanel.js"
401
+ },
402
+ "./pipeline/TreeView": {
403
+ "types": "./out/pipeline/TreeView.d.ts",
404
+ "node": "./out/pipeline/TreeView.js",
405
+ "default": "./out/pipeline/TreeView.js"
406
+ },
305
407
  "./map/usePlaceAutocomplete": {
306
408
  "types": "./out/map/usePlaceAutocomplete.d.ts",
307
409
  "node": "./out/map/usePlaceAutocomplete.js",
@@ -357,10 +459,10 @@
357
459
  "node": "./out/poi/usePOISearch.js",
358
460
  "default": "./out/poi/usePOISearch.js"
359
461
  },
360
- "./runtime/useDemoRuntime": {
361
- "types": "./out/runtime/useDemoRuntime.d.ts",
362
- "node": "./out/runtime/useDemoRuntime.js",
363
- "default": "./out/runtime/useDemoRuntime.js"
462
+ "./runtime/useReleaseRuntime": {
463
+ "types": "./out/runtime/useReleaseRuntime.d.ts",
464
+ "node": "./out/runtime/useReleaseRuntime.js",
465
+ "default": "./out/runtime/useReleaseRuntime.js"
364
466
  }
365
467
  },
366
468
  "imports": {
@@ -382,29 +484,37 @@
382
484
  }
383
485
  },
384
486
  "scripts": {
487
+ "tokens": "styleframe build styleframe.config.ts --outputDir tokens --clean && styleframe dtcg export --output tokens --collection Mailwoman && oxfmt tokens",
385
488
  "storybook": "storybook dev -p 6007 --no-open",
386
489
  "build-storybook": "storybook build",
387
490
  "test:browser": "vitest run --config vitest.config.ts",
388
491
  "test:node": "vitest run --config vitest.node.config.ts"
389
492
  },
390
493
  "dependencies": {
391
- "@mailwoman/kind-classifier": "9.3.0",
392
- "@mailwoman/poi-taxonomy": "9.3.0",
393
- "@mailwoman/query-shape": "9.3.0"
494
+ "@mailwoman/core": "9.4.0",
495
+ "@mailwoman/kind-classifier": "9.4.0",
496
+ "@mailwoman/poi-taxonomy": "9.4.0",
497
+ "@mailwoman/query-shape": "9.4.0"
394
498
  },
395
499
  "devDependencies": {
396
500
  "@storybook/addon-docs": "^10.6.0",
397
501
  "@storybook/react-vite": "^10.6.0",
502
+ "@styleframe/core": "^3.6.2",
503
+ "@styleframe/loader": "^3.0.4",
504
+ "@styleframe/plugin": "^3.4.1",
505
+ "@styleframe/transpiler": "^3.4.2",
398
506
  "@types/react": "^19.2.18",
399
507
  "@types/react-dom": "^19.2.7",
400
508
  "@vitejs/plugin-react": "^6.1.1",
401
509
  "@vitest/browser-playwright": "4.1.11",
402
510
  "maplibre-gl": "^6.7.0",
511
+ "oxfmt": "0.66.0",
403
512
  "playwright": "^1.63.0",
404
513
  "react": "^19.2.8",
405
514
  "react-dom": "^19.2.8",
406
515
  "react-map-gl": "^8.1.3",
407
516
  "storybook": "^10.6.0",
517
+ "styleframe": "^3.9.1",
408
518
  "typescript": "^6.0.3",
409
519
  "vite": "^8.2.2",
410
520
  "vitest": "4.1.11"