@weavy/uikit-react 21.1.0 → 21.1.2

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.
Files changed (53) hide show
  1. package/changelog.md +12 -0
  2. package/dist/types/blocks/WyChat.d.ts +9 -0
  3. package/dist/types/blocks/WyContext.d.ts +2 -0
  4. package/dist/types/blocks/WyFiles.d.ts +10 -0
  5. package/dist/types/blocks/WyMessenger.d.ts +10 -0
  6. package/dist/types/blocks/WyPosts.d.ts +9 -0
  7. package/dist/types/blocks/index.d.ts +5 -0
  8. package/dist/types/components/WyAttachment.d.ts +9 -0
  9. package/dist/types/components/WyAvatar.d.ts +2 -0
  10. package/dist/types/components/WyBadge.d.ts +2 -0
  11. package/dist/types/components/WyButton.d.ts +2 -0
  12. package/dist/types/components/WyCloudFiles.d.ts +9 -0
  13. package/dist/types/components/WyComment.d.ts +52 -0
  14. package/dist/types/components/WyConversation.d.ts +8 -0
  15. package/dist/types/components/WyConversationList.d.ts +29 -0
  16. package/dist/types/components/WyDropdown.d.ts +5 -0
  17. package/dist/types/components/WyEditor.d.ts +13 -0
  18. package/dist/types/components/WyEmbed.d.ts +8 -0
  19. package/dist/types/components/WyEmpty.d.ts +2 -0
  20. package/dist/types/components/WyFileItem.d.ts +25 -0
  21. package/dist/types/components/WyFileMenu.d.ts +21 -0
  22. package/dist/types/components/WyFileVersions.d.ts +8 -0
  23. package/dist/types/components/WyFilesAppbar.d.ts +29 -0
  24. package/dist/types/components/WyFilesList.d.ts +31 -0
  25. package/dist/types/components/WyIcon.d.ts +2 -0
  26. package/dist/types/components/WyImageGrid.d.ts +8 -0
  27. package/dist/types/components/WyMeetingCard.d.ts +2 -0
  28. package/dist/types/components/WyMessage.d.ts +17 -0
  29. package/dist/types/components/WyOverlay.d.ts +6 -0
  30. package/dist/types/components/WyPdfViewer.d.ts +2 -0
  31. package/dist/types/components/WyPoll.d.ts +14 -0
  32. package/dist/types/components/WyPortal.d.ts +2 -0
  33. package/dist/types/components/WyPost.d.ts +42 -0
  34. package/dist/types/components/WyPresence.d.ts +2 -0
  35. package/dist/types/components/WyPreview.d.ts +11 -0
  36. package/dist/types/components/WyReactions.d.ts +6 -0
  37. package/dist/types/components/WySheet.d.ts +6 -0
  38. package/dist/types/components/WySkeleton.d.ts +2 -0
  39. package/dist/types/components/WySpinner.d.ts +2 -0
  40. package/dist/types/components/WyTyping.d.ts +2 -0
  41. package/dist/types/components/WyUsersSearch.d.ts +8 -0
  42. package/dist/types/components/index.d.ts +34 -0
  43. package/dist/types/hooks/index.d.ts +1 -0
  44. package/dist/types/hooks/useWeavy.d.ts +3 -0
  45. package/dist/types/index.d.ts +4 -0
  46. package/dist/weavy.es5.esm.js +1 -0
  47. package/dist/weavy.es5.umd.cjs +1 -0
  48. package/dist/weavy.esm.js +40149 -0
  49. package/dist/weavy.umd.cjs +2936 -0
  50. package/package.json +14 -6
  51. package/tsconfig.json +2 -2
  52. package/tsconfig.build.json +0 -7
  53. package/tsconfig.node.json +0 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weavy/uikit-react",
3
- "version": "21.1.0",
3
+ "version": "21.1.2",
4
4
  "author": "Weavy",
5
5
  "description": "React components UI-kit for Weavy",
6
6
  "homepage": "https://github.com/weavy/weavy-uikit-react",
@@ -23,16 +23,21 @@
23
23
  }
24
24
  },
25
25
  "scripts": {
26
+ "clean": "rimraf dist/**/* --glob",
27
+ "prepack": "run-s clean build",
26
28
  "start": "run-p auth dev",
27
- "dev": "vite --open",
29
+ "dev": "vite --config=dev/vite.config.ts --open",
28
30
  "auth": "weavy auth-server",
29
- "build": "tsc --p ./tsconfig.build.json && vite build",
31
+ "prebuild": "tsc --p ./dev/tsconfig.build.json",
32
+ "build": "run-s build:*",
33
+ "build:esm": "vite build --config=dev/vite.config.ts",
34
+ "build:legacy": "vite build --config=dev/vite.config.legacy.ts",
30
35
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
31
36
  "preview": "vite preview"
32
37
  },
33
38
  "dependencies": {
34
39
  "@lit/react": "^1.0.2",
35
- "@weavy/uikit-web": "^21.1.0"
40
+ "@weavy/uikit-web": "^21.1.2"
36
41
  },
37
42
  "peerDependencies": {
38
43
  "react": ">=16",
@@ -42,6 +47,7 @@
42
47
  "@babel/preset-env": "^7.23.8",
43
48
  "@babel/preset-react": "^7.23.3",
44
49
  "@rollup/plugin-babel": "^6.0.4",
50
+ "@rollup/plugin-node-resolve": "^15.2.3",
45
51
  "@types/node": "^20.11.20",
46
52
  "@types/react": "^18.2.43",
47
53
  "@types/react-dom": "^18.2.17",
@@ -53,12 +59,14 @@
53
59
  "eslint-plugin-react-hooks": "^4.6.0",
54
60
  "eslint-plugin-react-refresh": "^0.4.5",
55
61
  "npm-run-all": "^4.1.5",
62
+ "rimraf": "^5.0.5",
63
+ "sass": "^1.72.0",
56
64
  "typescript": "^5.2.2",
57
65
  "vite": "^5.0.8",
58
66
  "vite-plugin-dts": "^3.7.2"
59
67
  },
60
68
  "engines": {
61
- "node": ">=19.3.0",
62
- "npm": ">=9.2.0"
69
+ "node": ">=18.0.0",
70
+ "npm": ">=8.0.0"
63
71
  }
64
72
  }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "target": "ES2017",
4
4
  "useDefineForClassFields": true,
5
5
  "lib": ["ES2017", "DOM", "DOM.Iterable"],
6
- "module": "ES2015",
6
+ "module": "ES2020",
7
7
  "skipLibCheck": true,
8
8
 
9
9
  /* Bundler mode */
@@ -23,5 +23,5 @@
23
23
  "noFallthroughCasesInSwitch": true
24
24
  },
25
25
  "include": ["lib", "demo"],
26
- "references": [{ "path": "./tsconfig.node.json" }]
26
+ "references": [{ "path": "./dev/tsconfig.node.json" }]
27
27
  }
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "include": ["lib"],
4
- "compilerOptions": {
5
- "skipLibCheck": true,
6
- },
7
- }
@@ -1,10 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "skipLibCheck": true,
5
- "module": "ESNext",
6
- "moduleResolution": "bundler",
7
- "allowSyntheticDefaultImports": true
8
- },
9
- "include": ["vite.config.ts"]
10
- }