rumious 1.0.0 → 1.0.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/dist/app/app.d.ts +1 -2
- package/dist/context/context.d.ts +12 -0
- package/dist/context/index.d.ts +1 -0
- package/dist/index.cjs +1100 -0
- package/dist/index.d.ts +6 -8
- package/dist/index.esm.js +1072 -1
- package/dist/index.global.d.ts +41 -0
- package/dist/index.min.js +2658 -1
- package/dist/performance/index.d.ts +5 -0
- package/dist/render/dynamic.d.ts +1 -1
- package/dist/types/jsx.d.ts +8 -0
- package/dist/utils/name.d.ts +1 -0
- package/package.json +9 -4
- package/index.d.ts +0 -1
- package/index.js +0 -1
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare function tholle<T extends (...args: any[]) => any>(func: T, limit: number): T;
|
2
|
+
export declare function denounce<T extends (...args: any[]) => any>(func: T, delay: number): T;
|
3
|
+
export declare function trailingThrottle<T extends (...args: any[]) => any>(func: T, limit: number): T;
|
4
|
+
export declare function leadingTrailingDebounce<T extends (...args: any[]) => any>(func: T, delay: number): T;
|
5
|
+
export declare function rafThrottle<T extends (...args: any[]) => any>(func: T): T;
|
package/dist/render/dynamic.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
import { RumiousRenderContext } from "./context.js";
|
2
|
-
export declare function dynamicValue(target: HTMLElement, textNode: Text, value: any, context: RumiousRenderContext): void
|
2
|
+
export declare function dynamicValue(target: HTMLElement, textNode: Text, value: any, context: RumiousRenderContext): Promise<void>;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { RumiousRenderTemplate } from "../render/template.js";
|
2
|
+
export interface RumiousJSXFactory {
|
3
|
+
template(...args: any[]): RumiousRenderTemplate;
|
4
|
+
createElement(...args: any[]): RumiousRenderTemplate;
|
5
|
+
addDirective(...args: any[]): void;
|
6
|
+
dynamicValue(...args: any[]): void;
|
7
|
+
createComponent(...args: any[]): HTMLElement;
|
8
|
+
}
|
package/dist/utils/name.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "rumious",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.1",
|
4
4
|
"description": "Simple framework for building UI ",
|
5
|
-
"main": "./index.
|
6
|
-
"
|
5
|
+
"main": "./dist/index.cjs",
|
6
|
+
"module": "./dist/index.esm.js",
|
7
|
+
"exports": {
|
8
|
+
"import": "./dist/index.esm.js",
|
9
|
+
"require": "./dist/index.cjs"
|
10
|
+
},
|
11
|
+
"types": "./dist/index.d.ts",
|
7
12
|
"keywords": [
|
8
13
|
"rumious",
|
9
14
|
"core",
|
@@ -19,7 +24,7 @@
|
|
19
24
|
"build:dev": "rollup -c ",
|
20
25
|
"start": "node dist/index.js",
|
21
26
|
"test": "echo \"No tests yet\"",
|
22
|
-
"
|
27
|
+
"prePublish":"npm run dec && npm run build"
|
23
28
|
},
|
24
29
|
"author": "smtdfc",
|
25
30
|
"license": "MIT",
|
package/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./dist/index.js";
|
package/index.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from "./dist/index.min.js";
|