@weavy/uikit-react 22.1.0 → 22.2.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/changelog.md +15 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/weavy.d.ts +3 -0
- package/dist/weavy.es5.esm.js +1 -1
- package/dist/weavy.es5.umd.cjs +1 -1
- package/dist/weavy.esm.js +30365 -26373
- package/dist/weavy.umd.cjs +939 -922
- package/lib/blocks/WyContext.tsx +2 -7
- package/lib/hooks/useWeavy.ts +1 -1
- package/lib/index.ts +1 -1
- package/lib/weavy.ts +9 -0
- package/package.json +15 -16
package/lib/blocks/WyContext.tsx
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
/* @ts-expect-error Override Weavy version */
|
|
6
|
-
Weavy.version = WEAVY_VERSION;
|
|
7
|
-
|
|
8
|
-
/* @ts-expect-error Override Weavy sourceName */
|
|
9
|
-
Weavy.sourceName = WEAVY_SOURCE_NAME;
|
|
3
|
+
import { WyContext as WyContextWC } from '@weavy/uikit-web';
|
|
4
|
+
import "../weavy"
|
|
10
5
|
|
|
11
6
|
// Creates a React component from a Lit component
|
|
12
7
|
export const WyContext = createComponent({
|
package/lib/hooks/useWeavy.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
|
-
import { Weavy } from "
|
|
3
|
+
import { Weavy } from "../weavy";
|
|
4
4
|
import type { WeavyContext } from "@weavy/uikit-web/dist/types/index";
|
|
5
5
|
import { WeavyOptions } from "@weavy/uikit-web/dist/types/types/weavy.types";
|
|
6
6
|
|
package/lib/index.ts
CHANGED
package/lib/weavy.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Weavy, WeavyContextBase } from "@weavy/uikit-web";
|
|
2
|
+
|
|
3
|
+
/* @ts-expect-error Override Weavy version */
|
|
4
|
+
WeavyContextBase.version = WEAVY_VERSION;
|
|
5
|
+
|
|
6
|
+
/* @ts-expect-error Override Weavy sourceName */
|
|
7
|
+
WeavyContextBase.sourceName = WEAVY_SOURCE_NAME;
|
|
8
|
+
|
|
9
|
+
export { Weavy }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weavy/uikit-react",
|
|
3
|
-
"version": "22.1
|
|
3
|
+
"version": "22.2.1",
|
|
4
4
|
"author": "Weavy",
|
|
5
5
|
"description": "React components UI-kit for Weavy",
|
|
6
6
|
"homepage": "https://github.com/weavy/weavy-uikit-react",
|
|
@@ -32,27 +32,26 @@
|
|
|
32
32
|
"build": "run-s build:*",
|
|
33
33
|
"build:esm": "vite build --config=dev/vite.config.ts",
|
|
34
34
|
"build:legacy": "vite build --config=dev/vite.config.legacy.ts",
|
|
35
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
|
|
36
|
-
"preview": "vite preview"
|
|
35
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
|
|
37
36
|
},
|
|
38
37
|
"dependencies": {
|
|
39
38
|
"@lit/react": "^1.0.2",
|
|
40
|
-
"@weavy/uikit-web": "^22.1
|
|
39
|
+
"@weavy/uikit-web": "^22.2.1"
|
|
41
40
|
},
|
|
42
41
|
"peerDependencies": {
|
|
43
42
|
"react": ">=16",
|
|
44
43
|
"react-dom": ">=16"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
|
-
"@babel/preset-env": "^7.24.
|
|
46
|
+
"@babel/preset-env": "^7.24.4",
|
|
48
47
|
"@babel/preset-react": "^7.24.1",
|
|
49
48
|
"@rollup/plugin-babel": "^6.0.4",
|
|
50
49
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
51
|
-
"@types/node": "^20.12.
|
|
52
|
-
"@types/react": "^18.2.
|
|
53
|
-
"@types/react-dom": "^18.2.
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
55
|
-
"@typescript-eslint/parser": "^7.
|
|
50
|
+
"@types/node": "^20.12.7",
|
|
51
|
+
"@types/react": "^18.2.79",
|
|
52
|
+
"@types/react-dom": "^18.2.25",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^7.7.0",
|
|
54
|
+
"@typescript-eslint/parser": "^7.7.0",
|
|
56
55
|
"@vitejs/plugin-react": "^4.2.1",
|
|
57
56
|
"dotenv": "^16.3.2",
|
|
58
57
|
"eslint": "^8.55.0",
|
|
@@ -60,13 +59,13 @@
|
|
|
60
59
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
61
60
|
"npm-run-all": "^4.1.5",
|
|
62
61
|
"rimraf": "^5.0.5",
|
|
63
|
-
"sass": "^1.
|
|
64
|
-
"typescript": "^5.4.
|
|
65
|
-
"vite": "^5.2.
|
|
66
|
-
"vite-plugin-dts": "^3.8.
|
|
62
|
+
"sass": "^1.75.0",
|
|
63
|
+
"typescript": "^5.4.5",
|
|
64
|
+
"vite": "^5.2.9",
|
|
65
|
+
"vite-plugin-dts": "^3.8.3"
|
|
67
66
|
},
|
|
68
67
|
"engines": {
|
|
69
|
-
"node": ">=
|
|
70
|
-
"npm": ">=
|
|
68
|
+
"node": ">=20.10.0",
|
|
69
|
+
"npm": ">=10.2.3"
|
|
71
70
|
}
|
|
72
71
|
}
|