@tempots/dom 31.6.0 → 31.6.1
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/index.cjs +1 -1
- package/index.js +1822 -1859
- package/package.json +1 -1
- package/renderable/on-dispose.d.ts +4 -1
- package/renderable/style.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Renderable } from '../types/domain';
|
|
2
2
|
import { DOMContext } from '../dom/dom-context';
|
|
3
3
|
export type DisposeCallback = (removeTree: boolean, ctx: DOMContext) => void;
|
|
4
|
+
export type WithDispose = {
|
|
5
|
+
dispose: DisposeCallback;
|
|
6
|
+
};
|
|
4
7
|
/**
|
|
5
8
|
* Creates a renderable function that will be called when the component is unmounted.
|
|
6
9
|
* @param fns - The function(s) to be called when the component is unmounted.
|
|
7
10
|
* @returns A renderable function that takes a DOMContext and returns a function that takes a boolean indicating whether to remove the tree.
|
|
8
11
|
* @public
|
|
9
12
|
*/
|
|
10
|
-
export declare const OnDispose: (...fns: DisposeCallback[]) => Renderable;
|
|
13
|
+
export declare const OnDispose: (...fns: (DisposeCallback | WithDispose)[]) => Renderable;
|
package/renderable/style.d.ts
CHANGED
|
@@ -218,6 +218,7 @@ export declare const style: {
|
|
|
218
218
|
gridTemplateRows: (value: NValue<string>) => Renderable;
|
|
219
219
|
height: (value: NValue<string>) => Renderable;
|
|
220
220
|
hyphenateCharacter: (value: NValue<string>) => Renderable;
|
|
221
|
+
hyphenateLimitChars: (value: NValue<string>) => Renderable;
|
|
221
222
|
hyphens: (value: NValue<string>) => Renderable;
|
|
222
223
|
imageOrientation: (value: NValue<string>) => Renderable;
|
|
223
224
|
imageRendering: (value: NValue<string>) => Renderable;
|
|
@@ -296,7 +297,9 @@ export declare const style: {
|
|
|
296
297
|
outlineWidth: (value: NValue<string>) => Renderable;
|
|
297
298
|
overflow: (value: NValue<string>) => Renderable;
|
|
298
299
|
overflowAnchor: (value: NValue<string>) => Renderable;
|
|
300
|
+
overflowBlock: (value: NValue<string>) => Renderable;
|
|
299
301
|
overflowClipMargin: (value: NValue<string>) => Renderable;
|
|
302
|
+
overflowInline: (value: NValue<string>) => Renderable;
|
|
300
303
|
overflowWrap: (value: NValue<string>) => Renderable;
|
|
301
304
|
overflowX: (value: NValue<string>) => Renderable;
|
|
302
305
|
overflowY: (value: NValue<string>) => Renderable;
|