@dxos/plugin-space 0.8.2-main.36232bc → 0.8.2-main.5885341

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 (45) hide show
  1. package/dist/lib/browser/{chunk-3KG2VMQL.mjs → chunk-4226DMDP.mjs} +22 -12
  2. package/dist/lib/browser/{chunk-3KG2VMQL.mjs.map → chunk-4226DMDP.mjs.map} +3 -3
  3. package/dist/lib/browser/index.mjs +2 -2
  4. package/dist/lib/browser/index.mjs.map +3 -3
  5. package/dist/lib/browser/{intent-resolver-U3UVTHQV.mjs → intent-resolver-NP55M7C7.mjs} +14 -7
  6. package/dist/lib/browser/intent-resolver-NP55M7C7.mjs.map +7 -0
  7. package/dist/lib/browser/meta.json +1 -1
  8. package/dist/lib/browser/{react-root-63ZJ5IR6.mjs → react-root-XKAUZ3X2.mjs} +2 -2
  9. package/dist/lib/browser/{react-surface-2OFMYE6E.mjs → react-surface-2DW2UDRX.mjs} +2 -2
  10. package/dist/lib/node/{chunk-M7N2NCC4.cjs → chunk-ZMQO74LX.cjs} +30 -20
  11. package/dist/lib/node/chunk-ZMQO74LX.cjs.map +7 -0
  12. package/dist/lib/node/index.cjs +44 -44
  13. package/dist/lib/node/index.cjs.map +2 -2
  14. package/dist/lib/node/{intent-resolver-4JWTDB67.cjs → intent-resolver-3J52ARFL.cjs} +22 -15
  15. package/dist/lib/node/intent-resolver-3J52ARFL.cjs.map +7 -0
  16. package/dist/lib/node/meta.json +1 -1
  17. package/dist/lib/node/{react-root-6T2UE4MX.cjs → react-root-XUE2J7HT.cjs} +6 -6
  18. package/dist/lib/node/{react-surface-6W7WFRBS.cjs → react-surface-IWSTOZ2E.cjs} +36 -36
  19. package/dist/lib/node-esm/{chunk-RM7ZVPKM.mjs → chunk-PQI4D4SH.mjs} +22 -12
  20. package/dist/lib/node-esm/{chunk-RM7ZVPKM.mjs.map → chunk-PQI4D4SH.mjs.map} +3 -3
  21. package/dist/lib/node-esm/index.mjs +2 -2
  22. package/dist/lib/node-esm/index.mjs.map +3 -3
  23. package/dist/lib/node-esm/{intent-resolver-5PUGNEOK.mjs → intent-resolver-MXQIFIRC.mjs} +14 -7
  24. package/dist/lib/node-esm/intent-resolver-MXQIFIRC.mjs.map +7 -0
  25. package/dist/lib/node-esm/meta.json +1 -1
  26. package/dist/lib/node-esm/{react-root-YQKCDI3P.mjs → react-root-ZBCJCEFS.mjs} +2 -2
  27. package/dist/lib/node-esm/{react-surface-UK2HIELM.mjs → react-surface-JCHDAPGM.mjs} +2 -2
  28. package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
  29. package/dist/types/src/components/PopoverRenameSpace.d.ts.map +1 -1
  30. package/dist/types/src/types/thread.d.ts +2 -2
  31. package/dist/types/src/types/thread.d.ts.map +1 -1
  32. package/package.json +45 -45
  33. package/src/SpacePlugin.tsx +2 -2
  34. package/src/capabilities/intent-resolver.ts +14 -2
  35. package/src/components/PopoverRenameSpace.tsx +8 -0
  36. package/dist/lib/browser/intent-resolver-U3UVTHQV.mjs.map +0 -7
  37. package/dist/lib/node/chunk-M7N2NCC4.cjs.map +0 -7
  38. package/dist/lib/node/intent-resolver-4JWTDB67.cjs.map +0 -7
  39. package/dist/lib/node-esm/intent-resolver-5PUGNEOK.mjs.map +0 -7
  40. /package/dist/lib/browser/{react-root-63ZJ5IR6.mjs.map → react-root-XKAUZ3X2.mjs.map} +0 -0
  41. /package/dist/lib/browser/{react-surface-2OFMYE6E.mjs.map → react-surface-2DW2UDRX.mjs.map} +0 -0
  42. /package/dist/lib/node/{react-root-6T2UE4MX.cjs.map → react-root-XUE2J7HT.cjs.map} +0 -0
  43. /package/dist/lib/node/{react-surface-6W7WFRBS.cjs.map → react-surface-IWSTOZ2E.cjs.map} +0 -0
  44. /package/dist/lib/node-esm/{react-root-YQKCDI3P.mjs.map → react-root-ZBCJCEFS.mjs.map} +0 -0
  45. /package/dist/lib/node-esm/{react-surface-UK2HIELM.mjs.map → react-surface-JCHDAPGM.mjs.map} +0 -0
@@ -342,9 +342,9 @@ import { lazy } from "@dxos/app-framework";
342
342
  var AppGraphBuilder = lazy(() => import("./app-graph-builder-ZWNOWRAX.mjs"));
343
343
  var AppGraphSerializer = lazy(() => import("./app-graph-serializer-UUJH7JRN.mjs"));
344
344
  var IdentityCreated = lazy(() => import("./identity-created-NRVE4XLL.mjs"));
345
- var IntentResolver = lazy(() => import("./intent-resolver-U3UVTHQV.mjs"));
346
- var ReactRoot = lazy(() => import("./react-root-63ZJ5IR6.mjs"));
347
- var ReactSurface = lazy(() => import("./react-surface-2OFMYE6E.mjs"));
345
+ var IntentResolver = lazy(() => import("./intent-resolver-NP55M7C7.mjs"));
346
+ var ReactRoot = lazy(() => import("./react-root-XKAUZ3X2.mjs"));
347
+ var ReactSurface = lazy(() => import("./react-surface-2DW2UDRX.mjs"));
348
348
  var Schema = lazy(() => import("./schema-FHTA26SW.mjs"));
349
349
  var Tools = lazy(() => import("./schema-tools-YAXPRIXP.mjs"));
350
350
  var SpaceSettings = lazy(() => import("./settings-MVT32NP6.mjs"));
@@ -1224,14 +1224,24 @@ var PopoverRenameObject = ({ object: obj }) => {
1224
1224
 
1225
1225
  // packages/plugins/plugin-space/src/components/PopoverRenameSpace.tsx
1226
1226
  import React18, { useCallback as useCallback11, useRef as useRef5, useState as useState8 } from "react";
1227
+ import { createIntent as createIntent8, LayoutAction as LayoutAction7, useIntentDispatcher as useIntentDispatcher8 } from "@dxos/app-framework";
1227
1228
  import { Button as Button6, Input as Input4, Popover, useTranslation as useTranslation16 } from "@dxos/react-ui";
1228
1229
  var POPOVER_RENAME_SPACE = `${SPACE_PLUGIN}/PopoverRenameSpace`;
1229
1230
  var PopoverRenameSpace = ({ space }) => {
1230
1231
  const { t } = useTranslation16(SPACE_PLUGIN);
1231
1232
  const doneButton = useRef5(null);
1232
1233
  const [name, setName] = useState8(space.properties.name ?? "");
1234
+ const { dispatchPromise: dispatch } = useIntentDispatcher8();
1233
1235
  const handleDone = useCallback11(() => {
1234
1236
  space.properties.name = name;
1237
+ void dispatch(createIntent8(LayoutAction7.UpdatePopover, {
1238
+ part: "popover",
1239
+ options: {
1240
+ variant: "react",
1241
+ anchorId: "",
1242
+ state: false
1243
+ }
1244
+ }));
1235
1245
  }, [
1236
1246
  space,
1237
1247
  name
@@ -1460,14 +1470,14 @@ var SmallPresence = ({ count = 0, attended, containsAttended }) => {
1460
1470
 
1461
1471
  // packages/plugins/plugin-space/src/components/SpacePluginSettings.tsx
1462
1472
  import React21 from "react";
1463
- import { createIntent as createIntent8, useIntentDispatcher as useIntentDispatcher8 } from "@dxos/app-framework";
1473
+ import { createIntent as createIntent9, useIntentDispatcher as useIntentDispatcher9 } from "@dxos/app-framework";
1464
1474
  import { useClient as useClient6 } from "@dxos/react-client";
1465
1475
  import { useSpaces as useSpaces2 } from "@dxos/react-client/echo";
1466
1476
  import { Input as Input5, toLocalizedString as toLocalizedString3, useTranslation as useTranslation19, List as List3, ListItem as ListItem3, Button as Button7 } from "@dxos/react-ui";
1467
1477
  import { DeprecatedFormContainer, DeprecatedFormInput } from "@dxos/react-ui-form";
1468
1478
  var SpacePluginSettings = ({ settings }) => {
1469
1479
  const { t } = useTranslation19(SPACE_PLUGIN);
1470
- const { dispatchPromise: dispatch } = useIntentDispatcher8();
1480
+ const { dispatchPromise: dispatch } = useIntentDispatcher9();
1471
1481
  const client = useClient6();
1472
1482
  const spaces = useSpaces2({
1473
1483
  all: settings.showHidden
@@ -1490,7 +1500,7 @@ var SpacePluginSettings = ({ settings }) => {
1490
1500
  }, toLocalizedString3(getSpaceDisplayName(space, {
1491
1501
  personal: space === client.spaces.default
1492
1502
  }), t)), /* @__PURE__ */ React21.createElement(ListItem3.Endcap, null, /* @__PURE__ */ React21.createElement(Button7, {
1493
- onClick: () => dispatch(createIntent8(SpaceAction.OpenSettings, {
1503
+ onClick: () => dispatch(createIntent9(SpaceAction.OpenSettings, {
1494
1504
  space
1495
1505
  }))
1496
1506
  }, t("open space settings label"))))))));
@@ -1499,7 +1509,7 @@ var SpacePluginSettings = ({ settings }) => {
1499
1509
  // packages/plugins/plugin-space/src/components/SpaceSettings/SpaceSettingsContainer.tsx
1500
1510
  import { pipe as pipe2, Schema as S } from "effect";
1501
1511
  import React22, { useCallback as useCallback13, useMemo as useMemo3, useState as useState11 } from "react";
1502
- import { chain as chain2, createIntent as createIntent9, LayoutAction as LayoutAction7, useIntentDispatcher as useIntentDispatcher9 } from "@dxos/app-framework";
1512
+ import { chain as chain2, createIntent as createIntent10, LayoutAction as LayoutAction8, useIntentDispatcher as useIntentDispatcher10 } from "@dxos/app-framework";
1503
1513
  import { log as log3 } from "@dxos/log";
1504
1514
  import { EdgeReplicationSetting } from "@dxos/protocols/proto/dxos/echo/metadata";
1505
1515
  import { useClient as useClient7 } from "@dxos/react-client";
@@ -1516,7 +1526,7 @@ var FormSchema = SpaceForm.pipe(S.extend(S.Struct({
1516
1526
  })));
1517
1527
  var SpaceSettingsContainer = ({ space }) => {
1518
1528
  const { t } = useTranslation20(SPACE_PLUGIN);
1519
- const { dispatchPromise: dispatch } = useIntentDispatcher9();
1529
+ const { dispatchPromise: dispatch } = useIntentDispatcher10();
1520
1530
  const client = useClient7();
1521
1531
  const archived = useMulticastObservable(space.state) === SpaceState2.SPACE_INACTIVE;
1522
1532
  const [edgeReplication, setEdgeReplication] = useState11(space.internal.data.edgeReplication === EdgeReplicationSetting.ENABLED);
@@ -1546,14 +1556,14 @@ var SpaceSettingsContainer = ({ space }) => {
1546
1556
  space.properties.hue = properties.hue;
1547
1557
  }
1548
1558
  if (properties.archived && !archived) {
1549
- void dispatch(pipe2(createIntent9(SpaceAction.Close, {
1559
+ void dispatch(pipe2(createIntent10(SpaceAction.Close, {
1550
1560
  space
1551
- }), chain2(LayoutAction7.SwitchWorkspace, {
1561
+ }), chain2(LayoutAction8.SwitchWorkspace, {
1552
1562
  part: "workspace",
1553
1563
  subject: client.spaces.default.id
1554
1564
  })));
1555
1565
  } else if (!properties.archived && archived) {
1556
- void dispatch(createIntent9(SpaceAction.Open, {
1566
+ void dispatch(createIntent10(SpaceAction.Open, {
1557
1567
  space
1558
1568
  }));
1559
1569
  }
@@ -1924,4 +1934,4 @@ export {
1924
1934
  SpaceState,
1925
1935
  SpacesReady
1926
1936
  };
1927
- //# sourceMappingURL=chunk-3KG2VMQL.mjs.map
1937
+ //# sourceMappingURL=chunk-4226DMDP.mjs.map