58 unregisterPlugin: () => (/* reexport */ unregisterPlugin), |
58 unregisterPlugin: () => (/* reexport */ unregisterPlugin), |
59 usePluginContext: () => (/* reexport */ usePluginContext), |
59 usePluginContext: () => (/* reexport */ usePluginContext), |
60 withPluginContext: () => (/* reexport */ withPluginContext) |
60 withPluginContext: () => (/* reexport */ withPluginContext) |
61 }); |
61 }); |
62 |
62 |
63 ;// CONCATENATED MODULE: ./node_modules/memize/dist/index.js |
63 ;// ./node_modules/memize/dist/index.js |
64 /** |
64 /** |
65 * Memize options object. |
65 * Memize options object. |
66 * |
66 * |
67 * @typedef MemizeOptions |
67 * @typedef MemizeOptions |
68 * |
68 * |
220 return memoized; |
220 return memoized; |
221 } |
221 } |
222 |
222 |
223 |
223 |
224 |
224 |
225 ;// CONCATENATED MODULE: external ["wp","element"] |
225 ;// external ["wp","element"] |
226 const external_wp_element_namespaceObject = window["wp"]["element"]; |
226 const external_wp_element_namespaceObject = window["wp"]["element"]; |
227 ;// CONCATENATED MODULE: external ["wp","hooks"] |
227 ;// external ["wp","hooks"] |
228 const external_wp_hooks_namespaceObject = window["wp"]["hooks"]; |
228 const external_wp_hooks_namespaceObject = window["wp"]["hooks"]; |
229 ;// CONCATENATED MODULE: external ["wp","isShallowEqual"] |
229 ;// external ["wp","isShallowEqual"] |
230 const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"]; |
230 const external_wp_isShallowEqual_namespaceObject = window["wp"]["isShallowEqual"]; |
231 var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject); |
231 var external_wp_isShallowEqual_default = /*#__PURE__*/__webpack_require__.n(external_wp_isShallowEqual_namespaceObject); |
232 ;// CONCATENATED MODULE: external ["wp","compose"] |
232 ;// external ["wp","compose"] |
233 const external_wp_compose_namespaceObject = window["wp"]["compose"]; |
233 const external_wp_compose_namespaceObject = window["wp"]["compose"]; |
234 ;// CONCATENATED MODULE: external "ReactJSXRuntime" |
234 ;// external ["wp","deprecated"] |
|
235 const external_wp_deprecated_namespaceObject = window["wp"]["deprecated"]; |
|
236 var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject); |
|
237 ;// external "ReactJSXRuntime" |
235 const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"]; |
238 const external_ReactJSXRuntime_namespaceObject = window["ReactJSXRuntime"]; |
236 ;// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/plugin-context/index.js |
239 ;// ./node_modules/@wordpress/plugins/build-module/components/plugin-context/index.js |
237 /** |
240 /** |
238 * WordPress dependencies |
241 * WordPress dependencies |
239 */ |
242 */ |
|
243 |
240 |
244 |
241 |
245 |
242 |
246 |
243 /** |
247 /** |
244 * Internal dependencies |
248 * Internal dependencies |
261 |
265 |
262 /** |
266 /** |
263 * A Higher Order Component used to inject Plugin context to the |
267 * A Higher Order Component used to inject Plugin context to the |
264 * wrapped component. |
268 * wrapped component. |
265 * |
269 * |
|
270 * @deprecated 6.8.0 Use `usePluginContext` hook instead. |
|
271 * |
266 * @param mapContextToProps Function called on every context change, |
272 * @param mapContextToProps Function called on every context change, |
267 * expected to return object of props to |
273 * expected to return object of props to |
268 * merge with the component's own props. |
274 * merge with the component's own props. |
269 * |
275 * |
270 * @return {Component} Enhanced component with injected context as props. |
276 * @return {Component} Enhanced component with injected context as props. |
271 */ |
277 */ |
272 const withPluginContext = mapContextToProps => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(OriginalComponent => { |
278 const withPluginContext = mapContextToProps => (0,external_wp_compose_namespaceObject.createHigherOrderComponent)(OriginalComponent => { |
|
279 external_wp_deprecated_default()('wp.plugins.withPluginContext', { |
|
280 since: '6.8.0', |
|
281 alternative: 'wp.plugins.usePluginContext' |
|
282 }); |
273 return props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Context.Consumer, { |
283 return props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Context.Consumer, { |
274 children: context => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OriginalComponent, { |
284 children: context => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(OriginalComponent, { |
275 ...props, |
285 ...props, |
276 ...mapContextToProps(context, props) |
286 ...mapContextToProps(context, props) |
277 }) |
287 }) |
278 }); |
288 }); |
279 }, 'withPluginContext'); |
289 }, 'withPluginContext'); |
280 |
290 |
281 ;// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/components/plugin-error-boundary/index.js |
291 ;// ./node_modules/@wordpress/plugins/build-module/components/plugin-error-boundary/index.js |
282 /** |
292 /** |
283 * WordPress dependencies |
293 * WordPress dependencies |
284 */ |
294 */ |
285 |
295 |
286 class PluginErrorBoundary extends external_wp_element_namespaceObject.Component { |
296 class PluginErrorBoundary extends external_wp_element_namespaceObject.Component { |
334 d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z" |
344 d: "M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z" |
335 }) |
345 }) |
336 }); |
346 }); |
337 /* harmony default export */ const library_plugins = (plugins); |
347 /* harmony default export */ const library_plugins = (plugins); |
338 |
348 |
339 ;// CONCATENATED MODULE: ./node_modules/@wordpress/plugins/build-module/api/index.js |
349 ;// ./node_modules/@wordpress/plugins/build-module/api/index.js |
340 /* eslint no-console: [ 'error', { allow: [ 'error' ] } ] */ |
350 /* eslint no-console: [ 'error', { allow: [ 'error' ] } ] */ |
341 /** |
351 /** |
342 * External dependencies |
352 * External dependencies |
343 */ |
353 */ |
344 |
354 |