@dxos/plugin-space 0.8.1-staging.391c573 → 0.8.1-staging.5be625a
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/lib/browser/{app-graph-builder-MGK5HWPZ.mjs → app-graph-builder-VHO33TWC.mjs} +5 -5
- package/dist/lib/browser/{app-graph-serializer-FOWFLYGU.mjs → app-graph-serializer-F3ASSBHI.mjs} +7 -7
- package/dist/lib/browser/{app-graph-serializer-FOWFLYGU.mjs.map → app-graph-serializer-F3ASSBHI.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-23RVI5FZ.mjs → chunk-3UOTYBKX.mjs} +9 -8
- package/dist/lib/browser/{chunk-23RVI5FZ.mjs.map → chunk-3UOTYBKX.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-OWVFWTX4.mjs → chunk-4CTAR2NQ.mjs} +20 -21
- package/dist/lib/browser/chunk-4CTAR2NQ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-ULA2UQJ4.mjs → chunk-HSC56GUH.mjs} +6 -62
- package/dist/lib/browser/chunk-HSC56GUH.mjs.map +7 -0
- package/dist/lib/browser/{chunk-NU7WDVGN.mjs → chunk-O7LODPTY.mjs} +2 -2
- package/dist/lib/browser/{chunk-PQXZCNAU.mjs → chunk-PTKYMZWO.mjs} +1 -1
- package/dist/lib/browser/chunk-PTKYMZWO.mjs.map +7 -0
- package/dist/lib/browser/{chunk-UDWHTKB5.mjs → chunk-RZ7IWZW3.mjs} +6 -8
- package/dist/lib/browser/chunk-RZ7IWZW3.mjs.map +7 -0
- package/dist/lib/browser/{identity-created-FYGS6TBH.mjs → identity-created-YSJQAFUZ.mjs} +3 -3
- package/dist/lib/browser/index.mjs +6 -12
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-7PY5WDYC.mjs → intent-resolver-OQ243G6B.mjs} +11 -9
- package/dist/lib/browser/{intent-resolver-7PY5WDYC.mjs.map → intent-resolver-OQ243G6B.mjs.map} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-EP4XP4IK.mjs → react-root-5CIQKAFC.mjs} +6 -6
- package/dist/lib/browser/{react-surface-VNNI5POA.mjs → react-surface-SEBYKQD5.mjs} +9 -8
- package/dist/lib/browser/react-surface-SEBYKQD5.mjs.map +7 -0
- package/dist/lib/browser/{schema-5W3DSY2E.mjs → schema-UOCBWGA4.mjs} +3 -3
- package/dist/lib/browser/{settings-PHPCXX33.mjs → settings-C4ZEZTJF.mjs} +3 -3
- package/dist/lib/browser/{spaces-ready-K47RR7N2.mjs → spaces-ready-EWHXCOBW.mjs} +5 -5
- package/dist/lib/browser/{state-INJ63O57.mjs → state-BUM7SQUV.mjs} +3 -3
- package/dist/lib/browser/types/index.mjs +2 -10
- package/dist/lib/node/{app-graph-builder-ZIUBXRPA.cjs → app-graph-builder-DFCMCAMT.cjs} +45 -45
- package/dist/lib/node/{app-graph-serializer-VQOGHKXL.cjs → app-graph-serializer-7O35O6SV.cjs} +21 -21
- package/dist/lib/node/{app-graph-serializer-VQOGHKXL.cjs.map → app-graph-serializer-7O35O6SV.cjs.map} +2 -2
- package/dist/lib/node/{chunk-WZR6OAN3.cjs → chunk-6P2DB4QQ.cjs} +4 -4
- package/dist/lib/node/{chunk-WZR6OAN3.cjs.map → chunk-6P2DB4QQ.cjs.map} +2 -2
- package/dist/lib/node/{chunk-U6DYXAR3.cjs → chunk-FOYDT2Z3.cjs} +11 -13
- package/dist/lib/node/chunk-FOYDT2Z3.cjs.map +7 -0
- package/dist/lib/node/{chunk-YZKNRFHU.cjs → chunk-GRM6AGWI.cjs} +10 -10
- package/dist/lib/node/{chunk-OVGKWJOC.cjs → chunk-K3HRT4CT.cjs} +60 -59
- package/dist/lib/node/{chunk-OVGKWJOC.cjs.map → chunk-K3HRT4CT.cjs.map} +3 -3
- package/dist/lib/node/{chunk-53J7HLYX.cjs → chunk-LRW6ZBDX.cjs} +78 -78
- package/dist/lib/node/chunk-LRW6ZBDX.cjs.map +7 -0
- package/dist/lib/node/{chunk-WAJKBO3J.cjs → chunk-MFVXBJQJ.cjs} +11 -71
- package/dist/lib/node/chunk-MFVXBJQJ.cjs.map +7 -0
- package/dist/lib/node/{identity-created-AXI64BLE.cjs → identity-created-YNPY3SHI.cjs} +7 -7
- package/dist/lib/node/index.cjs +93 -99
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-resolver-QEIKJ5FR.cjs → intent-resolver-G5CNUJCN.cjs} +71 -69
- package/dist/lib/node/{intent-resolver-QEIKJ5FR.cjs.map → intent-resolver-G5CNUJCN.cjs.map} +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-root-OW5NTN2U.cjs → react-root-GUOHMGWR.cjs} +12 -12
- package/dist/lib/node/{react-surface-JTIQUBHB.cjs → react-surface-NDV3KMWF.cjs} +62 -61
- package/dist/lib/node/react-surface-NDV3KMWF.cjs.map +7 -0
- package/dist/lib/node/{schema-YN7WVFRX.cjs → schema-EERAOETL.cjs} +7 -7
- package/dist/lib/node/{settings-5QYFWNH7.cjs → settings-JS6D6VHU.cjs} +8 -8
- package/dist/lib/node/{spaces-ready-FQNAKR7G.cjs → spaces-ready-WNOF2MAQ.cjs} +14 -14
- package/dist/lib/node/{state-57UE3DYE.cjs → state-AIETH3DE.cjs} +8 -8
- package/dist/lib/node/types/index.cjs +13 -21
- package/dist/lib/node/types/index.cjs.map +2 -2
- package/dist/lib/node-esm/{app-graph-builder-TERVM2SL.mjs → app-graph-builder-3VUKZI7U.mjs} +5 -5
- package/dist/lib/node-esm/{app-graph-serializer-GZRSWHEN.mjs → app-graph-serializer-PM4PTZK6.mjs} +7 -7
- package/dist/lib/node-esm/{app-graph-serializer-GZRSWHEN.mjs.map → app-graph-serializer-PM4PTZK6.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-FDVNOFE3.mjs → chunk-5YP3LY6A.mjs} +20 -21
- package/dist/lib/node-esm/chunk-5YP3LY6A.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-PGH5L7MV.mjs → chunk-A4XT5SLD.mjs} +9 -8
- package/dist/lib/node-esm/{chunk-PGH5L7MV.mjs.map → chunk-A4XT5SLD.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-6RSVVEPS.mjs → chunk-AJ4IZAKT.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-TRNZQEEN.mjs → chunk-B6QDEMFR.mjs} +6 -62
- package/dist/lib/node-esm/chunk-B6QDEMFR.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-ICCM4YRJ.mjs → chunk-MSWEFAPD.mjs} +1 -1
- package/dist/lib/node-esm/chunk-MSWEFAPD.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-2TQ2AJEZ.mjs → chunk-YA6FCGDI.mjs} +6 -8
- package/dist/lib/node-esm/chunk-YA6FCGDI.mjs.map +7 -0
- package/dist/lib/node-esm/{identity-created-3CGEXNPO.mjs → identity-created-SEMQDDNJ.mjs} +3 -3
- package/dist/lib/node-esm/index.mjs +6 -12
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-7EYVRN3R.mjs → intent-resolver-YMFEX5XN.mjs} +11 -9
- package/dist/lib/node-esm/{intent-resolver-7EYVRN3R.mjs.map → intent-resolver-YMFEX5XN.mjs.map} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-root-RCKGZSZB.mjs → react-root-ROENLKSY.mjs} +6 -6
- package/dist/lib/node-esm/{react-surface-WKKBE5V4.mjs → react-surface-OLDKADHX.mjs} +9 -8
- package/dist/lib/node-esm/react-surface-OLDKADHX.mjs.map +7 -0
- package/dist/lib/node-esm/{schema-LOR2EVGY.mjs → schema-LOOOBN6J.mjs} +3 -3
- package/dist/lib/node-esm/{settings-H6MXTEQM.mjs → settings-B2AS4EGA.mjs} +3 -3
- package/dist/lib/node-esm/{spaces-ready-HKAQG5SA.mjs → spaces-ready-2SKD2XCY.mjs} +5 -5
- package/dist/lib/node-esm/{state-VYA6OFHD.mjs → state-DWUAP6MH.mjs} +3 -3
- package/dist/lib/node-esm/types/index.mjs +2 -10
- package/dist/types/src/SpacePlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/BaseObjectSettings.d.ts.map +1 -1
- package/dist/types/src/components/CreateDialog/CreateObjectDialog.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -5
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +5 -12
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/thread.d.ts +90 -197
- package/dist/types/src/types/thread.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +2 -0
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util.d.ts.map +1 -1
- package/package.json +42 -42
- package/src/SpacePlugin.tsx +0 -1
- package/src/capabilities/app-graph-serializer.ts +2 -2
- package/src/capabilities/intent-resolver.ts +3 -1
- package/src/capabilities/react-surface.tsx +3 -2
- package/src/components/BaseObjectSettings.tsx +3 -1
- package/src/components/CreateDialog/CreateObjectDialog.tsx +3 -6
- package/src/components/PopoverRenameObject.tsx +1 -1
- package/src/meta.ts +2 -2
- package/src/translations.ts +2 -4
- package/src/types/thread.ts +2 -56
- package/src/types/types.ts +3 -0
- package/src/util.tsx +1 -2
- package/dist/lib/browser/chunk-OWVFWTX4.mjs.map +0 -7
- package/dist/lib/browser/chunk-PQXZCNAU.mjs.map +0 -7
- package/dist/lib/browser/chunk-UDWHTKB5.mjs.map +0 -7
- package/dist/lib/browser/chunk-ULA2UQJ4.mjs.map +0 -7
- package/dist/lib/browser/react-surface-VNNI5POA.mjs.map +0 -7
- package/dist/lib/node/chunk-53J7HLYX.cjs.map +0 -7
- package/dist/lib/node/chunk-U6DYXAR3.cjs.map +0 -7
- package/dist/lib/node/chunk-WAJKBO3J.cjs.map +0 -7
- package/dist/lib/node/react-surface-JTIQUBHB.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-2TQ2AJEZ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-FDVNOFE3.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ICCM4YRJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TRNZQEEN.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-WKKBE5V4.mjs.map +0 -7
- /package/dist/lib/browser/{app-graph-builder-MGK5HWPZ.mjs.map → app-graph-builder-VHO33TWC.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-NU7WDVGN.mjs.map → chunk-O7LODPTY.mjs.map} +0 -0
- /package/dist/lib/browser/{identity-created-FYGS6TBH.mjs.map → identity-created-YSJQAFUZ.mjs.map} +0 -0
- /package/dist/lib/browser/{react-root-EP4XP4IK.mjs.map → react-root-5CIQKAFC.mjs.map} +0 -0
- /package/dist/lib/browser/{schema-5W3DSY2E.mjs.map → schema-UOCBWGA4.mjs.map} +0 -0
- /package/dist/lib/browser/{settings-PHPCXX33.mjs.map → settings-C4ZEZTJF.mjs.map} +0 -0
- /package/dist/lib/browser/{spaces-ready-K47RR7N2.mjs.map → spaces-ready-EWHXCOBW.mjs.map} +0 -0
- /package/dist/lib/browser/{state-INJ63O57.mjs.map → state-BUM7SQUV.mjs.map} +0 -0
- /package/dist/lib/node/{app-graph-builder-ZIUBXRPA.cjs.map → app-graph-builder-DFCMCAMT.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-YZKNRFHU.cjs.map → chunk-GRM6AGWI.cjs.map} +0 -0
- /package/dist/lib/node/{identity-created-AXI64BLE.cjs.map → identity-created-YNPY3SHI.cjs.map} +0 -0
- /package/dist/lib/node/{react-root-OW5NTN2U.cjs.map → react-root-GUOHMGWR.cjs.map} +0 -0
- /package/dist/lib/node/{schema-YN7WVFRX.cjs.map → schema-EERAOETL.cjs.map} +0 -0
- /package/dist/lib/node/{settings-5QYFWNH7.cjs.map → settings-JS6D6VHU.cjs.map} +0 -0
- /package/dist/lib/node/{spaces-ready-FQNAKR7G.cjs.map → spaces-ready-WNOF2MAQ.cjs.map} +0 -0
- /package/dist/lib/node/{state-57UE3DYE.cjs.map → state-AIETH3DE.cjs.map} +0 -0
- /package/dist/lib/node-esm/{app-graph-builder-TERVM2SL.mjs.map → app-graph-builder-3VUKZI7U.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-6RSVVEPS.mjs.map → chunk-AJ4IZAKT.mjs.map} +0 -0
- /package/dist/lib/node-esm/{identity-created-3CGEXNPO.mjs.map → identity-created-SEMQDDNJ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-root-RCKGZSZB.mjs.map → react-root-ROENLKSY.mjs.map} +0 -0
- /package/dist/lib/node-esm/{schema-LOR2EVGY.mjs.map → schema-LOOOBN6J.mjs.map} +0 -0
- /package/dist/lib/node-esm/{settings-H6MXTEQM.mjs.map → settings-B2AS4EGA.mjs.map} +0 -0
- /package/dist/lib/node-esm/{spaces-ready-HKAQG5SA.mjs.map → spaces-ready-2SKD2XCY.mjs.map} +0 -0
- /package/dist/lib/node-esm/{state-VYA6OFHD.mjs.map → state-DWUAP6MH.mjs.map} +0 -0
|
@@ -16,20 +16,21 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_FOYDT2Z3_exports = {};
|
|
20
|
+
__export(chunk_FOYDT2Z3_exports, {
|
|
21
21
|
translations_default: () => translations_default
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_FOYDT2Z3_exports);
|
|
24
|
+
var import_chunk_MFVXBJQJ = require("./chunk-MFVXBJQJ.cjs");
|
|
25
|
+
var import_chunk_6P2DB4QQ = require("./chunk-6P2DB4QQ.cjs");
|
|
26
26
|
var translations_default = [
|
|
27
27
|
{
|
|
28
28
|
"en-US": {
|
|
29
|
-
[
|
|
30
|
-
"typename label": "Collection"
|
|
29
|
+
[import_chunk_MFVXBJQJ.CollectionType.typename]: {
|
|
30
|
+
"typename label": "Collection",
|
|
31
|
+
"object name placeholder": "New collection"
|
|
31
32
|
},
|
|
32
|
-
[
|
|
33
|
+
[import_chunk_6P2DB4QQ.SPACE_PLUGIN]: {
|
|
33
34
|
"plugin name": "Spaces",
|
|
34
35
|
"first run message": "Nothing selected.",
|
|
35
36
|
"add space label": "Create or join a space",
|
|
@@ -57,7 +58,7 @@ var translations_default = [
|
|
|
57
58
|
"confirm restore title": "Overwrite files in this space?",
|
|
58
59
|
"confirm restore body": "Restoring from a backup will overwrite the contents of any documents that match.",
|
|
59
60
|
"upload file message": "Drag file here or click to browse",
|
|
60
|
-
"object
|
|
61
|
+
"object placeholder": "Type a title here\u2026",
|
|
61
62
|
"personal space label": "Personal Space",
|
|
62
63
|
"spaces label": "Spaces",
|
|
63
64
|
"show hidden spaces label": "Show closed spaces",
|
|
@@ -80,9 +81,6 @@ var translations_default = [
|
|
|
80
81
|
"object not found description": "The requested object has not been found yet. Ensure there are enough peers online in the space with an updated copy.",
|
|
81
82
|
"missing object message": "Object not available.",
|
|
82
83
|
"missing object description": "The requested object has not been found yet. Ensure there are enough peers online in the space with an updated copy.",
|
|
83
|
-
"create collection label": "Create collection",
|
|
84
|
-
"unnamed object label": "New object",
|
|
85
|
-
"unnamed collection label": "New collection",
|
|
86
84
|
"create object in space label": "Add to space",
|
|
87
85
|
"create object in collection label": "Add to collection",
|
|
88
86
|
"share space label": "Share",
|
|
@@ -150,4 +148,4 @@ var translations_default = [
|
|
|
150
148
|
0 && (module.exports = {
|
|
151
149
|
translations_default
|
|
152
150
|
});
|
|
153
|
-
//# sourceMappingURL=chunk-
|
|
151
|
+
//# sourceMappingURL=chunk-FOYDT2Z3.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { SPACE_PLUGIN } from './meta';\nimport { CollectionType } from './types';\n\nexport default [\n {\n 'en-US': {\n [CollectionType.typename]: {\n 'typename label': 'Collection',\n 'object name placeholder': 'New collection',\n },\n [SPACE_PLUGIN]: {\n 'plugin name': 'Spaces',\n 'first run message': 'Nothing selected.',\n 'add space label': 'Create or join a space',\n 'create space label': 'Create space',\n 'join space label': 'Join space',\n 'empty space message': 'No documents',\n 'empty tree message': 'No spaces',\n 'unnamed space label': 'New space',\n 'closed space label': 'Closed',\n 'loading space label': 'Loading space…',\n 'lock space label': 'Lock space',\n 'unlock space label': 'Unlock space',\n 'rename space label': 'Rename space',\n 'active space label': 'Active space:',\n 'space name label': 'Space name',\n 'object name label': 'Object name',\n 'close space label': 'Close space',\n 'open space label': 'Open space',\n 'export data label': 'Export data',\n 'import data label': 'Import data',\n 'migrate space label': 'Migrate space',\n 'share space': 'Share space',\n 'save space to disk label': 'Save to disk',\n 'load space from disk label': 'Load from disk',\n 'confirm restore title': 'Overwrite files in this space?',\n 'confirm restore body': 'Restoring from a backup will overwrite the contents of any documents that match.',\n 'upload file message': 'Drag file here or click to browse',\n 'object placeholder': 'Type a title here…',\n 'personal space label': 'Personal Space',\n 'spaces label': 'Spaces',\n 'show hidden spaces label': 'Show closed spaces',\n 'save files to directory label': 'Save files to disk',\n 'select path label': 'Select path',\n 'rename collection label': 'Rename collection',\n 'rename object label': 'Rename item',\n 'duplicate object label': 'Duplicate item',\n 'delete collection label': 'Delete collection',\n 'delete object label': 'Delete item',\n 'collection deleted label': 'Collection deleted',\n 'object deleted label': 'Item deleted',\n 'objects deleted label': 'Items deleted',\n 'go to object label': 'Open item',\n 'found object label': 'Ready.',\n 'found object description': 'The requested object is now available.',\n 'waiting for object label': 'Loading…',\n 'waiting for object description': 'The requested object is still being synchronized.',\n 'object not found label': 'Nothing found.',\n 'object not found description':\n 'The requested object has not been found yet. Ensure there are enough peers online in the space with an updated copy.',\n 'missing object message': 'Object not available.',\n 'missing object description':\n 'The requested object has not been found yet. Ensure there are enough peers online in the space with an updated copy.',\n 'create object in space label': 'Add to space',\n 'create object in collection label': 'Add to collection',\n 'share space label': 'Share',\n 'space members label': 'Space members',\n 'active space members heading': 'Online ({{count}})',\n 'inactive space members heading': 'Offline ({{count}})',\n 'presence label_zero': 'No other viewers',\n 'presence label_one': '1 other viewer',\n 'presence label_other': '{{count}} other viewers',\n 'persisted locally label': 'Changes saved locally.',\n 'persisted locally message': 'All changes have been saved to disk on this device.',\n 'persistence pending label': 'Saving…',\n 'persistence error label': 'Error saving changes.',\n 'more actions label': 'More actions',\n 'invitations heading': 'Invitations',\n 'keyshortcuts label': 'Keyboard shortcuts',\n 'menu footer label': 'Details',\n 'location label': 'Located in',\n 'space limit label': 'Space Limit Reached',\n 'space limit description':\n 'This space has reached the maximum number of objects for the beta. This limit includes deleted objects currently, but those can be permanently removed with the cleanup action.',\n 'space limit close label': 'Close',\n 'remove deleted objects label': 'Cleanup',\n 'remove deleted objects alt': 'Permanently remove deleted objects to free up space.',\n 'copy link label': 'Copy link',\n 'default on space create label': 'On space create',\n 'sync status title': 'Sync status',\n 'dismiss label': 'Dismiss',\n 'join success label': 'Successfully joined space',\n 'name label': 'Name',\n 'name placeholder': 'Name',\n 'unnamed object settings label': 'Settings',\n 'edge replication label': 'Enable EDGE Replication',\n 'saving locally label': 'Writing to disk',\n 'downloading label': 'Replicating from peers',\n 'uploading label': 'Replicating to peers',\n 'offline persisted label': 'Saved to disk (offline)',\n 'remote synced label': 'Synced with peers',\n 'open settings panel label': 'Show Settings',\n 'settings panel label': 'Settings',\n 'open space settings label': 'Space Settings',\n 'members tab label': 'Members',\n 'settings tab label': 'Settings',\n 'syncing label': 'Space syncing',\n 'show all label': 'Show all',\n 'no sync status label': 'No space with missing objects.',\n 'create space dialog title': 'Create Space',\n 'create object dialog title': 'Create Object',\n 'space input placeholder': 'Select space',\n 'schema input placeholder': 'Select object type',\n 'creating object type label': 'Type',\n 'creating in space label': 'Location',\n 'creating in collection label': 'In Collection',\n 'clear input label': 'Clear',\n 'expose object label': 'Expose in navtree',\n 'advanced settings label': 'Advanced',\n 'foreign keys': 'Foreign Keys',\n 'add key': 'Add Key',\n 'icon label': 'Icon',\n 'hue label': 'Color',\n },\n },\n },\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACA,qCAAeC,QAAQ,GAAG;QACzB,kBAAkB;QAClB,2BAA2B;MAC7B;MACA,CAACC,kCAAAA,GAAe;QACd,eAAe;QACf,qBAAqB;QACrB,mBAAmB;QACnB,sBAAsB;QACtB,oBAAoB;QACpB,uBAAuB;QACvB,sBAAsB;QACtB,uBAAuB;QACvB,sBAAsB;QACtB,uBAAuB;QACvB,oBAAoB;QACpB,sBAAsB;QACtB,sBAAsB;QACtB,sBAAsB;QACtB,oBAAoB;QACpB,qBAAqB;QACrB,qBAAqB;QACrB,oBAAoB;QACpB,qBAAqB;QACrB,qBAAqB;QACrB,uBAAuB;QACvB,eAAe;QACf,4BAA4B;QAC5B,8BAA8B;QAC9B,yBAAyB;QACzB,wBAAwB;QACxB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,gBAAgB;QAChB,4BAA4B;QAC5B,iCAAiC;QACjC,qBAAqB;QACrB,2BAA2B;QAC3B,uBAAuB;QACvB,0BAA0B;QAC1B,2BAA2B;QAC3B,uBAAuB;QACvB,4BAA4B;QAC5B,wBAAwB;QACxB,yBAAyB;QACzB,sBAAsB;QACtB,sBAAsB;QACtB,4BAA4B;QAC5B,4BAA4B;QAC5B,kCAAkC;QAClC,0BAA0B;QAC1B,gCACE;QACF,0BAA0B;QAC1B,8BACE;QACF,gCAAgC;QAChC,qCAAqC;QACrC,qBAAqB;QACrB,uBAAuB;QACvB,gCAAgC;QAChC,kCAAkC;QAClC,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,6BAA6B;QAC7B,6BAA6B;QAC7B,2BAA2B;QAC3B,sBAAsB;QACtB,uBAAuB;QACvB,sBAAsB;QACtB,qBAAqB;QACrB,kBAAkB;QAClB,qBAAqB;QACrB,2BACE;QACF,2BAA2B;QAC3B,gCAAgC;QAChC,8BAA8B;QAC9B,mBAAmB;QACnB,iCAAiC;QACjC,qBAAqB;QACrB,iBAAiB;QACjB,sBAAsB;QACtB,cAAc;QACd,oBAAoB;QACpB,iCAAiC;QACjC,0BAA0B;QAC1B,wBAAwB;QACxB,qBAAqB;QACrB,mBAAmB;QACnB,2BAA2B;QAC3B,uBAAuB;QACvB,6BAA6B;QAC7B,wBAAwB;QACxB,6BAA6B;QAC7B,qBAAqB;QACrB,sBAAsB;QACtB,iBAAiB;QACjB,kBAAkB;QAClB,wBAAwB;QACxB,6BAA6B;QAC7B,8BAA8B;QAC9B,2BAA2B;QAC3B,4BAA4B;QAC5B,8BAA8B;QAC9B,2BAA2B;QAC3B,gCAAgC;QAChC,qBAAqB;QACrB,uBAAuB;QACvB,2BAA2B;QAC3B,gBAAgB;QAChB,WAAW;QACX,cAAc;QACd,aAAa;MACf;IACF;EACF;;",
|
|
6
|
+
"names": ["CollectionType", "typename", "SPACE_PLUGIN"]
|
|
7
|
+
}
|
|
@@ -16,28 +16,28 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_GRM6AGWI_exports = {};
|
|
20
|
+
__export(chunk_GRM6AGWI_exports, {
|
|
21
21
|
SpaceCapabilities: () => SpaceCapabilities,
|
|
22
22
|
ThreadCapabilities: () => ThreadCapabilities
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
25
|
-
var
|
|
24
|
+
module.exports = __toCommonJS(chunk_GRM6AGWI_exports);
|
|
25
|
+
var import_chunk_6P2DB4QQ = require("./chunk-6P2DB4QQ.cjs");
|
|
26
26
|
var import_app_framework = require("@dxos/app-framework");
|
|
27
27
|
var SpaceCapabilities;
|
|
28
28
|
(function(SpaceCapabilities2) {
|
|
29
|
-
SpaceCapabilities2.State = (0, import_app_framework.defineCapability)(`${
|
|
30
|
-
SpaceCapabilities2.MutableState = (0, import_app_framework.defineCapability)(`${
|
|
31
|
-
SpaceCapabilities2.SettingsPanel = (0, import_app_framework.defineCapability)(`${
|
|
32
|
-
SpaceCapabilities2.ObjectForm = (0, import_app_framework.defineCapability)(`${
|
|
29
|
+
SpaceCapabilities2.State = (0, import_app_framework.defineCapability)(`${import_chunk_6P2DB4QQ.SPACE_PLUGIN}/capability/state`);
|
|
30
|
+
SpaceCapabilities2.MutableState = (0, import_app_framework.defineCapability)(`${import_chunk_6P2DB4QQ.SPACE_PLUGIN}/capability/state`);
|
|
31
|
+
SpaceCapabilities2.SettingsPanel = (0, import_app_framework.defineCapability)(`${import_chunk_6P2DB4QQ.SPACE_PLUGIN}/capability/settings-panel`);
|
|
32
|
+
SpaceCapabilities2.ObjectForm = (0, import_app_framework.defineCapability)(`${import_chunk_6P2DB4QQ.SPACE_PLUGIN}/capability/object-form`);
|
|
33
33
|
})(SpaceCapabilities || (SpaceCapabilities = {}));
|
|
34
34
|
var ThreadCapabilities;
|
|
35
35
|
(function(ThreadCapabilities2) {
|
|
36
|
-
ThreadCapabilities2.Thread = (0, import_app_framework.defineCapability)(`${
|
|
36
|
+
ThreadCapabilities2.Thread = (0, import_app_framework.defineCapability)(`${import_chunk_6P2DB4QQ.SPACE_PLUGIN}/capability/thread`);
|
|
37
37
|
})(ThreadCapabilities || (ThreadCapabilities = {}));
|
|
38
38
|
// Annotate the CommonJS export names for ESM import in node:
|
|
39
39
|
0 && (module.exports = {
|
|
40
40
|
SpaceCapabilities,
|
|
41
41
|
ThreadCapabilities
|
|
42
42
|
});
|
|
43
|
-
//# sourceMappingURL=chunk-
|
|
43
|
+
//# sourceMappingURL=chunk-GRM6AGWI.cjs.map
|
|
@@ -16,8 +16,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_K3HRT4CT_exports = {};
|
|
20
|
+
__export(chunk_K3HRT4CT_exports, {
|
|
21
21
|
COMPOSER_SPACE_LOCK: () => COMPOSER_SPACE_LOCK,
|
|
22
22
|
SHARED: () => SHARED,
|
|
23
23
|
SPACES: () => SPACES,
|
|
@@ -32,9 +32,9 @@ __export(chunk_OVGKWJOC_exports, {
|
|
|
32
32
|
getSpaceDisplayName: () => getSpaceDisplayName,
|
|
33
33
|
memoizeQuery: () => memoizeQuery
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
36
|
-
var
|
|
37
|
-
var
|
|
35
|
+
module.exports = __toCommonJS(chunk_K3HRT4CT_exports);
|
|
36
|
+
var import_chunk_MFVXBJQJ = require("./chunk-MFVXBJQJ.cjs");
|
|
37
|
+
var import_chunk_6P2DB4QQ = require("./chunk-6P2DB4QQ.cjs");
|
|
38
38
|
var import_app_framework = require("@dxos/app-framework");
|
|
39
39
|
var import_echo_schema = require("@dxos/echo-schema");
|
|
40
40
|
var import_invariant = require("@dxos/invariant");
|
|
@@ -43,7 +43,7 @@ var import_migrations = require("@dxos/migrations");
|
|
|
43
43
|
var import_plugin_graph = require("@dxos/plugin-graph");
|
|
44
44
|
var import_echo = require("@dxos/react-client/echo");
|
|
45
45
|
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-space/src/util.tsx";
|
|
46
|
-
var SPACES = `${
|
|
46
|
+
var SPACES = `${import_chunk_6P2DB4QQ.SPACE_PLUGIN}-spaces`;
|
|
47
47
|
var SPACE_TYPE = "dxos.org/type/Space";
|
|
48
48
|
var COMPOSER_SPACE_LOCK = "dxos.org/plugin/space/lock";
|
|
49
49
|
var SHARED = "shared-spaces";
|
|
@@ -62,12 +62,12 @@ var getSpaceDisplayName = (space, { personal, namesCache = {} } = {}) => {
|
|
|
62
62
|
return space.state.get() === import_echo.SpaceState.SPACE_READY && (space.properties.name?.length ?? 0) > 0 ? space.properties.name : namesCache[space.id] ? namesCache[space.id] : personal ? [
|
|
63
63
|
"personal space label",
|
|
64
64
|
{
|
|
65
|
-
ns:
|
|
65
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
66
66
|
}
|
|
67
67
|
] : [
|
|
68
68
|
"unnamed space label",
|
|
69
69
|
{
|
|
70
|
-
ns:
|
|
70
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
71
71
|
}
|
|
72
72
|
];
|
|
73
73
|
};
|
|
@@ -115,8 +115,8 @@ var checkPendingMigration = (space) => {
|
|
|
115
115
|
};
|
|
116
116
|
var constructSpaceNode = ({ space, navigable = false, personal, namesCache, resolve }) => {
|
|
117
117
|
const hasPendingMigration = checkPendingMigration(space);
|
|
118
|
-
const collection = space.state.get() === import_echo.SpaceState.SPACE_READY && space.properties[
|
|
119
|
-
const partials = space.state.get() === import_echo.SpaceState.SPACE_READY && collection instanceof
|
|
118
|
+
const collection = space.state.get() === import_echo.SpaceState.SPACE_READY && space.properties[import_chunk_MFVXBJQJ.CollectionType.typename]?.target;
|
|
119
|
+
const partials = space.state.get() === import_echo.SpaceState.SPACE_READY && collection instanceof import_chunk_MFVXBJQJ.CollectionType ? getCollectionGraphNodePartials({
|
|
120
120
|
collection,
|
|
121
121
|
space,
|
|
122
122
|
resolve,
|
|
@@ -152,10 +152,10 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
152
152
|
const actions = [];
|
|
153
153
|
if (hasPendingMigration) {
|
|
154
154
|
actions.push({
|
|
155
|
-
id: getId(
|
|
155
|
+
id: getId(import_chunk_MFVXBJQJ.SpaceAction.Migrate._tag),
|
|
156
156
|
type: import_plugin_graph.ACTION_GROUP_TYPE,
|
|
157
157
|
data: async () => {
|
|
158
|
-
await dispatch((0, import_app_framework.createIntent)(
|
|
158
|
+
await dispatch((0, import_app_framework.createIntent)(import_chunk_MFVXBJQJ.SpaceAction.Migrate, {
|
|
159
159
|
space
|
|
160
160
|
}));
|
|
161
161
|
},
|
|
@@ -163,7 +163,7 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
163
163
|
label: [
|
|
164
164
|
"migrate space label",
|
|
165
165
|
{
|
|
166
|
-
ns:
|
|
166
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
167
167
|
}
|
|
168
168
|
],
|
|
169
169
|
icon: "ph--database--regular",
|
|
@@ -175,10 +175,10 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
175
175
|
if (state === import_echo.SpaceState.SPACE_READY && !hasPendingMigration) {
|
|
176
176
|
const locked = space.properties[COMPOSER_SPACE_LOCK];
|
|
177
177
|
actions.push({
|
|
178
|
-
id: getId(
|
|
178
|
+
id: getId(import_chunk_MFVXBJQJ.SpaceAction.OpenCreateObject._tag),
|
|
179
179
|
type: import_plugin_graph.ACTION_TYPE,
|
|
180
180
|
data: async () => {
|
|
181
|
-
await dispatch((0, import_app_framework.createIntent)(
|
|
181
|
+
await dispatch((0, import_app_framework.createIntent)(import_chunk_MFVXBJQJ.SpaceAction.OpenCreateObject, {
|
|
182
182
|
target: space
|
|
183
183
|
}));
|
|
184
184
|
},
|
|
@@ -186,7 +186,7 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
186
186
|
label: [
|
|
187
187
|
"create object in space label",
|
|
188
188
|
{
|
|
189
|
-
ns:
|
|
189
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
190
190
|
}
|
|
191
191
|
],
|
|
192
192
|
icon: "ph--plus--regular",
|
|
@@ -194,13 +194,13 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
194
194
|
testId: "spacePlugin.createObject"
|
|
195
195
|
}
|
|
196
196
|
}, {
|
|
197
|
-
id: getId(
|
|
197
|
+
id: getId(import_chunk_MFVXBJQJ.SpaceAction.Share._tag),
|
|
198
198
|
type: import_plugin_graph.ACTION_TYPE,
|
|
199
199
|
data: async () => {
|
|
200
200
|
if (locked) {
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
|
-
await dispatch((0, import_app_framework.createIntent)(
|
|
203
|
+
await dispatch((0, import_app_framework.createIntent)(import_chunk_MFVXBJQJ.SpaceAction.Share, {
|
|
204
204
|
space
|
|
205
205
|
}));
|
|
206
206
|
},
|
|
@@ -208,7 +208,7 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
208
208
|
label: [
|
|
209
209
|
"share space label",
|
|
210
210
|
{
|
|
211
|
-
ns:
|
|
211
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
212
212
|
}
|
|
213
213
|
],
|
|
214
214
|
icon: "ph--users--regular",
|
|
@@ -223,15 +223,15 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
}, {
|
|
226
|
-
id: locked ? getId(
|
|
226
|
+
id: locked ? getId(import_chunk_MFVXBJQJ.SpaceAction.Unlock._tag) : getId(import_chunk_MFVXBJQJ.SpaceAction.Lock._tag),
|
|
227
227
|
type: import_plugin_graph.ACTION_TYPE,
|
|
228
228
|
data: async () => {
|
|
229
229
|
if (locked) {
|
|
230
|
-
await dispatch((0, import_app_framework.createIntent)(
|
|
230
|
+
await dispatch((0, import_app_framework.createIntent)(import_chunk_MFVXBJQJ.SpaceAction.Unlock, {
|
|
231
231
|
space
|
|
232
232
|
}));
|
|
233
233
|
} else {
|
|
234
|
-
await dispatch((0, import_app_framework.createIntent)(
|
|
234
|
+
await dispatch((0, import_app_framework.createIntent)(import_chunk_MFVXBJQJ.SpaceAction.Lock, {
|
|
235
235
|
space
|
|
236
236
|
}));
|
|
237
237
|
}
|
|
@@ -240,16 +240,16 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
240
240
|
label: [
|
|
241
241
|
locked ? "unlock space label" : "lock space label",
|
|
242
242
|
{
|
|
243
|
-
ns:
|
|
243
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
244
244
|
}
|
|
245
245
|
],
|
|
246
246
|
icon: locked ? "ph--lock-simple-open--regular" : "ph--lock-simple--regular"
|
|
247
247
|
}
|
|
248
248
|
}, {
|
|
249
|
-
id: getId(
|
|
249
|
+
id: getId(import_chunk_MFVXBJQJ.SpaceAction.Rename._tag),
|
|
250
250
|
type: import_plugin_graph.ACTION_TYPE,
|
|
251
251
|
data: async (params) => {
|
|
252
|
-
await dispatch((0, import_app_framework.createIntent)(
|
|
252
|
+
await dispatch((0, import_app_framework.createIntent)(import_chunk_MFVXBJQJ.SpaceAction.Rename, {
|
|
253
253
|
space,
|
|
254
254
|
caller: params.caller
|
|
255
255
|
}));
|
|
@@ -258,7 +258,7 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
258
258
|
label: [
|
|
259
259
|
"rename space label",
|
|
260
260
|
{
|
|
261
|
-
ns:
|
|
261
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
262
262
|
}
|
|
263
263
|
],
|
|
264
264
|
icon: "ph--pencil-simple-line--regular",
|
|
@@ -268,10 +268,10 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
}, {
|
|
271
|
-
id: getId(
|
|
271
|
+
id: getId(import_chunk_MFVXBJQJ.SpaceAction.OpenSettings._tag),
|
|
272
272
|
type: import_plugin_graph.ACTION_TYPE,
|
|
273
273
|
data: async () => {
|
|
274
|
-
await dispatch((0, import_app_framework.createIntent)(
|
|
274
|
+
await dispatch((0, import_app_framework.createIntent)(import_chunk_MFVXBJQJ.SpaceAction.OpenSettings, {
|
|
275
275
|
space
|
|
276
276
|
}));
|
|
277
277
|
},
|
|
@@ -279,7 +279,7 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
279
279
|
label: [
|
|
280
280
|
"open space settings label",
|
|
281
281
|
{
|
|
282
|
-
ns:
|
|
282
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
283
283
|
}
|
|
284
284
|
],
|
|
285
285
|
icon: "ph--gear--regular"
|
|
@@ -288,10 +288,10 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
288
288
|
}
|
|
289
289
|
if (state !== import_echo.SpaceState.SPACE_INACTIVE && !hasPendingMigration) {
|
|
290
290
|
actions.push({
|
|
291
|
-
id: getId(
|
|
291
|
+
id: getId(import_chunk_MFVXBJQJ.SpaceAction.Close._tag),
|
|
292
292
|
type: import_plugin_graph.ACTION_TYPE,
|
|
293
293
|
data: async () => {
|
|
294
|
-
await dispatch((0, import_app_framework.createIntent)(
|
|
294
|
+
await dispatch((0, import_app_framework.createIntent)(import_chunk_MFVXBJQJ.SpaceAction.Close, {
|
|
295
295
|
space
|
|
296
296
|
}));
|
|
297
297
|
},
|
|
@@ -299,7 +299,7 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
299
299
|
label: [
|
|
300
300
|
"close space label",
|
|
301
301
|
{
|
|
302
|
-
ns:
|
|
302
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
303
303
|
}
|
|
304
304
|
],
|
|
305
305
|
icon: "ph--x--regular",
|
|
@@ -309,10 +309,10 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
309
309
|
}
|
|
310
310
|
if (state === import_echo.SpaceState.SPACE_INACTIVE) {
|
|
311
311
|
actions.push({
|
|
312
|
-
id: getId(
|
|
312
|
+
id: getId(import_chunk_MFVXBJQJ.SpaceAction.Open._tag),
|
|
313
313
|
type: import_plugin_graph.ACTION_TYPE,
|
|
314
314
|
data: async () => {
|
|
315
|
-
await dispatch((0, import_app_framework.createIntent)(
|
|
315
|
+
await dispatch((0, import_app_framework.createIntent)(import_chunk_MFVXBJQJ.SpaceAction.Open, {
|
|
316
316
|
space
|
|
317
317
|
}));
|
|
318
318
|
},
|
|
@@ -320,7 +320,7 @@ var constructSpaceActions = ({ space, dispatch, personal, migrating }) => {
|
|
|
320
320
|
label: [
|
|
321
321
|
"open space label",
|
|
322
322
|
{
|
|
323
|
-
ns:
|
|
323
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
324
324
|
}
|
|
325
325
|
],
|
|
326
326
|
icon: "ph--clock-counter-clockwise--regular",
|
|
@@ -339,7 +339,7 @@ var createObjectNode = ({ object, space, navigable = false, resolve }) => {
|
|
|
339
339
|
if (Object.keys(metadata).length === 0) {
|
|
340
340
|
return void 0;
|
|
341
341
|
}
|
|
342
|
-
const partials = object instanceof
|
|
342
|
+
const partials = object instanceof import_chunk_MFVXBJQJ.CollectionType ? getCollectionGraphNodePartials({
|
|
343
343
|
collection: object,
|
|
344
344
|
space,
|
|
345
345
|
resolve,
|
|
@@ -356,10 +356,11 @@ var createObjectNode = ({ object, space, navigable = false, resolve }) => {
|
|
|
356
356
|
data: object,
|
|
357
357
|
properties: {
|
|
358
358
|
...partials,
|
|
359
|
-
label: metadata.label?.(object) || object.name ||
|
|
360
|
-
"
|
|
359
|
+
label: metadata.label?.(object) || object.name || [
|
|
360
|
+
"object name placeholder",
|
|
361
361
|
{
|
|
362
|
-
ns:
|
|
362
|
+
ns: type,
|
|
363
|
+
default: "New object"
|
|
363
364
|
}
|
|
364
365
|
],
|
|
365
366
|
icon: metadata.icon ?? "ph--placeholder--regular",
|
|
@@ -374,7 +375,7 @@ var constructObjectActions = ({ node, dispatch, navigable = false }) => {
|
|
|
374
375
|
const space = (0, import_echo.getSpace)(object);
|
|
375
376
|
(0, import_invariant.invariant)(space, "Space not found", {
|
|
376
377
|
F: __dxlog_file,
|
|
377
|
-
L:
|
|
378
|
+
L: 422,
|
|
378
379
|
S: void 0,
|
|
379
380
|
A: [
|
|
380
381
|
"space",
|
|
@@ -383,12 +384,12 @@ var constructObjectActions = ({ node, dispatch, navigable = false }) => {
|
|
|
383
384
|
});
|
|
384
385
|
const getId = (id) => `${id}/${(0, import_echo.fullyQualifiedId)(object)}`;
|
|
385
386
|
const actions = [
|
|
386
|
-
...object instanceof
|
|
387
|
+
...object instanceof import_chunk_MFVXBJQJ.CollectionType ? [
|
|
387
388
|
{
|
|
388
|
-
id: getId(
|
|
389
|
+
id: getId(import_chunk_MFVXBJQJ.SpaceAction.OpenCreateObject._tag),
|
|
389
390
|
type: import_plugin_graph.ACTION_TYPE,
|
|
390
391
|
data: async () => {
|
|
391
|
-
await dispatch((0, import_app_framework.createIntent)(
|
|
392
|
+
await dispatch((0, import_app_framework.createIntent)(import_chunk_MFVXBJQJ.SpaceAction.OpenCreateObject, {
|
|
392
393
|
target: object
|
|
393
394
|
}));
|
|
394
395
|
},
|
|
@@ -396,7 +397,7 @@ var constructObjectActions = ({ node, dispatch, navigable = false }) => {
|
|
|
396
397
|
label: [
|
|
397
398
|
"create object in collection label",
|
|
398
399
|
{
|
|
399
|
-
ns:
|
|
400
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
400
401
|
}
|
|
401
402
|
],
|
|
402
403
|
icon: "ph--plus--regular",
|
|
@@ -406,19 +407,19 @@ var constructObjectActions = ({ node, dispatch, navigable = false }) => {
|
|
|
406
407
|
}
|
|
407
408
|
] : [],
|
|
408
409
|
{
|
|
409
|
-
id: getId(
|
|
410
|
+
id: getId(import_chunk_MFVXBJQJ.SpaceAction.RenameObject._tag),
|
|
410
411
|
type: import_plugin_graph.ACTION_TYPE,
|
|
411
412
|
data: async (params) => {
|
|
412
|
-
await dispatch((0, import_app_framework.createIntent)(
|
|
413
|
+
await dispatch((0, import_app_framework.createIntent)(import_chunk_MFVXBJQJ.SpaceAction.RenameObject, {
|
|
413
414
|
object,
|
|
414
415
|
caller: params.caller
|
|
415
416
|
}));
|
|
416
417
|
},
|
|
417
418
|
properties: {
|
|
418
419
|
label: [
|
|
419
|
-
object instanceof
|
|
420
|
+
object instanceof import_chunk_MFVXBJQJ.CollectionType ? "rename collection label" : "rename object label",
|
|
420
421
|
{
|
|
421
|
-
ns:
|
|
422
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
422
423
|
}
|
|
423
424
|
],
|
|
424
425
|
icon: "ph--pencil-simple-line--regular",
|
|
@@ -428,14 +429,14 @@ var constructObjectActions = ({ node, dispatch, navigable = false }) => {
|
|
|
428
429
|
}
|
|
429
430
|
},
|
|
430
431
|
{
|
|
431
|
-
id: getId(
|
|
432
|
+
id: getId(import_chunk_MFVXBJQJ.SpaceAction.RemoveObjects._tag),
|
|
432
433
|
type: import_plugin_graph.ACTION_TYPE,
|
|
433
434
|
data: async () => {
|
|
434
435
|
const graph = (0, import_plugin_graph.getGraph)(node);
|
|
435
436
|
const collection = graph.nodes(node, {
|
|
436
437
|
relation: "inbound"
|
|
437
|
-
}).find(({ data }) => data instanceof
|
|
438
|
-
await dispatch((0, import_app_framework.createIntent)(
|
|
438
|
+
}).find(({ data }) => data instanceof import_chunk_MFVXBJQJ.CollectionType)?.data;
|
|
439
|
+
await dispatch((0, import_app_framework.createIntent)(import_chunk_MFVXBJQJ.SpaceAction.RemoveObjects, {
|
|
439
440
|
objects: [
|
|
440
441
|
object
|
|
441
442
|
],
|
|
@@ -444,17 +445,17 @@ var constructObjectActions = ({ node, dispatch, navigable = false }) => {
|
|
|
444
445
|
},
|
|
445
446
|
properties: {
|
|
446
447
|
label: [
|
|
447
|
-
object instanceof
|
|
448
|
+
object instanceof import_chunk_MFVXBJQJ.CollectionType ? "delete collection label" : "delete object label",
|
|
448
449
|
{
|
|
449
|
-
ns:
|
|
450
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
450
451
|
}
|
|
451
452
|
],
|
|
452
453
|
icon: "ph--trash--regular",
|
|
453
|
-
keyBinding: object instanceof
|
|
454
|
+
keyBinding: object instanceof import_chunk_MFVXBJQJ.CollectionType ? void 0 : "shift+meta+Backspace",
|
|
454
455
|
testId: "spacePlugin.deleteObject"
|
|
455
456
|
}
|
|
456
457
|
},
|
|
457
|
-
...navigable || !(object instanceof
|
|
458
|
+
...navigable || !(object instanceof import_chunk_MFVXBJQJ.CollectionType) ? [
|
|
458
459
|
{
|
|
459
460
|
id: getId("copy-link"),
|
|
460
461
|
type: import_plugin_graph.ACTION_TYPE,
|
|
@@ -466,7 +467,7 @@ var constructObjectActions = ({ node, dispatch, navigable = false }) => {
|
|
|
466
467
|
label: [
|
|
467
468
|
"copy link label",
|
|
468
469
|
{
|
|
469
|
-
ns:
|
|
470
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
470
471
|
}
|
|
471
472
|
],
|
|
472
473
|
icon: "ph--link--regular",
|
|
@@ -488,7 +489,7 @@ var constructObjectActions = ({ node, dispatch, navigable = false }) => {
|
|
|
488
489
|
label: [
|
|
489
490
|
"expose object label",
|
|
490
491
|
{
|
|
491
|
-
ns:
|
|
492
|
+
ns: import_chunk_6P2DB4QQ.SPACE_PLUGIN
|
|
492
493
|
}
|
|
493
494
|
],
|
|
494
495
|
icon: "ph--eye--regular",
|
|
@@ -532,7 +533,7 @@ var cloneObject = async (object, resolve, newSpace) => {
|
|
|
532
533
|
const serializer = metadata.serializer;
|
|
533
534
|
(0, import_invariant.invariant)(serializer, `No serializer for type: ${typename}`, {
|
|
534
535
|
F: __dxlog_file,
|
|
535
|
-
L:
|
|
536
|
+
L: 566,
|
|
536
537
|
S: void 0,
|
|
537
538
|
A: [
|
|
538
539
|
"serializer",
|
|
@@ -564,4 +565,4 @@ var cloneObject = async (object, resolve, newSpace) => {
|
|
|
564
565
|
getSpaceDisplayName,
|
|
565
566
|
memoizeQuery
|
|
566
567
|
});
|
|
567
|
-
//# sourceMappingURL=chunk-
|
|
568
|
+
//# sourceMappingURL=chunk-K3HRT4CT.cjs.map
|