@godown/react 3.8.2 → 3.9.0
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/lib/create.d.ts.map +1 -1
- package/lib/create.js +0 -1
- package/lib/create.js.map +1 -1
- package/lib/intrinsic.d.ts +1 -1
- package/package.json +3 -5
- package/src/lib/create.ts +2 -5
- package/src/lib/intrinsic.ts +1 -1
- package/src/typewriter.ts +1 -1
- package/typewriter.d.ts +1 -1
- package/typewriter.d.ts.map +1 -1
- package/typewriter.js.map +1 -1
package/lib/create.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../src/lib/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG7D,UAAU,WAAW,CAAC,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../src/lib/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG7D,UAAU,WAAW,CAAC,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,CAAC;CACX;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG;IAC3F,MAAM,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,KAAK,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;AAE9D,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,qBAChE,WAAW,CAAC,CAAC,CAAC,WACnB,CAAC,iDAQX,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,KAAG,GAClF,CAAC,IAAI,MAAM,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAW9C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/lib/create.js
CHANGED
package/lib/create.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../src/lib/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAkB,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../src/lib/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAkB,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,YAA4B,EAC5B,MAAU,EACV,EAAE;IACF,OAAO,eAAe,CAAO;QAC3B,YAAY;QACZ,OAAO,EAAE,YAAY,CAAC,cAAc;QACpC,KAAK,EAAE,KAAK;QACZ,MAAM;KACP,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAgC,IAA0B,EAEhF,EAAE;IACF,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO;IACT,CAAC;IACD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,GAAG,KAAK,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC;YAC9B,IAAI,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;QACxB,CAAC;IACH,CAAC;IACD,OAAO,IAAW,CAAC;AACrB,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/lib/intrinsic.d.ts
CHANGED
@@ -7,7 +7,7 @@ export type IntrinsicTag<T extends keyof HTMLElementTagNameMap> = IntrinsicEleme
|
|
7
7
|
* With `@types/react` 18.3.15+:
|
8
8
|
*
|
9
9
|
* ```ts
|
10
|
-
* import {
|
10
|
+
* import type { IntrinsicMap } from "@godown/react/lib/intrinsic.js";
|
11
11
|
*
|
12
12
|
* declare module "react" {
|
13
13
|
* namespace JSX {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@godown/react",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.9.0",
|
4
4
|
"description": "React components for godown",
|
5
5
|
"type": "module",
|
6
6
|
"main": "index.js",
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"dependencies": {
|
26
26
|
"@lit/react": "^1.0.5",
|
27
27
|
"react": "*",
|
28
|
-
"godown": "^3.
|
28
|
+
"godown": "^3.9.0"
|
29
29
|
},
|
30
30
|
"publishConfig": {
|
31
31
|
"access": "public"
|
@@ -37,8 +37,6 @@
|
|
37
37
|
"scripts": {
|
38
38
|
"check-types": "tsc --noEmit",
|
39
39
|
"clean": "tsc --build --clean",
|
40
|
-
"build": "tsc"
|
41
|
-
"fmt": "dprint fmt",
|
42
|
-
"lint": "biome lint"
|
40
|
+
"build": "tsc"
|
43
41
|
}
|
44
42
|
}
|
package/src/lib/create.ts
CHANGED
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
3
3
|
|
4
4
|
interface WithTagName<T> {
|
5
5
|
elementTagName?: string;
|
6
|
-
new(): T;
|
6
|
+
new (): T;
|
7
7
|
}
|
8
8
|
|
9
9
|
export type TargetedCustomEvent<D = any, T = HTMLElement> = Omit<CustomEvent<D>, "target"> & {
|
@@ -12,7 +12,6 @@ export type TargetedCustomEvent<D = any, T = HTMLElement> = Omit<CustomEvent<D>,
|
|
12
12
|
|
13
13
|
type OrLower<N> = N extends string ? N | Lowercase<N> : never;
|
14
14
|
|
15
|
-
// biome-ignore lint/complexity/noBannedTypes: {}
|
16
15
|
export const createReact = <G extends HTMLElement, E extends Record<string, any> = {}>(
|
17
16
|
elementClass: WithTagName<G>,
|
18
17
|
events?: E,
|
@@ -25,9 +24,7 @@ export const createReact = <G extends HTMLElement, E extends Record<string, any>
|
|
25
24
|
});
|
26
25
|
};
|
27
26
|
|
28
|
-
export const eventMap = <T extends Record<string, any>>(
|
29
|
-
eMap: Record<keyof T, any>,
|
30
|
-
): {
|
27
|
+
export const eventMap = <T extends Record<string, any>>(eMap: Record<keyof T, any>): {
|
31
28
|
[K in keyof T as OrLower<K>]: EventName<T[K]>;
|
32
29
|
} => {
|
33
30
|
if (!eMap) {
|
package/src/lib/intrinsic.ts
CHANGED
@@ -12,7 +12,7 @@ export type IntrinsicTag<T extends keyof HTMLElementTagNameMap> = IntrinsicEleme
|
|
12
12
|
* With `@types/react` 18.3.15+:
|
13
13
|
*
|
14
14
|
* ```ts
|
15
|
-
* import {
|
15
|
+
* import type { IntrinsicMap } from "@godown/react/lib/intrinsic.js";
|
16
16
|
*
|
17
17
|
* declare module "react" {
|
18
18
|
* namespace JSX {
|
package/src/typewriter.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use client";
|
2
2
|
import Typewriter from "godown/typewriter.js";
|
3
3
|
|
4
|
-
import { createReact, eventMap, TargetedCustomEvent } from "./lib/create.js";
|
4
|
+
import { createReact, eventMap, type TargetedCustomEvent } from "./lib/create.js";
|
5
5
|
import type { IntrinsicElement } from "./lib/intrinsic.js";
|
6
6
|
|
7
7
|
export default createReact(
|
package/typewriter.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import Typewriter from "godown/typewriter.js";
|
2
|
-
import { TargetedCustomEvent } from "./lib/create.js";
|
2
|
+
import { type TargetedCustomEvent } from "./lib/create.js";
|
3
3
|
import type { IntrinsicElement } from "./lib/intrinsic.js";
|
4
4
|
declare const _default: import("@lit/react").ReactWebComponent<Typewriter, {
|
5
5
|
onWrite: import("@lit/react").EventName<TargetedCustomEvent<string, Typewriter>>;
|
package/typewriter.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"typewriter.d.ts","sourceRoot":"","sources":["src/typewriter.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAyB,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"typewriter.d.ts","sourceRoot":"","sources":["src/typewriter.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;;;;;;;AAE3D,wBASE;AAEF,cAAc,sBAAsB,CAAC;AAErC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,mBAAmB,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;SACnD;KACF;CACF"}
|
package/typewriter.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"typewriter.js","sourceRoot":"","sources":["src/typewriter.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,QAAQ,
|
1
|
+
{"version":3,"file":"typewriter.js","sourceRoot":"","sources":["src/typewriter.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,QAAQ,EAA4B,MAAM,iBAAiB,CAAC;AAGlF,eAAe,WAAW,CACxB,UAAU,EACV,QAAQ,CAGL;IACD,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,MAAM;CACf,CAAC,CACH,CAAC;AAEF,cAAc,sBAAsB,CAAC"}
|