@panneau/core 3.0.23 → 3.0.40
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/es/contexts.js +2 -2
- package/es/index.js +2 -2
- package/es/utils.js +7 -18
- package/lib/contexts.js +2 -2
- package/lib/index.js +2 -2
- package/lib/utils.js +7 -18
- package/package.json +2 -2
package/es/contexts.js
CHANGED
|
@@ -357,11 +357,11 @@ var user = PropTypes.shape({
|
|
|
357
357
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
358
358
|
});
|
|
359
359
|
PropTypes.arrayOf(user);
|
|
360
|
-
var selectOption = PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
360
|
+
var selectOption = PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.shape({
|
|
361
361
|
value: PropTypes.any,
|
|
362
362
|
// eslint-disable-line
|
|
363
363
|
label: label
|
|
364
|
-
})]);
|
|
364
|
+
}), PropTypes.object]);
|
|
365
365
|
PropTypes.arrayOf(selectOption);
|
|
366
366
|
PropTypes.oneOf(['valid', 'invalid', 'loading', null]);
|
|
367
367
|
var formError = PropTypes.shape({
|
package/es/index.js
CHANGED
|
@@ -134,11 +134,11 @@ var user = PropTypes$1.shape({
|
|
|
134
134
|
id: PropTypes$1.oneOfType([PropTypes$1.number, PropTypes$1.string])
|
|
135
135
|
});
|
|
136
136
|
var users = PropTypes$1.arrayOf(user);
|
|
137
|
-
var selectOption = PropTypes$1.oneOfType([PropTypes$1.string, PropTypes$1.shape({
|
|
137
|
+
var selectOption = PropTypes$1.oneOfType([PropTypes$1.string, PropTypes$1.number, PropTypes$1.shape({
|
|
138
138
|
value: PropTypes$1.any,
|
|
139
139
|
// eslint-disable-line
|
|
140
140
|
label: label
|
|
141
|
-
})]);
|
|
141
|
+
}), PropTypes$1.object]);
|
|
142
142
|
var selectOptions = PropTypes$1.arrayOf(selectOption);
|
|
143
143
|
var feedback = PropTypes$1.oneOf(['valid', 'invalid', 'loading', null]);
|
|
144
144
|
var formError = PropTypes$1.shape({
|
package/es/utils.js
CHANGED
|
@@ -61,6 +61,7 @@ var createUseEvent = function createUseEvent(eventsManager) {
|
|
|
61
61
|
};
|
|
62
62
|
var createUseEvent$1 = createUseEvent;
|
|
63
63
|
|
|
64
|
+
var _copyClipboardApi, _copyExecCommand, _copyToClipboard;
|
|
64
65
|
/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
65
66
|
|
|
66
67
|
// @note vendoring this: https://github.com/feross/clipboard-copy/blob/master/index.js
|
|
@@ -70,10 +71,7 @@ function makeError() {
|
|
|
70
71
|
return new DOMException('The request is not allowed', 'NotAllowedError');
|
|
71
72
|
}
|
|
72
73
|
function copyClipboardApi(_x) {
|
|
73
|
-
return _copyClipboardApi.
|
|
74
|
-
}
|
|
75
|
-
function _copyClipboardApi() {
|
|
76
|
-
_copyClipboardApi = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(text) {
|
|
74
|
+
return (_copyClipboardApi = _copyClipboardApi || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(text) {
|
|
77
75
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
78
76
|
while (1) switch (_context.prev = _context.next) {
|
|
79
77
|
case 0:
|
|
@@ -89,14 +87,10 @@ function _copyClipboardApi() {
|
|
|
89
87
|
return _context.stop();
|
|
90
88
|
}
|
|
91
89
|
}, _callee);
|
|
92
|
-
}));
|
|
93
|
-
return _copyClipboardApi.apply(this, arguments);
|
|
90
|
+
}))).apply(this, arguments);
|
|
94
91
|
}
|
|
95
92
|
function copyExecCommand(_x2) {
|
|
96
|
-
return _copyExecCommand.
|
|
97
|
-
}
|
|
98
|
-
function _copyExecCommand() {
|
|
99
|
-
_copyExecCommand = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(text) {
|
|
93
|
+
return (_copyExecCommand = _copyExecCommand || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(text) {
|
|
100
94
|
var span, selection, range, success;
|
|
101
95
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
102
96
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -139,14 +133,10 @@ function _copyExecCommand() {
|
|
|
139
133
|
return _context2.stop();
|
|
140
134
|
}
|
|
141
135
|
}, _callee2);
|
|
142
|
-
}));
|
|
143
|
-
return _copyExecCommand.apply(this, arguments);
|
|
136
|
+
}))).apply(this, arguments);
|
|
144
137
|
}
|
|
145
138
|
function copyToClipboard(_x3) {
|
|
146
|
-
return _copyToClipboard.
|
|
147
|
-
}
|
|
148
|
-
function _copyToClipboard() {
|
|
149
|
-
_copyToClipboard = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(text) {
|
|
139
|
+
return (_copyToClipboard = _copyToClipboard || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(text) {
|
|
150
140
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
151
141
|
while (1) switch (_context3.prev = _context3.next) {
|
|
152
142
|
case 0:
|
|
@@ -174,8 +164,7 @@ function _copyToClipboard() {
|
|
|
174
164
|
return _context3.stop();
|
|
175
165
|
}
|
|
176
166
|
}, _callee3, null, [[0, 5], [7, 12]]);
|
|
177
|
-
}));
|
|
178
|
-
return _copyToClipboard.apply(this, arguments);
|
|
167
|
+
}))).apply(this, arguments);
|
|
179
168
|
}
|
|
180
169
|
|
|
181
170
|
var flattenComponents = function flattenComponents(components) {
|
package/lib/contexts.js
CHANGED
|
@@ -372,11 +372,11 @@ var user = PropTypes__default["default"].shape({
|
|
|
372
372
|
id: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string])
|
|
373
373
|
});
|
|
374
374
|
PropTypes__default["default"].arrayOf(user);
|
|
375
|
-
var selectOption = PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].shape({
|
|
375
|
+
var selectOption = PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number, PropTypes__default["default"].shape({
|
|
376
376
|
value: PropTypes__default["default"].any,
|
|
377
377
|
// eslint-disable-line
|
|
378
378
|
label: label
|
|
379
|
-
})]);
|
|
379
|
+
}), PropTypes__default["default"].object]);
|
|
380
380
|
PropTypes__default["default"].arrayOf(selectOption);
|
|
381
381
|
PropTypes__default["default"].oneOf(['valid', 'invalid', 'loading', null]);
|
|
382
382
|
var formError = PropTypes__default["default"].shape({
|
package/lib/index.js
CHANGED
|
@@ -156,11 +156,11 @@ var user = PropTypes__default["default"].shape({
|
|
|
156
156
|
id: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string])
|
|
157
157
|
});
|
|
158
158
|
var users = PropTypes__default["default"].arrayOf(user);
|
|
159
|
-
var selectOption = PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].shape({
|
|
159
|
+
var selectOption = PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number, PropTypes__default["default"].shape({
|
|
160
160
|
value: PropTypes__default["default"].any,
|
|
161
161
|
// eslint-disable-line
|
|
162
162
|
label: label
|
|
163
|
-
})]);
|
|
163
|
+
}), PropTypes__default["default"].object]);
|
|
164
164
|
var selectOptions = PropTypes__default["default"].arrayOf(selectOption);
|
|
165
165
|
var feedback = PropTypes__default["default"].oneOf(['valid', 'invalid', 'loading', null]);
|
|
166
166
|
var formError = PropTypes__default["default"].shape({
|
package/lib/utils.js
CHANGED
|
@@ -82,6 +82,7 @@ var createUseEvent = function createUseEvent(eventsManager) {
|
|
|
82
82
|
};
|
|
83
83
|
var createUseEvent$1 = createUseEvent;
|
|
84
84
|
|
|
85
|
+
var _copyClipboardApi, _copyExecCommand, _copyToClipboard;
|
|
85
86
|
/*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
86
87
|
|
|
87
88
|
// @note vendoring this: https://github.com/feross/clipboard-copy/blob/master/index.js
|
|
@@ -91,10 +92,7 @@ function makeError() {
|
|
|
91
92
|
return new DOMException('The request is not allowed', 'NotAllowedError');
|
|
92
93
|
}
|
|
93
94
|
function copyClipboardApi(_x) {
|
|
94
|
-
return _copyClipboardApi.
|
|
95
|
-
}
|
|
96
|
-
function _copyClipboardApi() {
|
|
97
|
-
_copyClipboardApi = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"]().mark(function _callee(text) {
|
|
95
|
+
return (_copyClipboardApi = _copyClipboardApi || _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"]().mark(function _callee(text) {
|
|
98
96
|
return _regeneratorRuntime__default["default"]().wrap(function _callee$(_context) {
|
|
99
97
|
while (1) switch (_context.prev = _context.next) {
|
|
100
98
|
case 0:
|
|
@@ -110,14 +108,10 @@ function _copyClipboardApi() {
|
|
|
110
108
|
return _context.stop();
|
|
111
109
|
}
|
|
112
110
|
}, _callee);
|
|
113
|
-
}));
|
|
114
|
-
return _copyClipboardApi.apply(this, arguments);
|
|
111
|
+
}))).apply(this, arguments);
|
|
115
112
|
}
|
|
116
113
|
function copyExecCommand(_x2) {
|
|
117
|
-
return _copyExecCommand.
|
|
118
|
-
}
|
|
119
|
-
function _copyExecCommand() {
|
|
120
|
-
_copyExecCommand = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"]().mark(function _callee2(text) {
|
|
114
|
+
return (_copyExecCommand = _copyExecCommand || _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"]().mark(function _callee2(text) {
|
|
121
115
|
var span, selection, range, success;
|
|
122
116
|
return _regeneratorRuntime__default["default"]().wrap(function _callee2$(_context2) {
|
|
123
117
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -160,14 +154,10 @@ function _copyExecCommand() {
|
|
|
160
154
|
return _context2.stop();
|
|
161
155
|
}
|
|
162
156
|
}, _callee2);
|
|
163
|
-
}));
|
|
164
|
-
return _copyExecCommand.apply(this, arguments);
|
|
157
|
+
}))).apply(this, arguments);
|
|
165
158
|
}
|
|
166
159
|
function copyToClipboard(_x3) {
|
|
167
|
-
return _copyToClipboard.
|
|
168
|
-
}
|
|
169
|
-
function _copyToClipboard() {
|
|
170
|
-
_copyToClipboard = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"]().mark(function _callee3(text) {
|
|
160
|
+
return (_copyToClipboard = _copyToClipboard || _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"]().mark(function _callee3(text) {
|
|
171
161
|
return _regeneratorRuntime__default["default"]().wrap(function _callee3$(_context3) {
|
|
172
162
|
while (1) switch (_context3.prev = _context3.next) {
|
|
173
163
|
case 0:
|
|
@@ -195,8 +185,7 @@ function _copyToClipboard() {
|
|
|
195
185
|
return _context3.stop();
|
|
196
186
|
}
|
|
197
187
|
}, _callee3, null, [[0, 5], [7, 12]]);
|
|
198
|
-
}));
|
|
199
|
-
return _copyToClipboard.apply(this, arguments);
|
|
188
|
+
}))).apply(this, arguments);
|
|
200
189
|
}
|
|
201
190
|
|
|
202
191
|
var flattenComponents = function flattenComponents(components) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.40",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"publishConfig": {
|
|
112
112
|
"access": "public"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "b5e21c4c2f1e455c3bb627e987968e3ab148961b"
|
|
115
115
|
}
|