@total_onion/onion-library 2.0.79 → 2.0.82
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/components/block-spotify-embed-v3/spotify-embed-v3.js +7 -0
- package/components/block-spotify-embed-v3/spotify-embed-v3.php +14 -0
- package/components/block-spotify-embed-v3/spotify-embed-v3.scss +12 -0
- package/components/block-spotify-embed-v3/spotify-embed-v3.twig +25 -0
- package/components/component-animations-v3/animations-v3.scss +1 -0
- package/components/component-animations-v3/animations-v3.twig +3 -2
- package/components/component-animations-v3/group_689f39c37980a.json +21 -2
- package/package.json +1 -1
- package/public/block-sub-group-container-v3/sub-group-container-v3.css +11 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
acf_register_block_type(
|
|
4
|
+
array(
|
|
5
|
+
'name' => 'spotify-embed-v3',
|
|
6
|
+
'title' => __( 'Spotify embed v3', 'Global-theme Admin' ),
|
|
7
|
+
'render_callback' => 'athena_block_render_post_object_v3',
|
|
8
|
+
'category' => 'common',
|
|
9
|
+
'icon' => get_svg_icon_content('brick.svg'),
|
|
10
|
+
'keywords' => array('content', 'text' ),
|
|
11
|
+
'mode' => 'preview',
|
|
12
|
+
'supports' => array( 'align' => false, 'anchor' => true ),
|
|
13
|
+
)
|
|
14
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use '../fields-core-mixins-v3/core-mixins-v3';
|
|
2
|
+
@use '../../breakpoints';
|
|
3
|
+
|
|
4
|
+
.spotify-embed-v3 {
|
|
5
|
+
height: var(--mobile-height, 350px);
|
|
6
|
+
@include core-mixins-v3.device(breakpoints.$tabPortrait) {
|
|
7
|
+
height: var(--tablet-height, 352px);
|
|
8
|
+
}
|
|
9
|
+
@include core-mixins-v3.device(breakpoints.$tabLandscape) {
|
|
10
|
+
height: var(--desktop-height, 352px);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{% set blockClassName = "spotify-embed-v3" %}
|
|
2
|
+
{% set classNameEntryPoint = include('entry-points/entry-point-classes.twig', { fields: fields, block: block }, with_context = false) %}
|
|
3
|
+
{% set htmlEntryPoint = include('entry-points/entry-point-html-v3.twig', { fields: fields, block: block, blockClassName, blockClassName }, with_context = false) %}
|
|
4
|
+
{% set dataAttributeEntryPoint = include('entry-points/entry-point-data-attribute.twig', { fields: fields, block: block }, with_context = false) %}
|
|
5
|
+
{% set styleEntryPoint = include('entry-points/entry-point-style-v3.twig', { fields: fields, block: block, is_preview }, with_context = false) %}
|
|
6
|
+
{% set previewEntryPoint = include('entry-points/entry-point-preview-info.twig', { fields, block, displaytype, is_preview }, with_context = false) %}
|
|
7
|
+
{% set desktopHeight = fields.desktop_height|default(352) %}
|
|
8
|
+
{% set tabletHeight = fields.tablet_height|default(352) %}
|
|
9
|
+
{% set mobileHeight = fields.mobile_height|default(350) %}
|
|
10
|
+
|
|
11
|
+
{% set sectionStyles = styleEntryPoint %}
|
|
12
|
+
|
|
13
|
+
{{previewEntryPoint}}
|
|
14
|
+
<style>
|
|
15
|
+
.{{blockClassName}}.{{block.id}}{
|
|
16
|
+
{{sectionStyles}}
|
|
17
|
+
}
|
|
18
|
+
</style>
|
|
19
|
+
<section {{block.anchor ? "id=" ~ block.anchor : ''}} class="{{blockClassName}} {{fields.section_class}} {{classNameEntryPoint}} {{block.id}} lazy-fade" {{dataAttributeEntryPoint}} data-blockid="{{block.id}}" data-assetkey="{{blockClassName}}">
|
|
20
|
+
|
|
21
|
+
<iframe style="border-radius:12px; --desktop-height: {{desktopHeight}}px;--tablet-height: {{tabletHeight}}px;--mobile-height: {{mobileHeight}}px" src="{{fields.embed_url}}" class="spotify-embed" width="100%" frameborder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
{{htmlEntryPoint}}
|
|
25
|
+
</section>
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
{% set animationEasing = '--animation-easing: ' ~ fields.animations.animation_easing_custom|ru ~ ';' %}
|
|
13
13
|
{% endif %}
|
|
14
14
|
{% set animationDirection = '--animation-direction: ' ~ fields.animations.animation_direction|ru ~ ';' %}
|
|
15
|
-
{% set
|
|
15
|
+
{% set animationTimeline = '--animation-timeline: ' ~ fields.animations.animation_timeline|ru ~ ';' %}
|
|
16
|
+
{% set animationsString = animationName ~ animationDuration ~ animationDelay ~ animationRepeat ~ animationEasing ~ animationFillMode ~ animationDirection ~ animationTimeline %}
|
|
17
|
+
|
|
16
18
|
{{animationsString}}
|
|
17
19
|
{% endif %}
|
|
18
|
-
|
|
@@ -421,6 +421,26 @@
|
|
|
421
421
|
"step": "",
|
|
422
422
|
"prepend": "",
|
|
423
423
|
"append": ""
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"key": "field_68f9e35d7db0b",
|
|
427
|
+
"label": "Animation Timeline",
|
|
428
|
+
"name": "animation_timeline",
|
|
429
|
+
"aria-label": "",
|
|
430
|
+
"type": "text",
|
|
431
|
+
"instructions": "Add your timeline function with the appropriate arguments or leave blank for no timeline.\r\nSee https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timeline",
|
|
432
|
+
"required": 0,
|
|
433
|
+
"conditional_logic": 0,
|
|
434
|
+
"wrapper": {
|
|
435
|
+
"width": "",
|
|
436
|
+
"class": "",
|
|
437
|
+
"id": ""
|
|
438
|
+
},
|
|
439
|
+
"default_value": "",
|
|
440
|
+
"maxlength": "",
|
|
441
|
+
"placeholder": "",
|
|
442
|
+
"prepend": "",
|
|
443
|
+
"append": ""
|
|
424
444
|
}
|
|
425
445
|
]
|
|
426
446
|
}
|
|
@@ -444,10 +464,9 @@
|
|
|
444
464
|
"description": "",
|
|
445
465
|
"show_in_rest": 0,
|
|
446
466
|
"acfe_autosync": ["json"],
|
|
447
|
-
"acfml_field_group_mode": "localization",
|
|
448
467
|
"acfe_form": 0,
|
|
449
468
|
"acfe_display_title": "",
|
|
450
469
|
"acfe_meta": "",
|
|
451
470
|
"acfe_note": "",
|
|
452
|
-
"modified":
|
|
471
|
+
"modified": 1761207280
|
|
453
472
|
}
|
package/package.json
CHANGED
|
@@ -97,8 +97,19 @@
|
|
|
97
97
|
opacity: 1;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
+
@keyframes reveal-up {
|
|
101
|
+
from {
|
|
102
|
+
opacity: 1;
|
|
103
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
|
|
104
|
+
}
|
|
105
|
+
100% {
|
|
106
|
+
opacity: 1;
|
|
107
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
100
110
|
.sub-group-container-v3 .cmpl-block-animations.loaded {
|
|
101
111
|
animation: var(--animation-name) var(--animation-duration) var(--animation-delay) var(--animation-easing) var(--animation-repeat) var(--animation-fill-mode) var(--animation-direction);
|
|
112
|
+
animation-timeline: var(--animation-timeline);
|
|
102
113
|
}
|
|
103
114
|
.sub-group-container-v3__grid-container {
|
|
104
115
|
grid-area: main;
|