@elaraai/e3-ui-components 1.0.23 → 1.0.25

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.js CHANGED
@@ -29,7 +29,6 @@ import React__default, { useId, useMemo, useContext, createContext, useRef, useE
29
29
  import { Box, Flex, Text, HStack, Input, useSlotRecipe, useRecipe, VStack, useToken, Drawer, Portal, Field, NativeSelect, Textarea, chakra, Tooltip, SegmentGroup, Menu, HoverCard, useChakraContext, Spinner, Code, Clipboard, IconButton, Badge, Button, Tabs, useTabs } from "@chakra-ui/react";
30
30
  import { implementUIComponent, getSomeorUndefined, formatPredicate, SliceEditPopover, SlicePredicateBuilder, StateRuntime, buildSliceHandle, DEFAULT_SLICE_STATE, registerPlatformImplementation as registerPlatformImplementation$1, EastChakraSelect, EastChakraStringInput, EastChakraDateTimeInput, EastChakraFloatInput, EastChakraIntegerInput, formatTick, useSliceReactivity, SliceRailCluster, EastChakraComponent, ClauseChip, StateImpl, OverlayImpl, createUIStore, UIStoreProvider } from "@elaraai/east-ui-components";
31
31
  import { createPortal } from "react-dom";
32
- import "@elaraai/e3-ui";
33
32
  import { sliceMatches } from "@elaraai/east-ui/internal";
34
33
  import { QueryClient as QueryClient$1, QueryClientProvider, useMutation, useQuery } from "@tanstack/react-query";
35
34
  import { useVirtualizer } from "@tanstack/react-virtual";
@@ -8372,6 +8371,7 @@ function useDatasetKeyVersions(workspace, paths) {
8372
8371
  );
8373
8372
  return useSyncExternalStore(subscribe, getSnapshot);
8374
8373
  }
8374
+ const warnedDirectNoPatch = /* @__PURE__ */ new Set();
8375
8375
  function pickCommitKind(mode, patchPath) {
8376
8376
  if (mode === "staged" && !patchPath) return "apply-buffer-to-source";
8377
8377
  if (mode === "staged" && patchPath) return "publish-buffer-to-patch";
@@ -8389,7 +8389,16 @@ function deriveBindings(workspace, bindings) {
8389
8389
  const types = getBindingTypes(workspace, sourcePath);
8390
8390
  if (!types) continue;
8391
8391
  const commitKind = pickCommitKind(mode, patchPath);
8392
- if (!commitKind) continue;
8392
+ if (!commitKind) {
8393
+ const key = datasetPathToString(sourcePath);
8394
+ if (!warnedDirectNoPatch.has(key)) {
8395
+ warnedDirectNoPatch.add(key);
8396
+ console.warn(
8397
+ `[Diff] binding "${key}" is mode="direct" with no patch dataset — it writes through immediately, so the Diff has nothing to review. Pass { mode: "staged" } to Data.bind (or give it a patch dataset) to surface its edits here.`
8398
+ );
8399
+ }
8400
+ continue;
8401
+ }
8393
8402
  const sourceType = types.sourceType;
8394
8403
  const patchType = types.patchType;
8395
8404
  const label = formatBindingLabel(sourcePath);