hr-design-system-handlebars 0.58.0 → 0.59.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/.storybook/main.js +39 -5
- package/.storybook/preview-head.html +1 -1
- package/.storybook/withThemeDecorator.js +0 -1
- package/CHANGELOG.md +557 -532
- package/README.md +11 -2
- package/build/handlebars/handlebars.js +44 -0
- package/build/handlebars/helpers/handlebar-helpers.js +497 -0
- package/build/handlebars/partials/handlebar-partials.js +71 -0
- package/build/partials/handlebar-partials-test.js +67 -0
- package/config.js +5 -0
- package/dist/assets/index.css +6 -6
- package/dist/assets/js/views/base/tracking/atiHelper.subfeature.js +1 -1
- package/dist/assets/js/views/components/externalService/{trackingCookieDs.subfeature.js → trackingCookie.subfeature.js} +0 -0
- package/dist/assets/js/views/components/mediaplayer/ardPlayerLoader.subfeature.js +8 -7
- package/dist/views/base/tracking/atiHelper.subfeature.js +1 -1
- package/dist/views/components/base/link.hbs +2 -2
- package/dist/views/components/button/button_pseudo.hbs +11 -3
- package/dist/views/components/content_nav/content_nav.hbs +3 -3
- package/dist/views/components/content_nav/content_nav_dropdown.hbs +1 -1
- package/dist/views/components/content_nav/content_nav_item.hbs +3 -4
- package/dist/views/components/externalService/{trackingCookieDs.subfeature.js → trackingCookie.subfeature.js} +0 -0
- package/dist/views/components/mediaplayer/ardPlayerLoader.subfeature.js +8 -7
- package/dist/views/components/mediaplayer/media_player.hbs +2 -2
- package/dist/views/components/site_header/navigation_flyout/navigation_flyout_item.hbs +2 -2
- package/dist/views/components/teaser/cluster/teaser_cluster.hbs +3 -3
- package/dist/views/components/teaser/cluster/teaser_cluster_item.hbs +6 -4
- package/dist/views/components/teaser/cluster/teaser_cluster_list.hbs +9 -9
- package/dist/views/components/teaser/components/teaser_body.hbs +2 -2
- package/dist/views/components/teaser/components/teaser_comments.hbs +2 -2
- package/dist/views/components/teaser/components/teaser_image.hbs +4 -4
- package/dist/views/components/teaser/components/teaser_image_overlay.hbs +1 -1
- package/dist/views/components/teaser/podcast/podcast_player.hbs +56 -26
- package/dist/views/components/teaser/teaser_logic/teaser_logic.hbs +1 -1
- package/dist/views/components/teaser/teaser_poster.hbs +2 -2
- package/dist/views/components/teaser/teaser_standard.hbs +2 -2
- package/dist/views/components/teaser/teaser_standard_event.hbs +6 -6
- package/gulpfile.js +38 -2
- package/package.json +12 -3
- package/src/assets/fixtures/teaser/cluster_teaser_100_genre.json +1 -1
- package/src/assets/fixtures/teaser/cluster_teaser_100_image.json +1 -1
- package/src/assets/fixtures/teaser/cluster_teaser_33_genre.json +1 -1
- package/src/assets/fixtures/teaser/cluster_teaser_33_image.json +1 -1
- package/src/assets/fixtures/teaser/cluster_teaser_50_genre.json +1 -1
- package/src/assets/fixtures/teaser/cluster_teaser_50_image.json +1 -1
- package/src/assets/fixtures/teaser/cluster_teaser_extern_100.json +1 -1
- package/src/assets/fixtures/teaser/cluster_teaser_extern_33.json +1 -1
- package/src/assets/fixtures/teaser/cluster_teaser_extern_50.json +1 -1
- package/src/assets/fixtures/teaser/cluster_teaser_ordered_100.json +2 -2
- package/src/assets/fixtures/teaser/cluster_teaser_ordered_33.json +2 -2
- package/src/assets/fixtures/teaser/cluster_teaser_ordered_50.json +2 -2
- package/src/assets/fixtures/teaser/headline_list_Item.inc.json +75 -1
- package/src/assets/fixtures/teaser/teaser_cluster.inc.json +2 -3
- package/src/assets/fixtures/teaser/teaser_groups.inc.json +0 -2
- package/src/assets/vendor/js/podcastPlayer.alpine.js +63 -0
- package/src/stories/Fixtures.stories.mdx +1 -1
- package/src/stories/SvgOptimization.stories.mdx +3 -2
- package/src/stories/views/base/tracking/atiHelper.subfeature.js +1 -1
- package/src/stories/views/components/base/link.hbs +2 -2
- package/src/stories/views/components/button/button_pseudo.hbs +11 -3
- package/src/stories/views/components/content_nav/content_nav.hbs +3 -3
- package/src/stories/views/components/content_nav/content_nav_dropdown.hbs +1 -1
- package/src/stories/views/components/content_nav/content_nav_item.hbs +3 -4
- package/src/stories/views/components/externalService/{trackingCookieDs.subfeature.js → trackingCookie.subfeature.js} +0 -0
- package/src/stories/views/components/mediaplayer/ardPlayerLoader.subfeature.js +8 -7
- package/src/stories/views/components/mediaplayer/media_player.hbs +2 -2
- package/src/stories/views/components/site_header/navigation_flyout/navigation_flyout_item.hbs +2 -2
- package/src/stories/views/components/teaser/cluster/teaser_cluster.hbs +3 -3
- package/src/stories/views/components/teaser/cluster/teaser_cluster_item.hbs +6 -4
- package/src/stories/views/components/teaser/cluster/teaser_cluster_list.hbs +9 -9
- package/src/stories/views/components/teaser/components/teaser_body.hbs +2 -2
- package/src/stories/views/components/teaser/components/teaser_comments.hbs +2 -2
- package/src/stories/views/components/teaser/components/teaser_image.hbs +4 -4
- package/src/stories/views/components/teaser/components/teaser_image_overlay.hbs +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_100.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_100_genre.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_100_image.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_33.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_33_genre.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_33_image.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_50.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_50_genre.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_50_image.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_100.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_33.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_50.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_100.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_33.json +1 -1
- package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_50.json +1 -1
- package/src/stories/views/components/teaser/podcast/podcast_player.hbs +56 -26
- package/src/stories/views/components/teaser/teaser_logic/teaser_logic.hbs +1 -1
- package/src/stories/views/components/teaser/teaser_poster.hbs +2 -2
- package/src/stories/views/components/teaser/teaser_standard.hbs +2 -2
- package/src/stories/views/components/teaser/teaser_standard_event.hbs +6 -6
- package/build/helpers/block.js +0 -12
- package/build/helpers/case.js +0 -6
- package/build/helpers/configProperty.js +0 -3
- package/build/helpers/default.js +0 -5
- package/build/helpers/defaultIfEmpty.js +0 -7
- package/build/helpers/getRandom.js +0 -3
- package/build/helpers/if.js +0 -31
- package/build/helpers/include.js +0 -31
- package/build/helpers/inline-switch.js +0 -8
- package/build/helpers/isStorybook.js +0 -3
- package/build/helpers/json.js +0 -3
- package/build/helpers/loca.js +0 -33
- package/build/helpers/nextRandom.js +0 -11
- package/build/helpers/partial.js +0 -5
- package/build/helpers/replaceTokens.js +0 -17
- package/build/helpers/resourceUrl.js +0 -44
- package/build/helpers/switch.js +0 -5
- package/build/helpers/withParam.js +0 -36
package/.storybook/main.js
CHANGED
|
@@ -28,7 +28,6 @@ module.exports = {
|
|
|
28
28
|
// `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION'
|
|
29
29
|
// You can change the configuration based on that.
|
|
30
30
|
// 'PRODUCTION' is used when building the static version of storybook.
|
|
31
|
-
|
|
32
31
|
// Make whatever fine-grained changes you need
|
|
33
32
|
config.resolve.alias = {
|
|
34
33
|
...config.resolve.alias,
|
|
@@ -49,14 +48,49 @@ module.exports = {
|
|
|
49
48
|
|
|
50
49
|
config.module.rules.push(
|
|
51
50
|
{
|
|
52
|
-
test: /\.
|
|
51
|
+
test: /\.hbs$/,
|
|
53
52
|
loader: 'handlebars-loader',
|
|
54
|
-
include: path.resolve(__dirname, '../'),
|
|
53
|
+
//include: path.resolve(__dirname, '../'),
|
|
54
|
+
|
|
55
55
|
options: {
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
debug: false,
|
|
57
|
+
knownHelpers: [
|
|
58
|
+
'partial',
|
|
59
|
+
'block',
|
|
60
|
+
'append',
|
|
61
|
+
'decorator',
|
|
62
|
+
'decorator_body',
|
|
63
|
+
'defaultIfEmpty',
|
|
64
|
+
'if',
|
|
65
|
+
'inline-switch',
|
|
66
|
+
'json',
|
|
67
|
+
'withParam',
|
|
68
|
+
'loca',
|
|
69
|
+
'resourceUrl',
|
|
70
|
+
'isStorybook',
|
|
71
|
+
'switch',
|
|
72
|
+
'case',
|
|
73
|
+
'default',
|
|
74
|
+
],
|
|
75
|
+
ignoreHelpers: true,
|
|
76
|
+
ignorePartials: true,
|
|
77
|
+
runtime: path.resolve(__dirname, '../build/handlebars/handlebars'),
|
|
78
|
+
precompileOptions: {
|
|
79
|
+
knownHelpersOnly: false,
|
|
80
|
+
},
|
|
58
81
|
},
|
|
59
82
|
},
|
|
83
|
+
{
|
|
84
|
+
test: /\.handlebars$/i,
|
|
85
|
+
use: [
|
|
86
|
+
{
|
|
87
|
+
loader: 'raw-loader',
|
|
88
|
+
options: {
|
|
89
|
+
esModule: false,
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
},
|
|
60
94
|
{
|
|
61
95
|
test: /\,css&/,
|
|
62
96
|
use: [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<script src="https://cdn.jsdelivr.net/npm/async-alpine@0.4.x/dist/async-alpine.script.js"></script>
|
|
2
2
|
<script defer src="https://unpkg.com/@alpinejs/collapse@3.8.1/dist/cdn.min.js"></script>
|
|
3
3
|
<script defer src="https://unpkg.com/@alpine-collective/toolkit@1.0.0/dist/cdn.min.js"></script>
|
|
4
|
-
<script defer src="https://unpkg.com/alpinejs@3.8.1/dist/cdn.min.js"></script>
|
|
4
|
+
<script defer src="https://unpkg.com/alpinejs@3.8.1/dist/cdn.min.js"></script>
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
const getActiveValue = ({ globals, parameters }) => {
|
|
3
3
|
const global = globals.customConditionalToolbar || {}
|
|
4
4
|
const param = parameters.customConditionalToolbar
|
|
5
|
-
console.log(global[param.default])
|
|
6
5
|
return undefined !== global[param.default] ? global[param.default] : 'hessenschau' // get the selected options id
|
|
7
6
|
}
|
|
8
7
|
|