@mcpview/components 0.0.0-stage → 0.10.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 (155) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +575 -2
  3. package/esm/_dnt.polyfills.d.ts +12 -0
  4. package/esm/_dnt.polyfills.d.ts.map +1 -0
  5. package/esm/_dnt.polyfills.js +15 -0
  6. package/esm/fonts.d.ts +13 -0
  7. package/esm/fonts.d.ts.map +1 -0
  8. package/esm/fonts.js +12 -0
  9. package/esm/layout.d.ts +14 -0
  10. package/esm/layout.d.ts.map +1 -0
  11. package/esm/layout.js +13 -0
  12. package/esm/mod.d.ts +19 -0
  13. package/esm/mod.d.ts.map +1 -0
  14. package/esm/mod.js +14 -0
  15. package/esm/package.json +3 -0
  16. package/esm/preact-components.d.ts +22 -0
  17. package/esm/preact-components.d.ts.map +1 -0
  18. package/esm/preact-components.js +20 -0
  19. package/esm/preact.d.ts +10 -0
  20. package/esm/preact.d.ts.map +1 -0
  21. package/esm/preact.js +9 -0
  22. package/esm/src/component-primitives.d.ts +41 -0
  23. package/esm/src/component-primitives.d.ts.map +1 -0
  24. package/esm/src/component-primitives.js +121 -0
  25. package/esm/src/components.d.ts +50 -0
  26. package/esm/src/components.d.ts.map +1 -0
  27. package/esm/src/components.js +283 -0
  28. package/esm/src/font-families.d.ts +16 -0
  29. package/esm/src/font-families.d.ts.map +1 -0
  30. package/esm/src/font-families.js +11 -0
  31. package/esm/src/fonts-data.d.ts +2 -0
  32. package/esm/src/fonts-data.d.ts.map +1 -0
  33. package/esm/src/fonts-data.js +42 -0
  34. package/esm/src/fonts.d.ts +12 -0
  35. package/esm/src/fonts.d.ts.map +1 -0
  36. package/esm/src/fonts.js +19 -0
  37. package/esm/src/i18n.d.ts +44 -0
  38. package/esm/src/i18n.d.ts.map +1 -0
  39. package/esm/src/i18n.js +98 -0
  40. package/esm/src/layout/hooks.d.ts +60 -0
  41. package/esm/src/layout/hooks.d.ts.map +1 -0
  42. package/esm/src/layout/hooks.js +121 -0
  43. package/esm/src/layout/mod.d.ts +6 -0
  44. package/esm/src/layout/mod.d.ts.map +1 -0
  45. package/esm/src/layout/mod.js +3 -0
  46. package/esm/src/layout/viewer-layout.d.ts +82 -0
  47. package/esm/src/layout/viewer-layout.d.ts.map +1 -0
  48. package/esm/src/layout/viewer-layout.js +74 -0
  49. package/esm/src/preact/components.d.ts +215 -0
  50. package/esm/src/preact/components.d.ts.map +1 -0
  51. package/esm/src/preact/components.js +176 -0
  52. package/esm/src/preact/focused-view.d.ts +42 -0
  53. package/esm/src/preact/focused-view.d.ts.map +1 -0
  54. package/esm/src/preact/focused-view.js +20 -0
  55. package/esm/src/preact/mod.d.ts +6 -0
  56. package/esm/src/preact/mod.d.ts.map +1 -0
  57. package/esm/src/preact/mod.js +3 -0
  58. package/esm/src/preact/plots.d.ts +119 -0
  59. package/esm/src/preact/plots.d.ts.map +1 -0
  60. package/esm/src/preact/plots.js +152 -0
  61. package/esm/src/preact/semantic-element.d.ts +103 -0
  62. package/esm/src/preact/semantic-element.d.ts.map +1 -0
  63. package/esm/src/preact/semantic-element.js +103 -0
  64. package/esm/src/preact/structural.d.ts +178 -0
  65. package/esm/src/preact/structural.d.ts.map +1 -0
  66. package/esm/src/preact/structural.js +147 -0
  67. package/esm/src/preact/surface.d.ts +37 -0
  68. package/esm/src/preact/surface.d.ts.map +1 -0
  69. package/esm/src/preact/surface.js +47 -0
  70. package/esm/src/surface-app.d.ts +188 -0
  71. package/esm/src/surface-app.d.ts.map +1 -0
  72. package/esm/src/surface-app.js +374 -0
  73. package/esm/src/theme.d.ts +65 -0
  74. package/esm/src/theme.d.ts.map +1 -0
  75. package/esm/src/theme.js +1877 -0
  76. package/esm/surface.d.ts +12 -0
  77. package/esm/surface.d.ts.map +1 -0
  78. package/esm/surface.js +10 -0
  79. package/package.json +68 -4
  80. package/script/_dnt.polyfills.d.ts +12 -0
  81. package/script/_dnt.polyfills.d.ts.map +1 -0
  82. package/script/_dnt.polyfills.js +16 -0
  83. package/script/fonts.d.ts +13 -0
  84. package/script/fonts.d.ts.map +1 -0
  85. package/script/fonts.js +19 -0
  86. package/script/layout.d.ts +14 -0
  87. package/script/layout.d.ts.map +1 -0
  88. package/script/layout.js +29 -0
  89. package/script/mod.d.ts +19 -0
  90. package/script/mod.d.ts.map +1 -0
  91. package/script/mod.js +40 -0
  92. package/script/package.json +3 -0
  93. package/script/preact-components.d.ts +22 -0
  94. package/script/preact-components.d.ts.map +1 -0
  95. package/script/preact-components.js +68 -0
  96. package/script/preact.d.ts +10 -0
  97. package/script/preact.d.ts.map +1 -0
  98. package/script/preact.js +25 -0
  99. package/script/src/component-primitives.d.ts +41 -0
  100. package/script/src/component-primitives.d.ts.map +1 -0
  101. package/script/src/component-primitives.js +127 -0
  102. package/script/src/components.d.ts +50 -0
  103. package/script/src/components.d.ts.map +1 -0
  104. package/script/src/components.js +297 -0
  105. package/script/src/font-families.d.ts +16 -0
  106. package/script/src/font-families.d.ts.map +1 -0
  107. package/script/src/font-families.js +14 -0
  108. package/script/src/fonts-data.d.ts +2 -0
  109. package/script/src/fonts-data.d.ts.map +1 -0
  110. package/script/src/fonts-data.js +45 -0
  111. package/script/src/fonts.d.ts +12 -0
  112. package/script/src/fonts.d.ts.map +1 -0
  113. package/script/src/fonts.js +24 -0
  114. package/script/src/i18n.d.ts +44 -0
  115. package/script/src/i18n.d.ts.map +1 -0
  116. package/script/src/i18n.js +102 -0
  117. package/script/src/layout/hooks.d.ts +60 -0
  118. package/script/src/layout/hooks.d.ts.map +1 -0
  119. package/script/src/layout/hooks.js +126 -0
  120. package/script/src/layout/mod.d.ts +6 -0
  121. package/script/src/layout/mod.d.ts.map +1 -0
  122. package/script/src/layout/mod.js +17 -0
  123. package/script/src/layout/viewer-layout.d.ts +82 -0
  124. package/script/src/layout/viewer-layout.d.ts.map +1 -0
  125. package/script/src/layout/viewer-layout.js +83 -0
  126. package/script/src/preact/components.d.ts +215 -0
  127. package/script/src/preact/components.d.ts.map +1 -0
  128. package/script/src/preact/components.js +199 -0
  129. package/script/src/preact/focused-view.d.ts +42 -0
  130. package/script/src/preact/focused-view.d.ts.map +1 -0
  131. package/script/src/preact/focused-view.js +24 -0
  132. package/script/src/preact/mod.d.ts +6 -0
  133. package/script/src/preact/mod.d.ts.map +1 -0
  134. package/script/src/preact/mod.js +55 -0
  135. package/script/src/preact/plots.d.ts +119 -0
  136. package/script/src/preact/plots.d.ts.map +1 -0
  137. package/script/src/preact/plots.js +157 -0
  138. package/script/src/preact/semantic-element.d.ts +103 -0
  139. package/script/src/preact/semantic-element.d.ts.map +1 -0
  140. package/script/src/preact/semantic-element.js +115 -0
  141. package/script/src/preact/structural.d.ts +178 -0
  142. package/script/src/preact/structural.d.ts.map +1 -0
  143. package/script/src/preact/structural.js +158 -0
  144. package/script/src/preact/surface.d.ts +37 -0
  145. package/script/src/preact/surface.d.ts.map +1 -0
  146. package/script/src/preact/surface.js +53 -0
  147. package/script/src/surface-app.d.ts +188 -0
  148. package/script/src/surface-app.d.ts.map +1 -0
  149. package/script/src/surface-app.js +379 -0
  150. package/script/src/theme.d.ts +65 -0
  151. package/script/src/theme.d.ts.map +1 -0
  152. package/script/src/theme.js +1881 -0
  153. package/script/surface.d.ts +12 -0
  154. package/script/surface.d.ts.map +1 -0
  155. package/script/surface.js +15 -0
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Responsive viewer layout for `@mcpview/components` Apps.
3
+ *
4
+ * Import as `@mcpview/components/layout`. The decision
5
+ * (`resolveViewerLayout`, `layoutWidth`, `touchInput`, `viewerBoundsStyle`) is
6
+ * pure; the Preact hooks (`useViewerLayout`, `useContainerWidth`,
7
+ * `useCoarsePointer`) measure the DOM but take the host context as a
8
+ * parameter, so this entry loads no MCP Apps runtime.
9
+ *
10
+ * @module
11
+ */
12
+ import "./_dnt.polyfills.js";
13
+ export * from "./src/layout/mod.js";
14
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,qBAAqB,CAAC;AAG7B,cAAc,qBAAqB,CAAC"}
package/esm/layout.js ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Responsive viewer layout for `@mcpview/components` Apps.
3
+ *
4
+ * Import as `@mcpview/components/layout`. The decision
5
+ * (`resolveViewerLayout`, `layoutWidth`, `touchInput`, `viewerBoundsStyle`) is
6
+ * pure; the Preact hooks (`useViewerLayout`, `useContainerWidth`,
7
+ * `useCoarsePointer`) measure the DOM but take the host context as a
8
+ * parameter, so this entry loads no MCP Apps runtime.
9
+ *
10
+ * @module
11
+ */
12
+ import "./_dnt.polyfills.js";
13
+ export * from "./src/layout/mod.js";
package/esm/mod.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ /**
2
+ * `@mcpview/components` — optional presentation runtime for small composable viewers.
3
+ *
4
+ * The root stays renderer-neutral and carries no MCP Apps runtime. Import the
5
+ * App lifecycle from `/surface`, Preact bindings from `/preact` or pure Preact
6
+ * presentation primitives from `/preact/components`.
7
+ *
8
+ * @module
9
+ */
10
+ import "./_dnt.polyfills.js";
11
+ export { activeComponentSurface, advertisedComponentCatalog, applySurfaceContext, CASYS_COMPONENT_CATALOG_CAPABILITY_KEY, CASYS_SURFACE_CONTEXT_KEY, componentCatalogCapabilities, defineComponentRegistry, defineComponentSurface, defineViewComponent, mountComponentSurface, readSurfaceContext, } from "./src/components.js";
12
+ export type { AdvertisedComponentCatalog, ComponentCleanup, ComponentSurface, ComponentSurfaceItem, ComponentSurfaceLayout, JsonValue, McpViewHostContext, MountComponentSurfaceOptions, MountedComponentSurface, SurfaceContext, SurfaceGap, SurfaceLayoutType, ViewComponentDefinition, ViewComponentDescriptor, ViewComponentEventPorts, ViewComponentMountContext, ViewComponentRegistry, } from "./src/components.js";
13
+ export { defineCustomComponent, defineKeyValueComponent, defineMetricGridComponent, defineStatusComponent, } from "./src/component-primitives.js";
14
+ export type { ComponentTone, KeyValueComponentValue, MetricComponentValue, StatusComponentValue, } from "./src/component-primitives.js";
15
+ export { installMcpViewTheme, MCP_VIEW_THEME_CSS, MCP_VIEW_THEME_STYLE_ID, MCP_VIEW_THEME_TOKENS, } from "./src/theme.js";
16
+ export type { McpViewThemeDocument, McpViewThemeToken, McpViewThemeTokens } from "./src/theme.js";
17
+ export { createTranslator, MCP_VIEW_MESSAGES_EN, MCP_VIEW_MESSAGES_FR, mcpViewMessages, } from "./src/i18n.js";
18
+ export type { McpViewMessages, MessageCatalog, MessageValues, Translator, TranslatorSelector, } from "./src/i18n.js";
19
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,qBAAqB,CAAC;AAG7B,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,mBAAmB,EACnB,sCAAsC,EACtC,yBAAyB,EACzB,4BAA4B,EAC5B,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,0BAA0B,EAC1B,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,SAAS,EACT,kBAAkB,EAClB,4BAA4B,EAC5B,uBAAuB,EACvB,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AACvC,YAAY,EACV,aAAa,EACb,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElG,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,eAAe,EACf,cAAc,EACd,aAAa,EACb,UAAU,EACV,kBAAkB,GACnB,MAAM,eAAe,CAAC"}
package/esm/mod.js ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * `@mcpview/components` — optional presentation runtime for small composable viewers.
3
+ *
4
+ * The root stays renderer-neutral and carries no MCP Apps runtime. Import the
5
+ * App lifecycle from `/surface`, Preact bindings from `/preact` or pure Preact
6
+ * presentation primitives from `/preact/components`.
7
+ *
8
+ * @module
9
+ */
10
+ import "./_dnt.polyfills.js";
11
+ export { activeComponentSurface, advertisedComponentCatalog, applySurfaceContext, CASYS_COMPONENT_CATALOG_CAPABILITY_KEY, CASYS_SURFACE_CONTEXT_KEY, componentCatalogCapabilities, defineComponentRegistry, defineComponentSurface, defineViewComponent, mountComponentSurface, readSurfaceContext, } from "./src/components.js";
12
+ export { defineCustomComponent, defineKeyValueComponent, defineMetricGridComponent, defineStatusComponent, } from "./src/component-primitives.js";
13
+ export { installMcpViewTheme, MCP_VIEW_THEME_CSS, MCP_VIEW_THEME_STYLE_ID, MCP_VIEW_THEME_TOKENS, } from "./src/theme.js";
14
+ export { createTranslator, MCP_VIEW_MESSAGES_EN, MCP_VIEW_MESSAGES_FR, mcpViewMessages, } from "./src/i18n.js";
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Pure Preact presentation primitives for native applications and MCP Apps.
3
+ *
4
+ * Unlike `@mcpview/components/preact`, this entry point does not import the MCP
5
+ * Apps lifecycle, iframe transport, surface registry, or postMessage bridge.
6
+ *
7
+ * Import as `@mcpview/components/preact/components`.
8
+ *
9
+ * @module
10
+ */
11
+ import "./_dnt.polyfills.js";
12
+ export { Badge, BadgeGroup, Button, Card, CodeBlock, CrossSelection, DataTable, EmptyState, InlineCode, KeyValueList, Message, Metric, MetricGrid, NoticeGroup, renderStatusMessage, Row, Skeleton, Stack, StateMessage, TextInput, Toolbar, } from "./src/preact/components.js";
13
+ export type { BadgeGroupProps, BadgeProps, ButtonProps, CardProps, CodeBlockProps, CrossSelectionProps, DataTableColumn, DataTableProps, EmptyStateProps, InlineCodeProps, KeyValueItem, KeyValueLayout, KeyValueListProps, MessageProps, MetricGridProps, MetricItem, MetricProps, NoticeGroupProps, PresentationTone, RowProps, SkeletonProps, StackProps, StateMessageProps, StatusMessageMount, TextInputProps, ToolbarProps, } from "./src/preact/components.js";
14
+ export { ArtifactRow, DrillHint, LimitGauge, PATH_BAR_DEFAULT_MAX_VISIBLE, PathBar, Slot3D, StaleBanner, TreeList, TypeBadge, } from "./src/preact/structural.js";
15
+ export type { ArtifactFingerprint, ArtifactRowProps, ArtifactVerification, DrillHintDirection, DrillHintProps, LimitGaugeLimit, LimitGaugeProps, PathBarItem, PathBarProps, Slot3DProps, StaleBannerAction, StaleBannerProps, TreeListNode, TreeListProps, TypeBadgeProps, ViewKind, } from "./src/preact/structural.js";
16
+ export { IntervalPlot, SeriesChart, Sparkline } from "./src/preact/plots.js";
17
+ export type { IntervalPlotInterval, IntervalPlotProps, SeriesChartCursor, SeriesChartProps, SeriesChartReadout, SeriesChartSeries, SeriesChartSummaryItem, SeriesPoint, SparklineProps, } from "./src/preact/plots.js";
18
+ export { CollectionCard, ElementBody, ElementIdent, ElementLimit, ElementProvenance, ElementReading, ElementSection, ElementVerdict, SemanticElement, SemanticList, } from "./src/preact/semantic-element.js";
19
+ export type { CollectionCardProps, ElementBodyProps, ElementIdentProps, ElementLimitProps, ElementProvenanceProps, ElementReadingProps, ElementSectionProps, ElementVerdictProps, SemanticElementDensity, SemanticElementProps, SemanticListProps, } from "./src/preact/semantic-element.js";
20
+ export { Disclosure, FocusedView } from "./src/preact/focused-view.js";
21
+ export type { DisclosureProps, FocusedViewProps } from "./src/preact/focused-view.js";
22
+ //# sourceMappingURL=preact-components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preact-components.d.ts","sourceRoot":"","sources":["../src/preact-components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,qBAAqB,CAAC;AAG7B,OAAO,EACL,KAAK,EACL,UAAU,EACV,MAAM,EACN,IAAI,EACJ,SAAS,EACT,cAAc,EACd,SAAS,EACT,UAAU,EACV,UAAU,EACV,YAAY,EACZ,OAAO,EACP,MAAM,EACN,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,GAAG,EACH,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,GACR,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,eAAe,EACf,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,YAAY,GACb,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,WAAW,EACX,SAAS,EACT,UAAU,EACV,4BAA4B,EAC5B,OAAO,EACP,MAAM,EACN,WAAW,EACX,QAAQ,EACR,SAAS,GACV,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,eAAe,EACf,WAAW,EACX,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,QAAQ,GACT,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7E,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,WAAW,EACX,cAAc,GACf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,cAAc,EACd,eAAe,EACf,YAAY,GACb,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACvE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Pure Preact presentation primitives for native applications and MCP Apps.
3
+ *
4
+ * Unlike `@mcpview/components/preact`, this entry point does not import the MCP
5
+ * Apps lifecycle, iframe transport, surface registry, or postMessage bridge.
6
+ *
7
+ * Import as `@mcpview/components/preact/components`.
8
+ *
9
+ * @module
10
+ */
11
+ import "./_dnt.polyfills.js";
12
+ export { Badge, BadgeGroup, Button, Card, CodeBlock, CrossSelection, DataTable, EmptyState, InlineCode, KeyValueList, Message, Metric, MetricGrid, NoticeGroup, renderStatusMessage, Row, Skeleton, Stack, StateMessage, TextInput, Toolbar, } from "./src/preact/components.js";
13
+ export { ArtifactRow, DrillHint, LimitGauge, PATH_BAR_DEFAULT_MAX_VISIBLE, PathBar, Slot3D, StaleBanner, TreeList, TypeBadge, } from "./src/preact/structural.js";
14
+ export { IntervalPlot, SeriesChart, Sparkline } from "./src/preact/plots.js";
15
+ export { CollectionCard, ElementBody, ElementIdent, ElementLimit, ElementProvenance, ElementReading, ElementSection, ElementVerdict, SemanticElement, SemanticList, } from "./src/preact/semantic-element.js";
16
+ export { Disclosure, FocusedView } from "./src/preact/focused-view.js";
17
+ // The stylesheet and its types ship from the package root with
18
+ // `installMcpViewTheme`, never from this entry. Re-exporting them here handed
19
+ // the whole sheet to every caller that only wanted one component: the theme is
20
+ // an explicit install, so it must cost an explicit import.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Preact integration for componentized `@mcpview/components` Apps.
3
+ *
4
+ * Import as `@mcpview/components/preact`.
5
+ *
6
+ * @module
7
+ */
8
+ import "./_dnt.polyfills.js";
9
+ export * from "./src/preact/mod.js";
10
+ //# sourceMappingURL=preact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preact.d.ts","sourceRoot":"","sources":["../src/preact.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,qBAAqB,CAAC;AAG7B,cAAc,qBAAqB,CAAC"}
package/esm/preact.js ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Preact integration for componentized `@mcpview/components` Apps.
3
+ *
4
+ * Import as `@mcpview/components/preact`.
5
+ *
6
+ * @module
7
+ */
8
+ import "./_dnt.polyfills.js";
9
+ export * from "./src/preact/mod.js";
@@ -0,0 +1,41 @@
1
+ /** Small, framework-neutral UI components reusable across MCP Apps. */
2
+ import { defineViewComponent, type ViewComponentDefinition, type ViewComponentEventPorts, type ViewComponentMountContext } from "./components.js";
3
+ export type ComponentTone = "neutral" | "info" | "success" | "warning" | "danger";
4
+ export interface StatusComponentValue {
5
+ readonly label: string;
6
+ readonly detail?: string;
7
+ readonly tone?: ComponentTone;
8
+ }
9
+ export interface MetricComponentValue {
10
+ readonly id: string;
11
+ readonly label: string;
12
+ readonly value: string | number;
13
+ readonly unit?: string;
14
+ readonly detail?: string;
15
+ }
16
+ export interface KeyValueComponentValue {
17
+ readonly key: string;
18
+ readonly label: string;
19
+ readonly value: string | number | boolean | null;
20
+ }
21
+ interface PrimitiveConfig<TData, TValue> {
22
+ readonly title: string;
23
+ readonly description?: string;
24
+ readonly events?: ViewComponentEventPorts;
25
+ readonly select: (data: TData) => TValue;
26
+ }
27
+ /** One compact status block with a semantic tone and optional detail. */
28
+ export declare function defineStatusComponent<TData, TAppContext = unknown>(config: PrimitiveConfig<TData, StatusComponentValue>): ViewComponentDefinition<TData, TAppContext>;
29
+ /** Responsive metric cards; formatting remains owned by the domain selector. */
30
+ export declare function defineMetricGridComponent<TData, TAppContext = unknown>(config: PrimitiveConfig<TData, readonly MetricComponentValue[]>): ViewComponentDefinition<TData, TAppContext>;
31
+ /** Semantic definition list for provenance, identity, and other compact facts. */
32
+ export declare function defineKeyValueComponent<TData, TAppContext = unknown>(config: PrimitiveConfig<TData, readonly KeyValueComponentValue[]>): ViewComponentDefinition<TData, TAppContext>;
33
+ /** A custom component factory with the same descriptor convention as primitives. */
34
+ export declare function defineCustomComponent<TData, TAppContext = unknown>(config: {
35
+ readonly title: string;
36
+ readonly description?: string;
37
+ readonly events?: ViewComponentEventPorts;
38
+ readonly mount: (target: HTMLElement, context: ViewComponentMountContext<TData, TAppContext>) => ReturnType<ReturnType<typeof defineViewComponent<TData, TAppContext>>["mount"]>;
39
+ }): ViewComponentDefinition<TData, TAppContext>;
40
+ export {};
41
+ //# sourceMappingURL=component-primitives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-primitives.d.ts","sourceRoot":"","sources":["../../src/src/component-primitives.ts"],"names":[],"mappings":"AAAA,uEAAuE;AAEvE,OAAO,EACL,mBAAmB,EACnB,KAAK,uBAAuB,EAE5B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC/B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AAgB,yBAAyB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,EACpE,MAAM,EAAE,eAAe,CAAC,KAAK,EAAE,SAAS,oBAAoB,EAAE,CAAC,GAC9D,uBAAuB,CAAC,KAAK,EAAE,WAAW,CAAC,CAwC7C;AAED,kFAAkF;AAClF,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,EAClE,MAAM,EAAE,eAAe,CAAC,KAAK,EAAE,SAAS,sBAAsB,EAAE,CAAC,GAChE,uBAAuB,CAAC,KAAK,EAAE,WAAW,CAAC,CAwB7C;AAED,oFAAoF;AACpF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,EAAE,MAAM,EAAE;IAC1E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,uBAAuB,CAAC;IAC1C,QAAQ,CAAC,KAAK,EAAE,CACd,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,yBAAyB,CAAC,KAAK,EAAE,WAAW,CAAC,KACnD,UAAU,CACb,UAAU,CAAC,OAAO,mBAAmB,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CACpE,CAAC;CACH,GAAG,uBAAuB,CAAC,KAAK,EAAE,WAAW,CAAC,CAK9C"}
@@ -0,0 +1,121 @@
1
+ /** Small, framework-neutral UI components reusable across MCP Apps. */
2
+ import { defineViewComponent, } from "./components.js";
3
+ import { installMcpViewTheme } from "./theme.js";
4
+ /** One compact status block with a semantic tone and optional detail. */
5
+ export function defineStatusComponent(config) {
6
+ return defineViewComponent({
7
+ descriptor: descriptor(config),
8
+ mount(target, context) {
9
+ const value = config.select(context.data);
10
+ installMcpViewTheme(target.ownerDocument);
11
+ target.dataset.primitive = "status";
12
+ target.dataset.tone = value.tone ?? "neutral";
13
+ const label = element("strong", value.label);
14
+ label.style.fontSize = "1rem";
15
+ target.append(label);
16
+ if (value.detail)
17
+ target.append(element("span", value.detail));
18
+ applyCard(target);
19
+ target.style.display = "flex";
20
+ target.style.alignItems = "center";
21
+ target.style.justifyContent = "space-between";
22
+ target.style.gap = "0.75rem";
23
+ target.classList.add("mcp-view-card", "mcp-view-row");
24
+ },
25
+ });
26
+ }
27
+ /** Responsive metric cards; formatting remains owned by the domain selector. */
28
+ export function defineMetricGridComponent(config) {
29
+ return defineViewComponent({
30
+ descriptor: descriptor(config),
31
+ mount(target, context) {
32
+ installMcpViewTheme(target.ownerDocument);
33
+ target.dataset.primitive = "metric-grid";
34
+ target.classList.add("mcp-view-metrics");
35
+ target.style.display = "grid";
36
+ target.style.gridTemplateColumns = "repeat(auto-fit, minmax(9rem, 1fr))";
37
+ target.style.gap = "0.5rem";
38
+ for (const metric of config.select(context.data)) {
39
+ const card = document.createElement("article");
40
+ card.dataset.metric = metric.id;
41
+ applyCard(card);
42
+ card.classList.add("mcp-view-metric");
43
+ const label = element("span", metric.label);
44
+ label.classList.add("mcp-view-metric-label");
45
+ label.style.fontSize = "0.75rem";
46
+ label.style.opacity = "0.72";
47
+ const value = element("strong", String(metric.value));
48
+ value.classList.add("mcp-view-metric-value");
49
+ value.style.fontSize = "1.25rem";
50
+ value.style.overflowWrap = "anywhere";
51
+ card.append(label, value);
52
+ if (metric.unit) {
53
+ const unit = element("span", metric.unit);
54
+ unit.classList.add("mcp-view-metric-unit");
55
+ card.append(unit);
56
+ }
57
+ if (metric.detail) {
58
+ const detail = element("small", metric.detail);
59
+ detail.style.opacity = "0.72";
60
+ card.append(detail);
61
+ }
62
+ card.style.display = "grid";
63
+ card.style.gap = "0.2rem";
64
+ target.append(card);
65
+ }
66
+ },
67
+ });
68
+ }
69
+ /** Semantic definition list for provenance, identity, and other compact facts. */
70
+ export function defineKeyValueComponent(config) {
71
+ return defineViewComponent({
72
+ descriptor: descriptor(config),
73
+ mount(target, context) {
74
+ installMcpViewTheme(target.ownerDocument);
75
+ target.dataset.primitive = "key-value";
76
+ const list = document.createElement("dl");
77
+ list.style.display = "grid";
78
+ list.style.gridTemplateColumns = "minmax(7rem, auto) minmax(0, 1fr)";
79
+ list.style.gap = "0.4rem 0.75rem";
80
+ list.style.margin = "0";
81
+ for (const item of config.select(context.data)) {
82
+ const term = element("dt", item.label);
83
+ term.dataset.key = item.key;
84
+ term.style.opacity = "0.72";
85
+ const detail = element("dd", item.value === null ? "—" : String(item.value));
86
+ detail.style.margin = "0";
87
+ detail.style.overflowWrap = "anywhere";
88
+ list.append(term, detail);
89
+ }
90
+ target.append(list);
91
+ applyCard(target);
92
+ },
93
+ });
94
+ }
95
+ /** A custom component factory with the same descriptor convention as primitives. */
96
+ export function defineCustomComponent(config) {
97
+ return defineViewComponent({
98
+ descriptor: descriptor(config),
99
+ mount: config.mount,
100
+ });
101
+ }
102
+ function descriptor(config) {
103
+ return {
104
+ title: config.title,
105
+ ...(config.description ? { description: config.description } : {}),
106
+ ...(config.events ? { events: config.events } : {}),
107
+ };
108
+ }
109
+ function element(tag, text) {
110
+ const node = document.createElement(tag);
111
+ node.textContent = text;
112
+ return node;
113
+ }
114
+ function applyCard(target) {
115
+ target.classList.add("mcp-view-card");
116
+ target.style.padding = "0.75rem";
117
+ target.style.border = "1px solid var(--color-border, rgba(127, 127, 127, 0.28))";
118
+ target.style.borderRadius = "0.5rem";
119
+ target.style.background = "var(--color-background-secondary, rgba(127, 127, 127, 0.08))";
120
+ target.style.minWidth = "0";
121
+ }
@@ -0,0 +1,50 @@
1
+ /** Renderer-neutral component catalog and surface runtime for MCP Apps. */
2
+ import type { AppContext } from "@mcpview/view";
3
+ import { type AdvertisedComponentCatalog, type ComponentSurface, type JsonValue, type ViewComponentDescriptor } from "@mcpview/contracts";
4
+ export { CASYS_COMPONENT_CATALOG_CAPABILITY_KEY, CASYS_SURFACE_CONTEXT_KEY, readSurfaceContext, } from "@mcpview/contracts";
5
+ export type { AdvertisedComponentCatalog, ComponentSurface, ComponentSurfaceItem, ComponentSurfaceLayout, JsonValue, SurfaceContext, SurfaceGap, SurfaceLayoutType, ViewComponentDescriptor, ViewComponentEventPorts, } from "@mcpview/contracts";
6
+ export type McpViewHostContext = AppContext<unknown>["hostContext"];
7
+ export type ComponentCleanup = () => void | Promise<void>;
8
+ export interface ViewComponentMountContext<TData, TAppContext> {
9
+ readonly data: TData;
10
+ readonly props: Readonly<Record<string, JsonValue>>;
11
+ readonly instanceId: string;
12
+ readonly appContext: TAppContext;
13
+ readonly hostContext: McpViewHostContext;
14
+ }
15
+ export interface ViewComponentDefinition<TData = unknown, TAppContext = unknown> {
16
+ readonly descriptor: ViewComponentDescriptor;
17
+ mount(target: HTMLElement, context: ViewComponentMountContext<TData, TAppContext>): void | ComponentCleanup | Promise<void | ComponentCleanup>;
18
+ }
19
+ export interface ViewComponentRegistry<TData = unknown, TAppContext = unknown> {
20
+ readonly components: Readonly<Record<string, ViewComponentDefinition<TData, TAppContext>>>;
21
+ /** Omit for component-only Apps that are meaningful only inside a host composition. */
22
+ readonly defaultSurface?: ComponentSurface;
23
+ }
24
+ export interface MountedComponentSurface {
25
+ readonly surface: ComponentSurface;
26
+ dispose(): Promise<void>;
27
+ }
28
+ export interface MountComponentSurfaceOptions<TData, TAppContext> {
29
+ readonly root: HTMLElement;
30
+ readonly registry: ViewComponentRegistry<TData, TAppContext>;
31
+ readonly data: TData;
32
+ readonly appContext: TAppContext;
33
+ readonly hostContext: McpViewHostContext;
34
+ /** Explicit surface wins; otherwise the negotiated or default surface is used. */
35
+ readonly surface?: ComponentSurface;
36
+ }
37
+ export declare function defineViewComponent<TData = unknown, TAppContext = unknown>(definition: ViewComponentDefinition<TData, TAppContext>): ViewComponentDefinition<TData, TAppContext>;
38
+ export declare function defineComponentRegistry<TData = unknown, TAppContext = unknown>(registry: ViewComponentRegistry<TData, TAppContext>): ViewComponentRegistry<TData, TAppContext>;
39
+ export declare function defineComponentSurface(surface: ComponentSurface): ComponentSurface;
40
+ /** Build the serializable value advertised in `AppConfig.capabilities.experimental`. */
41
+ export declare function componentCatalogCapabilities<TData, TAppContext>(registry: ViewComponentRegistry<TData, TAppContext>): Record<string, object>;
42
+ export declare function advertisedComponentCatalog<TData, TAppContext>(registry: ViewComponentRegistry<TData, TAppContext>): AdvertisedComponentCatalog;
43
+ /** Expose only surface identity/status for CSS and diagnostics, never component internals. */
44
+ export declare function applySurfaceContext(hostContext: McpViewHostContext, target: {
45
+ dataset: Record<string, string | undefined>;
46
+ }): void;
47
+ export declare function activeComponentSurface<TData, TAppContext>(registry: ViewComponentRegistry<TData, TAppContext>, hostContext: McpViewHostContext): ComponentSurface | undefined;
48
+ /** Mount one declarative surface and return deterministic aggregate cleanup. */
49
+ export declare function mountComponentSurface<TData, TAppContext>(options: MountComponentSurfaceOptions<TData, TAppContext>): Promise<MountedComponentSurface>;
50
+ //# sourceMappingURL=components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/src/components.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAE3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EACL,KAAK,0BAA0B,EAE/B,KAAK,gBAAgB,EAErB,KAAK,SAAS,EAGd,KAAK,uBAAuB,EAE7B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,sCAAsC,EACtC,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,0BAA0B,EAC1B,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,SAAS,EACT,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI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