@wavv/ui 1.8.2 → 1.8.4
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/build/cjs/index.js +30 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/components/Code/Code.d.ts +2 -2
- package/build/esm/index.js +30 -18
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/components/Code/Code.d.ts +2 -2
- package/build/index.d.ts +2 -2
- package/package.json +26 -26
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Language } from 'prism-react-renderer';
|
|
2
1
|
import { Margin } from '../types';
|
|
3
2
|
type RestLanguage = 'rest-get' | 'rest-post' | 'rest-put' | 'rest-delete' | 'rest-options';
|
|
3
|
+
type BaseLanguages = 'jsx' | 'tsx' | 'swift' | 'kotlin' | 'objectivec' | 'js-extras' | 'reason' | 'rust' | 'graphql' | 'yaml' | 'go' | 'cpp' | 'markdown';
|
|
4
4
|
type WithChildren = {
|
|
5
5
|
/** The string to be rendered in the code snippet */
|
|
6
6
|
children: string;
|
|
@@ -16,7 +16,7 @@ type CodeProps = {
|
|
|
16
16
|
/** The metadata string passed in by MDX */
|
|
17
17
|
className?: string;
|
|
18
18
|
/** The syntax language to be used for the code snippet */
|
|
19
|
-
lang?:
|
|
19
|
+
lang?: BaseLanguages | RestLanguage | string;
|
|
20
20
|
/** The line numbers in the code snippet that should be highlighted */
|
|
21
21
|
lineHighlights?: string;
|
|
22
22
|
/** Hides the line numbers in the code snippet */
|
package/build/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import react__default, { ElementType, FocusEvent, ReactNode, ChangeEvent, HTMLPr
|
|
|
5
5
|
import * as _emotion_styled from '@emotion/styled';
|
|
6
6
|
import { StyledComponent } from '@emotion/styled';
|
|
7
7
|
import * as _emotion_react from '@emotion/react';
|
|
8
|
-
import { Language } from 'prism-react-renderer';
|
|
9
8
|
import { EditorChangeType } from 'draft-js';
|
|
10
9
|
|
|
11
10
|
declare const colors: {
|
|
@@ -1229,6 +1228,7 @@ type CheckboxProps = {
|
|
|
1229
1228
|
declare const Checkbox: ({ id, label, labelPosition, checked, partial, disabled, onChange, margin, marginTop, marginBottom, marginRight, marginLeft, ...props }: CheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
1230
1229
|
|
|
1231
1230
|
type RestLanguage = 'rest-get' | 'rest-post' | 'rest-put' | 'rest-delete' | 'rest-options';
|
|
1231
|
+
type BaseLanguages = 'jsx' | 'tsx' | 'swift' | 'kotlin' | 'objectivec' | 'js-extras' | 'reason' | 'rust' | 'graphql' | 'yaml' | 'go' | 'cpp' | 'markdown';
|
|
1232
1232
|
type WithChildren$1 = {
|
|
1233
1233
|
/** The string to be rendered in the code snippet */
|
|
1234
1234
|
children: string;
|
|
@@ -1244,7 +1244,7 @@ type CodeProps = {
|
|
|
1244
1244
|
/** The metadata string passed in by MDX */
|
|
1245
1245
|
className?: string;
|
|
1246
1246
|
/** The syntax language to be used for the code snippet */
|
|
1247
|
-
lang?:
|
|
1247
|
+
lang?: BaseLanguages | RestLanguage | string;
|
|
1248
1248
|
/** The line numbers in the code snippet that should be highlighted */
|
|
1249
1249
|
lineHighlights?: string;
|
|
1250
1250
|
/** Hides the line numbers in the code snippet */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavv/ui",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"files": [
|
|
5
5
|
"build/**/*"
|
|
6
6
|
],
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/styled": "^11.11.0",
|
|
23
|
-
"@radix-ui/react-accordion": "^1.1.
|
|
24
|
-
"@radix-ui/react-dropdown-menu": "^2.0.
|
|
25
|
-
"@radix-ui/react-tooltip": "^1.0.
|
|
23
|
+
"@radix-ui/react-accordion": "^1.1.2",
|
|
24
|
+
"@radix-ui/react-dropdown-menu": "^2.0.5",
|
|
25
|
+
"@radix-ui/react-tooltip": "^1.0.6",
|
|
26
26
|
"@react-hook/resize-observer": "^1.2.6",
|
|
27
27
|
"date-fns": "^2.30.0",
|
|
28
28
|
"draft-js": "^0.11.7",
|
|
29
29
|
"lodash": "^4.17.21",
|
|
30
30
|
"polished": "^4.1.4",
|
|
31
|
-
"prism-react-renderer": "^
|
|
32
|
-
"react-keyed-flatten-children": "^
|
|
31
|
+
"prism-react-renderer": "^2.0.4",
|
|
32
|
+
"react-keyed-flatten-children": "^2.2.1",
|
|
33
33
|
"react-phone-input-auto-format": "^0.1.0",
|
|
34
34
|
"recharts": "^2.6.2",
|
|
35
35
|
"sanitize.css": "^13.0.0",
|
|
@@ -37,42 +37,42 @@
|
|
|
37
37
|
"webfontloader": "^1.6.28"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@babel/core": "^7.
|
|
41
|
-
"@babel/preset-env": "^7.
|
|
40
|
+
"@babel/core": "^7.22.1",
|
|
41
|
+
"@babel/preset-env": "^7.22.4",
|
|
42
42
|
"@babel/preset-typescript": "^7.21.4",
|
|
43
43
|
"@emotion/babel-plugin": "^11.11.0",
|
|
44
44
|
"@emotion/babel-preset-css-prop": "^11.11.0",
|
|
45
45
|
"@emotion/react": "^11.11.0",
|
|
46
46
|
"@mdx-js/react": "^2.2.1",
|
|
47
47
|
"@mdx-js/rollup": "^2.2.1",
|
|
48
|
-
"@rollup/plugin-commonjs": "^
|
|
49
|
-
"@rollup/plugin-node-resolve": "^15.0
|
|
50
|
-
"@rollup/plugin-terser": "^0.4.
|
|
48
|
+
"@rollup/plugin-commonjs": "^25.0.0",
|
|
49
|
+
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
50
|
+
"@rollup/plugin-terser": "^0.4.3",
|
|
51
51
|
"@rollup/plugin-typescript": "^11.1.0",
|
|
52
52
|
"@svgr/core": "^8.0.0",
|
|
53
53
|
"@svgr/plugin-jsx": "^8.0.1",
|
|
54
54
|
"@svgr/plugin-prettier": "^8.0.1",
|
|
55
55
|
"@types/dashify": "^1.0.1",
|
|
56
|
-
"@types/draft-js": "^0.11.
|
|
57
|
-
"@types/jest": "^29.5.
|
|
58
|
-
"@types/lodash": "^4.14.
|
|
56
|
+
"@types/draft-js": "^0.11.11",
|
|
57
|
+
"@types/jest": "^29.5.2",
|
|
58
|
+
"@types/lodash": "^4.14.195",
|
|
59
59
|
"@types/ncp": "^2.0.5",
|
|
60
|
-
"@types/node": "^20.
|
|
60
|
+
"@types/node": "^20.2.5",
|
|
61
61
|
"@types/prompts": "^2.4.4",
|
|
62
62
|
"@types/randomcolor": "^0.5.7",
|
|
63
|
-
"@types/react": "^18.2.
|
|
63
|
+
"@types/react": "^18.2.7",
|
|
64
64
|
"@types/react-dom": "^18.2.0",
|
|
65
65
|
"@types/rollup-plugin-peer-deps-external": "^2.2.1",
|
|
66
66
|
"@types/signale": "^1.4.4",
|
|
67
67
|
"@types/uuid": "^9.0.1",
|
|
68
68
|
"@types/webfontloader": "^1.6.35",
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
70
|
-
"@typescript-eslint/parser": "^5.59.
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
70
|
+
"@typescript-eslint/parser": "^5.59.8",
|
|
71
71
|
"@vitejs/plugin-react": "^4.0.0",
|
|
72
72
|
"babel-plugin-lodash": "^3.3.4",
|
|
73
73
|
"chalk": "^5.2.0",
|
|
74
74
|
"dashify": "^2.0.0",
|
|
75
|
-
"eslint": "^8.
|
|
75
|
+
"eslint": "^8.41.0",
|
|
76
76
|
"eslint-config-airbnb": "^19.0.4",
|
|
77
77
|
"eslint-config-prettier": "^8.8.0",
|
|
78
78
|
"eslint-config-storm": "^1.0.3",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"pascal-case": "^3.1.2",
|
|
92
92
|
"path": "^0.12.7",
|
|
93
93
|
"phone": "^3.1.37",
|
|
94
|
-
"postcss": "^8.4.
|
|
94
|
+
"postcss": "^8.4.24",
|
|
95
95
|
"prettier": "^2.8.8",
|
|
96
96
|
"prompts": "^2.4.2",
|
|
97
97
|
"randomcolor": "^0.6.2",
|
|
@@ -99,21 +99,21 @@
|
|
|
99
99
|
"react-dom": "^18.2.0",
|
|
100
100
|
"react-ga4": "^2.1.0",
|
|
101
101
|
"react-helmet-async": "^1.3.0",
|
|
102
|
-
"react-router-dom": "^6.
|
|
103
|
-
"react-toastify": "^9.1.
|
|
102
|
+
"react-router-dom": "^6.11.2",
|
|
103
|
+
"react-toastify": "^9.1.3",
|
|
104
104
|
"remark-gfm": "^3.0.1",
|
|
105
105
|
"replace": "^1.2.2",
|
|
106
|
-
"rollup": "^3.
|
|
106
|
+
"rollup": "^3.23.0",
|
|
107
107
|
"rollup-plugin-dts": "^5.3.0",
|
|
108
108
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
109
109
|
"rollup-plugin-postcss": "^4.0.2",
|
|
110
110
|
"signale": "^1.4.0",
|
|
111
111
|
"ts-node": "^10.9.1",
|
|
112
|
-
"tslib": "^2.
|
|
112
|
+
"tslib": "^2.5.2",
|
|
113
113
|
"typescript": "^5.0.4",
|
|
114
|
-
"vite": "^4.3.
|
|
114
|
+
"vite": "^4.3.9",
|
|
115
115
|
"vite-plugin-eslint": "^1.8.1",
|
|
116
|
-
"vite-plugin-svgr": "^2.
|
|
116
|
+
"vite-plugin-svgr": "^3.2.0"
|
|
117
117
|
},
|
|
118
118
|
"peerDependencies": {
|
|
119
119
|
"@emotion/react": ">=11",
|