@fusion.dev/helix-core 0.34.2 → 0.35.1
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/README.md
CHANGED
|
@@ -25,6 +25,6 @@ Most consumers get this transitively through
|
|
|
25
25
|
[`@fusion.dev/helix-headless`](https://www.npmjs.com/package/@fusion.dev/helix-headless)
|
|
26
26
|
and never import it by name.
|
|
27
27
|
|
|
28
|
-
[Documentation](https://
|
|
28
|
+
[Documentation](https://fusion.dev/helix)
|
|
29
29
|
|
|
30
30
|
MIT
|
package/custom-elements.json
CHANGED
|
@@ -3734,7 +3734,7 @@
|
|
|
3734
3734
|
"helix": {
|
|
3735
3735
|
"since": "0.1.0",
|
|
3736
3736
|
"status": "experimental",
|
|
3737
|
-
"documentation": "https://
|
|
3737
|
+
"documentation": "https://fusion.dev/helix/docs/tiers",
|
|
3738
3738
|
"tier": "core"
|
|
3739
3739
|
},
|
|
3740
3740
|
"customElement": true
|
|
@@ -4412,7 +4412,7 @@
|
|
|
4412
4412
|
"helix": {
|
|
4413
4413
|
"since": "0.1.0",
|
|
4414
4414
|
"status": "experimental",
|
|
4415
|
-
"documentation": "https://
|
|
4415
|
+
"documentation": "https://fusion.dev/helix/docs/tiers",
|
|
4416
4416
|
"tier": "core"
|
|
4417
4417
|
},
|
|
4418
4418
|
"cssStates": [
|
|
@@ -15,7 +15,7 @@ import { type StaticValue } from 'lit/static-html.js';
|
|
|
15
15
|
*
|
|
16
16
|
* @since 0.1.0
|
|
17
17
|
* @status experimental
|
|
18
|
-
* @documentation https://
|
|
18
|
+
* @documentation https://fusion.dev/helix/docs/tiers
|
|
19
19
|
*
|
|
20
20
|
* @cssstate settled - Set a frame after the first render. Transitions are held off until it is, so an element never animates its own arrival.
|
|
21
21
|
*/
|
|
@@ -29,6 +29,8 @@ const SETTLED = css `
|
|
|
29
29
|
transition: none !important;
|
|
30
30
|
}
|
|
31
31
|
`;
|
|
32
|
+
const LOOK_EVERY = 16;
|
|
33
|
+
const LOOK_FOR = 96;
|
|
32
34
|
export class HelixElement extends LitElement {
|
|
33
35
|
static { this.tier = 'helix-headless-'; }
|
|
34
36
|
tag(name) {
|
|
@@ -112,17 +114,26 @@ export class HelixElement extends LitElement {
|
|
|
112
114
|
}
|
|
113
115
|
firstUpdated(changed) {
|
|
114
116
|
super.firstUpdated(changed);
|
|
115
|
-
|
|
117
|
+
let applied = applyReactProperties(this);
|
|
116
118
|
requestAnimationFrame(() => {
|
|
117
119
|
this.toggleState('settled', true);
|
|
118
120
|
this.resolveSettled();
|
|
119
|
-
|
|
120
|
-
|
|
121
|
+
let waited = 0;
|
|
122
|
+
const look = () => {
|
|
123
|
+
const props = reactPropsOf(this);
|
|
124
|
+
if (props === undefined) {
|
|
125
|
+
if (waited < LOOK_FOR) {
|
|
126
|
+
waited += LOOK_EVERY;
|
|
127
|
+
setTimeout(look, LOOK_EVERY);
|
|
128
|
+
}
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
121
131
|
if (!applied) {
|
|
122
|
-
applyReactProperties(this);
|
|
132
|
+
applied = applyReactProperties(this);
|
|
123
133
|
}
|
|
124
134
|
auditReactProps(this, props);
|
|
125
|
-
}
|
|
135
|
+
};
|
|
136
|
+
look();
|
|
126
137
|
});
|
|
127
138
|
}
|
|
128
139
|
}
|
|
@@ -18,7 +18,7 @@ import { HelixElement } from '../helix-element/helix-element.js';
|
|
|
18
18
|
*
|
|
19
19
|
* @since 0.1.0
|
|
20
20
|
* @status experimental
|
|
21
|
-
* @documentation https://
|
|
21
|
+
* @documentation https://fusion.dev/helix/docs/tiers
|
|
22
22
|
*/
|
|
23
23
|
export declare class HelixFormElement extends HelixElement {
|
|
24
24
|
/** Opts the element into form ownership, labels, and submission. */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-core",
|
|
3
3
|
"description": "Helix element primitives: base classes, mixins, decorators, utilities.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.35.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@floating-ui/dom": "^1.8.0",
|
|
37
|
-
"@fusion.dev/helix-icons": "0.
|
|
37
|
+
"@fusion.dev/helix-icons": "0.35.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
41
|
-
"@fusion.dev/helix-cem": "0.
|
|
42
|
-
"@fusion.dev/helix-testing": "0.
|
|
41
|
+
"@fusion.dev/helix-cem": "0.35.1",
|
|
42
|
+
"@fusion.dev/helix-testing": "0.35.1",
|
|
43
43
|
"lit": "^3.2.1"
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://fusion.dev",
|