tenjin-ui-kit 0.2.90 → 0.2.95
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/Jenkinsfile +3 -2
- package/dist/components/DragBox/index.js +3 -4
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/Jenkinsfile
CHANGED
|
@@ -3,7 +3,7 @@ pipeline {
|
|
|
3
3
|
|
|
4
4
|
environment {
|
|
5
5
|
|
|
6
|
-
TOKEN=
|
|
6
|
+
TOKEN= credentials('npm-publish-token-sriram')
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
|
|
@@ -20,7 +20,7 @@ pipeline {
|
|
|
20
20
|
steps {
|
|
21
21
|
dir("./") {
|
|
22
22
|
sh 'git restore package-lock.json'
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
sh 'npm version patch '
|
|
25
25
|
sh 'git remote set-url origin https://vybhavkadam:glpat-Ee-CqdVnwzURCGPzFwys@gitlab.com/yethi/react/tenjin-ui-kit.git'
|
|
26
26
|
sh 'git push origin HEAD:main --tags'
|
|
@@ -37,6 +37,7 @@ pipeline {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
dir("./dist") {
|
|
40
|
+
sh 'echo $TOKEN'
|
|
40
41
|
sh 'export NPM_TOKEN=$TOKEN'
|
|
41
42
|
sh 'npm publish'
|
|
42
43
|
}
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DragBox = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
8
|
var _reactDnd = require("react-dnd");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
10
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
11
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
12
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -13,9 +15,6 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
13
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
16
|
var DragBox = function DragBox(_ref) {
|
|
15
17
|
var name = _ref.name;
|
|
16
|
-
console.log({
|
|
17
|
-
name: name
|
|
18
|
-
});
|
|
19
18
|
var _useDrag = (0, _reactDnd.useDrag)(function () {
|
|
20
19
|
return {
|
|
21
20
|
type: "box",
|
|
@@ -34,7 +33,7 @@ var DragBox = function DragBox(_ref) {
|
|
|
34
33
|
isDragging = _useDrag2[0].isDragging,
|
|
35
34
|
drag = _useDrag2[1];
|
|
36
35
|
var opacity = isDragging ? 0.4 : 1;
|
|
37
|
-
return /*#__PURE__*/
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
38
37
|
ref: drag,
|
|
39
38
|
style: {
|
|
40
39
|
opacity: opacity
|
package/dist/package.json
CHANGED