@panneau/core 3.0.22 → 3.0.36
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/utils.js +7 -18
- package/lib/utils.js +7 -18
- package/package.json +3 -3
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/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.36",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
|
88
88
|
"@fortawesome/free-solid-svg-icons": "^5.15.3",
|
|
89
89
|
"@fortawesome/react-fontawesome": "^0.1.14",
|
|
90
|
-
"bootstrap": "^5.3.
|
|
90
|
+
"bootstrap": "^5.3.1",
|
|
91
91
|
"change-case": "^4.1.2",
|
|
92
92
|
"classnames": "^2.2.6",
|
|
93
93
|
"css-mediaquery": "^0.1.2",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"publishConfig": {
|
|
112
112
|
"access": "public"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "24b527617a310b19a49938f07b4e45b22dea14ed"
|
|
115
115
|
}
|