@dloizides/ui-feedback 1.23.0 → 1.24.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.
package/dist/index.mjs CHANGED
@@ -44,6 +44,14 @@ var FeedbackUiProvider = ({
44
44
  function useFeedbackUi() {
45
45
  return useContext(FeedbackUiContext);
46
46
  }
47
+ function UiThemeOverride({
48
+ map,
49
+ children
50
+ }) {
51
+ const { theme, t, navigate } = useFeedbackUi();
52
+ const mapped = useMemo(() => map(theme), [map, theme]);
53
+ return /* @__PURE__ */ jsx(FeedbackUiProvider, { navigate, t, theme: mapped, children });
54
+ }
47
55
 
48
56
  // src/constants.ts
49
57
  var MODAL_OVERLAY_COLOR = "rgba(0, 0, 0, 0.5)";
@@ -1736,6 +1744,6 @@ function LiveRunCard(props) {
1736
1744
  ] });
1737
1745
  }
1738
1746
 
1739
- export { AppErrorBoundary, AsyncSurface, COPY_FEEDBACK_MS, ConfirmDialog, CopyStatus, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, EmptyListState, ErrorReferenceRow, ErrorState, FEEDBACK_TEST_IDS, FeedbackUiProvider, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, LoadingFallback, MODAL_OVERLAY_COLOR, PageSkeleton, ProgressBar, ToastHost, FeedbackUiProvider as UiProvider, WARMING_QUIET_PERIOD_MS, WarmingOverlay, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, mergeRunSteps, notifyWarming, progressPercent, readTraceId, runToneColor, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, useCopyToClipboard, useFeedbackUi, useFeedbackUi as useUi };
1747
+ export { AppErrorBoundary, AsyncSurface, COPY_FEEDBACK_MS, ConfirmDialog, CopyStatus, DEFAULT_ERROR_BOUNDARY_LABELS, DISABLED_OPACITY, EmptyListState, ErrorReferenceRow, ErrorState, FEEDBACK_TEST_IDS, FeedbackUiProvider, LIVE_RUN_CARD_COMPACT_MAX_PX, LiveRunCard, LoadingFallback, MODAL_OVERLAY_COLOR, PageSkeleton, ProgressBar, ToastHost, FeedbackUiProvider as UiProvider, UiThemeOverride, WARMING_QUIET_PERIOD_MS, WarmingOverlay, barFraction, clampPercent, copyText, createToastBus, defaultGroupId, getWarmingSnapshot, mergeRunSteps, notifyWarming, progressPercent, readTraceId, runToneColor, settleWarming, splitShorterSteps, subscribeWarming, summariseDoneGroups, useCopyToClipboard, useFeedbackUi, useFeedbackUi as useUi };
1740
1748
  //# sourceMappingURL=index.mjs.map
1741
1749
  //# sourceMappingURL=index.mjs.map