nodality 1.5.2 → 1.5.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.
Files changed (245) hide show
  1. package/README.md +2 -22
  2. package/bin/mcp-server.mjs +3 -1
  3. package/dist/animator.cjs.js.LICENSE.txt +1 -1
  4. package/dist/animator.esm.js.LICENSE.txt +1 -1
  5. package/dist/audionew.cjs.js +1 -1
  6. package/dist/audionew.cjs.js.LICENSE.txt +1 -1
  7. package/dist/audionew.esm.js +1 -1
  8. package/dist/audionew.esm.js.LICENSE.txt +1 -1
  9. package/dist/base.cjs.js.LICENSE.txt +1 -1
  10. package/dist/base.esm.js.LICENSE.txt +1 -1
  11. package/dist/beta-desktop-bar.cjs.js.LICENSE.txt +1 -1
  12. package/dist/beta-desktop-bar.esm.js.LICENSE.txt +1 -1
  13. package/dist/beta-mobile-bar.cjs.js.LICENSE.txt +1 -1
  14. package/dist/beta-mobile-bar.esm.js.LICENSE.txt +1 -1
  15. package/dist/bundle.umd.js +1 -1
  16. package/dist/bundle.umd.js.LICENSE.txt +28 -1
  17. package/dist/button.cjs.js +1 -1
  18. package/dist/button.cjs.js.LICENSE.txt +1 -1
  19. package/dist/button.esm.js +1 -1
  20. package/dist/button.esm.js.LICENSE.txt +1 -1
  21. package/dist/card-getter.cjs.js.LICENSE.txt +1 -1
  22. package/dist/card-getter.esm.js.LICENSE.txt +1 -1
  23. package/dist/center.cjs.js.LICENSE.txt +1 -1
  24. package/dist/center.esm.js.LICENSE.txt +1 -1
  25. package/dist/checkbox.cjs.js +1 -1
  26. package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
  27. package/dist/checkbox.esm.js +1 -1
  28. package/dist/checkbox.esm.js.LICENSE.txt +1 -1
  29. package/dist/code.cjs.js +1 -1
  30. package/dist/code.cjs.js.LICENSE.txt +1 -1
  31. package/dist/code.esm.js +1 -1
  32. package/dist/code.esm.js.LICENSE.txt +1 -1
  33. package/dist/container.cjs.js +1 -1
  34. package/dist/container.cjs.js.LICENSE.txt +1 -1
  35. package/dist/container.esm.js +1 -1
  36. package/dist/container.esm.js.LICENSE.txt +1 -1
  37. package/dist/data-list.cjs.js.LICENSE.txt +1 -1
  38. package/dist/data-list.esm.js.LICENSE.txt +1 -1
  39. package/dist/designer.cjs.js +1 -1
  40. package/dist/designer.cjs.js.LICENSE.txt +28 -1
  41. package/dist/designer.esm.js +1 -1
  42. package/dist/designer.esm.js.LICENSE.txt +28 -1
  43. package/dist/element-mapper.cjs.js +1 -1
  44. package/dist/element-mapper.cjs.js.LICENSE.txt +1 -1
  45. package/dist/element-mapper.esm.js +1 -1
  46. package/dist/element-mapper.esm.js.LICENSE.txt +1 -1
  47. package/dist/finalresult.esm.js +1 -1
  48. package/dist/finalresult.esm.js.LICENSE.txt +28 -1
  49. package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
  50. package/dist/flex-card.esm.js.LICENSE.txt +1 -1
  51. package/dist/flex-grid.cjs.js +1 -1
  52. package/dist/flex-grid.cjs.js.LICENSE.txt +1 -1
  53. package/dist/flex-grid.esm.js +1 -1
  54. package/dist/flex-grid.esm.js.LICENSE.txt +1 -1
  55. package/dist/flex-row.cjs.js +1 -1
  56. package/dist/flex-row.cjs.js.LICENSE.txt +1 -1
  57. package/dist/flex-row.esm.js +1 -1
  58. package/dist/flex-row.esm.js.LICENSE.txt +1 -1
  59. package/dist/floating-input.cjs.js.LICENSE.txt +1 -1
  60. package/dist/floating-input.esm.js.LICENSE.txt +1 -1
  61. package/dist/free.cjs.js.LICENSE.txt +1 -1
  62. package/dist/free.esm.js.LICENSE.txt +1 -1
  63. package/dist/horizontal-scroller.cjs.js.LICENSE.txt +1 -1
  64. package/dist/horizontal-scroller.esm.js.LICENSE.txt +1 -1
  65. package/dist/image-picker.cjs.js.LICENSE.txt +1 -1
  66. package/dist/image-picker.esm.js.LICENSE.txt +1 -1
  67. package/dist/image.cjs.js +1 -1
  68. package/dist/image.cjs.js.LICENSE.txt +1 -1
  69. package/dist/image.esm.js +1 -1
  70. package/dist/image.esm.js.LICENSE.txt +1 -1
  71. package/dist/index.cjs.js +1 -1
  72. package/dist/index.cjs.js.LICENSE.txt +28 -1
  73. package/dist/index.d.ts +1 -1
  74. package/dist/index.esm.js +1 -1
  75. package/dist/index.esm.js.LICENSE.txt +28 -1
  76. package/dist/keyframe-animation.cjs.js.LICENSE.txt +1 -1
  77. package/dist/keyframe-animation.esm.js.LICENSE.txt +1 -1
  78. package/dist/link-getter.cjs.js +1 -1
  79. package/dist/link-getter.cjs.js.LICENSE.txt +1 -1
  80. package/dist/link-getter.esm.js +1 -1
  81. package/dist/link-getter.esm.js.LICENSE.txt +1 -1
  82. package/dist/link.cjs.js +1 -1
  83. package/dist/link.cjs.js.LICENSE.txt +1 -1
  84. package/dist/link.esm.js +1 -1
  85. package/dist/link.esm.js.LICENSE.txt +1 -1
  86. package/dist/meta-adder.cjs.js.LICENSE.txt +1 -1
  87. package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
  88. package/dist/modal-2025.cjs.js.LICENSE.txt +1 -1
  89. package/dist/modal-2025.esm.js.LICENSE.txt +1 -1
  90. package/dist/multiswitcher.cjs.js +1 -1
  91. package/dist/multiswitcher.cjs.js.LICENSE.txt +1 -1
  92. package/dist/multiswitcher.esm.js +1 -1
  93. package/dist/multiswitcher.esm.js.LICENSE.txt +1 -1
  94. package/dist/new-nav-bar.cjs.js.LICENSE.txt +1 -1
  95. package/dist/new-nav-bar.esm.js.LICENSE.txt +1 -1
  96. package/dist/picker.cjs.js.LICENSE.txt +1 -1
  97. package/dist/picker.esm.js.LICENSE.txt +1 -1
  98. package/dist/progress.cjs.js.LICENSE.txt +1 -1
  99. package/dist/progress.esm.js.LICENSE.txt +1 -1
  100. package/dist/radio.cjs.js.LICENSE.txt +1 -1
  101. package/dist/radio.esm.js.LICENSE.txt +1 -1
  102. package/dist/range.cjs.js.LICENSE.txt +1 -1
  103. package/dist/range.esm.js.LICENSE.txt +1 -1
  104. package/dist/scroll-video.cjs.js.LICENSE.txt +1 -1
  105. package/dist/scroll-video.esm.js.LICENSE.txt +1 -1
  106. package/dist/side-bar.cjs.js.LICENSE.txt +1 -1
  107. package/dist/side-bar.esm.js.LICENSE.txt +1 -1
  108. package/dist/side-nav-bar.cjs.js.LICENSE.txt +1 -1
  109. package/dist/side-nav-bar.esm.js.LICENSE.txt +1 -1
  110. package/dist/simple-bar.cjs.js.LICENSE.txt +1 -1
  111. package/dist/simple-bar.esm.js.LICENSE.txt +1 -1
  112. package/dist/slider-2025.cjs.js +1 -1
  113. package/dist/slider-2025.cjs.js.LICENSE.txt +1 -1
  114. package/dist/slider-2025.esm.js +1 -1
  115. package/dist/slider-2025.esm.js.LICENSE.txt +1 -1
  116. package/dist/spacer.cjs.js.LICENSE.txt +1 -1
  117. package/dist/spacer.esm.js.LICENSE.txt +1 -1
  118. package/dist/stack.cjs.js.LICENSE.txt +1 -1
  119. package/dist/stack.esm.js.LICENSE.txt +1 -1
  120. package/dist/stacker.cjs.js.LICENSE.txt +1 -1
  121. package/dist/stacker.esm.js.LICENSE.txt +1 -1
  122. package/dist/table.cjs.js.LICENSE.txt +1 -1
  123. package/dist/table.esm.js.LICENSE.txt +1 -1
  124. package/dist/text-field.cjs.js.LICENSE.txt +1 -1
  125. package/dist/text-field.esm.js.LICENSE.txt +1 -1
  126. package/dist/text.cjs.js +1 -1
  127. package/dist/text.cjs.js.LICENSE.txt +1 -1
  128. package/dist/text.esm.js +1 -1
  129. package/dist/text.esm.js.LICENSE.txt +1 -1
  130. package/dist/theme.cjs.js.LICENSE.txt +1 -1
  131. package/dist/theme.esm.js.LICENSE.txt +1 -1
  132. package/dist/transform-anim.cjs.js.LICENSE.txt +1 -1
  133. package/dist/transform-anim.esm.js.LICENSE.txt +1 -1
  134. package/dist/ulist.cjs.js +1 -1
  135. package/dist/ulist.cjs.js.LICENSE.txt +1 -1
  136. package/dist/ulist.esm.js +1 -1
  137. package/dist/ulist.esm.js.LICENSE.txt +1 -1
  138. package/dist/video.cjs.js +1 -1
  139. package/dist/video.cjs.js.LICENSE.txt +1 -1
  140. package/dist/video.esm.js +1 -1
  141. package/dist/video.esm.js.LICENSE.txt +1 -1
  142. package/dist/wrap.cjs.js.LICENSE.txt +1 -1
  143. package/dist/wrap.esm.js.LICENSE.txt +1 -1
  144. package/dist/zoom-card.cjs.js.LICENSE.txt +1 -1
  145. package/dist/zoom-card.esm.js.LICENSE.txt +1 -1
  146. package/layout/animator.js +1 -1
  147. package/layout/audio.js +1 -1
  148. package/layout/audionew.js +3 -2
  149. package/layout/base.js +1 -1
  150. package/layout/beta-desktop-bar.js +1 -1
  151. package/layout/beta-mobile-bar.js +1 -1
  152. package/layout/button.js +9 -7
  153. package/layout/center.js +1 -1
  154. package/layout/checkbox.js +3 -2
  155. package/layout/circle.js +1 -1
  156. package/layout/code.js +5 -11
  157. package/layout/container.js +14 -14
  158. package/layout/dropdown-2025.js +3 -2
  159. package/layout/flex-card.js +1 -1
  160. package/layout/flex-grid.js +4 -3
  161. package/layout/flex-row.js +3 -9
  162. package/layout/form-components/custom.js +1 -1
  163. package/layout/form-components/data-list.js +1 -1
  164. package/layout/form-components/floating-input.js +1 -1
  165. package/layout/form-components/form-all.js +1 -1
  166. package/layout/form-components/form.js +1 -1
  167. package/layout/form-components/image-picker.js +1 -1
  168. package/layout/form-components/picker.js +1 -1
  169. package/layout/form-components/radio.js +1 -1
  170. package/layout/form-components/radiogroup.js +1 -1
  171. package/layout/form-components/range.js +1 -1
  172. package/layout/free.js +1 -1
  173. package/layout/grid-overlay.js +1 -1
  174. package/layout/grid-switcher.js +1 -1
  175. package/layout/grid.js +1 -1
  176. package/layout/horizontal-scroller.js +1 -1
  177. package/layout/image.js +18 -17
  178. package/layout/index.js +1 -1
  179. package/layout/link.js +12 -12
  180. package/layout/list.js +1 -1
  181. package/layout/meta-adder.js +1 -1
  182. package/layout/modal-2025.js +1 -1
  183. package/layout/morph.js +1 -1
  184. package/layout/multiswitcher.js +3 -2
  185. package/layout/nav-bar.js +1 -1
  186. package/layout/nav-factor/custom-div.js +1 -1
  187. package/layout/new-nav-bar.js +1 -1
  188. package/layout/polygon.js +1 -1
  189. package/layout/prerender-site.js +1 -1
  190. package/layout/prerender.js +1 -1
  191. package/layout/progress.js +1 -1
  192. package/layout/row.js +1 -1
  193. package/layout/scroll-video.js +1 -1
  194. package/layout/shop.js +1 -1
  195. package/layout/side-bar.js +1 -1
  196. package/layout/side-nav-bar.js +1 -1
  197. package/layout/simple-bar.js +1 -1
  198. package/layout/slider-2025.js +1 -1
  199. package/layout/spacer.js +1 -1
  200. package/layout/stack.js +1 -1
  201. package/layout/svg.js +1 -1
  202. package/layout/switcher.js +3 -2
  203. package/layout/table.js +1 -1
  204. package/layout/text-field.js +1 -1
  205. package/layout/text.js +21 -13
  206. package/layout/ulist.js +3 -2
  207. package/layout/video.js +3 -3
  208. package/layout/wrap.js +1 -1
  209. package/layout/zoom-card.js +1 -1
  210. package/lib/agent-surface.js +1 -1
  211. package/lib/card-getter.js +1 -1
  212. package/lib/check-page.js +1 -1
  213. package/lib/codegen.js +11 -2
  214. package/lib/data.js +1 -1
  215. package/lib/designer.js +5 -4
  216. package/lib/element-mapper.js +3 -2
  217. package/lib/element-params.generated.js +1 -1
  218. package/lib/grid-geometry.js +1 -1
  219. package/lib/keyframe-animation.js +1 -1
  220. package/lib/known-inert.js +1 -1
  221. package/lib/link-getter.js +1 -1
  222. package/lib/morph-node.js +1 -1
  223. package/lib/normalize-spec.js +1 -1
  224. package/lib/op-semantics.js +178 -0
  225. package/lib/parse-html.js +60 -6
  226. package/lib/raster-inspect.js +1 -1
  227. package/lib/raster-ops.js +1 -1
  228. package/lib/raster-presets.js +1 -1
  229. package/lib/react.js +1 -1
  230. package/lib/resolve-refs.js +1 -1
  231. package/lib/responsive.js +41 -1
  232. package/lib/scroll-video.js +1 -1
  233. package/lib/seo.js +1 -1
  234. package/lib/stacker.js +1 -1
  235. package/lib/suggest.js +1 -1
  236. package/lib/theme.js +1 -1
  237. package/lib/transform-anim.js +1 -1
  238. package/lib/transition.js +1 -1
  239. package/lib/validate-nodes.js +13 -2
  240. package/lib/view-transition.js +1 -1
  241. package/lib/webmcp-adapter.js +1 -1
  242. package/package.json +1 -1
  243. package/skills/nodality/SKILL.md +3 -5
  244. package/skills/nodality/references/editing.md +8 -6
  245. package/skills/nodality-edit-page/SKILL.md +3 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -7,6 +7,7 @@
7
7
  import {Animator} from "./animator.js";
8
8
 
9
9
 
10
+ import { jsString } from "../lib/codegen.js";
10
11
  // Add code-gen after backup
11
12
  class FlexGrid extends Animator {
12
13
  constructor(){
@@ -67,7 +68,7 @@ class FlexGrid extends Animator {
67
68
 
68
69
 
69
70
  options.colat && this.toColumnAt(options.colat);
70
- options.colat && this.code.push(`\n colat: "${options.colat}",`);
71
+ options.colat && this.code.push(`\n colat: ${jsString(options.colat)},`);
71
72
 
72
73
 
73
74
 
@@ -180,7 +181,7 @@ class FlexGrid extends Animator {
180
181
  flex(str){
181
182
  this.arra = Array.from(str.replace(/\s/g, ''));
182
183
  this.areas = Array.from(Array(str.replace(/\s/g, '')).join(""));
183
- this.save = `"${str}"`;
184
+ this.save = `${jsString(str)}`;
184
185
  return this;
185
186
  }
186
187
 
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import {Animator} from "./animator.js";
8
8
 
9
- import { keyPattern } from "../lib/codegen.js";
9
+ import { toObjectSource } from "../lib/codegen.js";
10
10
  class FlexRow extends Animator {
11
11
  constructor(frs, saveEl) {
12
12
  super();
@@ -372,13 +372,7 @@ let stringified = JSON.stringify(options.borderObj);
372
372
  }
373
373
 
374
374
  // stringify cleaned object
375
- const objString = JSON.stringify(clean, null, 4)
376
- .replace(keyPattern(), "$1:") // unquote identifier keys
377
- .replace(/"([^"]*)"/g, (m, p1) => {
378
- // wrap multiline text/code in backticks
379
- if (p1.includes("\n")) return "`" + p1.replace(/`/g, "\\`") + "`";
380
- return `"${p1}"`;
381
- });
375
+ const objString = toObjectSource(clean, 4);
382
376
 
383
377
  // recurse into children that support toCode()
384
378
  const itemsCode = (this.items || [])
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/free.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/grid.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/image.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -7,6 +7,7 @@
7
7
  import {Animator} from "./animator.js";
8
8
 
9
9
 
10
+ import { jsString } from "../lib/codegen.js";
10
11
  class Image extends Animator {
11
12
  constructor(url, type, mode, gcs) {
12
13
  super();
@@ -24,10 +25,10 @@ class Image extends Animator {
24
25
  this.code = [];
25
26
 
26
27
  if (type === "exact"){ // Has to be there
27
- const str = `new Image("${this.url}", "exact")`;
28
+ const str = `new Image(${jsString(this.url)}, "exact")`;
28
29
  this.code.push(str);
29
30
  } else if (type === "uncover"){ // Has to be there
30
- const str = `new Image("${this.url}", "uncover")`;
31
+ const str = `new Image(${jsString(this.url)}, "uncover")`;
31
32
  this.code.push(str);
32
33
  } else {
33
34
  this.code.push(`new Image('${this.url}')`);
@@ -129,16 +130,16 @@ let obj = options;
129
130
  }
130
131
 
131
132
  options.id && this.res.setAttribute("id", options.id);
132
- options.id && (stra += ` id: "${options.id}", \n`);
133
+ options.id && (stra += ` id: ${jsString(options.id)}, \n`);
133
134
  this.id = options.id;
134
135
 
135
136
 
136
137
  // alert("Thrice?");
137
138
 
138
139
  if (type === "exact"){ // Has to be there
139
- const str = `new Image("${this.url}", "exact")`;
140
+ const str = `new Image(${jsString(this.url)}, "exact")`;
140
141
  } else if (type === "uncover"){ // Has to be there
141
- const str = `new Image("${this.url}", "uncover")`;
142
+ const str = `new Image(${jsString(this.url)}, "uncover")`;
142
143
  } else {
143
144
  }
144
145
 
@@ -152,7 +153,7 @@ let obj = options;
152
153
 
153
154
  options.index && super.setIndex(options.index);
154
155
  options.index && (this.index = options.index);
155
- options.index && (stra += `\n index: "${options.index}",`);
156
+ options.index && (stra += `\n index: ${jsString(options.index)},`);
156
157
 
157
158
  options.resprop && this.resprop(options.resprop, options);
158
159
 
@@ -170,12 +171,12 @@ let obj = options;
170
171
  }
171
172
 
172
173
  options.objectFit && (this.res.style.objectFit = /*"cover")*/ options.objectFit);
173
- options.objectFit && (stra += `\n objectFit: "${options.objectFit}",`);
174
+ options.objectFit && (stra += `\n objectFit: ${jsString(options.objectFit)},`);
174
175
 
175
176
  // Companion to objectFit — chooses which part of a cropped image stays
176
177
  // visible (e.g. "center 38%" to favour faces over foreground).
177
178
  options.objectPosition && (this.res.style.objectPosition = options.objectPosition);
178
- options.objectPosition && (stra += `\n objectPosition: "${options.objectPosition}",`);
179
+ options.objectPosition && (stra += `\n objectPosition: ${jsString(options.objectPosition)},`);
179
180
 
180
181
 
181
182
  options.as && this.as(options.as);
@@ -236,11 +237,11 @@ let obj = options;
236
237
 
237
238
  options.isBackground && (this.isBackground = options.isBackground);
238
239
 
239
- options.zIndex && (stra += `\n zIndex: "${options.zIndex}", \n`);
240
+ options.zIndex && (stra += `\n zIndex: ${jsString(options.zIndex)}, \n`);
240
241
 
241
242
 
242
243
  options.area && this.setArea(options.area);
243
- options.area && (stra += `area: "${options.area}", \n`);
244
+ options.area && (stra += `area: ${jsString(options.area)}, \n`);
244
245
 
245
246
 
246
247
  options.opacity && (this.res.style.opacity = options.opacity);
@@ -248,24 +249,24 @@ let obj = options;
248
249
 
249
250
  // alert(options.height);
250
251
  options.width && (this.res.style.width = options.width);
251
- options.width && (stra += `width: "${options.width}", `);
252
+ options.width && (stra += `width: ${jsString(options.width)}, `);
252
253
 
253
254
  options.maxWidth && (this.res.style.maxWidth = options.maxWidth);
254
- options.maxWidth && (stra += `maxWidth: "${options.maxWidth}", `);
255
+ options.maxWidth && (stra += `maxWidth: ${jsString(options.maxWidth)}, `);
255
256
 
256
257
  options.height && (this.res.style.height = options.height);
257
- options.height && (stra += `height: "${options.height}", `);
258
+ options.height && (stra += `height: ${jsString(options.height)}, `);
258
259
 
259
260
 
260
261
  options.maxWidth && this.maxWidth(options.maxWidth);
261
262
 
262
- options.maxWidth && (stra += `maxWidth: "${options.maxWidth}", \n`);
263
+ options.maxWidth && (stra += `maxWidth: ${jsString(options.maxWidth)}, \n`);
263
264
 
264
265
 
265
266
  options.radius && this.cornerRadius(options.radius);
266
267
 
267
268
 
268
- options.radius && (stra += `radius: "${options.radius}", \n`);
269
+ options.radius && (stra += `radius: ${jsString(options.radius)}, \n`);
269
270
 
270
271
  if (options.marginOp) {
271
272
  let stringified = this.removeQuotesFromFirstWord(JSON.stringify(options.marginOp));
@@ -273,7 +274,7 @@ let obj = options;
273
274
  }
274
275
 
275
276
  options.clipPath && this.clipPath(options.clipPath);
276
- options.clipPath && (stra += `clipPath: "${options.clipPath}", \n`);
277
+ options.clipPath && (stra += `clipPath: ${jsString(options.clipPath)}, \n`);
277
278
 
278
279
  //@ img.reveal {object}: Reveal the image through a mask as it scrolls into view: {mask: "square", size: 0.3, duration: "1.2s", easing, zoom: 1.12, offset: 0.2, delay: "0s", once: true}. It starts as a centred square `size` × its shorter side and opens to the full frame once the square rises `offset` of the viewport height above the bottom edge. Owns clip-path and scale while it runs; reduced-motion visitors, and pages with no IntersectionObserver (the prerender), get the image unmasked.
279
280
  options.reveal && this.reveal(options.reveal);
package/layout/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/link.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -7,7 +7,7 @@
7
7
  import {Animator} from "./animator.js";
8
8
 
9
9
 
10
- import { toObjectSource } from "../lib/codegen.js";
10
+ import { toObjectSource, jsString } from "../lib/codegen.js";
11
11
  import { keyPattern } from "../lib/codegen.js";
12
12
  class Link extends Animator {
13
13
  constructor(text, link, stopEM){
@@ -200,7 +200,7 @@ obj.pad && (stra += `\n pad: ${rempad},`);
200
200
  (obj.preffersId != undefined) && (stra += `\n preffersId: ${obj.preffersId},`);
201
201
 
202
202
  obj.class && super.setClass(obj.class);
203
- obj.class && (stra += `\n class: "${obj.class}",`);
203
+ obj.class && (stra += `\n class: ${jsString(obj.class)},`);
204
204
  //alert(obj.class);
205
205
 
206
206
  if (obj.borderObj){
@@ -228,11 +228,11 @@ obj.pad && (stra += `\n pad: ${rempad},`);
228
228
  //@ nowrap: Keep the label on one line (white-space: nowrap).
229
229
  obj.nowrap && (this.res.style.whiteSpace = "nowrap");
230
230
  obj.font && this.font(obj.font);
231
- obj.font && (stra += `\n font: "${obj.font}",`);
231
+ obj.font && (stra += `\n font: ${jsString(obj.font)},`);
232
232
  obj.font && (this.elCSS.push(`font-family: "${obj.font}"; \n`));
233
233
 
234
234
  obj.fluidc && this.fluidCopy(obj.fluidc);
235
- obj.fluidc && (stra += `\n fluidc: "${obj.fluidc}",`);
235
+ obj.fluidc && (stra += `\n fluidc: ${jsString(obj.fluidc)},`);
236
236
 
237
237
  // obj.size && (stra += `\n size: "${obj.size}",`);
238
238
 
@@ -240,16 +240,16 @@ obj.pad && (stra += `\n pad: ${rempad},`);
240
240
  obj.clampc && this.clampCopy(obj.clampc);
241
241
 
242
242
 
243
- this.options.id && (stra += `\n id: "${this.options.id}",`);
243
+ this.options.id && (stra += `\n id: ${jsString(this.options.id)},`);
244
244
 
245
245
 
246
246
  obj.align && this.leftAlign(obj.align); // 1145 WOW
247
- obj.align && (stra += `\n align: "${obj.align}",`);
247
+ obj.align && (stra += `\n align: ${jsString(obj.align)},`);
248
248
 
249
249
 
250
250
  obj.type && (this.res.style.display = "block");
251
251
  obj.color && this.color(obj.color);
252
- obj.color && (stra += `\n color: "${obj.color}",`);
252
+ obj.color && (stra += `\n color: ${jsString(obj.color)},`);
253
253
  obj.color && (this.elCSS.push(`color: "${obj.color}"; \n`));
254
254
 
255
255
  obj.background && this.background(obj.background);
@@ -274,9 +274,9 @@ obj.pad && (stra += `\n pad: ${rempad},`);
274
274
  obj.block && (stra += `\n block: ${obj.block},`);
275
275
 
276
276
 
277
- obj.radius && (stra += `\n radius: "${obj.radius}",`);
277
+ obj.radius && (stra += `\n radius: ${jsString(obj.radius)},`);
278
278
 
279
- obj.width && (stra += `\n width: "${obj.width}",`);
279
+ obj.width && (stra += `\n width: ${jsString(obj.width)},`);
280
280
 
281
281
 
282
282
 
@@ -288,10 +288,10 @@ obj.pad && (stra += `\n pad: ${rempad},`);
288
288
 
289
289
 
290
290
  obj.url && this.res.setAttribute("href", obj.url);
291
- stra += `\n url: "${obj.url}",`;
291
+ stra += `\n url: ${jsString(obj.url)},`;
292
292
 
293
293
  obj.text && (this.res.textContent = obj.text);
294
- stra += `\n text: "${obj.text}",`;
294
+ stra += `\n text: ${jsString(obj.text)},`;
295
295
 
296
296
 
297
297
  // stra += `\n text: "${obj.text}",`;
package/layout/list.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/morph.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,11 +1,12 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import {Animator} from "./animator.js";
8
8
 
9
+ import { jsString } from "../lib/codegen.js";
9
10
  class /*Multi*/Switcher extends Animator {
10
11
  constructor(/*it*/) {
11
12
  super();
@@ -53,7 +54,7 @@ class /*Multi*/Switcher extends Animator {
53
54
 
54
55
  let str = "";
55
56
  for (var i = 0; i < this.options.breakpoints.length; i++){
56
- str += `{ at: "${this.options.breakpoints[i].at}", view: ${this.options.breakpoints[i].view.toCode()} }, \n` }
57
+ str += `{ at: ${jsString(this.options.breakpoints[i].at)}, view: ${this.options.breakpoints[i].view.toCode()} }, \n` }
57
58
 
58
59
  // console.log(str);
59
60
 
package/layout/nav-bar.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/polygon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/row.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/shop.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
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.5.2
2
+ * nodality v1.5.4
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.5.2
2
+ * nodality v1.5.4
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.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,10 +1,11 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import {Animator} from "./animator.js";
8
+ import { jsString } from "../lib/codegen.js";
8
9
  class Switcher extends Animator {
9
10
  constructor(obj){
10
11
  super();
@@ -18,7 +19,7 @@ class Switcher extends Animator {
18
19
  if (obj.first.toCode && obj.second.toCode){
19
20
 
20
21
 
21
- this.code.push(`, new Switcher({breakpoint: "${this.obj.breakpoint}", first: ${this.obj.first.toCode()}, second: ${this.obj.second.toCode()}})`);
22
+ this.code.push(`, new Switcher({breakpoint: ${jsString(this.obj.breakpoint)}, first: ${this.obj.first.toCode()}, second: ${this.obj.second.toCode()}})`);
22
23
 
23
24
  }
24
25
 
package/layout/table.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.5.2
2
+ * nodality v1.5.4
3
3
  * (c) 2026 Filip Vabrousek
4
4
  * License: MIT
5
5
  */