@colisweb/rescript-toolkit 5.33.1 → 5.34.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colisweb/rescript-toolkit",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.34.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rescript clean",
|
|
@@ -28,58 +28,57 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@colisweb/bs-react-intl-extractor-bin": "0.12.2",
|
|
31
|
-
"@datadog/browser-rum": "
|
|
31
|
+
"@datadog/browser-rum": "6.6.3",
|
|
32
32
|
"@dck/rescript-ky": "2.1.0",
|
|
33
33
|
"@dck/rescript-promise": "1.1.0",
|
|
34
34
|
"@dck/restorative": "1.1.0",
|
|
35
35
|
"@greenlabs/ppx-spice": "0.2.1",
|
|
36
|
-
"@headlessui/react": "2.1
|
|
37
|
-
"@headlessui/tailwindcss": "0.2.
|
|
38
|
-
"@radix-ui/react-dropdown-menu": "2.1.
|
|
39
|
-
"@radix-ui/react-popover": "1.1.
|
|
40
|
-
"@radix-ui/react-scroll-area": "1.2.
|
|
41
|
-
"@radix-ui/react-toast": "1.2.
|
|
42
|
-
"@radix-ui/react-tooltip": "1.
|
|
36
|
+
"@headlessui/react": "2.2.1",
|
|
37
|
+
"@headlessui/tailwindcss": "0.2.2",
|
|
38
|
+
"@radix-ui/react-dropdown-menu": "2.1.7",
|
|
39
|
+
"@radix-ui/react-popover": "1.1.7",
|
|
40
|
+
"@radix-ui/react-scroll-area": "1.2.4",
|
|
41
|
+
"@radix-ui/react-toast": "1.2.7",
|
|
42
|
+
"@radix-ui/react-tooltip": "1.2.0",
|
|
43
43
|
"@reach/auto-id": "0.18.0",
|
|
44
44
|
"@rescript/react": "0.12.0",
|
|
45
|
-
"autoprefixer": "10.4.
|
|
45
|
+
"autoprefixer": "10.4.21",
|
|
46
46
|
"axios": "0.24.0",
|
|
47
47
|
"case": "1.6.3",
|
|
48
48
|
"click-outside-hook": "1.1.0",
|
|
49
49
|
"copy-to-clipboard": "3.3.3",
|
|
50
|
-
"date-fns": "
|
|
50
|
+
"date-fns": "4.1.0",
|
|
51
51
|
"dedent": "0.7.0",
|
|
52
|
-
"ky": "1.
|
|
52
|
+
"ky": "1.8.0",
|
|
53
53
|
"lenses-ppx": "6.1.10",
|
|
54
54
|
"list-selectors": "2.0.1",
|
|
55
55
|
"lodash": "4.17.21",
|
|
56
|
-
"msw": "2.
|
|
57
|
-
"postcss": "8.
|
|
56
|
+
"msw": "2.7.3",
|
|
57
|
+
"postcss": "8.5.3",
|
|
58
58
|
"postcss-preset-env": "8.0.1",
|
|
59
59
|
"prismjs": "1.29.0",
|
|
60
|
-
"qs": "6.
|
|
60
|
+
"qs": "6.14.0",
|
|
61
61
|
"react": "18.2.0",
|
|
62
62
|
"react-big-calendar": "1.5.2",
|
|
63
63
|
"react-datepicker": "3.8.0",
|
|
64
64
|
"react-day-picker": "8.10.0",
|
|
65
65
|
"react-dom": "18.2.0",
|
|
66
|
-
"react-error-boundary": "
|
|
66
|
+
"react-error-boundary": "5.0.0",
|
|
67
67
|
"react-helmet": "6.1.0",
|
|
68
|
-
"react-icons": "5.
|
|
69
|
-
"react-intl": "
|
|
70
|
-
"react-phone-number-input": "
|
|
71
|
-
"react-portal": "4.
|
|
72
|
-
"react-select": "5.
|
|
68
|
+
"react-icons": "5.5.0",
|
|
69
|
+
"react-intl": "7.1.10",
|
|
70
|
+
"react-phone-number-input": "3.4.12",
|
|
71
|
+
"react-portal": "4.3.0",
|
|
72
|
+
"react-select": "5.10.1",
|
|
73
73
|
"react-table": "7.8.0",
|
|
74
|
-
"react-use": "17.
|
|
74
|
+
"react-use": "17.6.0",
|
|
75
75
|
"res-react-intl": "3.1.2",
|
|
76
76
|
"rescript": "11.0.0",
|
|
77
|
-
"rescript-classnames": "6.0.0",
|
|
78
77
|
"rescript-react-update": "5.0.2",
|
|
79
78
|
"sanitize-html": "1.27.4",
|
|
80
79
|
"swr": "2.2.2",
|
|
81
80
|
"tailwindcss": "3.4.14",
|
|
82
|
-
"use-local-storage-state": "19.
|
|
81
|
+
"use-local-storage-state": "19.5.0"
|
|
83
82
|
},
|
|
84
83
|
"devDependencies": {
|
|
85
84
|
"@babel/core": "7.23.7",
|
|
@@ -92,7 +91,7 @@
|
|
|
92
91
|
"babel-loader": "8.2.5",
|
|
93
92
|
"highlight.js": "11.10.0",
|
|
94
93
|
"husky": "8.0.3",
|
|
95
|
-
"is-ci": "
|
|
94
|
+
"is-ci": "4.1.0",
|
|
96
95
|
"raw-loader": "4.0.2",
|
|
97
96
|
"react-is": "18.2.0",
|
|
98
97
|
"rehype-add-classes": "^1.0.0",
|
package/rescript.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://raw.githubusercontent.com/rescript-lang/rescript-compiler/master/docs/docson/build-schema.json",
|
|
3
2
|
"name": "@colisweb/rescript-toolkit",
|
|
4
3
|
"jsx": {
|
|
5
4
|
"version": 4
|
|
@@ -28,15 +27,12 @@
|
|
|
28
27
|
"@rescript/react",
|
|
29
28
|
"@dck/rescript-promise",
|
|
30
29
|
"@greenlabs/ppx-spice",
|
|
31
|
-
"rescript-classnames",
|
|
32
30
|
"rescript-react-update",
|
|
33
31
|
"@dck/restorative",
|
|
34
32
|
"@dck/rescript-ky"
|
|
35
33
|
],
|
|
36
34
|
"ppx-flags": [
|
|
37
|
-
[
|
|
38
|
-
"@greenlabs/ppx-spice/ppx"
|
|
39
|
-
],
|
|
35
|
+
["@greenlabs/ppx-spice/ppx"],
|
|
40
36
|
"lenses-ppx/ppx",
|
|
41
37
|
"res-react-intl/ppx"
|
|
42
38
|
],
|
|
@@ -48,7 +44,7 @@
|
|
|
48
44
|
"-bs-super-errors",
|
|
49
45
|
"-bs-no-version-header",
|
|
50
46
|
"-open Belt",
|
|
51
|
-
"-open Toolkit__Primitives_Result"
|
|
52
|
-
"-open Cx"
|
|
47
|
+
"-open Toolkit__Primitives_Result"
|
|
53
48
|
]
|
|
54
|
-
}
|
|
49
|
+
}
|
|
50
|
+
|
|
@@ -16,3 +16,14 @@ module Result = {
|
|
|
16
16
|
|
|
17
17
|
let mapOk = map
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
let cx = arr => {
|
|
21
|
+
let result = ref("")
|
|
22
|
+
for i in 0 to arr->Array.length - 1 {
|
|
23
|
+
switch arr->Array.getUnsafe(i) {
|
|
24
|
+
| "" => ()
|
|
25
|
+
| name => result := (result.contents == "" ? name : result.contents ++ " " ++ name)
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
result.contents
|
|
29
|
+
}
|