@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/component.d.ts.map +1 -1
- package/dist/index.cjs +34 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +34 -5
- package/dist/index.js.map +1 -1
- package/dist/jqhtml-core.esm.js +35 -6
- package/dist/jqhtml-core.esm.js.map +1 -1
- package/dist/markup.d.ts +12 -0
- package/dist/markup.d.ts.map +1 -1
- package/package.json +1 -1
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
|
package/dist/markup.d.ts.map
CHANGED
|
@@ -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"}
|