@fusion.dev/helix-core 0.206.0 → 0.207.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.
- package/README.md +22 -13
- package/custom-elements.json +1 -37171
- package/dist/controllers/aria-forward-controller/aria-forward-controller.js +5 -6
- package/dist/controllers/category-axis-controller/category-axis-controller.d.ts +75 -0
- package/dist/controllers/category-axis-controller/category-axis-controller.js +128 -0
- package/dist/controllers/source-controller/source-controller.d.ts +2 -0
- package/dist/controllers/source-controller/source-controller.js +5 -2
- package/dist/controllers/virtualize-controller/virtualize-controller.d.ts +9 -0
- package/dist/controllers/virtualize-controller/virtualize-controller.js +10 -8
- package/dist/helix-element/helix-element.js +3 -21
- package/dist/helix-element/react-bridge.d.ts +17 -0
- package/dist/helix-element/react-bridge.js +54 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.js +8 -2
- package/dist/mixins/mixin-chart-source/mixin-chart-source.d.ts +28 -0
- package/dist/mixins/mixin-chart-source/mixin-chart-source.js +76 -9
- package/dist/mixins/mixin-field/mixin-field.js +2 -0
- package/dist/mixins/mixin-tokens/mixin-tokens.js +2 -1
- package/dist/mixins/mixin-viewport/mixin-viewport.js +3 -2
- package/dist/utils/audit-children/audit-children.d.ts +1 -0
- package/dist/utils/audit-children/audit-children.js +2 -2
- package/dist/utils/audit-name/audit-name.js +2 -2
- package/dist/utils/audit-number/audit-number-off.d.ts +12 -0
- package/dist/utils/audit-number/audit-number-off.js +2 -0
- package/dist/utils/audit-number/audit-number.d.ts +23 -0
- package/dist/utils/audit-number/audit-number.js +21 -0
- package/dist/utils/category-labels/category-labels.d.ts +74 -0
- package/dist/utils/category-labels/category-labels.js +230 -0
- package/dist/utils/closest-name/closest-name.d.ts +11 -0
- package/dist/utils/closest-name/closest-name.js +35 -0
- package/dist/utils/custom-element/custom-element.js +11 -6
- package/dist/utils/draw-tooltip/draw-tooltip.js +3 -2
- package/dist/utils/host-words/host-words.js +2 -1
- package/dist/utils/how-to-register/how-to-register.d.ts +20 -0
- package/dist/utils/how-to-register/how-to-register.js +3 -0
- package/dist/utils/labels-of/labels-of.d.ts +23 -0
- package/dist/utils/labels-of/labels-of.js +8 -0
- package/dist/utils/line-path/line-path.d.ts +18 -0
- package/dist/utils/line-path/line-path.js +36 -0
- package/dist/utils/locale-of/locale-of.d.ts +40 -2
- package/dist/utils/locale-of/locale-of.js +30 -16
- package/dist/utils/number-converter/number-converter.d.ts +44 -0
- package/dist/utils/number-converter/number-converter.js +34 -0
- package/dist/utils/read-data/read-data.d.ts +1 -1
- package/dist/utils/read-data/read-data.js +23 -10
- package/dist/utils/read-series/read-series.js +9 -2
- package/dist/utils/report-runtime/report-runtime.d.ts +8 -0
- package/dist/utils/scale/scale.d.ts +7 -1
- package/dist/utils/scale/scale.js +9 -4
- package/dist/utils/scroll-item-into-view/scroll-item-into-view.d.ts +5 -0
- package/dist/utils/scroll-item-into-view/scroll-item-into-view.js +3 -2
- package/dist/utils/watch-labels/watch-labels.d.ts +4 -2
- package/dist/utils/watch-labels/watch-labels.js +14 -14
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/words/held.d.ts +11 -3
- package/dist/words/words-locale.js +20 -8
- package/dist/words/words.js +10 -5
- package/package.json +16 -4
package/README.md
CHANGED
|
@@ -1,30 +1,39 @@
|
|
|
1
1
|
# @fusion.dev/helix-core
|
|
2
2
|
|
|
3
|
-
The
|
|
4
|
-
|
|
3
|
+
The base classes, mixins, and utilities that both Helix tiers are built from:
|
|
4
|
+
[`@fusion.dev/helix-headless`](https://www.npmjs.com/package/@fusion.dev/helix-headless)
|
|
5
|
+
and [`@fusion.dev/helix`](https://www.npmjs.com/package/@fusion.dev/helix).
|
|
5
6
|
|
|
6
7
|
```sh
|
|
7
8
|
npm install @fusion.dev/helix-core
|
|
8
9
|
```
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
You get it with either tier, and most pages never import it by name. The base
|
|
12
|
+
classes and mixins are there for the Helix components and change with them. The
|
|
13
|
+
bridge that repairs how React hydrates custom events runs inside every element,
|
|
14
|
+
with nothing to import. See [React](https://fusion.dev/helix/docs/react).
|
|
15
|
+
|
|
16
|
+
A few exports are for your own code:
|
|
17
|
+
|
|
18
|
+
- `registerWords` translates the words the components say. Import it from
|
|
19
|
+
`@fusion.dev/helix/words`, which types each call against the styled families.
|
|
20
|
+
See [Localization](https://fusion.dev/helix/docs/localization).
|
|
21
|
+
- `pauseMotion` pauses the motion of every component on the page, and
|
|
22
|
+
`pauseMotion(false)` lets it run again. See
|
|
23
|
+
[Motion](https://fusion.dev/helix/docs/motion).
|
|
24
|
+
- `duplicateRegistrations` lists each tag that two classes asked to register,
|
|
25
|
+
which is what two copies of Helix on one page look like.
|
|
26
|
+
`@fusion.dev/helix-diagnostics` reports the same list.
|
|
27
|
+
- The event classes the elements dispatch, such as `HelixBeforeChangeEvent`,
|
|
28
|
+
type a handler. An editor of your own sends `HelixBeforeEditEvent` to a
|
|
29
|
+
sandbox. See [Sandbox](https://fusion.dev/helix/docs/sandbox).
|
|
14
30
|
|
|
15
31
|
```js
|
|
16
32
|
import { duplicateRegistrations } from '@fusion.dev/helix-core'
|
|
17
33
|
|
|
18
|
-
// Two copies of a library on one page is silent: the first registration keeps
|
|
19
|
-
// the tag and `instanceof` against the second is quietly false.
|
|
20
34
|
console.log(duplicateRegistrations())
|
|
21
35
|
```
|
|
22
36
|
|
|
23
|
-
Most consumers get this transitively through
|
|
24
|
-
[`@fusion.dev/helix`](https://www.npmjs.com/package/@fusion.dev/helix) or
|
|
25
|
-
[`@fusion.dev/helix-headless`](https://www.npmjs.com/package/@fusion.dev/helix-headless)
|
|
26
|
-
and never import it by name.
|
|
27
|
-
|
|
28
37
|
[Documentation](https://fusion.dev/helix)
|
|
29
38
|
|
|
30
39
|
MIT
|