@oliasoft-open-source/react-ui-library 1.0.0 → 2.0.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/.gitlab-ci.yml
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
image: node:18
|
|
2
|
+
|
|
3
|
+
stages:
|
|
4
|
+
- test
|
|
5
|
+
- publish
|
|
6
|
+
|
|
1
7
|
test:
|
|
2
|
-
image: node:18
|
|
3
8
|
stage: test
|
|
4
9
|
only:
|
|
5
10
|
- merge_requests
|
|
@@ -14,7 +19,7 @@ cache:
|
|
|
14
19
|
- public/
|
|
15
20
|
|
|
16
21
|
pages:
|
|
17
|
-
|
|
22
|
+
stage: publish
|
|
18
23
|
script:
|
|
19
24
|
- npm install
|
|
20
25
|
- npm run build
|
|
@@ -25,21 +30,10 @@ pages:
|
|
|
25
30
|
only:
|
|
26
31
|
- master
|
|
27
32
|
|
|
28
|
-
publish:
|
|
29
|
-
stage: publish
|
|
30
|
-
only:
|
|
31
|
-
- tags
|
|
32
|
-
script:
|
|
33
|
-
- npm run ci-publish
|
|
34
|
-
|
|
35
33
|
publish:
|
|
36
34
|
stage: publish
|
|
37
35
|
only:
|
|
38
36
|
- master
|
|
39
37
|
script:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
- echo '@oliasoft:registry=https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/npm/' >>.npmrc
|
|
43
|
-
-
|
|
44
|
-
- npm config set -- '//gitlab.com/api/v4/projects/<your_project_id>/packages/npm/:_authToken' "<your_token>"
|
|
45
|
-
- npm publish --access public
|
|
38
|
+
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
|
39
|
+
- npm publish
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/react-ui-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Reusable UI components for React projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
},
|
|
107
107
|
"dependencies": {
|
|
108
108
|
"@babel/polyfill": "^7.8.7",
|
|
109
|
+
"@infinium/react-keyboard-event-handler": "^1.5.8",
|
|
109
110
|
"@mdx-js/loader": "^1.6.22",
|
|
110
111
|
"@mdx-js/react": "^1.6.22",
|
|
111
112
|
"@minoru/react-dnd-treeview": "^1.6.1",
|
|
@@ -124,7 +125,6 @@
|
|
|
124
125
|
"react-faux-dom": "^4.5.0",
|
|
125
126
|
"react-icons": "^4.2.0",
|
|
126
127
|
"react-infinite-scroll-component": "^6.1.0",
|
|
127
|
-
"react-keyboard-event-handler": "^1.5.4",
|
|
128
128
|
"react-laag": "^2.0.3",
|
|
129
129
|
"react-router-dom": "^5.3.0",
|
|
130
130
|
"react-svg": "^14.0.12",
|
|
@@ -3,7 +3,7 @@ import React, { useRef, useReducer, useEffect, useContext } from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useLayer, mergeRefs } from 'react-laag';
|
|
5
5
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
6
|
-
import KeyboardEventHandler from 'react-keyboard-event-handler';
|
|
6
|
+
import KeyboardEventHandler from '@infinium/react-keyboard-event-handler';
|
|
7
7
|
import { useFocus } from '../../../hooks';
|
|
8
8
|
import { placementOptions } from './layer/placementOptions';
|
|
9
9
|
import { Layer } from './layer/layer';
|