@ovalbee/reportifact 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -14
- package/dist/{Chart.vue_vue_type_style_index_0_lang-BYILFTfl.js → Chart.vue_vue_type_style_index_0_lang-Bxrsp8Oz.js} +2353 -2292
- package/dist/Chart.vue_vue_type_style_index_0_lang-mN1IaQ_U.cjs +1 -0
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-Ak_OUL_c.js +197 -0
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-Ch0UPxhs.cjs +1 -0
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-ANFFq7CE.js +62 -0
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-CT9lFI28.cjs +1 -0
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-1hn2BMbU.js +46 -0
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-BDU7pisC.cjs +1 -0
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-BfxK3vcz.js +140 -0
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-CS7xiHRk.cjs +1 -0
- package/dist/Timeline.vue_vue_type_style_index_0_lang-EmkZbKjQ.js +2646 -0
- package/dist/Timeline.vue_vue_type_style_index_0_lang-HOC43_F3.cjs +2 -0
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BY2t_Hvs.cjs +1 -0
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BbnW8GXT.js +72 -0
- package/dist/index-3DTuh2Dr.cjs +47 -0
- package/dist/{index-DFz2A8yJ.js → index-DevYhXSC.js} +9252 -8377
- package/dist/portable/contracts.d.ts +6 -1
- package/dist/reportifact.cjs +24 -24
- package/dist/reportifact.js +1408 -1403
- package/dist/style.css +1 -1
- package/dist/widgets/Chart.vue.d.ts +7 -4
- package/dist/widgets/ImageGallery.vue.d.ts +7 -4
- package/dist/widgets/Markdown.vue.d.ts +1 -1
- package/dist/widgets/MetricCallout.vue.d.ts +5 -2
- package/dist/widgets/MetricCards.vue.d.ts +6 -3
- package/dist/widgets/MetricsTable.vue.d.ts +7 -4
- package/dist/widgets/ModelClassComparison.vue.d.ts +1 -1
- package/dist/widgets/ModelComparisonGallery.vue.d.ts +1 -1
- package/dist/widgets/Table.vue.d.ts +1 -1
- package/dist/widgets/Tensorboard.vue.d.ts +1 -1
- package/dist/widgets/Timeline.vue.d.ts +7 -4
- package/dist/widgets/WidgetWrapper.vue.d.ts +11 -5
- package/dist/widgets/chart.cjs +1 -1
- package/dist/widgets/chart.js +1 -1
- package/dist/widgets/image-gallery.cjs +1 -1
- package/dist/widgets/image-gallery.js +1 -1
- package/dist/widgets/metric-callout.cjs +1 -1
- package/dist/widgets/metric-callout.js +1 -1
- package/dist/widgets/metric-cards.cjs +1 -1
- package/dist/widgets/metric-cards.js +1 -1
- package/dist/widgets/metrics-table.cjs +1 -1
- package/dist/widgets/metrics-table.js +1 -1
- package/dist/widgets/timeline.cjs +1 -1
- package/dist/widgets/timeline.js +1 -1
- package/package.json +9 -13
- package/dist/Chart.vue_vue_type_style_index_0_lang-B4novMFC.cjs +0 -1
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-BB4dG0CB.cjs +0 -1
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-DPY6mSdA.js +0 -191
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-BZbc-Wkf.js +0 -49
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-WpuALh8Z.cjs +0 -1
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-CDPSu7no.cjs +0 -1
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-CfxCCXmB.js +0 -33
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-BzrxoJW4.cjs +0 -1
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-CO9HvYfr.js +0 -132
- package/dist/Timeline.vue_vue_type_style_index_0_lang-BIyC7N9b.cjs +0 -2
- package/dist/Timeline.vue_vue_type_style_index_0_lang-BnrgKBMh.js +0 -2598
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BQQ4Vv5j.cjs +0 -1
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-D-oXqmI2.js +0 -59
- package/dist/entries/figure.d.ts +0 -1
- package/dist/index-DmTzvbys.cjs +0 -47
- package/dist/portable/ReportifactFigure.vue.d.ts +0 -36
- package/dist/widgets/figure.cjs +0 -1
- package/dist/widgets/figure.d.ts +0 -6
- package/dist/widgets/figure.js +0 -84
package/README.md
CHANGED
|
@@ -736,7 +736,6 @@ pages that only use metric components.
|
|
|
736
736
|
|
|
737
737
|
```vue
|
|
738
738
|
<script setup lang="ts">
|
|
739
|
-
import ReportifactFigure from '@ovalbee/reportifact/widgets/figure';
|
|
740
739
|
import ReportifactChart from '@ovalbee/reportifact/widgets/chart';
|
|
741
740
|
import '@ovalbee/reportifact/style.css';
|
|
742
741
|
|
|
@@ -747,13 +746,11 @@ const chart = {
|
|
|
747
746
|
</script>
|
|
748
747
|
|
|
749
748
|
<template>
|
|
750
|
-
<
|
|
751
|
-
|
|
749
|
+
<ReportifactChart
|
|
750
|
+
type="bar-gradient"
|
|
751
|
+
:data="chart"
|
|
752
752
|
caption="DEIM leads on the held-out validation set."
|
|
753
|
-
|
|
754
|
-
>
|
|
755
|
-
<ReportifactChart type="bar-gradient" :data="chart" />
|
|
756
|
-
</ReportifactFigure>
|
|
753
|
+
/>
|
|
757
754
|
</template>
|
|
758
755
|
```
|
|
759
756
|
|
|
@@ -762,7 +759,6 @@ Public subpaths:
|
|
|
762
759
|
| Import | Component | Portable input |
|
|
763
760
|
| --- | --- | --- |
|
|
764
761
|
| `@ovalbee/reportifact/widgets/host` | `ReportifactWidgetHost` | Theme and loading-style boundary. |
|
|
765
|
-
| `@ovalbee/reportifact/widgets/figure` | `ReportifactFigure` | Semantic title/caption, loading, error fallback, source link. |
|
|
766
762
|
| `@ovalbee/reportifact/widgets/chart` | `ReportifactChart` | `src` JSON URL or inline `data`. |
|
|
767
763
|
| `@ovalbee/reportifact/widgets/metric-cards` | `ReportifactMetricCards` | Inline `data` or Markdown-table `content`. |
|
|
768
764
|
| `@ovalbee/reportifact/widgets/metric-callout` | `ReportifactMetricCallout` | Inline `data` or direct props. |
|
|
@@ -773,17 +769,22 @@ Public subpaths:
|
|
|
773
769
|
|
|
774
770
|
For URL-backed widgets, `src` is the portable spelling and legacy `url` remains
|
|
775
771
|
supported for the full report renderer. Inline `data` takes precedence when
|
|
776
|
-
both are present.
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
772
|
+
both are present. Every portable widget already renders a semantic `<figure>`
|
|
773
|
+
and accepts optional `caption`, `sourceHref`, and `sourceLabel` props. The
|
|
774
|
+
shared `WidgetWrapper` owns that semantic frame together with loading and error
|
|
775
|
+
presentation; hosts do not add another wrapper. Static fallback images are not
|
|
776
|
+
part of the portable v1 authoring contract.
|
|
777
|
+
|
|
778
|
+
The full report directives accept the same `caption`, `sourceHref`, and
|
|
779
|
+
`sourceLabel` options. Existing reports remain valid when those options are
|
|
780
|
+
absent.
|
|
780
781
|
|
|
781
782
|
`MetricCallout`'s `html` field is trusted pre-rendered HTML. Do not pass
|
|
782
783
|
untrusted user input without sanitizing it first.
|
|
783
784
|
|
|
784
785
|
Parquet tables, TensorBoard, scopes, and the full widget dispatcher remain
|
|
785
|
-
full-report features.
|
|
786
|
-
of importing their internals into a content page.
|
|
786
|
+
full-report features. Publish a static summary or link to a public Live Example
|
|
787
|
+
for those experiences instead of importing their internals into a content page.
|
|
787
788
|
|
|
788
789
|
### Custom Widgets
|
|
789
790
|
|