@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.
Files changed (2) hide show
  1. package/index.js +9 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // ver 1.2.13
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 (like Finsweet)
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('@hortonstudio/main-anim-text');
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('@hortonstudio/main-anim-hero');
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('@hortonstudio/main-anim-transition');
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('@hortonstudio/main-util-toc');
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('@hortonstudio/main-util-progress');
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('@hortonstudio/main-util-navbar');
49
+ return import('https://cdn.jsdelivr.net/npm/@hortonstudio/main-util-navbar@1/navbar.js');
50
50
  case "smooth-scroll":
51
- return import('@hortonstudio/main-smooth-scroll');
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hortonstudio/main",
3
- "version": "1.2.13",
3
+ "version": "1.2.14",
4
4
  "description": "Core animation and utility library for client websites",
5
5
  "main": "index.js",
6
6
  "type": "module",