@ai-matrx/sharing 0.1.2 → 0.1.4

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/core.cjs CHANGED
@@ -459,7 +459,7 @@ var SHAREABLE_RESOURCE_REGISTRY = {
459
459
  context_item: {
460
460
  // Mirrors the live platform.shareable_resource_registry row, which still names the retired
461
461
  // context.context_items: a context field lives in the record store now, and
462
- // public.resolve_shareable_resource REFUSES this token BY NAME ("share the record itself") —
462
+ // iam.resolve_shareable_resource REFUSES this token BY NAME ("share the record itself") —
463
463
  // the same decision the generic registry readers take (platform.record_store_kind,
464
464
  // SCOPES-CLEANUP 2026-10-09). Not a table any share path may read.
465
465
  resourceType: "context_item",
@@ -899,7 +899,7 @@ var SHAREABLE_RESOURCE_REGISTRY = {
899
899
  // TS↔DB guard stays green.
900
900
  scope: {
901
901
  // Mirrors the live registry row (the retired context.scopes). A scope is a record-store Record:
902
- // public.resolve_shareable_resource REFUSES this token BY NAME, as for context_item above.
902
+ // iam.resolve_shareable_resource REFUSES this token BY NAME, as for context_item above.
903
903
  resourceType: "scope",
904
904
  tableName: "scopes",
905
905
  schemaName: "context",
@@ -4705,8 +4705,26 @@ function DefaultCopyButtons(props) {
4705
4705
  }
4706
4706
  );
4707
4707
  }
4708
+ var announced = /* @__PURE__ */ new Set();
4709
+ function announceStandIn(port) {
4710
+ if (announced.has(port)) return;
4711
+ announced.add(port);
4712
+ console.warn(
4713
+ `[share] The share sheet is using its built-in stand-in for "${port}": the host did not pass it, so that part of the sheet is absent. Pass it with configureShareSheetUi({ ${port} }).`
4714
+ );
4715
+ }
4716
+ function StandIn({ port }) {
4717
+ (0, import_react.useEffect)(() => announceStandIn(port), [port]);
4718
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { hidden: true, "data-share-sheet-host": "unconfigured", "data-share-sheet-port": port });
4719
+ }
4708
4720
  function DefaultErrorMenu(_props) {
4709
- return null;
4721
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StandIn, { port: "ErrorAlchemyMenu" });
4722
+ }
4723
+ function DefaultPageCaptureButton(_props) {
4724
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StandIn, { port: "PageCaptureButton" });
4725
+ }
4726
+ function DefaultEntityDoorControls(_props) {
4727
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StandIn, { port: "EntityDoorControls" });
4710
4728
  }
4711
4729
  function DefaultInfoHint(props) {
4712
4730
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { title: String(props.text ?? ""), "aria-label": String(props.label ?? "More info"), className: "cursor-help text-muted-foreground", children: "\u24D8" });
@@ -4816,14 +4834,23 @@ var DEFAULTS = {
4816
4834
  useUserConnections: useDefaultConnections,
4817
4835
  confirm: (o) => (0, import_confirm_opener.confirm)(o),
4818
4836
  CopyButtons: DefaultCopyButtons,
4819
- csvExportItem: () => null,
4820
- jsonExportItem: () => null,
4821
- usePageCapture: () => void 0,
4837
+ csvExportItem: () => {
4838
+ announceStandIn("csvExportItem");
4839
+ return null;
4840
+ },
4841
+ jsonExportItem: () => {
4842
+ announceStandIn("jsonExportItem");
4843
+ return null;
4844
+ },
4845
+ usePageCapture: () => {
4846
+ announceStandIn("usePageCapture");
4847
+ return void 0;
4848
+ },
4822
4849
  dialogCapture: (input) => input,
4823
- PageCaptureButton: () => null,
4850
+ PageCaptureButton: DefaultPageCaptureButton,
4824
4851
  ErrorAlchemyMenu: DefaultErrorMenu,
4825
4852
  InfoHint: DefaultInfoHint,
4826
- EntityDoorControls: () => null,
4853
+ EntityDoorControls: DefaultEntityDoorControls,
4827
4854
  EntityRef: DefaultEntityRef,
4828
4855
  UserAvatarDisplay: DefaultUserAvatar,
4829
4856
  ConnectionsReadNotice: DefaultConnectionsNotice,