@thewhileloop/whileui 4.0.0 → 4.1.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.
Files changed (44) hide show
  1. package/README.md +127 -15
  2. package/dist/blocks/chat/chat-conversation.d.ts +8 -0
  3. package/dist/blocks/chat/chat-conversation.js +36 -0
  4. package/dist/blocks/chat/chat.js +5 -11
  5. package/dist/blocks/chat/index.d.ts +1 -0
  6. package/dist/blocks/chat/index.js +1 -0
  7. package/dist/blocks/layout/smart-input.js +2 -1
  8. package/dist/code.d.ts +1 -0
  9. package/dist/code.js +1 -0
  10. package/dist/components/card/card.d.ts +1 -1
  11. package/dist/components/card/card.js +4 -25
  12. package/dist/components/code-block/code-block.d.ts +12 -0
  13. package/dist/components/code-block/code-block.js +13 -0
  14. package/dist/components/code-block/index.d.ts +1 -0
  15. package/dist/components/code-block/index.js +1 -0
  16. package/dist/components/form-field/form-field.d.ts +8 -0
  17. package/dist/components/form-field/form-field.js +3 -0
  18. package/dist/components/form-field/index.d.ts +1 -1
  19. package/dist/components/form-field/index.js +1 -1
  20. package/dist/components/input/input.d.ts +1 -0
  21. package/dist/components/input/input.js +11 -6
  22. package/dist/components/markdown/index.d.ts +1 -0
  23. package/dist/components/markdown/index.js +1 -0
  24. package/dist/components/markdown/markdown.d.ts +14 -0
  25. package/dist/components/markdown/markdown.js +94 -0
  26. package/dist/components/numeric-input/numeric-input.d.ts +1 -0
  27. package/dist/components/numeric-input/numeric-input.js +11 -6
  28. package/dist/components/select/select.d.ts +2 -1
  29. package/dist/components/select/select.js +18 -10
  30. package/dist/components/surface/index.d.ts +1 -0
  31. package/dist/components/surface/index.js +1 -0
  32. package/dist/components/surface/surface.d.ts +14 -0
  33. package/dist/components/surface/surface.js +35 -0
  34. package/dist/components/text/text.d.ts +42 -42
  35. package/dist/components/text/text.js +39 -17
  36. package/dist/components/textarea/textarea.d.ts +1 -0
  37. package/dist/components/textarea/textarea.js +7 -3
  38. package/dist/index.d.ts +2 -1
  39. package/dist/index.js +2 -1
  40. package/dist/lib/web-autofill.d.ts +9 -0
  41. package/dist/lib/web-autofill.js +9 -0
  42. package/dist/markdown.d.ts +1 -0
  43. package/dist/markdown.js +1 -0
  44. package/package.json +16 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thewhileloop/whileui",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "WhileUI Native — Copy-paste components for React Native. You own the code.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,6 +40,14 @@
40
40
  "types": "./dist/tokens.d.ts",
41
41
  "import": "./dist/tokens.js"
42
42
  },
43
+ "./code": {
44
+ "types": "./dist/code.d.ts",
45
+ "import": "./dist/code.js"
46
+ },
47
+ "./markdown": {
48
+ "types": "./dist/markdown.d.ts",
49
+ "import": "./dist/markdown.js"
50
+ },
43
51
  "./package.json": "./package.json"
44
52
  },
45
53
  "files": [
@@ -78,11 +86,15 @@
78
86
  "react-native-screens": ">=4.30.0",
79
87
  "tailwindcss": ">=4.0.0",
80
88
  "uniwind": ">=1.12.0",
81
- "react-native-worklets": ">=0.13.0"
89
+ "react-native-worklets": ">=0.13.0",
90
+ "markdown-it": ">=14.1.0"
82
91
  },
83
92
  "peerDependenciesMeta": {
84
93
  "expo-blur": {
85
94
  "optional": true
95
+ },
96
+ "markdown-it": {
97
+ "optional": true
86
98
  }
87
99
  },
88
100
  "dependencies": {
@@ -97,10 +109,12 @@
97
109
  "@testing-library/react-native": "^14.1.0",
98
110
  "@types/culori": "^4.0.1",
99
111
  "@types/jest": "^30.0.0",
112
+ "@types/markdown-it": "^14.1.2",
100
113
  "@types/react": "~19.3.0",
101
114
  "expo-image": "~58.0.15",
102
115
  "jest": "^30.5.2",
103
116
  "jest-expo": "~58.0.11",
117
+ "markdown-it": "^14.1.0",
104
118
  "react-native-screens": "~4.30.0",
105
119
  "test-renderer": "^1.3.1",
106
120
  "typescript": "~6.0.3"