@decisiv/ui-components 2.0.1-alpha.134 → 2.0.1-alpha.135
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/lib/components/Popover/index.d.ts.map +1 -1
- package/lib/components/Popover/index.js +6 -3
- package/lib/components/Popover/schema.d.ts.map +1 -1
- package/lib/components/Popover/schema.js +27 -20
- package/lib/components/Popover/types.d.ts +1 -0
- package/lib/components/Popover/types.d.ts.map +1 -1
- package/lib/components/Tooltip/index.d.ts.map +1 -1
- package/lib/components/Tooltip/index.js +3 -13
- package/lib/components/Tooltip/schema.d.ts +3 -0
- package/lib/components/Tooltip/schema.d.ts.map +1 -0
- package/lib/components/Tooltip/schema.js +29 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAUN,MAAM,OAAO,CAAC;AAWf,OAAc,EAAE,WAAW,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,SAAS,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,UAAU,IAAI,cAAc,EAC5B,WAAW,IAAI,eAAe,EAE9B,SAAS,IAAI,aAAa,EAC1B,YAAY,IAAI,SAAS,EACzB,MAAM,IAAI,aAAa,EACvB,cAAc,IAAI,kBAAkB,EACpC,mBAAmB,IAAI,uBAAuB,EAE/C,MAAM,SAAS,CAAC;AAGjB,oBAAY,UAAU,GAAG,cAAc,CAAC;AACxC,oBAAY,WAAW,GAAG,eAAe,CAAC;AAC1C,oBAAY,WAAW,GAAG,eAAe,CAAC;AAC1C,oBAAY,SAAS,GAAG,aAAa,CAAC;AACtC,oBAAY,YAAY,GAAG,SAAS,CAAC;AACrC,oBAAY,MAAM,GAAG,aAAa,CAAC;AACnC,oBAAY,cAAc,GAAG,kBAAkB,CAAC;AAChD,oBAAY,mBAAmB,GAAG,uBAAuB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAUN,MAAM,OAAO,CAAC;AAWf,OAAc,EAAE,WAAW,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,SAAS,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,UAAU,IAAI,cAAc,EAC5B,WAAW,IAAI,eAAe,EAE9B,SAAS,IAAI,aAAa,EAC1B,YAAY,IAAI,SAAS,EACzB,MAAM,IAAI,aAAa,EACvB,cAAc,IAAI,kBAAkB,EACpC,mBAAmB,IAAI,uBAAuB,EAE/C,MAAM,SAAS,CAAC;AAGjB,oBAAY,UAAU,GAAG,cAAc,CAAC;AACxC,oBAAY,WAAW,GAAG,eAAe,CAAC;AAC1C,oBAAY,WAAW,GAAG,eAAe,CAAC;AAC1C,oBAAY,SAAS,GAAG,aAAa,CAAC;AACtC,oBAAY,YAAY,GAAG,SAAS,CAAC;AACrC,oBAAY,MAAM,GAAG,aAAa,CAAC;AACnC,oBAAY,cAAc,GAAG,kBAAkB,CAAC;AAChD,oBAAY,mBAAmB,GAAG,uBAAuB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AA+PnC,QAAA,MAAM,cAAc,mFAAsB,CAAC;AAkD3C,eAAe,cAAc,CAAC"}
|
|
@@ -85,12 +85,13 @@ var modifiers = {
|
|
|
85
85
|
var Popover = function Popover(props, instanceRef) {
|
|
86
86
|
var alwaysRender = props.alwaysRender,
|
|
87
87
|
arrowColor = props.arrowColor,
|
|
88
|
+
borderRadius = props.borderRadius,
|
|
88
89
|
children = props.children,
|
|
89
90
|
containerSelector = props.containerSelector,
|
|
90
91
|
_props$contentRole = props.contentRole,
|
|
91
92
|
contentRole = _props$contentRole === void 0 ? 'dialog' : _props$contentRole,
|
|
92
93
|
defaultVisible = props.defaultVisible,
|
|
93
|
-
|
|
94
|
+
enabled = props.enabled,
|
|
94
95
|
_props$hideOnClickOut = props.hideOnClickOutside,
|
|
95
96
|
hideOnClickOutside = _props$hideOnClickOut === void 0 ? true : _props$hideOnClickOut,
|
|
96
97
|
_props$hideOnESC = props.hideOnESC,
|
|
@@ -106,7 +107,7 @@ var Popover = function Popover(props, instanceRef) {
|
|
|
106
107
|
target = props.target,
|
|
107
108
|
visible = props.visible,
|
|
108
109
|
zIndex = props.zIndex,
|
|
109
|
-
rest = _objectWithoutProperties(props, ["alwaysRender", "arrowColor", "children", "containerSelector", "contentRole", "defaultVisible", "
|
|
110
|
+
rest = _objectWithoutProperties(props, ["alwaysRender", "arrowColor", "borderRadius", "children", "containerSelector", "contentRole", "defaultVisible", "enabled", "hideOnClickOutside", "hideOnESC", "id", "manageEvents", "onHide", "onRequestHide", "onShow", "placement", "showArrow", "target", "visible", "zIndex"]);
|
|
110
111
|
|
|
111
112
|
var contentRef = (0, _react.useRef)(null);
|
|
112
113
|
var internalNodeRef = (0, _react.useRef)(null);
|
|
@@ -286,7 +287,7 @@ var Popover = function Popover(props, instanceRef) {
|
|
|
286
287
|
return target(data);
|
|
287
288
|
}), targetType === _types.TargetType.Element && (0, _react.cloneElement)(target, _objectSpread({
|
|
288
289
|
ref: internalNodeRef
|
|
289
|
-
}, ariaAttributes)), (alwaysRender || isVisible) && (containerSelector === 'parent' ?
|
|
290
|
+
}, ariaAttributes)), enabled && (alwaysRender || isVisible) && (containerSelector === 'parent' ?
|
|
290
291
|
/* istanbul ignore next */
|
|
291
292
|
popper : createPortal(popper, containerSelector)));
|
|
292
293
|
};
|
|
@@ -295,6 +296,7 @@ var PopoverWithRef = (0, _react.forwardRef)(Popover); // @ts-ignore
|
|
|
295
296
|
|
|
296
297
|
PopoverWithRef.propTypes = {
|
|
297
298
|
id: _propTypes.default.string,
|
|
299
|
+
enabled: _propTypes.default.bool,
|
|
298
300
|
onShow: _propTypes.default.func,
|
|
299
301
|
onHide: _propTypes.default.func,
|
|
300
302
|
target: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.element, _propTypes.default.shape({
|
|
@@ -319,6 +321,7 @@ PopoverWithRef.propTypes = {
|
|
|
319
321
|
};
|
|
320
322
|
PopoverWithRef.defaultProps = {
|
|
321
323
|
alwaysRender: false,
|
|
324
|
+
enabled: true,
|
|
322
325
|
showArrow: true,
|
|
323
326
|
placement: 'bottom'
|
|
324
327
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAA8C,CAAC;AAoG3D,eAAe,MAAM,CAAC"}
|
|
@@ -11,26 +11,33 @@ var _reactDesc = require("react-desc");
|
|
|
11
11
|
var schema = (0, _reactDesc.describe)({
|
|
12
12
|
displayName: 'ConfigProvider'
|
|
13
13
|
});
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
14
|
+
|
|
15
|
+
schema.makePropTypes = function () {
|
|
16
|
+
var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'popover';
|
|
17
|
+
return {
|
|
18
|
+
id: _reactDesc.PropTypes.string.description("A unique identifier for the ".concat(component, ". Auto generated if none provided.")),
|
|
19
|
+
ref: _reactDesc.PropTypes.string.description("A React Ref that will be set to the ".concat(component, " instance. See notes below.")),
|
|
20
|
+
target: _reactDesc.PropTypes.any.description("The element the ".concat(component, " will point to. See usage notes above.")).format('Element, Ref or function').isRequired,
|
|
21
|
+
children: _reactDesc.PropTypes.any.description("What should be rendered inside the ".concat(component, ". See notes below.")).format('React node or function').isRequired,
|
|
22
|
+
enabled: _reactDesc.PropTypes.bool.description("If `false` the ".concat(component, " will never be shown; only its target will be rendered.")),
|
|
23
|
+
placement: _reactDesc.PropTypes.string.description("The preferred side of the target the ".concat(component, " should attach to. See notes below.")).defaultValue('bottom'),
|
|
24
|
+
visible: _reactDesc.PropTypes.bool.description("Whether or not the ".concat(component, " should be visible. Setting this prop makes the ").concat(component, " a \"controlled\" component.")),
|
|
25
|
+
defaultVisible: _reactDesc.PropTypes.bool.description("Whether or not the ".concat(component, " should be visible when first rendered.")),
|
|
26
|
+
alwaysRender: _reactDesc.PropTypes.bool.description("If true, the ".concat(component, " window will be hidden instead of destroyed when closed. Useful if the ").concat(component, " window needs to maintain state.")),
|
|
27
|
+
showArrow: _reactDesc.PropTypes.bool.description('Whether or not to show an arrow pointing to the target.').defaultValue(true),
|
|
28
|
+
borderRadius: _reactDesc.PropTypes.string.description("Applies a custom border radius value to the ".concat(component, " content.")),
|
|
29
|
+
arrowColor: _reactDesc.PropTypes.string.description('The color of the arrow. See notes below.'),
|
|
30
|
+
manageEvents: _reactDesc.PropTypes.string.description('The type of events that should be automatically attached to the target. Only applied if `visible` is `undefined`.').format('click,hover,false'),
|
|
31
|
+
containerSelector: _reactDesc.PropTypes.string.description("A CSS selector to the element where the ".concat(component, "s should be rendered in, or \"parent\" to render the ").concat(component, " in-place.")).defaultValue('body'),
|
|
32
|
+
hideOnESC: _reactDesc.PropTypes.bool.description("Whether or not to close the ".concat(component, " when the user presses the \"Escape\" key. No effect when `visible` is not `undefined`.")).defaultValue('true'),
|
|
33
|
+
hideOnClickOutside: _reactDesc.PropTypes.bool.description("Whether or not to close the ".concat(component, " when the user clicks outside the ").concat(component, ". No effect when `visible` is not `undefined`.")).defaultValue('true'),
|
|
34
|
+
zIndex: _reactDesc.PropTypes.bool.description("The css `z-index` value to apply to the ".concat(component, " content wrapper. Is set to `auto` when not provided.")),
|
|
35
|
+
onShow: _reactDesc.PropTypes.func.description("A function called when the ".concat(component, " becomes visible. Only called if `visible` is `undefined`.")),
|
|
36
|
+
onHide: _reactDesc.PropTypes.func.description("A function called when the ".concat(component, " becomes hidden. Only called if `visible` is `undefined`.")),
|
|
37
|
+
onRequestHide: _reactDesc.PropTypes.func.description("A function called if `visible` is not `undefined` and when the user clicks outside the ".concat(component, " or presses the \"Escape\" key."))
|
|
38
|
+
};
|
|
34
39
|
};
|
|
40
|
+
|
|
41
|
+
schema.propTypes = schema.makePropTypes();
|
|
35
42
|
var _default = schema;
|
|
36
43
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,oBAAY,IAAI,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;AAEtC,oBAAY,SAAS,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AAElD,oBAAY,IAAI,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AACvD,oBAAY,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;AAExC,oBAAY,gBAAgB,GAAG,MAAM,IAAI,CAAC;AAE1C,MAAM,WAAW,iBAAiB;I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,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":"AAGA,OAAc,EAAO,sBAAsB,EAAc,MAAM,OAAO,CAAC;AAOvE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":"AAGA,OAAc,EAAO,sBAAsB,EAAc,MAAM,OAAO,CAAC;AAOvE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAK7D,OAAgB,EACd,UAAU,EACV,YAAY,EACZ,SAAS,IAAI,aAAa,EAC1B,WAAW,IAAI,UAAU,EAC1B,MAAM,YAAY,CAAC;AAGpB,oBAAY,WAAW,GAAG,UAAU,CAAC;AACrC,oBAAY,SAAS,GAAG,aAAa,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAuCD,QAAA,MAAM,cAAc,EAAE,sBAAsB,CAC1C,WAAW,EACX,YAAY,CACS,CAAC;AAUxB,eAAe,cAAc,CAAC"}
|
|
@@ -11,12 +11,8 @@ Object.defineProperty(exports, "placements", {
|
|
|
11
11
|
});
|
|
12
12
|
exports.default = void 0;
|
|
13
13
|
|
|
14
|
-
var _omit = _interopRequireDefault(require("lodash/omit"));
|
|
15
|
-
|
|
16
14
|
var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
|
|
17
15
|
|
|
18
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
|
-
|
|
20
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
21
17
|
|
|
22
18
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
@@ -27,6 +23,8 @@ var _color = _interopRequireDefault(require("../../modifiers/color"));
|
|
|
27
23
|
|
|
28
24
|
var _useUniqueId = _interopRequireDefault(require("../../utils/useUniqueId"));
|
|
29
25
|
|
|
26
|
+
var _schema = _interopRequireDefault(require("./schema"));
|
|
27
|
+
|
|
30
28
|
var _Popover = _interopRequireWildcard(require("../Popover"));
|
|
31
29
|
|
|
32
30
|
var _Typography = require("../Typography");
|
|
@@ -35,12 +33,6 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
35
33
|
|
|
36
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
35
|
|
|
38
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { keys.push.apply(keys, Object.getOwnPropertySymbols(object)); } if (enumerableOnly) keys = keys.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); return keys; }
|
|
39
|
-
|
|
40
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
41
|
-
|
|
42
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
43
|
-
|
|
44
36
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
45
37
|
|
|
46
38
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -74,9 +66,7 @@ var Tooltip = function Tooltip(_ref, ref) {
|
|
|
74
66
|
|
|
75
67
|
var TooltipWithRef = (0, _react.forwardRef)(Tooltip); // @ts-ignore
|
|
76
68
|
|
|
77
|
-
TooltipWithRef.propTypes =
|
|
78
|
-
children: _propTypes.default.string.isRequired
|
|
79
|
-
}); // @ts-ignore
|
|
69
|
+
TooltipWithRef.propTypes = _schema.default.propTypes; // @ts-ignore
|
|
80
70
|
|
|
81
71
|
TooltipWithRef.defaultProps = _Popover.default.defaultProps;
|
|
82
72
|
TooltipWithRef.displayName = 'Tooltip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/schema.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM,KAAuC,CAAC;AAapD,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _reactDesc = require("react-desc");
|
|
9
|
+
|
|
10
|
+
var _omit = _interopRequireDefault(require("lodash/omit"));
|
|
11
|
+
|
|
12
|
+
var _schema = _interopRequireDefault(require("../Popover/schema"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { keys.push.apply(keys, Object.getOwnPropertySymbols(object)); } if (enumerableOnly) keys = keys.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); return keys; }
|
|
17
|
+
|
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
19
|
+
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
22
|
+
var schema = (0, _reactDesc.describe)({
|
|
23
|
+
displayName: 'Tooltip'
|
|
24
|
+
});
|
|
25
|
+
schema.propTypes = _objectSpread({}, (0, _omit.default)(_schema.default.makePropTypes('tooltip'), ['children', 'arrowColor', 'hideOnClickOutside']), {
|
|
26
|
+
children: _reactDesc.PropTypes.string.description('The text to be displayed inside the tooltip.').isRequired
|
|
27
|
+
});
|
|
28
|
+
var _default = schema;
|
|
29
|
+
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decisiv/ui-components",
|
|
3
|
-
"version": "2.0.1-alpha.
|
|
3
|
+
"version": "2.0.1-alpha.135+3dc223a",
|
|
4
4
|
"description": "Decisiv's design system React components",
|
|
5
5
|
"author": "Decisiv UI Development Team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
73
|
"private": false,
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "3dc223ac9ff20224bfb207b121b9e948382a923a"
|
|
75
75
|
}
|