@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.
@@ -1,12 +1,7 @@
1
1
  import React from 'react';
2
2
  import { createComponent } from '@lit/react';
3
- import { Weavy, WyContext as WyContextWC } from '@weavy/uikit-web';
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({
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable react-hooks/exhaustive-deps */
2
2
  import { useEffect, useMemo, useState } from "react";
3
- import { Weavy } from "@weavy/uikit-web";
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
@@ -1,4 +1,4 @@
1
- export { Weavy } from "@weavy/uikit-web";
1
+ export { Weavy } from "./weavy";
2
2
  export * from "./hooks";
3
3
  export * from "./blocks";
4
4
  export * from "./components";
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.0",
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.0"
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.3",
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.3",
52
- "@types/react": "^18.2.74",
53
- "@types/react-dom": "^18.2.23",
54
- "@typescript-eslint/eslint-plugin": "^7.5.0",
55
- "@typescript-eslint/parser": "^7.5.0",
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.72.0",
64
- "typescript": "^5.4.3",
65
- "vite": "^5.2.7",
66
- "vite-plugin-dts": "^3.8.1"
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": ">=18.0.0",
70
- "npm": ">=8.0.0"
68
+ "node": ">=20.10.0",
69
+ "npm": ">=10.2.3"
71
70
  }
72
71
  }