@dxos/plugin-deck 0.6.12-main.7907542 → 0.6.12-main.ac23639

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 (31) hide show
  1. package/dist/lib/browser/{chunk-YVHGFQQR.mjs → chunk-GVOGPULO.mjs} +1 -1
  2. package/dist/lib/browser/chunk-GVOGPULO.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +124 -52
  4. package/dist/lib/browser/index.mjs.map +3 -3
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/meta.mjs +1 -1
  7. package/dist/types/src/components/DeckLayout/ComplementarySidebar.d.ts +1 -1
  8. package/dist/types/src/components/DeckLayout/ComplementarySidebar.d.ts.map +1 -1
  9. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts +2 -2
  10. package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
  11. package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts +3 -1
  12. package/dist/types/src/components/DeckLayout/NodePlankHeading.d.ts.map +1 -1
  13. package/dist/types/src/components/DeckLayout/StatusBar.d.ts +3 -1
  14. package/dist/types/src/components/DeckLayout/StatusBar.d.ts.map +1 -1
  15. package/dist/types/src/components/LayoutSettings.d.ts.map +1 -1
  16. package/dist/types/src/meta.d.ts.map +1 -1
  17. package/dist/types/src/translations.d.ts +3 -1
  18. package/dist/types/src/translations.d.ts.map +1 -1
  19. package/dist/types/src/types.d.ts +1 -1
  20. package/dist/types/src/types.d.ts.map +1 -1
  21. package/package.json +26 -26
  22. package/src/DeckPlugin.tsx +3 -3
  23. package/src/components/DeckLayout/ComplementarySidebar.tsx +56 -6
  24. package/src/components/DeckLayout/DeckLayout.tsx +4 -11
  25. package/src/components/DeckLayout/NodePlankHeading.tsx +4 -2
  26. package/src/components/DeckLayout/StatusBar.tsx +10 -2
  27. package/src/components/LayoutSettings.tsx +5 -8
  28. package/src/meta.ts +3 -1
  29. package/src/translations.ts +3 -1
  30. package/src/types.ts +1 -1
  31. package/dist/lib/browser/chunk-YVHGFQQR.mjs.map +0 -7
@@ -9,10 +9,18 @@ import { mainPadding, mx } from '@dxos/react-ui-theme';
9
9
 
10
10
  import { useMainSize } from '../../hooks';
11
11
 
12
- export const StatusBar = () => {
12
+ export const StatusBar = ({ showHints }: { showHints?: boolean }) => {
13
13
  const sizeAttrs = useMainSize();
14
14
  return (
15
- <div role='none' {...sizeAttrs} className={mx('fixed block-end-0 inset-inline-0 z-[2]', mainPadding)}>
15
+ <div
16
+ role='none'
17
+ {...sizeAttrs}
18
+ className={mx(
19
+ 'fixed flex justify-between block-end-0 inset-inline-0 items-center border-bs border-separator z-[2]',
20
+ mainPadding,
21
+ )}
22
+ >
23
+ <div role='none'>{showHints && <Surface role='hints' limit={1} />}</div>
16
24
  <Surface role='status-bar' limit={1} />
17
25
  </div>
18
26
  );
@@ -61,25 +61,22 @@ export const LayoutSettings = ({ settings }: { settings: DeckSettingsProps }) =>
61
61
  </Select.Portal>
62
62
  </Select.Root>
63
63
  </SettingsValue>
64
- <SettingsValue label={t('settings show footer label')}>
65
- <Input.Switch checked={settings.showFooter} onCheckedChange={(checked) => (settings.showFooter = !!checked)} />
64
+ <SettingsValue label={t('settings show hints label')}>
65
+ <Input.Switch checked={settings.showHints} onCheckedChange={(checked) => (settings.showHints = checked)} />
66
66
  </SettingsValue>
67
67
  {!isSocket && (
68
68
  <SettingsValue label={t('settings native redirect label')}>
69
69
  <Input.Switch
70
70
  checked={settings.enableNativeRedirect}
71
- onCheckedChange={(checked) => (settings.enableNativeRedirect = !!checked)}
71
+ onCheckedChange={(checked) => (settings.enableNativeRedirect = checked)}
72
72
  />
73
73
  </SettingsValue>
74
74
  )}
75
75
  <SettingsValue label={t('settings custom slots')}>
76
- <Input.Switch
77
- checked={settings.customSlots}
78
- onCheckedChange={(checked) => (settings.customSlots = !!checked)}
79
- />
76
+ <Input.Switch checked={settings.customSlots} onCheckedChange={(checked) => (settings.customSlots = checked)} />
80
77
  </SettingsValue>
81
78
  <SettingsValue label={t('settings flat deck')}>
82
- <Input.Switch checked={settings.flatDeck} onCheckedChange={(checked) => (settings.flatDeck = !!checked)} />
79
+ <Input.Switch checked={settings.flatDeck} onCheckedChange={(checked) => (settings.flatDeck = checked)} />
83
80
  </SettingsValue>
84
81
  </>
85
82
  );
package/src/meta.ts CHANGED
@@ -2,9 +2,11 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
+ import { type PluginMeta } from '@dxos/app-framework';
6
+
5
7
  export const DECK_PLUGIN = 'dxos.org/plugin/deck';
6
8
 
7
9
  export default {
8
10
  id: DECK_PLUGIN,
9
11
  name: 'Deck',
10
- };
12
+ } satisfies PluginMeta;
@@ -16,7 +16,7 @@ export default [
16
16
  'content fallback description':
17
17
  'No plugin had a response for the address you navigated to. Double-check the URL, and ensure you’ve enabled a plugin that supports the object.',
18
18
  'toggle fullscreen label': 'Toggle fullscreen',
19
- 'settings show footer label': 'Show footer (experimental)',
19
+ 'settings show hints label': 'Show hints',
20
20
  'settings native redirect label': 'Enable native url redirect (experimental)',
21
21
  'settings custom slots': 'Theme option (experimental)',
22
22
  'settings new plank position start label': 'Start',
@@ -41,6 +41,8 @@ export default [
41
41
  'settings overscroll centering label': 'Centering',
42
42
  'settings overscroll none label': 'None',
43
43
  'settings flat deck': 'Flatten deck appearance',
44
+ 'comments label': 'Show Comments',
45
+ 'settings label': 'Show Settings',
44
46
  },
45
47
  },
46
48
  },
package/src/types.ts CHANGED
@@ -20,7 +20,7 @@ export const OverscrollOptions = ['none', 'centering'] as const;
20
20
  export type Overscroll = (typeof OverscrollOptions)[number];
21
21
 
22
22
  export type DeckSettingsProps = {
23
- showFooter: boolean;
23
+ showHints: boolean;
24
24
  customSlots: boolean;
25
25
  flatDeck: boolean;
26
26
  enableNativeRedirect: boolean;
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nexport const DECK_PLUGIN = 'dxos.org/plugin/deck';\n\nexport default {\n id: DECK_PLUGIN,\n name: 'Deck',\n};\n"],
5
- "mappings": ";AAIO,IAAMA,cAAc;AAE3B,IAAA,eAAe;EACbC,IAAID;EACJE,MAAM;AACR;",
6
- "names": ["DECK_PLUGIN", "id", "name"]
7
- }