@demos-europe/demosplan-ui 0.3.33 → 0.4.1

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 (119) hide show
  1. package/.editorconfig +8 -0
  2. package/.idea/workspace.xml +16 -15
  3. package/.yarn/install-state.gz +0 -0
  4. package/.yarnrc.yml +2 -0
  5. package/CHANGELOG.md +35 -12
  6. package/LICENSE +0 -26
  7. package/babel-jest-transformer.js +0 -0
  8. package/babel.config.js +5 -1
  9. package/dist/demosplan-ui.umd.js +1 -1
  10. package/dist/demosplan-ui.umd.js.LICENSE.txt +7 -6
  11. package/dist/main.css +5 -0
  12. package/jest/shallowMountWithGlobalMocks.js +11 -16
  13. package/jest.config.js +5 -2
  14. package/package.json +54 -80
  15. package/scripts/utils/transformTokens.js +3 -0
  16. package/src/components/DpAnonymizeText/DpAnonymizeText.vue +11 -10
  17. package/src/components/DpAutocomplete/DpAutocomplete.vue +4 -4
  18. package/src/components/DpButton/DpButton.stories.mdx +1 -1
  19. package/src/components/DpButton/DpButton.vue +283 -153
  20. package/src/components/DpButtonRow/DpButtonRow.vue +8 -3
  21. package/src/components/DpCheckbox/DpCheckbox.vue +2 -2
  22. package/src/components/DpContextualHelp/DpContextualHelp.vue +30 -42
  23. package/src/components/DpDataTable/DpDataTable.vue +49 -45
  24. package/src/components/DpDataTable/DpResizableColumn.vue +1 -1
  25. package/src/components/DpDataTable/DpTableHeader.vue +8 -13
  26. package/src/components/DpDataTable/DpTableRow.vue +39 -26
  27. package/src/components/DpDataTable/DpWrapTrigger.vue +2 -1
  28. package/src/components/DpDataTableExtended/DpDataTableExtended.vue +31 -22
  29. package/src/components/DpDatetimePicker/DpDatetimePicker.vue +3 -2
  30. package/src/components/DpDraggable/DpDraggable.vue +124 -116
  31. package/src/components/DpEditor/DpEditor.vue +29 -31
  32. package/src/components/DpEditor/DpLinkModal.vue +40 -39
  33. package/src/components/DpEditor/DpResizableImage.vue +1 -1
  34. package/src/components/DpEditor/DpUploadModal.vue +57 -56
  35. package/src/components/DpEditor/MentionList.vue +5 -2
  36. package/src/components/DpEditor/libs/Decoration.js +2 -2
  37. package/src/components/DpEditor/libs/editorBuildSuggestion.js +2 -2
  38. package/src/components/DpEditor/libs/editorCustomImage.js +1 -1
  39. package/src/components/DpEditor/libs/editorInsertAtCursorPos.js +1 -1
  40. package/src/components/DpFlyout/DpFlyout.vue +2 -3
  41. package/src/components/DpIcon/DpIcon.stories.mdx +1 -1
  42. package/src/components/DpIcon/DpIcon.vue +83 -50
  43. package/src/components/DpIcon/util/iconConfig.ts +179 -0
  44. package/src/components/DpInlineNotification/DpInlineNotification.vue +8 -3
  45. package/src/components/DpInput/DpInput.vue +236 -230
  46. package/src/components/DpLabel/DpLabel.vue +68 -78
  47. package/src/components/DpModal/DpModal.vue +0 -4
  48. package/src/components/DpMultiselect/DpMultiselect.vue +18 -3
  49. package/src/components/DpMultistepNav/DpMultistepNav.vue +2 -2
  50. package/src/components/DpPager/DpPager.vue +13 -4
  51. package/src/components/DpResettableInput/DpResettableInput.vue +1 -1
  52. package/src/components/DpSearchField/DpSearchField.vue +7 -2
  53. package/src/components/DpSelect/DpSelect.vue +1 -1
  54. package/src/components/DpSlidingPagination/DpSlidingPagination.vue +18 -5
  55. package/src/components/DpSplitButton/DpSplitButton.vue +9 -5
  56. package/src/components/DpTabs/DpTab.vue +7 -6
  57. package/src/components/DpTabs/DpTabs.vue +102 -118
  58. package/src/components/DpTextArea/DpTextArea.vue +5 -4
  59. package/src/components/DpTimePicker/DpTimePicker.vue +2 -3
  60. package/src/components/DpTooltip/DpTooltip.vue +2 -2
  61. package/src/components/DpTooltip/utils/tooltip.js +6 -9
  62. package/src/components/DpTransitionExpand/DpTransitionExpand.vue +44 -48
  63. package/src/components/DpTreeList/DpTreeList.vue +23 -15
  64. package/src/components/DpTreeList/DpTreeListNode.vue +16 -9
  65. package/src/components/DpUploadFiles/DpUpload.vue +13 -9
  66. package/src/components/DpUploadFiles/DpUploadFiles.vue +21 -3
  67. package/src/components/DpUploadFiles/DpUploadedFile.vue +3 -1
  68. package/src/components/DpUploadFiles/DpUploadedFileList.vue +11 -2
  69. package/src/components/DpUploadFiles/utils/UppyTranslations.js +3 -1
  70. package/src/components/DpVideoPlayer/DpVideoPlayer.vue +25 -25
  71. package/src/components/shared/translations.js +88 -11
  72. package/src/directives/CleanHtml/CleanHtml.js +2 -2
  73. package/src/directives/Tooltip/Tooltip.js +8 -4
  74. package/src/lib/DpApi.js +2 -2
  75. package/src/lib/validation/dpValidateMultiselectDirective.js +4 -4
  76. package/src/lib/validation/utils/assignHandlerForTrigger.js +1 -1
  77. package/src/lib/validation/utils/validateInputField.js +3 -3
  78. package/src/mixins/dpValidateMixin.js +1 -1
  79. package/src/shared/props/props.js +2 -2
  80. package/src/utils/formatString.js +0 -1
  81. package/src/utils/lengthHint/lengthHint.js +1 -1
  82. package/tailwind.config.js +35 -3
  83. package/tokens/dist/js/boxShadow.js +1 -1
  84. package/tokens/dist/js/breakpoints.js +1 -1
  85. package/tokens/dist/js/color.brand.js +1 -1
  86. package/tokens/dist/js/color.data.js +1 -1
  87. package/tokens/dist/js/color.palette.js +1 -1
  88. package/tokens/dist/js/color.ui.js +523 -69
  89. package/tokens/dist/js/fontSize.js +55 -12
  90. package/tokens/dist/js/rounded.js +39 -1
  91. package/tokens/dist/js/space.js +1 -1
  92. package/tokens/dist/js/zIndex.js +1 -1
  93. package/tokens/dist/scss/_boxShadow.scss +1 -1
  94. package/tokens/dist/scss/_breakpoints.scss +1 -1
  95. package/tokens/dist/scss/_color.brand.scss +1 -1
  96. package/tokens/dist/scss/_color.data.scss +1 -1
  97. package/tokens/dist/scss/_color.palette.scss +1 -1
  98. package/tokens/dist/scss/_color.ui.scss +1 -1
  99. package/tokens/dist/scss/_fontSize.scss +2 -1
  100. package/tokens/dist/scss/_rounded.scss +3 -1
  101. package/tokens/dist/scss/_space.scss +1 -1
  102. package/tokens/dist/scss/_zIndex.scss +1 -1
  103. package/tokens/dist/tailwind/backgroundColor.js +1 -2
  104. package/tokens/dist/tailwind/borderColor.js +2 -0
  105. package/tokens/dist/tailwind/color.js +16 -1
  106. package/tokens/dist/tailwind/fontSize.js +45 -11
  107. package/tokens/dist/tailwind/rounded.js +3 -1
  108. package/tokens/dist/tailwind/textColor.js +1 -1
  109. package/tokens/src/color/color.ui.json +108 -15
  110. package/tokens/src/fontSize.json +26 -11
  111. package/tokens/src/rounded.json +8 -0
  112. package/tsconfig.json +2 -2
  113. package/types/icons.ts +85 -0
  114. package/types/index.ts +1 -0
  115. package/vue-shims.d.ts +4 -3
  116. package/webpack.config.js +13 -10
  117. package/src/components/DpEditor/libs/SegmentRangeChangePlugin.js +0 -26
  118. package/src/components/DpIcon/util/iconVariables.js +0 -207
  119. package/src/components/DpTreeList/utils/bus.js +0 -3
package/.editorconfig ADDED
@@ -0,0 +1,8 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_size = 2
5
+ indent_style = space
6
+ trim_trailing_whitespace = true
7
+ end_of_line = lf
8
+ insert_final_newline = true
@@ -4,8 +4,8 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="0afade99-d5c9-4644-8d94-9e61461e1bbe" name="Changes" comment="chore: Prepare release">
8
- <change beforePath="$PROJECT_DIR$/CHANGELOG.md" beforeDir="false" afterPath="$PROJECT_DIR$/CHANGELOG.md" afterDir="false" />
7
+ <list default="true" id="0afade99-d5c9-4644-8d94-9e61461e1bbe" name="Changes" comment="chore: Add changelog">
8
+ <change beforePath="$PROJECT_DIR$/yarn.lock" beforeDir="false" afterPath="$PROJECT_DIR$/yarn.lock" afterDir="false" />
9
9
  </list>
10
10
  <option name="SHOW_DIALOG" value="false" />
11
11
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -29,7 +29,7 @@
29
29
  </option>
30
30
  <option name="RECENT_BRANCH_BY_REPOSITORY">
31
31
  <map>
32
- <entry key="$PROJECT_DIR$" value="0.3.x" />
32
+ <entry key="$PROJECT_DIR$" value="f_T19759_vue3_draggable" />
33
33
  </map>
34
34
  </option>
35
35
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
@@ -54,7 +54,7 @@
54
54
  "RunOnceActivity.ShowReadmeOnStart": "true",
55
55
  "SONARLINT_PRECOMMIT_ANALYSIS": "true",
56
56
  "WebServerToolWindowFactoryState": "false",
57
- "git-widget-placeholder": "fix__some-adjustments-for-yarn-v-4.2.2",
57
+ "git-widget-placeholder": "main",
58
58
  "last_opened_file_path": "/home/florian/Dev/demosplan-ui",
59
59
  "node.js.detected.package.eslint": "true",
60
60
  "node.js.detected.package.tslint": "true",
@@ -278,14 +278,7 @@
278
278
  <workItem from="1727677566492" duration="9323000" />
279
279
  <workItem from="1727717337691" duration="3703000" />
280
280
  <workItem from="1727771544457" duration="10336000" />
281
- </task>
282
- <task id="LOCAL-00010" summary="chore: Simplify editableList story.&#10;&#10;The old way broke the build doue to errors.&#10;&#10;This may not be perfect, but works for now and can easily be extended.">
283
- <option name="closed" value="true" />
284
- <created>1701788311497</created>
285
- <option name="number" value="00010" />
286
- <option name="presentableId" value="LOCAL-00010" />
287
- <option name="project" value="LOCAL" />
288
- <updated>1701788311497</updated>
281
+ <workItem from="1728282412660" duration="2817000" />
289
282
  </task>
290
283
  <task id="LOCAL-00011" summary="chore: Simplify editableList story.&#10;&#10;The old way broke the build doue to errors.&#10;&#10;This may not be perfect, but works for now and can easily be extended.">
291
284
  <option name="closed" value="true" />
@@ -671,7 +664,15 @@
671
664
  <option name="project" value="LOCAL" />
672
665
  <updated>1727877681603</updated>
673
666
  </task>
674
- <option name="localTasksCounter" value="59" />
667
+ <task id="LOCAL-00059" summary="chore: Add changelog">
668
+ <option name="closed" value="true" />
669
+ <created>1728285072002</created>
670
+ <option name="number" value="00059" />
671
+ <option name="presentableId" value="LOCAL-00059" />
672
+ <option name="project" value="LOCAL" />
673
+ <updated>1728285072002</updated>
674
+ </task>
675
+ <option name="localTasksCounter" value="60" />
675
676
  <servers>
676
677
  <YouTrack url="https://demoseurope.youtrack.cloud">
677
678
  <username>random</username>
@@ -738,7 +739,6 @@
738
739
  <MESSAGE value="fix(refs DPLAN-1898): Rename Methods&#10;&#10;to clearify what really happens, a renaming may help." />
739
740
  <MESSAGE value="fix: Restore lost Changelog Release Entry" />
740
741
  <MESSAGE value="fix: Select All should only select selectable items&#10;&#10;if the feature &quot;lock item&quot; is on, these items shouldn't be selected when using select all." />
741
- <MESSAGE value="chore: Add changelog" />
742
742
  <MESSAGE value="chore: Move changelog entry to the right place" />
743
743
  <MESSAGE value="chore: fix merge issues" />
744
744
  <MESSAGE value="fix: Pass Data to tableHeader" />
@@ -760,6 +760,7 @@
760
760
  <MESSAGE value="chore(refs dplan-12315): use tiptap/pm instead of prosemirror" />
761
761
  <MESSAGE value="chore(refs dplan-12315): Several minor changes to be more vue3 complient&#10;&#10;- eg remove this.$on" />
762
762
  <MESSAGE value="chore: Prepare release" />
763
- <option name="LAST_COMMIT_MESSAGE" value="chore: Prepare release" />
763
+ <MESSAGE value="chore: Add changelog" />
764
+ <option name="LAST_COMMIT_MESSAGE" value="chore: Add changelog" />
764
765
  </component>
765
766
  </project>
Binary file
package/.yarnrc.yml ADDED
@@ -0,0 +1,2 @@
1
+ progressBarStyle: "patrick"
2
+ nodeLinker: "node-modules"
package/CHANGELOG.md CHANGED
@@ -4,21 +4,38 @@ Since v0.0.10, this Changelog is formatted according to the [Common Changelog][c
4
4
 
5
5
  ## UNRELEASED
6
6
 
7
- ## v0.3.33 - 2024-10-02
7
+ ## v0.4.1 - 2024-10-07
8
+
9
+ ### Added
10
+ - ([#1030](https://github.com/demos-europe/demosplan-ui/pull/1030)) Add new utility: capitalizeFirstLetter ([@sakutademos](https://github.com/sakutademos)
11
+ - ([#1019](https://github.com/demos-europe/demosplan-ui/pull/1019)) DpVideoPlayer: Extend player to support embedded videos ([@gruenbergerdemos](https://github.com/gruenbergerdemos))
12
+
13
+ ### Fixed
14
+ - ([#1031](https://github.com/demos-europe/demosplan-ui/pull/1031)) remove max chunkSize on tus uploads ([@muellerdemos](https://github.com/muellerdemos)
15
+ - ([#1022](https://github.com/demos-europe/demosplan-ui/pull/1022)) DpEditor: Make EditorContent accessible to the screen readers by adding the 'role' attribute ([@sakutademos](https://github.com/sakutademos)
16
+ - ([#1012](https://github.com/demos-europe/demosplan-ui/pull/1012)) Fix breakpoint values in Tailwind config ([@spiess-demos](https://github.com/spiess-demos))
8
17
 
9
18
  ### Changed
19
+ - ([#1023](https://github.com/demos-europe/demosplan-ui/pull/1023)) BREAKING: Replace vueDraggable with vueSortable: The API for dpDraggable changed ([@salisdemos](https://github.com/salisdemos))
10
20
 
11
- - ([#1033](https://github.com/demos-europe/demosplan-ui/pull/1029)) Dependencies: move 'vue' from peerDep to devDep; add @tiptap/extension-text-style ([@sakutademos](https://github.com/sakutademos)
12
- - ([#994](https://github.com/demos-europe/demosplan-ui/pull/994)) BREAKING: Bump Yarn to v4.2.2 (again) ([@salisdemos](https://github.com/salisdemos))
21
+ ## v0.4.0 - 2024-08-21
13
22
 
14
- ### Added
15
- - ([#1029](https://github.com/demos-europe/demosplan-ui/pull/1029)) add new utility: capitalizeFirstLetter ([@sakutademos](https://github.com/sakutademos)
23
+ **Upgrade to Vue 3**
24
+ This library now emits a Vue 3 build. While it still has some Vue 2 dependencies, this is a huge step towards
25
+ full Vue 3 compatibility. Please be cautioned that this release may therefore be a bit less stable than
26
+ previous ones.
27
+
28
+ If you still find yourself requiring the Vue 2 only version, you may want to upgrade the version requirement
29
+ to `~0.3.*` in your package.json.
16
30
 
17
31
  ### Fixed
18
- - ([#1032](https://github.com/demos-europe/demosplan-ui/pull/1032)) remove max chunkSize on tus uploads ([@muellerdemos](https://github.com/muellerdemos)
32
+
33
+ - ([#995](https://github.com/demos-europe/demosplan-ui/pull/995)) Prevent cursor in editor to jump to the End of the file, when obscured text is present ([@salisdemos](https://github.com/salisdemos))
34
+ - ([#983](https://github.com/demos-europe/demosplan-ui/pull/983)) Fix issue where the project is not correctly installable. ([@spiess-demos](https://github.com/spiess-demos))
19
35
 
20
36
  ## v0.3.32 - 2024-09-23
21
37
 
38
+ ### Fixed
22
39
  - ([#1027](https://github.com/demos-europe/demosplan-ui/pull/1027)) DpEditor: transform obscure tag on update action ([@sakutademos](https://github.com/sakutademos)
23
40
  - ([#1021](https://github.com/demos-europe/demosplan-ui/pull/1021)) DpEditor: Make EditorContent accessible to the screen readers by adding the 'role' attribute ([@sakutademos](https://github.com/sakutademos)
24
41
 
@@ -46,11 +63,12 @@ Since v0.0.10, this Changelog is formatted according to the [Common Changelog][c
46
63
  ## v0.3.27 - 2024-07-30
47
64
 
48
65
  ### Fixed
66
+
49
67
  - ([#967](https://github.com/demos-europe/demosplan-ui/pull/967)) Rollback Yarn 4. It leads to conflicts with prosemirror ([@salisdemos](https://github.com/salisdemos))
50
68
 
51
69
  ## v0.3.26
52
- -
53
- - lost in space
70
+
71
+ - lost due to publishing hickups
54
72
 
55
73
  ## v0.3.25 - 2024-07-30
56
74
 
@@ -77,6 +95,10 @@ Since v0.0.10, this Changelog is formatted according to the [Common Changelog][c
77
95
 
78
96
  - ([#955](https://github.com/demos-europe/demosplan-ui/pull/955)) BREAKING: Pass headerFields-Data to tableHeader slot so the content gets rendered ([@salisdemos](https://github.com/salisdemos))
79
97
 
98
+ ## v0.3.22
99
+
100
+ - lost due to publishing hickups
101
+
80
102
  ## v0.3.21 - 2024-07-22
81
103
 
82
104
  ### Added
@@ -113,6 +135,7 @@ Since v0.0.10, this Changelog is formatted according to the [Common Changelog][c
113
135
 
114
136
  ### Changed
115
137
 
138
+ - ([#918](https://github.com/demos-europe/demosplan-ui/pull/918)) Remove Translator usages ([@ahmad-demos](https://github.com/ahmad-demos))
116
139
  - ([#900](https://github.com/demos-europe/demosplan-ui/pull/900)) Refactor: Use tailwind class for hiding elements visually instead of custom class ([@gruenbergerdemos](https://github.com/gruenbergerdemos))
117
140
  - ([#902](https://github.com/demos-europe/demosplan-ui/pull/902)) Remove !important default setting in Tailwind config ([@spiess-demos](https://github.com/spiess-demos))
118
141
 
@@ -220,7 +243,7 @@ Since v0.0.10, this Changelog is formatted according to the [Common Changelog][c
220
243
 
221
244
  - ([#783](https://github.com/demos-europe/demosplan-ui/pull/783)) Improve error validation for DpMultiselect and DpSelect components ([@sakutademos](https://github.com/sakutademos))
222
245
 
223
- ### Changed
246
+ ### Changed
224
247
 
225
248
  - ([#774](https://github.com/demos-europe/demosplan-ui/pull/774)) Improve render performance of the DpTreeList component ([@sakutademos](https://github.com/sakutademos))
226
249
  - ([#784](https://github.com/demos-europe/demosplan-ui/pull/784)) dpApi.get: Always serialize request params ([@spiess-demos](https://github.com/spiess-demos))
@@ -253,8 +276,8 @@ Since v0.0.10, this Changelog is formatted according to the [Common Changelog][c
253
276
 
254
277
  - ([#739](https://github.com/demos-europe/demosplan-ui/pull/739)) Add missing data attr for E-2-E Test ([@ahmad-demos](https://github.com/ahmad-demos))
255
278
  - ([#721](https://github.com/demos-europe/demosplan-ui/pull/721)) Pass the allowEmpty prop to vue-multiselect, which prevents the deselection of values ([@sakutademos](https://github.com/sakutademos))
256
- - ([#718](https://github.com/demos-europe/demosplan-ui/pull/718)) Add missing data attr for E-2-E Test ([@ahmad-demos](https://github.com/ahmad-demos))
257
- - ([#714](https://github.com/demos-europe/demosplan-ui/pull/714)) add csrf token to dpRpc to prevent missing csrf errors ([@muellerdemos](https://github.com/muellerdemos))
279
+ - ([#718](https://github.com/demos-europe/demosplan-ui/pull/718)) Add missing data attr for E-2-E Test ([@ahmad-demos](https://github.com/ahmad-demos))
280
+ - ([#714](https://github.com/demos-europe/demosplan-ui/pull/714)) add csrf token to dpRpc to prevent missing csrf errors ([@muellerdemos](https://github.com/muellerdemos))
258
281
  - ([#734](https://github.com/demos-europe/demosplan-ui/pull/734)) Allow mailto links in DpEditor link modal ([@spiess-demos](https://github.com/spiess-demos))
259
282
 
260
283
  ## v0.3.5-1 - 2024-02-13
@@ -606,7 +629,7 @@ Unfortunately, we had a minor log-entry merge mishap and that wasn't noticed unt
606
629
 
607
630
  ## v0.0.17 - 2023-03-23
608
631
 
609
- - ([#133](https://github.com/demos-europe/demosplan-ui/pull/133)) Import `a11y-datepicker` not as es Module anymore, to make it resolvable
632
+ - ([#133](https://github.com/demos-europe/demosplan-ui/pull/133)) Import `a11y-datepicker` not as es Module anymore, to make it resolvable
610
633
 
611
634
  ## v0.0.16 - 2023-03-15
612
635
 
package/LICENSE CHANGED
@@ -53,29 +53,3 @@ src/lib/SideNav.js
53
53
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
54
54
  See the License for the specific language governing permissions and
55
55
  limitations under the License.
56
-
57
- ------------------------------------------------------------------------------------------
58
-
59
- src/components/DpIcon/util/iconVariables.js
60
-
61
- MIT License
62
-
63
- Copyright (c) 2020 Phosphor Icons
64
-
65
- Permission is hereby granted, free of charge, to any person obtaining a copy
66
- of this software and associated documentation files (the "Software"), to deal
67
- in the Software without restriction, including without limitation the rights
68
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
69
- copies of the Software, and to permit persons to whom the Software is
70
- furnished to do so, subject to the following conditions:
71
-
72
- The above copyright notice and this permission notice shall be included in all
73
- copies or substantial portions of the Software.
74
-
75
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
76
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
77
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
78
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
79
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
80
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
81
- SOFTWARE.
File without changes
package/babel.config.js CHANGED
@@ -1,6 +1,10 @@
1
1
  module.exports = {
2
2
  presets: [
3
- ['@babel/preset-env', { targets: { node: 'current' } }],
3
+ ['@babel/preset-env', {
4
+ targets: {
5
+ node: 'current',
6
+ browsers: '> 0.25%, not dead'
7
+ } }],
4
8
  '@babel/preset-typescript',
5
9
  ['@babel/preset-react', { runtime: 'automatic' }],
6
10
  ]