@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.
Files changed (65) hide show
  1. package/README.md +15 -14
  2. package/dist/{Chart.vue_vue_type_style_index_0_lang-BYILFTfl.js → Chart.vue_vue_type_style_index_0_lang-Bxrsp8Oz.js} +2353 -2292
  3. package/dist/Chart.vue_vue_type_style_index_0_lang-mN1IaQ_U.cjs +1 -0
  4. package/dist/ImageGallery.vue_vue_type_style_index_0_lang-Ak_OUL_c.js +197 -0
  5. package/dist/ImageGallery.vue_vue_type_style_index_0_lang-Ch0UPxhs.cjs +1 -0
  6. package/dist/MetricCallout.vue_vue_type_style_index_0_lang-ANFFq7CE.js +62 -0
  7. package/dist/MetricCallout.vue_vue_type_style_index_0_lang-CT9lFI28.cjs +1 -0
  8. package/dist/MetricCards.vue_vue_type_style_index_0_lang-1hn2BMbU.js +46 -0
  9. package/dist/MetricCards.vue_vue_type_style_index_0_lang-BDU7pisC.cjs +1 -0
  10. package/dist/MetricsTable.vue_vue_type_style_index_0_lang-BfxK3vcz.js +140 -0
  11. package/dist/MetricsTable.vue_vue_type_style_index_0_lang-CS7xiHRk.cjs +1 -0
  12. package/dist/Timeline.vue_vue_type_style_index_0_lang-EmkZbKjQ.js +2646 -0
  13. package/dist/Timeline.vue_vue_type_style_index_0_lang-HOC43_F3.cjs +2 -0
  14. package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BY2t_Hvs.cjs +1 -0
  15. package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BbnW8GXT.js +72 -0
  16. package/dist/index-3DTuh2Dr.cjs +47 -0
  17. package/dist/{index-DFz2A8yJ.js → index-DevYhXSC.js} +9252 -8377
  18. package/dist/portable/contracts.d.ts +6 -1
  19. package/dist/reportifact.cjs +24 -24
  20. package/dist/reportifact.js +1408 -1403
  21. package/dist/style.css +1 -1
  22. package/dist/widgets/Chart.vue.d.ts +7 -4
  23. package/dist/widgets/ImageGallery.vue.d.ts +7 -4
  24. package/dist/widgets/Markdown.vue.d.ts +1 -1
  25. package/dist/widgets/MetricCallout.vue.d.ts +5 -2
  26. package/dist/widgets/MetricCards.vue.d.ts +6 -3
  27. package/dist/widgets/MetricsTable.vue.d.ts +7 -4
  28. package/dist/widgets/ModelClassComparison.vue.d.ts +1 -1
  29. package/dist/widgets/ModelComparisonGallery.vue.d.ts +1 -1
  30. package/dist/widgets/Table.vue.d.ts +1 -1
  31. package/dist/widgets/Tensorboard.vue.d.ts +1 -1
  32. package/dist/widgets/Timeline.vue.d.ts +7 -4
  33. package/dist/widgets/WidgetWrapper.vue.d.ts +11 -5
  34. package/dist/widgets/chart.cjs +1 -1
  35. package/dist/widgets/chart.js +1 -1
  36. package/dist/widgets/image-gallery.cjs +1 -1
  37. package/dist/widgets/image-gallery.js +1 -1
  38. package/dist/widgets/metric-callout.cjs +1 -1
  39. package/dist/widgets/metric-callout.js +1 -1
  40. package/dist/widgets/metric-cards.cjs +1 -1
  41. package/dist/widgets/metric-cards.js +1 -1
  42. package/dist/widgets/metrics-table.cjs +1 -1
  43. package/dist/widgets/metrics-table.js +1 -1
  44. package/dist/widgets/timeline.cjs +1 -1
  45. package/dist/widgets/timeline.js +1 -1
  46. package/package.json +9 -13
  47. package/dist/Chart.vue_vue_type_style_index_0_lang-B4novMFC.cjs +0 -1
  48. package/dist/ImageGallery.vue_vue_type_style_index_0_lang-BB4dG0CB.cjs +0 -1
  49. package/dist/ImageGallery.vue_vue_type_style_index_0_lang-DPY6mSdA.js +0 -191
  50. package/dist/MetricCallout.vue_vue_type_style_index_0_lang-BZbc-Wkf.js +0 -49
  51. package/dist/MetricCallout.vue_vue_type_style_index_0_lang-WpuALh8Z.cjs +0 -1
  52. package/dist/MetricCards.vue_vue_type_style_index_0_lang-CDPSu7no.cjs +0 -1
  53. package/dist/MetricCards.vue_vue_type_style_index_0_lang-CfxCCXmB.js +0 -33
  54. package/dist/MetricsTable.vue_vue_type_style_index_0_lang-BzrxoJW4.cjs +0 -1
  55. package/dist/MetricsTable.vue_vue_type_style_index_0_lang-CO9HvYfr.js +0 -132
  56. package/dist/Timeline.vue_vue_type_style_index_0_lang-BIyC7N9b.cjs +0 -2
  57. package/dist/Timeline.vue_vue_type_style_index_0_lang-BnrgKBMh.js +0 -2598
  58. package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BQQ4Vv5j.cjs +0 -1
  59. package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-D-oXqmI2.js +0 -59
  60. package/dist/entries/figure.d.ts +0 -1
  61. package/dist/index-DmTzvbys.cjs +0 -47
  62. package/dist/portable/ReportifactFigure.vue.d.ts +0 -36
  63. package/dist/widgets/figure.cjs +0 -1
  64. package/dist/widgets/figure.d.ts +0 -6
  65. 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
- <ReportifactFigure
751
- title="Validation mAP"
749
+ <ReportifactChart
750
+ type="bar-gradient"
751
+ :data="chart"
752
752
  caption="DEIM leads on the held-out validation set."
753
- fallback-src="/case-studies/yolo-vs-deim/map.webp"
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. `ReportifactFigure` owns the shared loading and fallback
777
- presentation; its `fallbackSrc` is also emitted as a no-JavaScript fallback.
778
- Wrap lower-level widgets in `ReportifactWidgetHost` when they are not already
779
- inside a `ReportifactFigure` or full `Reportifact` renderer.
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. Embed a public full report for those experiences instead
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