juxscript 1.0.14 → 1.0.16

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.
@@ -50,7 +50,13 @@ export class Write {
50
50
  ...options
51
51
  };
52
52
  }
53
-
53
+ /**
54
+ * Set HTML mode (chainable setter)
55
+ */
56
+ html(enabled: boolean = true): this {
57
+ this.options.html = enabled;
58
+ return this;
59
+ }
54
60
  /**
55
61
  * Render content to target element
56
62
  * Falls back to body if no target specified
@@ -281,4 +287,5 @@ export function writeSpan(content: string, options: Omit<WriteOptions, 'tagType'
281
287
  // Write div (explicit)
282
288
  export function writeDiv(content: string, options: Omit<WriteOptions, 'tagType'> = {}): Write {
283
289
  return new Write(content, { ...options, tagType: 'div' });
284
- }
290
+ }
291
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "juxscript",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "type": "module",
5
5
  "description": "A JavaScript UX authorship platform",
6
6
  "main": "lib/jux.js",