@dxos/react-ui-stack 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef

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 (30) hide show
  1. package/dist/lib/browser/index.mjs +5 -25
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/browser/translations.mjs +23 -0
  5. package/dist/lib/browser/translations.mjs.map +7 -0
  6. package/dist/lib/node-esm/index.mjs +5 -25
  7. package/dist/lib/node-esm/index.mjs.map +4 -4
  8. package/dist/lib/node-esm/meta.json +1 -1
  9. package/dist/lib/node-esm/translations.mjs +25 -0
  10. package/dist/lib/node-esm/translations.mjs.map +7 -0
  11. package/dist/types/src/components/Stack/Stack.stories.d.ts.map +1 -1
  12. package/dist/types/src/components/StackItem/StackItem.d.ts +3 -3
  13. package/dist/types/src/components/StackItem/StackItem.d.ts.map +1 -1
  14. package/dist/types/src/components/StackItem/StackItem.stories.d.ts.map +1 -1
  15. package/dist/types/src/components/StackItem/StackItemDragHandle.d.ts.map +1 -1
  16. package/dist/types/src/components/StackItem/StackItemHeading.d.ts.map +1 -1
  17. package/dist/types/src/components/StackItem/StackItemResizeHandle.d.ts.map +1 -1
  18. package/dist/types/src/components/StackItem/StackItemSigil.d.ts.map +1 -1
  19. package/dist/types/src/hooks/useStackDropForElements.d.ts.map +1 -1
  20. package/dist/types/src/index.d.ts +0 -1
  21. package/dist/types/src/index.d.ts.map +1 -1
  22. package/dist/types/src/playwright/playwright.config.d.ts.map +1 -1
  23. package/dist/types/src/playwright/stack-manager.d.ts.map +1 -1
  24. package/dist/types/src/translations.d.ts +8 -8
  25. package/dist/types/src/translations.d.ts.map +1 -1
  26. package/dist/types/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +34 -35
  28. package/src/components/StackItem/StackItem.tsx +8 -9
  29. package/src/components/StackItem/StackItemSigil.tsx +2 -1
  30. package/src/index.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-stack",
3
- "version": "0.8.4-main.9be5663bfe",
3
+ "version": "0.8.4-main.abd8ff62ef",
4
4
  "description": "A stack component.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -12,6 +12,9 @@
12
12
  "author": "DXOS.org",
13
13
  "sideEffects": false,
14
14
  "type": "module",
15
+ "imports": {
16
+ "#translations": "./src/translations.ts"
17
+ },
15
18
  "exports": {
16
19
  ".": {
17
20
  "types": "./dist/types/src/index.d.ts",
@@ -22,19 +25,15 @@
22
25
  "types": "./dist/types/src/playwright/index.d.ts",
23
26
  "browser": "./dist/lib/browser/playwright/index.mjs",
24
27
  "node": "./dist/lib/node-esm/playwright/index.mjs"
28
+ },
29
+ "./translations": {
30
+ "source": "./src/translations.ts",
31
+ "types": "./dist/types/src/translations.d.ts",
32
+ "browser": "./dist/lib/browser/translations.mjs",
33
+ "node": "./dist/lib/node-esm/translations.mjs"
25
34
  }
26
35
  },
27
36
  "types": "dist/types/src/index.d.ts",
28
- "typesVersions": {
29
- "*": {
30
- "playwright": [
31
- "dist/types/src/playwright/index.d.ts"
32
- ],
33
- "testing": [
34
- "dist/types/src/testing/index.d.ts"
35
- ]
36
- }
37
- },
38
37
  "files": [
39
38
  "dist",
40
39
  "src"
@@ -53,40 +52,40 @@
53
52
  "@radix-ui/react-slot": "1.1.2",
54
53
  "@radix-ui/react-use-controllable-state": "1.1.0",
55
54
  "react-resize-detector": "^11.0.1",
56
- "@dxos/echo": "0.8.4-main.9be5663bfe",
57
- "@dxos/react-ui-attention": "0.8.4-main.9be5663bfe",
58
- "@dxos/react-ui-mosaic": "0.8.4-main.9be5663bfe",
59
- "@dxos/keyboard": "0.8.4-main.9be5663bfe",
60
- "@dxos/react-ui-dnd": "0.8.4-main.9be5663bfe",
61
- "@dxos/util": "0.8.4-main.9be5663bfe"
55
+ "@dxos/echo": "0.8.4-main.abd8ff62ef",
56
+ "@dxos/keyboard": "0.8.4-main.abd8ff62ef",
57
+ "@dxos/react-ui-dnd": "0.8.4-main.abd8ff62ef",
58
+ "@dxos/react-ui-attention": "0.8.4-main.abd8ff62ef",
59
+ "@dxos/util": "0.8.4-main.abd8ff62ef",
60
+ "@dxos/react-ui-mosaic": "0.8.4-main.abd8ff62ef"
62
61
  },
63
62
  "devDependencies": {
64
63
  "@types/react": "~19.2.7",
65
64
  "@types/react-dom": "~19.2.3",
66
65
  "react": "~19.2.3",
67
66
  "react-dom": "~19.2.3",
68
- "vite": "^7.1.11",
69
- "@dxos/client": "0.8.4-main.9be5663bfe",
70
- "@dxos/echo": "0.8.4-main.9be5663bfe",
71
- "@dxos/echo-db": "0.8.4-main.9be5663bfe",
72
- "@dxos/app-framework": "0.8.4-main.9be5663bfe",
73
- "@dxos/random": "0.8.4-main.9be5663bfe",
74
- "@dxos/app-graph": "0.8.4-main.9be5663bfe",
75
- "@dxos/react-ui": "0.8.4-main.9be5663bfe",
76
- "@dxos/react-client": "0.8.4-main.9be5663bfe",
77
- "@dxos/test-utils": "0.8.4-main.9be5663bfe",
78
- "@dxos/storybook-utils": "0.8.4-main.9be5663bfe",
79
- "@dxos/schema": "0.8.4-main.9be5663bfe",
80
- "@dxos/types": "0.8.4-main.9be5663bfe",
81
- "@dxos/ui-theme": "0.8.4-main.9be5663bfe"
67
+ "vite": "^8.0.10",
68
+ "@dxos/app-framework": "0.8.4-main.abd8ff62ef",
69
+ "@dxos/client": "0.8.4-main.abd8ff62ef",
70
+ "@dxos/echo": "0.8.4-main.abd8ff62ef",
71
+ "@dxos/random": "0.8.4-main.abd8ff62ef",
72
+ "@dxos/echo-db": "0.8.4-main.abd8ff62ef",
73
+ "@dxos/react-client": "0.8.4-main.abd8ff62ef",
74
+ "@dxos/app-graph": "0.8.4-main.abd8ff62ef",
75
+ "@dxos/storybook-utils": "0.8.4-main.abd8ff62ef",
76
+ "@dxos/react-ui": "0.8.4-main.abd8ff62ef",
77
+ "@dxos/schema": "0.8.4-main.abd8ff62ef",
78
+ "@dxos/types": "0.8.4-main.abd8ff62ef",
79
+ "@dxos/test-utils": "0.8.4-main.abd8ff62ef",
80
+ "@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
82
81
  },
83
82
  "peerDependencies": {
84
83
  "react": "~19.2.3",
85
84
  "react-dom": "~19.2.3",
86
- "@dxos/client": "0.8.4-main.9be5663bfe",
87
- "@dxos/random": "0.8.4-main.9be5663bfe",
88
- "@dxos/ui-theme": "0.8.4-main.9be5663bfe",
89
- "@dxos/react-ui": "0.8.4-main.9be5663bfe"
85
+ "@dxos/client": "0.8.4-main.abd8ff62ef",
86
+ "@dxos/react-ui": "0.8.4-main.abd8ff62ef",
87
+ "@dxos/ui-theme": "0.8.4-main.abd8ff62ef",
88
+ "@dxos/random": "0.8.4-main.abd8ff62ef"
90
89
  },
91
90
  "publishConfig": {
92
91
  "access": "public"
@@ -48,9 +48,8 @@ import {
48
48
  type StackItemSigilProps,
49
49
  } from './StackItemSigil';
50
50
 
51
- // NOTE: 48rem fills the screen on a MacbookPro with the sidebars closed.
52
- export const DEFAULT_HORIZONTAL_SIZE = 48 satisfies StackItemSize;
53
51
  export const DEFAULT_VERTICAL_SIZE = 'min-content' satisfies StackItemSize;
52
+ export const DEFAULT_HORIZONTAL_SIZE = 50 satisfies StackItemSize;
54
53
  export const DEFAULT_EXTRINSIC_SIZE = DEFAULT_HORIZONTAL_SIZE satisfies StackItemSize;
55
54
 
56
55
  //
@@ -58,13 +57,13 @@ export const DEFAULT_EXTRINSIC_SIZE = DEFAULT_HORIZONTAL_SIZE satisfies StackIte
58
57
  //
59
58
 
60
59
  type StackItemRootProps = ThemedClassName<ComponentPropsWithRef<'div'>> & {
60
+ role?: 'article' | 'section';
61
61
  item: Omit<StackItemData, 'type'>;
62
62
  order?: number;
63
63
  prevSiblingId?: string;
64
64
  nextSiblingId?: string;
65
65
  size?: StackItemSize;
66
66
  onSizeChange?: (nextSize: StackItemSize) => void;
67
- role?: 'article' | 'section';
68
67
  disableRearrange?: boolean;
69
68
  focusIndicatorVariant?: 'over-all' | 'group' | 'over-all-always' | 'group-always';
70
69
  };
@@ -72,16 +71,16 @@ type StackItemRootProps = ThemedClassName<ComponentPropsWithRef<'div'>> & {
72
71
  const StackItemRoot = forwardRef<HTMLDivElement, StackItemRootProps>(
73
72
  (
74
73
  {
75
- item,
76
- children,
77
74
  classNames,
78
- size: propsSize,
79
- onSizeChange,
75
+ children,
76
+ style,
80
77
  role,
78
+ item,
81
79
  order,
82
80
  prevSiblingId,
83
81
  nextSiblingId,
84
- style,
82
+ size: sizeProp,
83
+ onSizeChange,
85
84
  disableRearrange,
86
85
  focusIndicatorVariant = 'over-all',
87
86
  ...props
@@ -96,7 +95,7 @@ const StackItemRoot = forwardRef<HTMLDivElement, StackItemRootProps>(
96
95
  const [dragState, setDragState] = useState<ItemDragState>(idle);
97
96
  const { orientation, rail, onRearrange, size: stackSize, stackId } = useStack();
98
97
  const [size = orientation === 'horizontal' ? DEFAULT_HORIZONTAL_SIZE : DEFAULT_VERTICAL_SIZE, setInternalSize] =
99
- useState(propsSize);
98
+ useState(sizeProp);
100
99
 
101
100
  const Root = role ?? 'div';
102
101
 
@@ -11,7 +11,8 @@ import { type AttendableId, type Related, useAttention } from '@dxos/react-ui-at
11
11
  import { mx } from '@dxos/ui-theme';
12
12
  import { getHostPlatform } from '@dxos/util';
13
13
 
14
- import { translationKey } from '../../translations';
14
+ import { translationKey } from '#translations';
15
+
15
16
  import { MenuSignifierHorizontal } from './MenuSignifier';
16
17
 
17
18
  export type KeyBinding = {
package/src/index.ts CHANGED
@@ -3,4 +3,3 @@
3
3
  //
4
4
 
5
5
  export * from './components';
6
- export * from './translations';