@jqhtml/core 2.3.75 → 2.3.76

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/dist/markup.d.ts CHANGED
@@ -34,4 +34,16 @@ export declare class Jqhtml_Markup {
34
34
  readonly p: (...instructions: any[]) => number;
35
35
  constructor(definer: any);
36
36
  }
37
+ /**
38
+ * Whether a buffer emits anything: an element, a component, or text that is not
39
+ * only HTML whitespace (space, tab, LF, FF, CR - a non-breaking space is content).
40
+ * A spliced buffer counts by what it emits itself, so a slot that only forwards
41
+ * an empty slot is empty too. A component counts even if it later renders
42
+ * nothing; that is not knowable without booting it.
43
+ *
44
+ * content() returns '' for a buffer without content: a caller cannot omit a
45
+ * <Slot:> tag conditionally, so writing it empty is how a caller says "nothing
46
+ * here", and it must test falsy like an absent slot.
47
+ */
48
+ export declare function markup_has_content(markup: Jqhtml_Markup): boolean;
37
49
  //# sourceMappingURL=markup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"markup.d.ts","sourceRoot":"","sources":["../src/markup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,qBAAa,aAAa;IACxB,yCAAyC;IACzC,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE,CAAM;IAElC,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC;IAEtB;;;;;;OAMG;IACH,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,YAAY,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC;gBAEnC,OAAO,EAAE,GAAG;CAIzB"}
1
+ {"version":3,"file":"markup.d.ts","sourceRoot":"","sources":["../src/markup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,qBAAa,aAAa;IACxB,yCAAyC;IACzC,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE,CAAM;IAElC,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC;IAEtB;;;;;;OAMG;IACH,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,YAAY,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC;gBAEnC,OAAO,EAAE,GAAG;CAIzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAWjE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jqhtml/core",
3
- "version": "2.3.75",
3
+ "version": "2.3.76",
4
4
  "description": "Core runtime library for JQHTML",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",