@colisweb/rescript-toolkit 2.8.4 → 2.9.1-mobile

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/.env ADDED
@@ -0,0 +1 @@
1
+ STORYBOOK_HERE_API_KEY=XdOccRM258JaG5yYFTQYOwqSE_hrosqcWHugsLUOrIg
package/.merlin ADDED
@@ -0,0 +1,66 @@
1
+ ####{BSB GENERATED: NO EDIT
2
+ FLG -ppx /Users/colisweb/Projects/rescript-toolkit/node_modules/decco/ppx
3
+ FLG -ppx /Users/colisweb/Projects/rescript-toolkit/node_modules/lenses-ppx/ppx
4
+ FLG -ppx /Users/colisweb/Projects/rescript-toolkit/node_modules/rescript-logger/ppx
5
+ FLG -ppx '/Users/colisweb/Projects/rescript-toolkit/node_modules/rescript/darwin/bsc.exe -as-ppx -bs-jsx 3'
6
+ S /Users/colisweb/Projects/rescript-toolkit/node_modules/rescript/lib/ocaml
7
+ B /Users/colisweb/Projects/rescript-toolkit/node_modules/rescript/lib/ocaml
8
+ FLG -open Belt -open Cx
9
+ FLG -w +a-4-9-20-40-41-42-50-61-102-44-30-32-40-42-61
10
+ S /Users/colisweb/Projects/rescript-toolkit/node_modules/bs-css/lib/ocaml
11
+ B /Users/colisweb/Projects/rescript-toolkit/node_modules/bs-css/lib/ocaml
12
+ S /Users/colisweb/Projects/rescript-toolkit/node_modules/bs-css-emotion/lib/ocaml
13
+ B /Users/colisweb/Projects/rescript-toolkit/node_modules/bs-css-emotion/lib/ocaml
14
+ S /Users/colisweb/Projects/rescript-toolkit/node_modules/@rescript/react/lib/ocaml
15
+ B /Users/colisweb/Projects/rescript-toolkit/node_modules/@rescript/react/lib/ocaml
16
+ S /Users/colisweb/Projects/rescript-toolkit/node_modules/bs-axios/lib/ocaml
17
+ B /Users/colisweb/Projects/rescript-toolkit/node_modules/bs-axios/lib/ocaml
18
+ S /Users/colisweb/Projects/rescript-toolkit/node_modules/reason-promise/lib/ocaml
19
+ B /Users/colisweb/Projects/rescript-toolkit/node_modules/reason-promise/lib/ocaml
20
+ S /Users/colisweb/Projects/rescript-toolkit/node_modules/reason-react/lib/ocaml
21
+ B /Users/colisweb/Projects/rescript-toolkit/node_modules/reason-react/lib/ocaml
22
+ S /Users/colisweb/Projects/rescript-toolkit/node_modules/decco/lib/ocaml
23
+ B /Users/colisweb/Projects/rescript-toolkit/node_modules/decco/lib/ocaml
24
+ S /Users/colisweb/Projects/rescript-toolkit/node_modules/rescript-classnames/lib/ocaml
25
+ B /Users/colisweb/Projects/rescript-toolkit/node_modules/rescript-classnames/lib/ocaml
26
+ S /Users/colisweb/Projects/rescript-toolkit/node_modules/rescript-logger/lib/ocaml
27
+ B /Users/colisweb/Projects/rescript-toolkit/node_modules/rescript-logger/lib/ocaml
28
+ S /Users/colisweb/Projects/rescript-toolkit/node_modules/reschema/lib/ocaml
29
+ B /Users/colisweb/Projects/rescript-toolkit/node_modules/reschema/lib/ocaml
30
+ S /Users/colisweb/Projects/rescript-toolkit/node_modules/rescript-react-update/lib/ocaml
31
+ B /Users/colisweb/Projects/rescript-toolkit/node_modules/rescript-react-update/lib/ocaml
32
+ S /Users/colisweb/Projects/rescript-toolkit/node_modules/restorative/lib/ocaml
33
+ B /Users/colisweb/Projects/rescript-toolkit/node_modules/restorative/lib/ocaml
34
+ S stories
35
+ B lib/bs/stories
36
+ S src
37
+ B lib/bs/src
38
+ S src/router
39
+ B lib/bs/src/router
40
+ S src/unleash
41
+ B lib/bs/src/unleash
42
+ S src/sentry
43
+ B lib/bs/src/sentry
44
+ S src/request
45
+ B lib/bs/src/request
46
+ S src/decoders
47
+ B lib/bs/src/decoders
48
+ S src/hooks
49
+ B lib/bs/src/hooks
50
+ S src/identifier
51
+ B lib/bs/src/identifier
52
+ S src/primitives
53
+ B lib/bs/src/primitives
54
+ S src/utils
55
+ B lib/bs/src/utils
56
+ S src/fetcher
57
+ B lib/bs/src/fetcher
58
+ S src/form
59
+ B lib/bs/src/form
60
+ S src/vendors
61
+ B lib/bs/src/vendors
62
+ S src/vendors/reach-ui
63
+ B lib/bs/src/vendors/reach-ui
64
+ S src/ui
65
+ B lib/bs/src/ui
66
+ ####BSB GENERATED: NO EDIT}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colisweb/rescript-toolkit",
3
- "version": "2.8.4",
3
+ "version": "2.9.1-mobile",
4
4
  "scripts": {
5
5
  "clean": "rescript clean",
6
6
  "build": "rescript build",
@@ -55,6 +55,7 @@
55
55
  "postcss-loader": "4.2.0",
56
56
  "postcss-preset-env": "6.7.0",
57
57
  "prismjs": "1.25.0",
58
+ "react-datepicker": "3.8.0",
58
59
  "react-icons": "4.3.1",
59
60
  "react-select": "5.2.1",
60
61
  "react-table": "7.7.0",
@@ -64,15 +65,14 @@
64
65
  "reschema": "1.3.1",
65
66
  "rescript": "9.1.4",
66
67
  "rescript-classnames": "6.0.0",
67
- "rescript-logger": "2.0.2",
68
+ "rescript-logger": "2.0.0",
68
69
  "rescript-react-update": "5.0.0",
69
70
  "restorative": "0.4.0-beta.1",
71
+ "sanitize-html": "2.6.1",
70
72
  "swr": "1.1.1",
71
- "tailwindcss": "3.0.2",
72
- "react-datepicker": "3.8.0"
73
+ "tailwindcss": "3.0.2"
73
74
  },
74
75
  "devDependencies": {
75
- "highlight.js": "11.3.1",
76
76
  "@babel/core": "7.16.5",
77
77
  "@storybook/addon-actions": "6.1.21",
78
78
  "@storybook/addon-essentials": "6.1.21",
@@ -82,6 +82,7 @@
82
82
  "@storybook/react": "6.1.21",
83
83
  "@storybook/theming": "6.1.21",
84
84
  "babel-loader": "8.2.3",
85
+ "highlight.js": "11.3.1",
85
86
  "raw-loader": "4.0.2",
86
87
  "react": "17.0.2",
87
88
  "react-dom": "17.0.2",
@@ -1,7 +1,22 @@
1
1
  let transformUrl = text =>
2
2
  text |> Js.String.unsafeReplaceBy0(%re("/(https?:\\/\\/[^\\s]+)/g"), (url, _, _) =>
3
- j`<a target='_blank' class='text-blue-500 underline' href="$url">$url</a>`
3
+ j`<a target='_blank' class='text-info-500 underline' href="$url">$url</a>`
4
4
  )
5
5
 
6
+ @module("sanitize-html")
7
+ external sanitizeHtml: (string, Js.t<'a>) => string = "default"
8
+
6
9
  @react.component
7
- let make = (~text) => <span dangerouslySetInnerHTML={"__html": text->transformUrl} />
10
+ let make = (~text) =>
11
+ <span
12
+ dangerouslySetInnerHTML={
13
+ "__html": text
14
+ ->sanitizeHtml({
15
+ "allowedTags": ["a"],
16
+ "allowedAttributes": {
17
+ "a": ["href"],
18
+ },
19
+ })
20
+ ->transformUrl,
21
+ }
22
+ />
@@ -5893,3 +5893,9 @@ module FaFilter = {
5893
5893
  external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
5894
5894
  "FaFilter"
5895
5895
  }
5896
+
5897
+ module IoIosCloseCircle = {
5898
+ @module("react-icons/io") @react.component
5899
+ external make: (~size: int=?, ~color: string=?, ~className: string=?) => React.element =
5900
+ "IoIosCloseCircle"
5901
+ }