@fusion.dev/helix-core 0.34.1 → 0.35.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.
|
@@ -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
|
}
|
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.0",
|
|
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.0"
|
|
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.0",
|
|
42
|
+
"@fusion.dev/helix-testing": "0.35.0",
|
|
43
43
|
"lit": "^3.2.1"
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://fusion.dev",
|