@hortonstudio/main 1.2.13 → 1.2.14
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/index.js +9 -9
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// ver 1.2.
|
1
|
+
// ver 1.2.14
|
2
2
|
|
3
3
|
const API_NAME = 'hsmain';
|
4
4
|
|
@@ -32,23 +32,23 @@ const initializeHsMain = () => {
|
|
32
32
|
// All available modules
|
33
33
|
const allModules = { ...animationModules, ...utilityModules };
|
34
34
|
|
35
|
-
// Dynamic module loader (
|
35
|
+
// Dynamic module loader (CDN URLs)
|
36
36
|
const loadModule = async (moduleName) => {
|
37
37
|
switch (moduleName) {
|
38
38
|
case "data-hs-anim-text":
|
39
|
-
return import('
|
39
|
+
return import('https://cdn.jsdelivr.net/npm/@hortonstudio/main-anim-text@1/text.js');
|
40
40
|
case "data-hs-anim-hero":
|
41
|
-
return import('
|
41
|
+
return import('https://cdn.jsdelivr.net/npm/@hortonstudio/main-anim-hero@1/hero.js');
|
42
42
|
case "data-hs-anim-transition":
|
43
|
-
return import('
|
43
|
+
return import('https://cdn.jsdelivr.net/npm/@hortonstudio/main-anim-transition@1/transition.js');
|
44
44
|
case "data-hs-util-toc":
|
45
|
-
return import('
|
45
|
+
return import('https://cdn.jsdelivr.net/npm/@hortonstudio/main-util-toc@1/toc.js');
|
46
46
|
case "data-hs-util-progress":
|
47
|
-
return import('
|
47
|
+
return import('https://cdn.jsdelivr.net/npm/@hortonstudio/main-util-progress@1/scroll-progress.js');
|
48
48
|
case "data-hs-util-navbar":
|
49
|
-
return import('
|
49
|
+
return import('https://cdn.jsdelivr.net/npm/@hortonstudio/main-util-navbar@1/navbar.js');
|
50
50
|
case "smooth-scroll":
|
51
|
-
return import('
|
51
|
+
return import('https://cdn.jsdelivr.net/npm/@hortonstudio/main-smooth-scroll@1/smooth-scroll.js');
|
52
52
|
default:
|
53
53
|
throw new Error(`${API_NAME} module "${moduleName}" is not supported.`);
|
54
54
|
}
|