@fusion.dev/helix-core 0.206.0 → 0.207.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.
Files changed (59) hide show
  1. package/README.md +22 -13
  2. package/custom-elements.json +1 -37171
  3. package/dist/controllers/aria-forward-controller/aria-forward-controller.js +5 -6
  4. package/dist/controllers/category-axis-controller/category-axis-controller.d.ts +75 -0
  5. package/dist/controllers/category-axis-controller/category-axis-controller.js +128 -0
  6. package/dist/controllers/source-controller/source-controller.d.ts +2 -0
  7. package/dist/controllers/source-controller/source-controller.js +5 -2
  8. package/dist/controllers/virtualize-controller/virtualize-controller.d.ts +9 -0
  9. package/dist/controllers/virtualize-controller/virtualize-controller.js +10 -8
  10. package/dist/helix-element/helix-element.js +3 -21
  11. package/dist/helix-element/react-bridge.d.ts +17 -0
  12. package/dist/helix-element/react-bridge.js +54 -0
  13. package/dist/index.d.ts +8 -2
  14. package/dist/index.js +8 -2
  15. package/dist/mixins/mixin-chart-source/mixin-chart-source.d.ts +28 -0
  16. package/dist/mixins/mixin-chart-source/mixin-chart-source.js +76 -9
  17. package/dist/mixins/mixin-field/mixin-field.js +2 -0
  18. package/dist/mixins/mixin-tokens/mixin-tokens.js +2 -1
  19. package/dist/mixins/mixin-viewport/mixin-viewport.js +3 -2
  20. package/dist/utils/audit-children/audit-children.d.ts +1 -0
  21. package/dist/utils/audit-children/audit-children.js +2 -2
  22. package/dist/utils/audit-name/audit-name.js +2 -2
  23. package/dist/utils/audit-number/audit-number-off.d.ts +12 -0
  24. package/dist/utils/audit-number/audit-number-off.js +2 -0
  25. package/dist/utils/audit-number/audit-number.d.ts +23 -0
  26. package/dist/utils/audit-number/audit-number.js +21 -0
  27. package/dist/utils/category-labels/category-labels.d.ts +74 -0
  28. package/dist/utils/category-labels/category-labels.js +230 -0
  29. package/dist/utils/closest-name/closest-name.d.ts +11 -0
  30. package/dist/utils/closest-name/closest-name.js +35 -0
  31. package/dist/utils/custom-element/custom-element.js +11 -6
  32. package/dist/utils/draw-tooltip/draw-tooltip.js +3 -2
  33. package/dist/utils/host-words/host-words.js +2 -1
  34. package/dist/utils/how-to-register/how-to-register.d.ts +20 -0
  35. package/dist/utils/how-to-register/how-to-register.js +3 -0
  36. package/dist/utils/labels-of/labels-of.d.ts +23 -0
  37. package/dist/utils/labels-of/labels-of.js +8 -0
  38. package/dist/utils/line-path/line-path.d.ts +18 -0
  39. package/dist/utils/line-path/line-path.js +36 -0
  40. package/dist/utils/locale-of/locale-of.d.ts +40 -2
  41. package/dist/utils/locale-of/locale-of.js +30 -16
  42. package/dist/utils/number-converter/number-converter.d.ts +44 -0
  43. package/dist/utils/number-converter/number-converter.js +34 -0
  44. package/dist/utils/read-data/read-data.d.ts +1 -1
  45. package/dist/utils/read-data/read-data.js +23 -10
  46. package/dist/utils/read-series/read-series.js +9 -2
  47. package/dist/utils/report-runtime/report-runtime.d.ts +8 -0
  48. package/dist/utils/scale/scale.d.ts +7 -1
  49. package/dist/utils/scale/scale.js +9 -4
  50. package/dist/utils/scroll-item-into-view/scroll-item-into-view.d.ts +5 -0
  51. package/dist/utils/scroll-item-into-view/scroll-item-into-view.js +3 -2
  52. package/dist/utils/watch-labels/watch-labels.d.ts +4 -2
  53. package/dist/utils/watch-labels/watch-labels.js +14 -14
  54. package/dist/version.d.ts +1 -1
  55. package/dist/version.js +1 -1
  56. package/dist/words/held.d.ts +11 -3
  57. package/dist/words/words-locale.js +20 -8
  58. package/dist/words/words.js +10 -5
  59. package/package.json +16 -4
package/README.md CHANGED
@@ -1,30 +1,39 @@
1
1
  # @fusion.dev/helix-core
2
2
 
3
- The primitives both Helix tiers are built from: base classes, mixins, decorators
4
- and utilities.
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
- Useful directly if you are writing custom elements that need to sit alongside
11
- Helix and behave the same way: controlled properties that answer, a single
12
- page-wide ticker rather than one timer per element, scroll-parent resolution that
13
- crosses shadow boundaries, and duplicate-registration detection.
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