@kineticdata/react 6.1.0 → 6.1.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.
- package/README.md +110 -110
- package/assets/task/icons/defer.svg +12 -12
- package/assets/task/icons/drag-handle.svg +3 -3
- package/assets/task/icons/filter.svg +11 -11
- package/assets/task/icons/loop.svg +10 -10
- package/assets/task/icons/plus_small.svg +5 -5
- package/assets/task/icons/routine.svg +9 -9
- package/assets/task/icons/scale-minus.svg +11 -11
- package/assets/task/icons/scale-plus.svg +13 -13
- package/assets/task/icons/start.svg +11 -11
- package/assets/task/icons/stop.svg +8 -8
- package/lib/apis/core/activity.js +4 -4
- package/lib/apis/core/attributeDefinitions.js +55 -0
- package/lib/apis/core/attributeDefinitions.test.js +7 -4
- package/lib/apis/core/authentication.js +12 -1
- package/lib/apis/core/bridgeModels.test.js +46 -23
- package/lib/apis/core/bridgedresources.js +41 -41
- package/lib/apis/core/fileResources.js +2 -6
- package/lib/apis/core/forms.js +51 -2
- package/lib/apis/core/forms.test.js +32 -19
- package/lib/apis/core/kapps.js +49 -0
- package/lib/apis/core/kapps.test.js +16 -10
- package/lib/apis/core/notices.js +7 -0
- package/lib/apis/core/securityPolicyDefinitions.test.js +7 -4
- package/lib/apis/core/space.js +18 -0
- package/lib/apis/core/space.test.js +16 -10
- package/lib/apis/core/submissionActivities.js +38 -0
- package/lib/apis/core/submissions.js +62 -0
- package/lib/apis/core/translations.test.js +126 -55
- package/lib/apis/core/userPreferences.js +59 -0
- package/lib/apis/core/webApis.js +32 -2
- package/lib/apis/core/webhooks.test.js +7 -4
- package/lib/apis/http.js +22 -11
- package/lib/apis/index.js +24 -0
- package/lib/apis/integrator/index.js +95 -20
- package/lib/components/common/AttributeSelect.js +1 -0
- package/lib/components/common/BridgeSelect.js +1 -0
- package/lib/components/common/ConnectionSelect.js +2 -1
- package/lib/components/common/FormSelect.js +1 -0
- package/lib/components/common/NodeSelect.js +1 -0
- package/lib/components/common/StaticSelect.js +1 -0
- package/lib/components/common/TeamSelect.js +1 -0
- package/lib/components/common/ToastContainer.js +3 -3
- package/lib/components/common/Typeahead.js +3 -0
- package/lib/components/common/UserSelect.js +1 -0
- package/lib/components/common/authentication/AuthenticationContainer.js +121 -55
- package/lib/components/common/preferences/PreferencesProvider.js +461 -0
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +7 -7
- package/lib/components/core/field_definition/FieldDefinitionForm.js +3 -3
- package/lib/components/core/form/FormTable.js +0 -1
- package/lib/components/core/integration/IntegrationTable.js +3 -0
- package/lib/components/core/space/SpaceForm.js +14 -14
- package/lib/components/core/submission/SubmissionActivityForm.js +79 -0
- package/lib/components/core/submission/SubmissionForm.js +12 -2
- package/lib/components/core/translation/EntryTable.js +8 -7
- package/lib/components/core/user/UserForm.js +2 -0
- package/lib/components/core/user/UserTable.js +4 -4
- package/lib/components/form/Form.js +14 -3
- package/lib/components/form/FormState.js +1 -1
- package/lib/components/form/SimpleForm.js +2 -2
- package/lib/components/index.js +68 -0
- package/lib/components/integrator/connection/ConnectionForm.js +62 -18
- package/lib/components/integrator/connection/ConnectionTable.js +5 -3
- package/lib/components/integrator/connection/config_fields/http.js +19 -19
- package/lib/components/integrator/connection/config_fields/sql.js +123 -0
- package/lib/components/integrator/integrationTypes.js +27 -5
- package/lib/components/integrator/operation/OperationForm.js +24 -4
- package/lib/components/integrator/operation/OperationTable.js +3 -5
- package/lib/components/integrator/operation/config_fields/http.js +3 -2
- package/lib/components/integrator/operation/config_fields/sql.js +81 -0
- package/lib/components/system/SystemUserForm.js +2 -0
- package/lib/components/table/Table.js +75 -15
- package/lib/components/table/Table.redux.js +296 -72
- package/lib/components/table/defaults/FilterControl.js +24 -0
- package/lib/components/table/defaults/index.js +2 -0
- package/lib/components/table/tests/Table.test.js +22 -22
- package/lib/components/table/tests/components.js +9 -2
- package/lib/components/task/builder/Connector.js +51 -41
- package/lib/components/task/builder/Node.js +25 -38
- package/lib/components/task/builder/SvgCanvas.js +3 -17
- package/lib/components/task/builder/TreeBuilder.js +1 -2
- package/lib/components/task/builder/builder.redux.js +52 -32
- package/lib/components/task/builder/helpers.js +35 -5
- package/lib/components/task/common/UsageTable.js +8 -1
- package/lib/components/task/handlers/HandlerTable.js +9 -18
- package/lib/components/task/runs/RunTable.js +6 -10
- package/lib/components/task/workflows/LinkedWorkflowTable.js +14 -9
- package/lib/components/task/workflows/WorkflowTable.js +25 -24
- package/lib/helpers/index.js +18 -2
- package/lib/index.js +2 -1
- package/lib/saga.js +4 -4
- package/lib/store.js +2 -1
- package/package.json +5 -6
- package/proxyhelper.js +201 -201
- package/CHANGELOG.md +0 -116
|
@@ -5,7 +5,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.treeReturnTask = exports.searchNodeResultDependencies = exports.replace = exports.renameDependencies = exports.parseNodeResultDependencies = exports.normalizeParameter = exports.isPointInNode = exports.
|
|
8
|
+
exports.treeReturnTask = exports.searchNodeResultDependencies = exports.replace = exports.renameDependencies = exports.parseNodeResultDependencies = exports.normalizeParameter = exports.isPointInNode = exports.isNodeMissingIntegration = exports.getRectIntersections = exports.getNodeType = exports.getNodeShape = exports.getNodeDependencies = exports.getNodeCenter = exports.getNewNodePosition = exports.getConnectorDependencies = exports.getAncestors = exports.generateSubmissionCreateTaskDefinition = exports.generateIntegrationTaskDefinition = exports.checkOmittedParametersForAdvancedHandlers = exports.buildBindings = exports.addNewTask = void 0;
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
11
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
@@ -20,8 +20,8 @@ var _store = require("../../../store");
|
|
|
20
20
|
var _languageHelpers = require("../../common/code_input/languageHelpers");
|
|
21
21
|
var _models = require("./models");
|
|
22
22
|
var _excluded = ["name", "id", "defaultValue"];
|
|
23
|
-
var isIE11 = exports.isIE11 = document.documentMode === 11;
|
|
24
23
|
var getRectIntersections = exports.getRectIntersections = function getRectIntersections(_ref) {
|
|
24
|
+
var _nodeIntersection$poi;
|
|
25
25
|
var dragging = _ref.dragging,
|
|
26
26
|
head = _ref.head,
|
|
27
27
|
headType = _ref.headType,
|
|
@@ -45,7 +45,10 @@ var getRectIntersections = exports.getRectIntersections = function getRectInters
|
|
|
45
45
|
var tailShape = getNodeShape(tailType, tail);
|
|
46
46
|
var headIntersection = _kldIntersections.Intersection.intersect(headShape, line).points[0];
|
|
47
47
|
var tailIntersection = _kldIntersections.Intersection.intersect(tailShape, line).points[0];
|
|
48
|
-
|
|
48
|
+
var nodeIntersection = _kldIntersections.Intersection.intersect(headShape, tailShape);
|
|
49
|
+
return [dragging === 'tail' ? tail : tailIntersection || tailCenter, dragging === 'head' ? head : headIntersection || headCenter,
|
|
50
|
+
// Return a boolean for whether the two nodes overlap
|
|
51
|
+
dragging ? false : (nodeIntersection === null || nodeIntersection === void 0 ? void 0 : (_nodeIntersection$poi = nodeIntersection.points) === null || _nodeIntersection$poi === void 0 ? void 0 : _nodeIntersection$poi.length) > 0];
|
|
49
52
|
};
|
|
50
53
|
var isPointInNode = exports.isPointInNode = function isPointInNode(point) {
|
|
51
54
|
return function (node) {
|
|
@@ -129,7 +132,7 @@ var flattenBindings = function flattenBindings(data) {
|
|
|
129
132
|
|
|
130
133
|
// Parses each flattened bindings string to an array of its parts
|
|
131
134
|
var parseBinding = function parseBinding(binding, parsedSoFar) {
|
|
132
|
-
var match = binding === null || binding === void 0 ? void 0 : binding.match(/^(?:(@\w+)|\[\'(
|
|
135
|
+
var match = binding === null || binding === void 0 ? void 0 : binding.match(/^(?:(@\w+)|\[\'(.+?)\'\])(.*)$/i);
|
|
133
136
|
if (match) {
|
|
134
137
|
var parsedNext = [].concat((0, _toConsumableArray2["default"])(parsedSoFar || []), [match[1] || match[2]]).filter(Boolean);
|
|
135
138
|
return match[3] ? parseBinding(match[3], parsedNext) : parsedNext;
|
|
@@ -295,9 +298,15 @@ var addNewTaskNext = function addNewTaskNext(_ref7) {
|
|
|
295
298
|
return p.id === 'operation';
|
|
296
299
|
})) === null || _node$parameters$find3 === void 0 ? void 0 : _node$parameters$find3.value;
|
|
297
300
|
if (operationId) {
|
|
301
|
+
var _node$parameters$find4;
|
|
298
302
|
(0, _store.dispatch)('TREE_LOAD_OPERATIONS', {
|
|
299
303
|
treeKey: treeKey,
|
|
300
|
-
|
|
304
|
+
operations: [{
|
|
305
|
+
id: operationId,
|
|
306
|
+
connectionId: (_node$parameters$find4 = node.parameters.find(function (p) {
|
|
307
|
+
return p.id === 'connection';
|
|
308
|
+
})) === null || _node$parameters$find4 === void 0 ? void 0 : _node$parameters$find4.value
|
|
309
|
+
}]
|
|
301
310
|
});
|
|
302
311
|
}
|
|
303
312
|
}
|
|
@@ -531,4 +540,25 @@ var checkOmittedParametersForAdvancedHandlers = exports.checkOmittedParametersFo
|
|
|
531
540
|
} else {
|
|
532
541
|
return true;
|
|
533
542
|
}
|
|
543
|
+
};
|
|
544
|
+
var isNodeMissingIntegration = exports.isNodeMissingIntegration = function isNodeMissingIntegration(node, connections) {
|
|
545
|
+
// Only check integration data if the node is an integration node
|
|
546
|
+
if (node.definitionId.startsWith("".concat(_constants.ADVANCED_HANDLER_NAME_INTEGRATION, "_v"))) {
|
|
547
|
+
var _node$parameters$find5, _node$parameters$find6, _node$parameters$find7;
|
|
548
|
+
// If connection doesn't exist in the list, return true
|
|
549
|
+
if (connections && !connections.has((_node$parameters$find5 = node.parameters.find(function (p) {
|
|
550
|
+
return p.id === 'connection';
|
|
551
|
+
})) === null || _node$parameters$find5 === void 0 ? void 0 : _node$parameters$find5.value)) {
|
|
552
|
+
return true;
|
|
553
|
+
}
|
|
554
|
+
// If operation is null, return true. Undefined is fine because it means
|
|
555
|
+
// the data has not yet been fetched, so we don't want to error yet.
|
|
556
|
+
var operation = connections === null || connections === void 0 ? void 0 : connections.getIn([(_node$parameters$find6 = node.parameters.find(function (p) {
|
|
557
|
+
return p.id === 'connection';
|
|
558
|
+
})) === null || _node$parameters$find6 === void 0 ? void 0 : _node$parameters$find6.value, 'operations', (_node$parameters$find7 = node.parameters.find(function (p) {
|
|
559
|
+
return p.id === 'operation';
|
|
560
|
+
})) === null || _node$parameters$find7 === void 0 ? void 0 : _node$parameters$find7.value]);
|
|
561
|
+
return operation === null;
|
|
562
|
+
}
|
|
563
|
+
return false;
|
|
534
564
|
};
|
|
@@ -33,12 +33,19 @@ var dataSource = function dataSource(_ref) {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
+
var RUN_TYPES = ['Tree', 'Global Routine'].map(function (v) {
|
|
37
|
+
return {
|
|
38
|
+
label: v,
|
|
39
|
+
value: v
|
|
40
|
+
};
|
|
41
|
+
});
|
|
36
42
|
var filters = function filters() {
|
|
37
43
|
return function () {
|
|
38
44
|
return [{
|
|
39
45
|
name: 'type',
|
|
40
46
|
label: 'Type',
|
|
41
|
-
type: '
|
|
47
|
+
type: 'select',
|
|
48
|
+
options: RUN_TYPES
|
|
42
49
|
}, {
|
|
43
50
|
name: 'source',
|
|
44
51
|
label: 'Source',
|
|
@@ -32,11 +32,9 @@ var dataSource = function dataSource() {
|
|
|
32
32
|
};
|
|
33
33
|
var filters = function filters() {
|
|
34
34
|
return function () {
|
|
35
|
-
return [
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
type: 'text'
|
|
39
|
-
}, {
|
|
35
|
+
return [
|
|
36
|
+
// { name: 'id', label: 'ID', type: 'text' },
|
|
37
|
+
{
|
|
40
38
|
name: 'name',
|
|
41
39
|
label: 'Name',
|
|
42
40
|
type: 'text'
|
|
@@ -51,21 +49,14 @@ var filters = function filters() {
|
|
|
51
49
|
label: 'Paused',
|
|
52
50
|
value: 'Paused'
|
|
53
51
|
}]
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
name: 'definitionName',
|
|
60
|
-
label: 'Definition Name',
|
|
61
|
-
type: 'text'
|
|
62
|
-
}, {
|
|
63
|
-
name: 'definitionVersion',
|
|
64
|
-
label: 'Definition Version',
|
|
65
|
-
type: 'text'
|
|
66
|
-
}];
|
|
52
|
+
}
|
|
53
|
+
// { name: 'definitionId', label: 'Definition ID', type: 'text' },
|
|
54
|
+
// { name: 'definitionName', label: 'Definition Name', type: 'text' },
|
|
55
|
+
// { name: 'definitionVersion', label: 'Definition Version', type: 'text' },
|
|
56
|
+
];
|
|
67
57
|
};
|
|
68
58
|
};
|
|
59
|
+
|
|
69
60
|
var columns = [{
|
|
70
61
|
title: 'Name',
|
|
71
62
|
value: 'name',
|
|
@@ -86,19 +86,15 @@ var filters = function filters() {
|
|
|
86
86
|
label: 'Source',
|
|
87
87
|
type: 'select',
|
|
88
88
|
options: sourceTypes
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
type: 'text'
|
|
93
|
-
}, {
|
|
89
|
+
},
|
|
90
|
+
// { name: 'sourceGroup', label: 'Group', type: 'text' },
|
|
91
|
+
{
|
|
94
92
|
name: 'sourceGroupFragment',
|
|
95
93
|
label: 'Group',
|
|
96
94
|
type: 'text'
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
type: 'text'
|
|
101
|
-
}, {
|
|
95
|
+
},
|
|
96
|
+
// { name: 'tree', label: 'Name', type: 'text' },
|
|
97
|
+
{
|
|
102
98
|
name: 'treeFragment',
|
|
103
99
|
label: 'Name',
|
|
104
100
|
type: 'text'
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.LinkedWorkflowTable = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
7
9
|
var _Table = require("../../table/Table");
|
|
8
10
|
var _apis = require("../../../apis");
|
|
9
11
|
var _helpers = require("../../../helpers");
|
|
@@ -13,21 +15,25 @@ var STATUS_OPTIONS = ['Active', 'Inactive', 'Paused'].map(function (v) {
|
|
|
13
15
|
value: v
|
|
14
16
|
};
|
|
15
17
|
});
|
|
16
|
-
var
|
|
18
|
+
var clientSideFilter = (0, _helpers.defineFilter)(true).startsWith('name', 'name').startsWith('event', 'event').equals('status', 'status').end();
|
|
19
|
+
var clientSide = function clientSide(object, filters) {
|
|
20
|
+
var _object$sourceGroup, _object$sourceGroup$s;
|
|
21
|
+
return clientSideFilter(object.event ? object : (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, object), {}, {
|
|
22
|
+
name: 'Legacy workflow',
|
|
23
|
+
event: "".concat((_object$sourceGroup = object.sourceGroup) === null || _object$sourceGroup === void 0 ? void 0 : (_object$sourceGroup$s = _object$sourceGroup.split(' > ')[0]) === null || _object$sourceGroup$s === void 0 ? void 0 : _object$sourceGroup$s.replace(/s?$/, ''), " ").concat(object.name)
|
|
24
|
+
}), filters);
|
|
25
|
+
};
|
|
17
26
|
var dataSource = function dataSource(_ref) {
|
|
18
27
|
var formSlug = _ref.formSlug,
|
|
19
28
|
kappSlug = _ref.kappSlug;
|
|
20
29
|
return {
|
|
21
30
|
clientSide: clientSide,
|
|
22
31
|
fn: _apis.fetchWorkflows,
|
|
23
|
-
params: function params(
|
|
32
|
+
params: function params() {
|
|
24
33
|
return [{
|
|
25
34
|
kappSlug: kappSlug,
|
|
26
35
|
formSlug: formSlug,
|
|
27
|
-
include: 'details'
|
|
28
|
-
name: paramData.filters.get('name'),
|
|
29
|
-
event: paramData.filters.get('event'),
|
|
30
|
-
status: paramData.filters.get('status')
|
|
36
|
+
include: 'details'
|
|
31
37
|
}];
|
|
32
38
|
},
|
|
33
39
|
transform: function transform(result) {
|
|
@@ -45,9 +51,8 @@ var dataSource = function dataSource(_ref) {
|
|
|
45
51
|
};
|
|
46
52
|
};
|
|
47
53
|
var filters = function filters() {
|
|
48
|
-
return function (
|
|
49
|
-
|
|
50
|
-
return sourceTypes && [{
|
|
54
|
+
return function () {
|
|
55
|
+
return [{
|
|
51
56
|
name: 'name',
|
|
52
57
|
label: 'Name',
|
|
53
58
|
type: 'text'
|
|
@@ -13,7 +13,13 @@ var STATUS_OPTIONS = ['Active', 'Inactive', 'Paused'].map(function (v) {
|
|
|
13
13
|
value: v
|
|
14
14
|
};
|
|
15
15
|
});
|
|
16
|
-
var clientSide = (0, _helpers.defineFilter)(true)
|
|
16
|
+
var clientSide = (0, _helpers.defineFilter)(true)
|
|
17
|
+
// .equals('name', 'name')
|
|
18
|
+
.startsWith('name', 'nameFragment').equals('sourceName', 'source')
|
|
19
|
+
// .equals('sourceGroup', 'sourceGroup')
|
|
20
|
+
.startsWith('sourceGroup', 'sourceGroupFragment')
|
|
21
|
+
// .startsWith('ownerEmail', 'ownerEmail')
|
|
22
|
+
.equals('status', 'status').end();
|
|
17
23
|
var dataSource = function dataSource(_ref) {
|
|
18
24
|
var alterData = _ref.alterData,
|
|
19
25
|
workflowType = _ref.workflowType,
|
|
@@ -65,40 +71,35 @@ var filterDataSources = function filterDataSources() {
|
|
|
65
71
|
}
|
|
66
72
|
};
|
|
67
73
|
};
|
|
68
|
-
var filters = function filters() {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}, {
|
|
74
|
+
var filters = function filters(_ref2) {
|
|
75
|
+
var workflowType = _ref2.workflowType;
|
|
76
|
+
return function (_ref3) {
|
|
77
|
+
var sourceTypes = _ref3.sourceTypes;
|
|
78
|
+
return sourceTypes && [
|
|
79
|
+
// { name: 'name', label: 'Name', type: 'text' },
|
|
80
|
+
{
|
|
76
81
|
name: 'nameFragment',
|
|
77
82
|
label: 'Name',
|
|
78
83
|
type: 'text'
|
|
79
|
-
},
|
|
84
|
+
},
|
|
85
|
+
// { name: 'sourceGroup', label: 'Source Group', type: 'text' },
|
|
86
|
+
workflowType === 'Tree' && {
|
|
87
|
+
name: 'sourceGroupFragment',
|
|
88
|
+
label: 'Source Group',
|
|
89
|
+
type: 'text'
|
|
90
|
+
}, workflowType === 'Tree' && {
|
|
80
91
|
name: 'sourceName',
|
|
81
92
|
label: 'Source Name',
|
|
82
93
|
type: 'select',
|
|
83
94
|
options: sourceTypes
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
type: 'text'
|
|
88
|
-
}, {
|
|
89
|
-
name: 'sourceGroupFragment',
|
|
90
|
-
label: 'Source Group',
|
|
91
|
-
type: 'text'
|
|
92
|
-
}, {
|
|
93
|
-
name: 'ownerEmail',
|
|
94
|
-
label: 'Owner Email',
|
|
95
|
-
type: 'text'
|
|
96
|
-
}, {
|
|
95
|
+
},
|
|
96
|
+
// { name: 'ownerEmail', label: 'Owner Email', type: 'text' },
|
|
97
|
+
{
|
|
97
98
|
name: 'status',
|
|
98
99
|
label: 'Status',
|
|
99
100
|
type: 'select',
|
|
100
101
|
options: STATUS_OPTIONS
|
|
101
|
-
}];
|
|
102
|
+
}].filter(Boolean);
|
|
102
103
|
};
|
|
103
104
|
};
|
|
104
105
|
var columns = [{
|
package/lib/helpers/index.js
CHANGED
|
@@ -17,11 +17,14 @@ var _exportNames = {
|
|
|
17
17
|
handleFormErrors: true,
|
|
18
18
|
INDEX_STATIC_PARTS: true,
|
|
19
19
|
TIMELINES: true,
|
|
20
|
-
MAX_PART_LENGTH: true
|
|
20
|
+
MAX_PART_LENGTH: true,
|
|
21
|
+
usePrevious: true
|
|
21
22
|
};
|
|
22
23
|
exports.splitTeamName = exports.slugify = exports.partitionListBy = exports.handleFormErrors = exports.generateKey = exports.bundle = exports.buildDefinitionId = exports.buildCodeEditorBindings = exports.buildAgentPath = exports.TIMELINES = exports.MAX_PART_LENGTH = exports.K = exports.INDEX_STATIC_PARTS = void 0;
|
|
24
|
+
exports.usePrevious = usePrevious;
|
|
23
25
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
24
26
|
var _toArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toArray"));
|
|
27
|
+
var _react = require("react");
|
|
25
28
|
var _immutable = require("immutable");
|
|
26
29
|
var _lodashEs = require("lodash-es");
|
|
27
30
|
var _SearchBuilder = require("./SearchBuilder");
|
|
@@ -204,6 +207,8 @@ var STATIC_IDENTITY_BINDINGS = [{
|
|
|
204
207
|
label: 'sessionToken'
|
|
205
208
|
}, {
|
|
206
209
|
label: 'spaceAdmin'
|
|
210
|
+
}, {
|
|
211
|
+
label: 'teams'
|
|
207
212
|
}];
|
|
208
213
|
var STATIC_FILE_BINDINGS = [{
|
|
209
214
|
label: 'folder'
|
|
@@ -414,4 +419,15 @@ var handleFormErrors = exports.handleFormErrors = function handleFormErrors(key)
|
|
|
414
419
|
};
|
|
415
420
|
var INDEX_STATIC_PARTS = exports.INDEX_STATIC_PARTS = ['closedBy', 'coreState', 'createdBy', 'handle', 'submittedBy', 'type', 'updatedBy'].sort();
|
|
416
421
|
var TIMELINES = exports.TIMELINES = ['createdAt', 'updatedAt', 'submittedAt', 'closedAt'].sort();
|
|
417
|
-
var MAX_PART_LENGTH = exports.MAX_PART_LENGTH = 10;
|
|
422
|
+
var MAX_PART_LENGTH = exports.MAX_PART_LENGTH = 10;
|
|
423
|
+
function usePrevious(value) {
|
|
424
|
+
// The ref object is a generic container whose current property is mutable ...
|
|
425
|
+
// ... and can hold any value, similar to an instance property on a class
|
|
426
|
+
var ref = (0, _react.useRef)();
|
|
427
|
+
// Store current value in ref
|
|
428
|
+
(0, _react.useEffect)(function () {
|
|
429
|
+
ref.current = value;
|
|
430
|
+
}, [value]); // Only re-run if value changes
|
|
431
|
+
// Return previous value (happens before update in useEffect above)
|
|
432
|
+
return ref.current;
|
|
433
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -90,7 +90,8 @@ var KineticLib = exports.KineticLib = function KineticLib(props) {
|
|
|
90
90
|
value: _defaults.DefaultCommonConfig.merge(_defaults2.DefaultFieldConfig).merge(_defaults3.DefaultTableConfig).merge((0, _immutable.remove)(props.components || {}, 'fields')).merge(props.components && props.components.fields)
|
|
91
91
|
}, typeof props.children === 'function' ? /*#__PURE__*/_react["default"].createElement(_AuthenticationContainer.AuthenticationContainer, {
|
|
92
92
|
skipInit: props.skipInit,
|
|
93
|
-
system: props.system
|
|
93
|
+
system: props.system,
|
|
94
|
+
preferences: props.preferences
|
|
94
95
|
}, props.children) : props.children))));
|
|
95
96
|
};
|
|
96
97
|
var history = exports.history = typeof window !== 'undefined' && window.bundle ? (0, _history.createHashHistory)() : null;
|
package/lib/saga.js
CHANGED
|
@@ -80,10 +80,10 @@ var generatorFns = {};
|
|
|
80
80
|
var runningTasks = {};
|
|
81
81
|
var pendingTasks = {};
|
|
82
82
|
|
|
83
|
-
/**
|
|
84
|
-
* Takes either a single argument which should be a saga effect that we can
|
|
85
|
-
* extract from which we can extract the name automatically. Or a pair of
|
|
86
|
-
* arguments, the name and the saga generator function.
|
|
83
|
+
/**
|
|
84
|
+
* Takes either a single argument which should be a saga effect that we can
|
|
85
|
+
* extract from which we can extract the name automatically. Or a pair of
|
|
86
|
+
* arguments, the name and the saga generator function.
|
|
87
87
|
*/
|
|
88
88
|
var regSaga = exports.regSaga = function regSaga(arg0, arg1) {
|
|
89
89
|
if (arg1) {
|
package/lib/store.js
CHANGED
|
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "runSaga", {
|
|
|
29
29
|
return _saga.runSaga;
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
exports.store = exports.selectWaiting = void 0;
|
|
32
|
+
exports.useSelector = exports.store = exports.selectWaiting = void 0;
|
|
33
33
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/regeneratorRuntime"));
|
|
34
34
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
|
35
35
|
var _react = require("react");
|
|
@@ -73,6 +73,7 @@ var connect = exports.connect = function connect() {
|
|
|
73
73
|
}
|
|
74
74
|
return _reactRedux.connect.apply(void 0, (0, _toConsumableArray2["default"])((0, _immutable.setIn)(args, [3, 'context'], context)));
|
|
75
75
|
};
|
|
76
|
+
var useSelector = exports.useSelector = (0, _reactRedux.createSelectorHook)(context);
|
|
76
77
|
var selectWaiting = exports.selectWaiting = /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function selectWaiting(selector) {
|
|
77
78
|
var value;
|
|
78
79
|
return (0, _regeneratorRuntime2["default"])().wrap(function selectWaiting$(_context) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kineticdata/react",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "A React library for the Kinetic Platform",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"prepublishOnly": "yarn build"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"axios": "
|
|
22
|
+
"axios": "1.8.3",
|
|
23
23
|
"classnames": "^2.2.6",
|
|
24
24
|
"deepequal": "^0.0.1",
|
|
25
25
|
"draft-js": "^0.11.7",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"lodash.isstring": "^4.0.1",
|
|
32
32
|
"modularscale-sass": "^3.0.8",
|
|
33
33
|
"moment": "^2.29.4",
|
|
34
|
-
"prismjs": "1.
|
|
34
|
+
"prismjs": "1.30.0",
|
|
35
35
|
"prop-types": "^15.8.1",
|
|
36
36
|
"qs": "^6.11.0",
|
|
37
37
|
"react-autosuggest": "^9.4.3",
|
|
38
38
|
"react-beautiful-dnd": "^11.0.5",
|
|
39
39
|
"react-popper": "^1.3.4",
|
|
40
40
|
"react-redux": "^8.1.3",
|
|
41
|
-
"reactstrap": "^9.2.
|
|
41
|
+
"reactstrap": "^9.2.3",
|
|
42
42
|
"redux": "^4.2.1",
|
|
43
43
|
"redux-saga": "^1.2.3"
|
|
44
44
|
},
|
|
@@ -78,6 +78,5 @@
|
|
|
78
78
|
"suiteNameTemplate": "{filepath}",
|
|
79
79
|
"classNameTemplate": "{classname}",
|
|
80
80
|
"titleTemplate": "{title}"
|
|
81
|
-
}
|
|
82
|
-
"gitHead": "8ba251942ef9bd4e37a56d680afc6ff95fde4543"
|
|
81
|
+
}
|
|
83
82
|
}
|