@ethlete/core 4.30.0 → 5.0.0-next.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/CHANGELOG.md +73 -0
- package/fesm2022/ethlete-core.mjs +4019 -4810
- package/fesm2022/ethlete-core.mjs.map +1 -1
- package/generators/generators.json +14 -0
- package/generators/migrate-to-v5/create-provider.js +158 -0
- package/generators/migrate-to-v5/migration.js +28 -0
- package/generators/migrate-to-v5/router-state-service.js +1064 -0
- package/generators/migrate-to-v5/schema.json +29 -0
- package/generators/migrate-to-v5/viewport-service.js +1678 -0
- package/generators/tailwind-4-theme/generator.js +490 -0
- package/generators/tailwind-4-theme/schema.json +32 -0
- package/package.json +18 -11
- package/types/ethlete-core.d.ts +2161 -0
- package/index.d.ts +0 -1968
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,78 @@
|
|
|
1
1
|
# @ethlete/core
|
|
2
2
|
|
|
3
|
+
## 5.0.0-next.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`ca6cdfb`](https://github.com/ethlete-io/ethdk/commit/ca6cdfbaa99430a89244024a8810249bb99e3d91) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ScrollObserverLastElementDirective`
|
|
8
|
+
|
|
9
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`e4a7c6f`](https://github.com/ethlete-io/ethdk/commit/e4a7c6ff868e6dd541d4533e509b30821f6c83b5) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `IsActiveElementDirective`. If used inside a `ScrollableComponent`, the `ScrollableIsActiveChildDirective` should be used instead.
|
|
10
|
+
|
|
11
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`d080bb2`](https://github.com/ethlete-io/ethdk/commit/d080bb2cc246d4559ffcbf88c319b9437133d377) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ObserveResizeDirective`. Use `signalElementDimensions()` instead.
|
|
12
|
+
|
|
13
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`ca6cdfb`](https://github.com/ethlete-io/ethdk/commit/ca6cdfbaa99430a89244024a8810249bb99e3d91) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ObserveScrollStateDirective`
|
|
14
|
+
|
|
15
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`ca6cdfb`](https://github.com/ethlete-io/ethdk/commit/ca6cdfbaa99430a89244024a8810249bb99e3d91) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ScrollObserverFirstElementDirective`
|
|
16
|
+
|
|
17
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`d8f381f`](https://github.com/ethlete-io/ethdk/commit/d8f381f39710db99c2f26af64dbf9e4df75c8a49) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `LetDirective`. The migration will try to auto migrate all usages, but manual review is required (applies to `*etLet` and `*ngLet`)
|
|
18
|
+
|
|
19
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`ca6cdfb`](https://github.com/ethlete-io/ethdk/commit/ca6cdfbaa99430a89244024a8810249bb99e3d91) Thanks [@github-actions](https://github.com/apps/github-actions)! - The `ViewportService` has been removed. The migration will try to auto migrate all usages, but manual review is required.
|
|
20
|
+
|
|
21
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`f4847d4`](https://github.com/ethlete-io/ethdk/commit/f4847d4eb25b70706a4ee8c81addcd58a7d99995) Thanks [@github-actions](https://github.com/apps/github-actions)! - You must run yarn nx generate @ethlete/core:migrate-to-v5 after updating to this version. **Please check the console output for warnings about any manual code changes that may be needed.**
|
|
22
|
+
|
|
23
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`f5ad487`](https://github.com/ethlete-io/ethdk/commit/f5ad4879061917e91bebf144889774226202308b) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove `RootBoundaryDirective`. Replaced by `provideBoundaryElement()` function
|
|
24
|
+
|
|
25
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`55dc627`](https://github.com/ethlete-io/ethdk/commit/55dc627a6a49f3a8a5c8f80f63f163e443e07099) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `CursorDragScrollDirective`. Use `useCursorDragScroll()` function instead
|
|
26
|
+
|
|
27
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`ca6cdfb`](https://github.com/ethlete-io/ethdk/commit/ca6cdfbaa99430a89244024a8810249bb99e3d91) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `IsElementDirective`. Usages will be migrated to the (now about 2 years old) "new" `ScrollableIsActiveChildDirective`
|
|
28
|
+
|
|
29
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`d080bb2`](https://github.com/ethlete-io/ethdk/commit/d080bb2cc246d4559ffcbf88c319b9437133d377) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ResizeObserverService`
|
|
30
|
+
|
|
31
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`e4a7c6f`](https://github.com/ethlete-io/ethdk/commit/e4a7c6ff868e6dd541d4533e509b30821f6c83b5) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove `DelayableDirective` since it's only used specifically inside the now legacy `InfinityQueryDirective`. If this functionality was needed, use the new `provideInfinityQueryResponseDelay()` provider instead.
|
|
32
|
+
|
|
33
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`d8f381f`](https://github.com/ethlete-io/ethdk/commit/d8f381f39710db99c2f26af64dbf9e4df75c8a49) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove deprecated `provideThemes` call. Usages will be migrated to `provideColorThemes`. Also migrate all theming usages from @ethlete/cdk to @ethlete/core.
|
|
34
|
+
|
|
35
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`ca6cdfb`](https://github.com/ethlete-io/ethdk/commit/ca6cdfbaa99430a89244024a8810249bb99e3d91) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ScrollObserverIgnoreTargetDirective`
|
|
36
|
+
|
|
37
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`6e41e09`](https://github.com/ethlete-io/ethdk/commit/6e41e09668d2077fba27de1e11bacc98480becfe) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ClickObserverService`
|
|
38
|
+
|
|
39
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`d080bb2`](https://github.com/ethlete-io/ethdk/commit/d080bb2cc246d4559ffcbf88c319b9437133d377) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ObserveContentDirective`. Use `signalElementMutations()` instead.
|
|
40
|
+
|
|
41
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`5e764b9`](https://github.com/ethlete-io/ethdk/commit/5e764b92cbcc6b6ec288a84b397d291f0b1138fb) Thanks [@github-actions](https://github.com/apps/github-actions)! - Remove obsolete `ObserveVisibilityDirective`. `signalElementIntersection()` function should be used instead
|
|
42
|
+
|
|
43
|
+
### Minor Changes
|
|
44
|
+
|
|
45
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`99b3f64`](https://github.com/ethlete-io/ethdk/commit/99b3f646701cb763512e7148592457dc509f55e5) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add generator to create a Tailwind CSS v4 theme based on predefined themes.
|
|
46
|
+
Run it via `nx g @ethlete/core:tailwind-4-theme --themesPath=<path-to-themes> --outputPath=<output-css-file-path>`.
|
|
47
|
+
You should also replace all usages of `provideColorThemes(themes)` with `provideColorThemesWithTailwind4(themes)` after.
|
|
48
|
+
Don't forget to add the generated css file to you main css entry point.
|
|
49
|
+
|
|
50
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`f5ad487`](https://github.com/ethlete-io/ethdk/commit/f5ad4879061917e91bebf144889774226202308b) Thanks [@github-actions](https://github.com/apps/github-actions)! - Expose the created injection token as a third element returned by the `createProvider()` function
|
|
51
|
+
|
|
52
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`3d7f302`](https://github.com/ethlete-io/ethdk/commit/3d7f30253502adada00825fda3653441c01071da) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `injectAngularRootElement` util to get access to the application's root html element
|
|
53
|
+
|
|
54
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`3d7f302`](https://github.com/ethlete-io/ethdk/commit/3d7f30253502adada00825fda3653441c01071da) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `applyHeadTitleBinding` util for easier management of document titles
|
|
55
|
+
|
|
56
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`451e170`](https://github.com/ethlete-io/ethdk/commit/451e170f2df1c49fca07bde053efa75bd23ca22f) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `createRootProvider` and `createStaticRootProvider` utils. Providers created by these utils are automatically provided in the root injector.
|
|
57
|
+
|
|
58
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`3d7f302`](https://github.com/ethlete-io/ethdk/commit/3d7f30253502adada00825fda3653441c01071da) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `injectIsRouterInitialized` util
|
|
59
|
+
|
|
60
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`5e764b9`](https://github.com/ethlete-io/ethdk/commit/5e764b92cbcc6b6ec288a84b397d291f0b1138fb) Thanks [@github-actions](https://github.com/apps/github-actions)! - Allow container to be null inside `isElementVisible()` function to check against the viewport
|
|
61
|
+
|
|
62
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`d8f381f`](https://github.com/ethlete-io/ethdk/commit/d8f381f39710db99c2f26af64dbf9e4df75c8a49) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `createStaticProviderWithDefaults` util
|
|
63
|
+
|
|
64
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`8a85984`](https://github.com/ethlete-io/ethdk/commit/8a859841acaf7c10c876c7eb921f4c7e25e41764) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `signalAnimatedNumber()` util
|
|
65
|
+
|
|
66
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`5e764b9`](https://github.com/ethlete-io/ethdk/commit/5e764b92cbcc6b6ec288a84b397d291f0b1138fb) Thanks [@github-actions](https://github.com/apps/github-actions)! - Allow element to be null inside `elementCanScroll()` function to check the viewport
|
|
67
|
+
|
|
68
|
+
- [#2891](https://github.com/ethlete-io/ethdk/pull/2891) [`e4a7c6f`](https://github.com/ethlete-io/ethdk/commit/e4a7c6ff868e6dd541d4533e509b30821f6c83b5) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add optional inject flag options to the inject function returned by `createProvider()`
|
|
69
|
+
|
|
70
|
+
## 4.31.0
|
|
71
|
+
|
|
72
|
+
### Minor Changes
|
|
73
|
+
|
|
74
|
+
- [`76d9819`](https://github.com/ethlete-io/ethdk/commit/76d98196e2ad33b3c0eeb19c8864ef94f9a2c994) Thanks [@TomTomB](https://github.com/TomTomB)! - Add `requireSync` option to `injectQueryParam` util to explicitly tell the function to read its initial value from the url instead of waiting for the router
|
|
75
|
+
|
|
3
76
|
## 4.30.0
|
|
4
77
|
|
|
5
78
|
### Minor Changes
|