nodality 1.0.168 → 1.0.170

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 (105) hide show
  1. package/dist/bundle.umd.js +2 -1
  2. package/dist/bundle.umd.js.LICENSE.txt +33 -0
  3. package/dist/finalresult.esm.js +2 -1
  4. package/dist/finalresult.esm.js.LICENSE.txt +60 -0
  5. package/dist/index.cjs.js +2 -1
  6. package/dist/index.cjs.js.LICENSE.txt +60 -0
  7. package/dist/index.esm.js +2 -1
  8. package/dist/index.esm.js.LICENSE.txt +60 -0
  9. package/layout/animator.js +1 -1
  10. package/layout/audio.js +1 -1
  11. package/layout/audionew.js +1 -1
  12. package/layout/base-2.js +1 -1
  13. package/layout/base.js +1 -1
  14. package/layout/beta-desktop-bar.js +1 -1
  15. package/layout/beta-mobile-bar.js +1 -1
  16. package/layout/box.js +1 -1
  17. package/layout/button.js +1 -1
  18. package/layout/cards.js +1 -1
  19. package/layout/center.js +1 -1
  20. package/layout/checkbox.js +1 -1
  21. package/layout/circle.js +1 -1
  22. package/layout/clean-row.js +1 -1
  23. package/layout/code.js +1 -1
  24. package/layout/container.js +1 -1
  25. package/layout/custom.js +1 -1
  26. package/layout/div-image.js +1 -1
  27. package/layout/dropdown-2025.js +1 -1
  28. package/layout/dropdown.js +1 -1
  29. package/layout/empty-element.js +1 -1
  30. package/layout/external-stylesheet.js +1 -1
  31. package/layout/flex-card.js +1 -1
  32. package/layout/flex-grid.js +1 -1
  33. package/layout/flex-row.js +1 -1
  34. package/layout/footer.js +1 -1
  35. package/layout/form-components/custom.js +1 -1
  36. package/layout/form-components/data-list.js +1 -1
  37. package/layout/form-components/floating-input.js +1 -1
  38. package/layout/form-components/form-all.js +1 -1
  39. package/layout/form-components/form.js +1 -1
  40. package/layout/form-components/image-picker.js +1 -1
  41. package/layout/form-components/picker.js +1 -1
  42. package/layout/form-components/radio.js +1 -1
  43. package/layout/form-components/radiogroup.js +1 -1
  44. package/layout/form-components/range.js +1 -1
  45. package/layout/free.js +1 -1
  46. package/layout/grid-new.js +1 -1
  47. package/layout/grid-switcher.js +1 -1
  48. package/layout/grid.js +1 -1
  49. package/layout/group.js +1 -1
  50. package/layout/header.js +1 -1
  51. package/layout/horizontal-scroller.js +1 -1
  52. package/layout/image-old.js +1 -1
  53. package/layout/image.js +1 -1
  54. package/layout/index.js +24 -2
  55. package/layout/label.js +1 -1
  56. package/layout/link.js +1 -1
  57. package/layout/list-OLD.js +1 -1
  58. package/layout/list.js +1 -1
  59. package/layout/meta-adder.js +1 -1
  60. package/layout/modal-2025.js +1 -1
  61. package/layout/modernwrap.js +1 -1
  62. package/layout/multiswitcher.js +1 -1
  63. package/layout/multiswitcherBeta.js +1 -1
  64. package/layout/nav-bar.js +1 -1
  65. package/layout/nav-factor/custom-div.js +1 -1
  66. package/layout/navBar-OLD.js +1 -1
  67. package/layout/new-flat-adder.js +1 -1
  68. package/layout/new-nav-bar.js +1 -1
  69. package/layout/offset-container.js +1 -1
  70. package/layout/polygon.js +1 -1
  71. package/layout/prerender-site.js +1 -1
  72. package/layout/prerender.js +1 -1
  73. package/layout/progress.js +1 -1
  74. package/layout/row.js +1 -1
  75. package/layout/saved-new-nav-bar.js +1 -1
  76. package/layout/scroll-video.js +1 -1
  77. package/layout/side-bar.js +1 -1
  78. package/layout/side-nav-bar.js +1 -1
  79. package/layout/simple-bar.js +1 -1
  80. package/layout/slider-2025.js +1 -1
  81. package/layout/spacer.js +1 -1
  82. package/layout/stack.js +1 -1
  83. package/layout/styler.js +1 -1
  84. package/layout/svg.js +1 -1
  85. package/layout/switcher.js +1 -1
  86. package/layout/table.js +1 -1
  87. package/layout/text-field.js +1 -1
  88. package/layout/text.js +1 -1
  89. package/layout/ulist.js +1 -1
  90. package/layout/video.js +1 -1
  91. package/layout/without-new.js +1 -1
  92. package/layout/wrap.js +1 -1
  93. package/layout/zoom-card.js +1 -1
  94. package/lib/card-getter.js +1 -1
  95. package/lib/data.js +18 -23
  96. package/lib/designer.js +1 -1
  97. package/lib/element-mapper.js +1 -1
  98. package/lib/keyframe-animation.js +1 -1
  99. package/lib/link-getter.js +1 -1
  100. package/lib/scroll-video.js +1 -1
  101. package/lib/seo.js +1 -1
  102. package/lib/stacker.js +1 -1
  103. package/lib/theme.js +1 -1
  104. package/lib/transform-anim.js +1 -1
  105. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/spacer.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/stack.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/styler.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/svg.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/table.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/text.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/ulist.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/video.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/wrap.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/lib/data.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -9,28 +9,23 @@ const IS_NODE = typeof process !== "undefined" && !!process.versions?.node;
9
9
  export async function loadJson(name, { fallback = undefined } = {}) {
10
10
  try {
11
11
  if (IS_NODE) {
12
- // ESM JSON imports require the `with { type: "json" }` attribute.
13
- // The path is interpreted relative to THIS file's URL, so the
14
- // page entry's `upload/pages/` location implicitly resolves to
15
- // `upload/<name>`. Consumers don't need to think about it.
16
- const mod = await import(`./../../upload/${name}`, { with: { type: "json" } })
17
- .catch(async () => {
18
- // Fall back to a relative-from-cwd resolution for projects
19
- // that don't follow the `upload/` convention. Same shape;
20
- // process.cwd() is the project root at prerender time.
21
- const fs = await import("node:fs");
22
- const path = await import("node:path");
23
- const cwd = process.cwd();
24
- // Try upload/<name> then plain <name>.
25
- for (const rel of [path.join("upload", name), name]) {
26
- const abs = path.resolve(cwd, rel);
27
- if (fs.existsSync(abs)) {
28
- return { default: JSON.parse(fs.readFileSync(abs, "utf8")) };
29
- }
30
- }
31
- throw new Error(`loadJson: ${name} not found (tried ./upload/${name} and ./${name})`);
32
- });
33
- return mod.default ?? mod;
12
+ // `webpackIgnore` keeps webpack from trying to resolve these
13
+ // node-builtin specifiers at bundle time. The browser bundle
14
+ // path is gated by `IS_NODE` above so this code never runs in
15
+ // the browser; webpack just needs to be told not to inline.
16
+ const fs = await import(/* webpackIgnore: true */ "node:fs");
17
+ const path = await import(/* webpackIgnore: true */ "node:path");
18
+ const cwd = process.cwd();
19
+ // Look for the file under `upload/` first (the canonical
20
+ // create-nodality layout), then plain `<name>` at project
21
+ // root as a fallback for non-conventional projects.
22
+ for (const rel of [path.join("upload", name), name]) {
23
+ const abs = path.resolve(cwd, rel);
24
+ if (fs.existsSync(abs)) {
25
+ return JSON.parse(fs.readFileSync(abs, "utf8"));
26
+ }
27
+ }
28
+ throw new Error(`loadJson: ${name} not found (tried ./upload/${name} and ./${name})`);
34
29
  }
35
30
  const res = await fetch(`./${name}`);
36
31
  if (!res.ok) throw new Error(`HTTP ${res.status}`);
package/lib/designer.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/lib/seo.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/lib/stacker.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/lib/theme.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.168
2
+ * nodality v1.0.170
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodality",
3
- "version": "1.0.168",
3
+ "version": "1.0.170",
4
4
  "description": "A lightweight library for declarative UI elements.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",