@dxos/shell 0.5.1-main.d3f3a55 → 0.5.1-main.d8ffef0

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 (35) hide show
  1. package/dist/bundle/shell.mjs +1073 -1072
  2. package/dist/bundle/shell.mjs.map +1 -1
  3. package/dist/bundle/shell.umd.js +29 -29
  4. package/dist/bundle/shell.umd.js.map +1 -1
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/react.mjs +57 -17
  7. package/dist/lib/browser/react.mjs.map +3 -3
  8. package/dist/types/src/composites/Shell/Shell.d.ts +1 -2
  9. package/dist/types/src/composites/Shell/Shell.d.ts.map +1 -1
  10. package/dist/types/src/composites/Shell/Shell.js +24 -4
  11. package/dist/types/src/composites/Shell/Shell.js.map +1 -1
  12. package/dist/types/src/composites/Shell/ShellContext.js +1 -1
  13. package/dist/types/src/composites/Shell/ShellContext.js.map +1 -1
  14. package/dist/types/src/composites/Shell/memory-shell-runtime.d.ts +10 -2
  15. package/dist/types/src/composites/Shell/memory-shell-runtime.d.ts.map +1 -1
  16. package/dist/types/src/composites/Shell/memory-shell-runtime.js +20 -1
  17. package/dist/types/src/composites/Shell/memory-shell-runtime.js.map +1 -1
  18. package/dist/types/src/composites/Shell/run-shell.js +1 -1
  19. package/dist/types/src/composites/Shell/run-shell.js.map +1 -1
  20. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.d.ts.map +1 -1
  21. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js +2 -18
  22. package/dist/types/src/panels/SpacePanel/steps/SpaceManager.js.map +1 -1
  23. package/dist/types/src/steps/InvitationManager.d.ts.map +1 -1
  24. package/dist/types/src/steps/InvitationManager.js +3 -0
  25. package/dist/types/src/steps/InvitationManager.js.map +1 -1
  26. package/dist/types/src/translations/locales/en-US.js +5 -5
  27. package/dist/types/src/translations/locales/en-US.js.map +1 -1
  28. package/package.json +21 -21
  29. package/src/composites/Shell/Shell.tsx +36 -5
  30. package/src/composites/Shell/ShellContext.tsx +1 -1
  31. package/src/composites/Shell/memory-shell-runtime.ts +36 -2
  32. package/src/composites/Shell/run-shell.tsx +1 -1
  33. package/src/panels/SpacePanel/steps/SpaceManager.tsx +2 -18
  34. package/src/steps/InvitationManager.tsx +3 -0
  35. package/src/translations/locales/en-US.ts +5 -5
@@ -41,7 +41,7 @@ export const runShell = async (config: Config = new Config()) => {
41
41
  <ClipboardProvider>
42
42
  <Tooltip.Provider>
43
43
  <AgentHostingProvider>
44
- <Shell runtime={runtime} origin={location.origin} />
44
+ <Shell runtime={runtime} />
45
45
  </AgentHostingProvider>
46
46
  </Tooltip.Provider>
47
47
  </ClipboardProvider>
@@ -73,8 +73,8 @@ export const SpaceManager = (props: SpaceManagerProps) => {
73
73
  icon: UsersThree,
74
74
  onClick: useCallback(() => {
75
75
  const invitation = space.share?.({
76
- type: Invitation.Type.INTERACTIVE,
77
- authMethod: Invitation.AuthMethod.NONE,
76
+ type: Invitation.Type.DELEGATED,
77
+ authMethod: Invitation.AuthMethod.KNOWN_PUBLIC_KEY,
78
78
  multiUse: true,
79
79
  target,
80
80
  });
@@ -83,22 +83,6 @@ export const SpaceManager = (props: SpaceManagerProps) => {
83
83
  }
84
84
  }, [space]),
85
85
  },
86
- // inviteNonPersistent: {
87
- // label: 'Invite one (nonpersistent)',
88
- // description: 'Only one user may join. Invitation does not resume if client is restarted.',
89
- // icon: UserPlus,
90
- // onClick: useCallback(() => {
91
- // const invitation = space.share?.({
92
- // type: Invitation.Type.INTERACTIVE,
93
- // authMethod: Invitation.AuthMethod.SHARED_SECRET,
94
- // persistent: false,
95
- // target,
96
- // });
97
- // if (invitation && config.values.runtime?.app?.env?.DX_ENVIRONMENT !== 'production') {
98
- // invitation.subscribe(onInvitationEvent);
99
- // }
100
- // }, [space]),
101
- // },
102
86
  };
103
87
 
104
88
  return <SpaceManagerImpl {...props} invitations={invitations} inviteActions={inviteActions} />;
@@ -53,6 +53,9 @@ export const InvitationManager = ({
53
53
  const showAuthCode = statusValue === 3;
54
54
  const emoji = hexToEmoji(id);
55
55
  const activeView = useMemo(() => {
56
+ if (multiUse) {
57
+ return 'showing qr';
58
+ }
56
59
  switch (true) {
57
60
  case statusValue === 5:
58
61
  case statusValue < 0:
@@ -85,14 +85,14 @@ export const os = {
85
85
  'auth code message': 'Enter the following auth code on the joining device.',
86
86
  'display name input label': 'Display name',
87
87
  'display name input placeholder': 'Enter a display name',
88
- 'invite one label': 'Invite one',
88
+ 'invite one label': 'Single-use invitation',
89
89
  'invite one description': 'Only one user may join.',
90
- 'invite one qr label': 'Single-use',
90
+ 'invite one qr label': 'Single-use invitation',
91
91
  'invite one list item label': 'Active single-use invitation',
92
- 'invite many label': 'Invite many',
92
+ 'invite many label': 'Standing invitation',
93
93
  'invite many description': 'Anyone with the link can join.',
94
- 'invite many qr label': 'Multiple-use',
95
- 'invite many list item label': 'Active multiple-use invitation',
94
+ 'invite many qr label': 'Standing invitation',
95
+ 'invite many list item label': 'Active standing invitation',
96
96
  'invite options label': 'Change the active invite option.',
97
97
  'reset in progress label': 'Resetting...',
98
98
  'confirm label': 'Confirm',