@fusion.dev/helix 0.117.0 → 0.119.0

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.
@@ -255,6 +255,10 @@ cursor: grab;
255
255
  touch-action: none;
256
256
  }
257
257
 
258
+ :host(:state(sharing)) [part="viewport"] {
259
+ touch-action: pan-x pan-y;
260
+ }
261
+
258
262
  :host(:state(pressing)) [part="viewport"] {
259
263
  user-select: none;
260
264
  }
@@ -90,7 +90,9 @@ registerElementEvents({
90
90
  'helix-graph': [
91
91
  'helix-activate',
92
92
  'helix-before-activate',
93
+ 'helix-graph-layout',
93
94
  'helix-graph-pan',
95
+ 'helix-graph-part-change',
94
96
  'helix-graph-ready',
95
97
  'helix-graph-zoom',
96
98
  ],
@@ -31,43 +31,6 @@ overflow: hidden;
31
31
  position: relative;
32
32
  }
33
33
 
34
- [part="gesture-hint"],
35
- [part="gesture-status"] {
36
- background-color: var(--helix-color-surface-inverse);
37
- border-radius: var(--helix-radii-sm);
38
- color: var(--helix-color-foreground-inverse);
39
-
40
- left: 50%;
41
- max-inline-size: calc(100% - var(--helix-space-lg) * 2);
42
- pointer-events: none;
43
- position: absolute;
44
- text-align: center;
45
- z-index: calc(var(--helix-layer-raised) + 2);
46
- }
47
-
48
- [part="gesture-hint"] {
49
- font-size: var(--helix-text-sm);
50
- inset-block-start: clamp(
51
- var(--helix-space-2xl),
52
- var(--_map-hint-y, 50%),
53
- calc(100% - var(--helix-space-2xl))
54
- );
55
- padding: var(--helix-space-xs) var(--helix-space-sm);
56
- translate: -50% -50%;
57
- }
58
-
59
- [part="gesture-status"] {
60
- font-size: var(--helix-text-xs);
61
- inset-block-start: var(--helix-space-xs);
62
- padding: var(--helix-space-2xs) var(--helix-space-xs);
63
- translate: -50% 0;
64
- }
65
-
66
- [part="gesture-hint"][hidden],
67
- [part="gesture-status"][hidden] {
68
- display: none;
69
- }
70
-
71
34
  [part="layers"] {
72
35
  block-size: 1px;
73
36
  clip-path: inset(50%);
@@ -108,4 +108,41 @@ in oklab,
108
108
  var(--helix-color-foreground) 10%,
109
109
  var(--viewport-control-background-color, var(--helix-color-surface-overlay))
110
110
  );
111
+ }
112
+
113
+ [part="gesture-hint"],
114
+ [part="gesture-status"] {
115
+ background-color: var(--helix-color-surface-inverse);
116
+ border-radius: var(--helix-radii-sm);
117
+ color: var(--helix-color-foreground-inverse);
118
+
119
+ left: 50%;
120
+ max-inline-size: calc(100% - var(--helix-space-lg) * 2);
121
+ pointer-events: none;
122
+ position: absolute;
123
+ text-align: center;
124
+ z-index: calc(var(--helix-layer-raised) + 2);
125
+ }
126
+
127
+ [part="gesture-hint"] {
128
+ font-size: var(--helix-text-sm);
129
+ inset-block-start: clamp(
130
+ var(--helix-space-2xl),
131
+ var(--_viewport-hint-y, 50%),
132
+ calc(100% - var(--helix-space-2xl))
133
+ );
134
+ padding: var(--helix-space-xs) var(--helix-space-sm);
135
+ translate: -50% -50%;
136
+ }
137
+
138
+ [part="gesture-status"] {
139
+ font-size: var(--helix-text-xs);
140
+ inset-block-start: var(--helix-space-xs);
141
+ padding: var(--helix-space-2xs) var(--helix-space-xs);
142
+ translate: -50% 0;
143
+ }
144
+
145
+ [part="gesture-hint"][hidden],
146
+ [part="gesture-status"][hidden] {
147
+ display: none;
111
148
  }`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix",
3
3
  "description": "Styled component tier. Extends the headless tier with token-driven presentation.",
4
- "version": "0.117.0",
4
+ "version": "0.119.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -51,13 +51,13 @@
51
51
  },
52
52
  "bugs": "https://github.com/project-fusion/fusion/issues",
53
53
  "dependencies": {
54
- "@fusion.dev/helix-core": "0.117.0",
55
- "@fusion.dev/helix-headless": "0.117.0",
56
- "@fusion.dev/helix-styles": "0.117.0"
54
+ "@fusion.dev/helix-core": "0.119.0",
55
+ "@fusion.dev/helix-headless": "0.119.0",
56
+ "@fusion.dev/helix-styles": "0.119.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@fusion.dev/helix-cem": "0.117.0",
60
- "@fusion.dev/helix-testing": "0.117.0",
59
+ "@fusion.dev/helix-cem": "0.119.0",
60
+ "@fusion.dev/helix-testing": "0.119.0",
61
61
  "@fusion.dev/scripts": "0.0.0-dev",
62
62
  "@happy-dom/global-registrator": "^20.0.0",
63
63
  "@lit-labs/ssr": "^4.1.0",