@brandocms/jupiter 3.46.2 → 3.46.4
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/package.json
CHANGED
|
@@ -318,8 +318,8 @@ export default class Moonwalk {
|
|
|
318
318
|
* @param {*} section
|
|
319
319
|
*/
|
|
320
320
|
setupNamesAndStages (section) {
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
section.el.setAttribute('data-moonwalk-section-ready', '')
|
|
322
|
+
|
|
323
323
|
if (!section.stage.name && !section.name) {
|
|
324
324
|
return
|
|
325
325
|
}
|
|
@@ -350,7 +350,11 @@ export default class Moonwalk {
|
|
|
350
350
|
if (section.stage.name) {
|
|
351
351
|
// reset the element to its `from` state.
|
|
352
352
|
const stageTween = walks[section.stage.name]
|
|
353
|
-
|
|
353
|
+
if (!stageTween) {
|
|
354
|
+
console.error('==> JUPITER/MOONWALK: MISSING referenced moonwalk stage', section.stage.name)
|
|
355
|
+
} else {
|
|
356
|
+
gsap.set(section.el, stageTween.transition.from)
|
|
357
|
+
}
|
|
354
358
|
}
|
|
355
359
|
|
|
356
360
|
const observer = this.sectionObserver(section)
|
|
@@ -11,17 +11,19 @@ export default class Typography {
|
|
|
11
11
|
...settings
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
self.elems = []
|
|
15
|
+
|
|
14
16
|
// Either load from root or the passed parent element
|
|
15
17
|
if (typeof (parent) === 'undefined') {
|
|
16
|
-
self.elems = [...document.querySelectorAll(self.settings.selector)]
|
|
18
|
+
self.elems = [...self.elems, ...document.querySelectorAll(self.settings.selector)]
|
|
17
19
|
} else {
|
|
18
|
-
self.elems = [...parent.querySelectorAll(self.settings.selector)]
|
|
20
|
+
self.elems = [...self.elems, ...parent.querySelectorAll(self.settings.selector)]
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
// load children
|
|
22
24
|
const typoParents = document.querySelectorAll('[data-typo-children]')
|
|
23
25
|
typoParents.forEach(typoParent => {
|
|
24
|
-
self.elems = [...typoParent.children]
|
|
26
|
+
self.elems = [...self.elems, ...typoParent.children]
|
|
25
27
|
})
|
|
26
28
|
|
|
27
29
|
this.apply()
|