@hortonstudio/main 1.2.22 → 1.2.24
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/animations/hero.js +10 -0
- package/animations/text.js +9 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/animations/hero.js
CHANGED
|
@@ -176,8 +176,16 @@ export async function init() {
|
|
|
176
176
|
|
|
177
177
|
// Check if there's a persistent config stored globally
|
|
178
178
|
const api = window[API_NAME] || {};
|
|
179
|
+
console.log('🔄 Hero animations init - full API object:', api);
|
|
180
|
+
console.log('🔄 Hero animations init - _persistentConfigs:', api._persistentConfigs);
|
|
179
181
|
console.log('🔄 Hero animations init - checking persistent config:', api._persistentConfigs?.heroAnimations);
|
|
180
182
|
|
|
183
|
+
// Ensure _persistentConfigs exists
|
|
184
|
+
if (!api._persistentConfigs) {
|
|
185
|
+
api._persistentConfigs = {};
|
|
186
|
+
console.log('🏗️ Hero animations - created _persistentConfigs object');
|
|
187
|
+
}
|
|
188
|
+
|
|
181
189
|
if (api._persistentConfigs?.heroAnimations) {
|
|
182
190
|
console.log('📝 Hero animations - applying persistent config:', api._persistentConfigs.heroAnimations);
|
|
183
191
|
// Merge persistent config into current config
|
|
@@ -199,6 +207,7 @@ export async function init() {
|
|
|
199
207
|
api._persistentConfigs = api._persistentConfigs || {};
|
|
200
208
|
api._persistentConfigs.heroAnimations = { ...config };
|
|
201
209
|
console.log('💾 Hero animations - stored persistent config:', api._persistentConfigs.heroAnimations);
|
|
210
|
+
console.log('💾 Hero animations - full _persistentConfigs after store:', api._persistentConfigs);
|
|
202
211
|
},
|
|
203
212
|
start: startHeroAnimations,
|
|
204
213
|
kill: killHeroAnimations,
|
|
@@ -610,6 +619,7 @@ export async function init() {
|
|
|
610
619
|
api._persistentConfigs = api._persistentConfigs || {};
|
|
611
620
|
api._persistentConfigs.heroAnimations = { ...config };
|
|
612
621
|
console.log('💾 Hero animations - stored persistent config:', api._persistentConfigs.heroAnimations);
|
|
622
|
+
console.log('💾 Hero animations - full _persistentConfigs after store:', api._persistentConfigs);
|
|
613
623
|
},
|
|
614
624
|
start: startHeroAnimations,
|
|
615
625
|
kill: killHeroAnimations,
|
package/animations/text.js
CHANGED
|
@@ -345,8 +345,16 @@ async function initAnimations() {
|
|
|
345
345
|
export async function init() {
|
|
346
346
|
// Check if there's a persistent config stored globally
|
|
347
347
|
const api = window[API_NAME] || {};
|
|
348
|
+
console.log('🔄 Text animations init - full API object:', api);
|
|
349
|
+
console.log('🔄 Text animations init - _persistentConfigs:', api._persistentConfigs);
|
|
348
350
|
console.log('🔄 Text animations init - checking persistent config:', api._persistentConfigs?.textAnimations);
|
|
349
351
|
|
|
352
|
+
// Ensure _persistentConfigs exists
|
|
353
|
+
if (!api._persistentConfigs) {
|
|
354
|
+
api._persistentConfigs = {};
|
|
355
|
+
console.log('🏗️ Text animations - created _persistentConfigs object');
|
|
356
|
+
}
|
|
357
|
+
|
|
350
358
|
if (api._persistentConfigs?.textAnimations) {
|
|
351
359
|
console.log('📝 Text animations - applying persistent config:', api._persistentConfigs.textAnimations);
|
|
352
360
|
// Merge persistent config into current config
|
|
@@ -373,6 +381,7 @@ export async function init() {
|
|
|
373
381
|
api._persistentConfigs = api._persistentConfigs || {};
|
|
374
382
|
api._persistentConfigs.textAnimations = { ...config };
|
|
375
383
|
console.log('💾 Text animations - stored persistent config:', api._persistentConfigs.textAnimations);
|
|
384
|
+
console.log('💾 Text animations - full _persistentConfigs after store:', api._persistentConfigs);
|
|
376
385
|
},
|
|
377
386
|
start: startTextAnimations,
|
|
378
387
|
kill: killTextAnimations,
|
package/index.js
CHANGED