@elaraai/e3-ui-components 1.0.24 → 1.0.26

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.
@@ -1 +1 @@
1
- {"version":3,"file":"StatusDisplay.d.ts","sourceRoot":"","sources":["../../src/components/StatusDisplay.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,KAAK,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAuCD;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,kBAAkB,2CAgGrF"}
1
+ {"version":3,"file":"StatusDisplay.d.ts","sourceRoot":"","sources":["../../src/components/StatusDisplay.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,KAAK,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAuCD;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,kBAAkB,2CAiGrF"}
@@ -1 +1 @@
1
- {"version":3,"file":"UITaskPreview.d.ts","sourceRoot":"","sources":["../../src/components/UITaskPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAmCH,OAAO,EAAuB,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU9E,MAAM,WAAW,kBAAkB;IAC/B,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAMD,eAAO,MAAM,aAAa,0DA2GxB,CAAC"}
1
+ {"version":3,"file":"UITaskPreview.d.ts","sourceRoot":"","sources":["../../src/components/UITaskPreview.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAyCH,OAAO,EAAuB,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW9E,MAAM,WAAW,kBAAkB;IAC/B,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAMD,eAAO,MAAM,aAAa,0DAsHxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDatasetValue.d.ts","sourceRoot":"","sources":["../../src/hooks/useDatasetValue.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAA4B,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAK7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAKjD,MAAM,WAAW,sBAAsB;IACnC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,2EAA2E;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACr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AAC;IACrB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B,6CAA6C;IAC7C,IAAI,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,6EAA6E;AAC7E,wBAAgB,eAAe,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,WAAW,EAAE,MAAM,GAAG,IAAI,EAC1B,OAAO,EAAE,sBAAsB,GAChC,cAAc,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAyB3C;AAED,oDAAoD;AACpD,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAAG,IAAI,EACxB,WAAW,EAAE,MAAM,GAAG,IAAI,EAC1B,cAAc,CAAC,EAAE,cAAc,uBAyBlC"}
package/dist/index.cjs CHANGED
@@ -2312,6 +2312,11 @@ class ReactiveDatasetCache {
2312
2312
  });
2313
2313
  } catch (error3) {
2314
2314
  if (isCancelledError(error3)) return;
2315
+ if (isDatasetUnassignedError(error3)) {
2316
+ this.statuses.set(key, east.variant("unset", null));
2317
+ this.notifyChange(key);
2318
+ return;
2319
+ }
2315
2320
  throw error3;
2316
2321
  }
2317
2322
  if (this.destroyed) {
@@ -2609,6 +2614,9 @@ class ReactiveDatasetCache {
2609
2614
  function isCancelledError(error3) {
2610
2615
  return error3 instanceof CancelledError;
2611
2616
  }
2617
+ function isDatasetUnassignedError(error3) {
2618
+ return error3 instanceof e3ApiClient.ApiError && error3.code === "dataset_unassigned";
2619
+ }
2612
2620
  function createReactiveDatasetCache(config2, api3, clock2) {
2613
2621
  return new ReactiveDatasetCache(config2, api3, clock2);
2614
2622
  }
@@ -63075,7 +63083,20 @@ function useDatasetStatus(apiUrl, repo, workspace, datasetPath, options2) {
63075
63083
  ...queryOverrides
63076
63084
  });
63077
63085
  }
63078
- const defaultPlatformImplementations = [...eastUiComponents.StateImpl, ...BindPlatform, ...eastUiComponents.OverlayImpl];
63086
+ const defaultPlatformImplementations = [
63087
+ ...eastUiComponents.StateImpl,
63088
+ ...eastUiComponents.NavImpl,
63089
+ ...eastUiComponents.SliceImpl,
63090
+ ...eastUiComponents.SliceApplyImpl,
63091
+ ...eastUiComponents.OverlayImpl,
63092
+ ...eastUiComponents.ClipboardImpl,
63093
+ ...eastUiComponents.DownloadImpl,
63094
+ ...eastUiComponents.ShareImpl,
63095
+ ...DecisionBindPlatform,
63096
+ ...BindPlatform,
63097
+ ...FuncPlatform,
63098
+ ...RecordPlatform
63099
+ ];
63079
63100
  function useDatasetValue(apiUrl, repo, workspace, datasetPath, options2) {
63080
63101
  const { requestOptions, queryOverrides, enabled = true, hash: hash2, platforms, type } = options2;
63081
63102
  const platformImpls = platforms ?? defaultPlatformImplementations;
@@ -63176,6 +63197,7 @@ function StatusDisplay({ variant, title, message, details }) {
63176
63197
  return /* @__PURE__ */ jsxRuntime.jsx(
63177
63198
  react.Box,
63178
63199
  {
63200
+ "data-status": variant,
63179
63201
  height: "100%",
63180
63202
  width: "100%",
63181
63203
  display: "flex",
@@ -63209,7 +63231,7 @@ function StatusDisplay({ variant, title, message, details }) {
63209
63231
  }
63210
63232
  );
63211
63233
  }
63212
- return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { p: 6, bg: styles2.bg, height: "100%", width: "100%", children: [
63234
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { "data-status": variant, p: 6, bg: styles2.bg, height: "100%", width: "100%", children: [
63213
63235
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "lg", fontWeight: "bold", color: styles2.titleColor, mb: 4, children: title }),
63214
63236
  message && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { color: styles2.messageColor, mb: details ? 4 : 0, children: message }),
63215
63237
  details && /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { position: "relative", children: [
@@ -63723,11 +63745,22 @@ const UITaskPreview = React.memo(function UITaskPreview2({
63723
63745
  const { loading: preloading, error: preloadError } = usePreloadReactiveDatasets(preloads);
63724
63746
  const scopedPlatforms = React.useMemo(
63725
63747
  () => manifest ? [
63748
+ // EVERY browser-local platform impl (unscoped — no manifest paths) from east-ui-components +
63749
+ // e3-ui-components MUST be listed here, or a ui() task that uses it throws "Platform function
63750
+ // '<x>_bind' is not available" — and only inside an e3 ui() task, so component tests miss it
63751
+ // (see east-contribute "Common traps"). The manifest-SCOPED data/func/record binds follow.
63726
63752
  ...eastUiComponents.StateImpl,
63753
+ ...eastUiComponents.NavImpl,
63754
+ ...eastUiComponents.SliceImpl,
63755
+ ...eastUiComponents.SliceApplyImpl,
63756
+ ...eastUiComponents.OverlayImpl,
63757
+ ...eastUiComponents.ClipboardImpl,
63758
+ ...eastUiComponents.DownloadImpl,
63759
+ ...eastUiComponents.ShareImpl,
63760
+ ...DecisionBindPlatform,
63727
63761
  ...createScopedBindPlatform(manifest),
63728
63762
  ...createScopedFuncPlatform(manifest.functions),
63729
- ...createScopedRecordPlatform(manifest.records),
63730
- ...eastUiComponents.OverlayImpl
63763
+ ...createScopedRecordPlatform(manifest.records)
63731
63764
  ] : void 0,
63732
63765
  [manifest]
63733
63766
  );