@dxos/plugin-space 0.7.0 → 0.7.1-staging.7f6f91c

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.
@@ -1211,7 +1211,7 @@ var SmallPresence = ({ id, count }) => {
1211
1211
  import React12 from "react";
1212
1212
  import { useIntentDispatcher as useIntentDispatcher3, useResolvePlugins } from "@dxos/app-framework";
1213
1213
  import { Input as Input4, Select, toLocalizedString as toLocalizedString2, useTranslation as useTranslation12 } from "@dxos/react-ui";
1214
- import { DeprecatedFormInput } from "@dxos/react-ui-data";
1214
+ import { DeprecatedFormInput } from "@dxos/react-ui-form";
1215
1215
  var SpacePluginSettings = ({ settings }) => {
1216
1216
  const { t } = useTranslation12(SPACE_PLUGIN);
1217
1217
  const dispatch = useIntentDispatcher3();
@@ -1254,7 +1254,7 @@ import { EdgeReplicationSetting } from "@dxos/protocols/proto/dxos/echo/metadata
1254
1254
  import { useClient as useClient4 } from "@dxos/react-client";
1255
1255
  import { DeviceType, useDevices } from "@dxos/react-client/halo";
1256
1256
  import { Input as Input5, useTranslation as useTranslation13 } from "@dxos/react-ui";
1257
- import { DeprecatedFormInput as DeprecatedFormInput2 } from "@dxos/react-ui-data";
1257
+ import { DeprecatedFormInput as DeprecatedFormInput2 } from "@dxos/react-ui-form";
1258
1258
  var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/components/SpaceSettings/SpaceSettingsPanel.tsx";
1259
1259
  var SpaceSettingsPanel = ({ space }) => {
1260
1260
  const { t } = useTranslation13(SPACE_PLUGIN);
@@ -2667,14 +2667,14 @@ var SpacePlugin = ({ invitationUrl = window.location.origin, invitationParam = "
2667
2667
  ]
2668
2668
  ]
2669
2669
  };
2670
- break;
2671
2670
  }
2672
2671
  case SpaceAction.SHARE: {
2673
2672
  const space = intent.data?.space;
2674
2673
  if (isSpace2(space) && !space.properties[COMPOSER_SPACE_LOCK]) {
2675
2674
  const active = navigationPlugin?.provides.location.active;
2676
2675
  const mode = layoutPlugin?.provides.layout.layoutMode;
2677
- const target = active ? firstIdInPart(active, mode === "solo" ? "solo" : "main") : void 0;
2676
+ const current = active ? firstIdInPart(active, mode === "solo" ? "solo" : "main") : void 0;
2677
+ const target = current?.startsWith(space.id) ? current : void 0;
2678
2678
  return {
2679
2679
  data: true,
2680
2680
  intents: [