Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
import * as __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__ from "@wordpress/interactivity";
|
|
|
|
/******/ // The require scope
|
|
|
|
/******/ var __webpack_require__ = {};
|
|
|
|
/******/
|
|
|
|
/************************************************************************/
|
|
|
|
/******/ /* webpack/runtime/define property getters */
|
2024-01-31 07:59:56 -05:00
|
|
|
/******/ (() => {
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
/******/ // define getter functions for harmony exports
|
2024-01-31 07:59:56 -05:00
|
|
|
/******/ __webpack_require__.d = (exports, definition) => {
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
/******/ for(var key in definition) {
|
|
|
|
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
|
|
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
|
|
/******/ }
|
|
|
|
/******/ }
|
|
|
|
/******/ };
|
2024-01-31 07:59:56 -05:00
|
|
|
/******/ })();
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
/******/
|
|
|
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
2024-01-31 07:59:56 -05:00
|
|
|
/******/ (() => {
|
|
|
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
|
|
/******/ })();
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
/******/
|
|
|
|
/************************************************************************/
|
|
|
|
var __webpack_exports__ = {};
|
2022-04-11 08:04:30 -04:00
|
|
|
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
;// CONCATENATED MODULE: external "@wordpress/interactivity"
|
|
|
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
|
|
var y = x => () => x
|
2024-01-31 07:59:56 -05:00
|
|
|
const interactivity_namespaceObject = x({ ["store"]: () => __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__.store });
|
2023-06-27 10:24:19 -04:00
|
|
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/utils/index.js
|
2021-07-28 06:06:59 -04:00
|
|
|
/**
|
|
|
|
* Uses a combination of user agent matching and feature detection to determine whether
|
|
|
|
* the current browser supports rendering PDFs inline.
|
|
|
|
*
|
|
|
|
* @return {boolean} Whether or not the browser supports inline PDFs.
|
|
|
|
*/
|
|
|
|
const browserSupportsPdfs = () => {
|
|
|
|
// Most mobile devices include "Mobi" in their UA.
|
|
|
|
if (window.navigator.userAgent.indexOf('Mobi') > -1) {
|
|
|
|
return false;
|
2023-09-26 10:23:26 -04:00
|
|
|
}
|
2021-07-28 06:06:59 -04:00
|
|
|
|
2023-09-26 10:23:26 -04:00
|
|
|
// Android tablets are the noteable exception.
|
2021-07-28 06:06:59 -04:00
|
|
|
if (window.navigator.userAgent.indexOf('Android') > -1) {
|
|
|
|
return false;
|
2023-09-26 10:23:26 -04:00
|
|
|
}
|
2021-07-28 06:06:59 -04:00
|
|
|
|
2023-09-26 10:23:26 -04:00
|
|
|
// iPad pretends to be a Mac.
|
2021-07-28 06:06:59 -04:00
|
|
|
if (window.navigator.userAgent.indexOf('Macintosh') > -1 && window.navigator.maxTouchPoints && window.navigator.maxTouchPoints > 2) {
|
|
|
|
return false;
|
2023-09-26 10:23:26 -04:00
|
|
|
}
|
2021-07-28 06:06:59 -04:00
|
|
|
|
2023-09-26 10:23:26 -04:00
|
|
|
// IE only supports PDFs when there's an ActiveX object available for it.
|
2021-07-28 06:06:59 -04:00
|
|
|
if (!!(window.ActiveXObject || 'ActiveXObject' in window) && !(createActiveXObject('AcroPDF.PDF') || createActiveXObject('PDF.PdfCtrl'))) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
};
|
2023-09-26 10:23:26 -04:00
|
|
|
|
2021-07-28 06:06:59 -04:00
|
|
|
/**
|
|
|
|
* Helper function for creating ActiveX objects, catching any errors that are thrown
|
|
|
|
* when it's generated.
|
|
|
|
*
|
|
|
|
* @param {string} type The name of the ActiveX object to create.
|
|
|
|
* @return {window.ActiveXObject|undefined} The generated ActiveXObject, or null if it failed.
|
|
|
|
*/
|
|
|
|
const createActiveXObject = type => {
|
|
|
|
let ax;
|
|
|
|
try {
|
|
|
|
ax = new window.ActiveXObject(type);
|
|
|
|
} catch (e) {
|
|
|
|
ax = undefined;
|
|
|
|
}
|
|
|
|
return ax;
|
|
|
|
};
|
2024-01-31 07:59:56 -05:00
|
|
|
|
2023-09-26 10:23:26 -04:00
|
|
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/file/view.js
|
2021-07-28 06:06:59 -04:00
|
|
|
/**
|
2023-09-26 10:23:26 -04:00
|
|
|
* WordPress dependencies
|
2021-07-28 06:06:59 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
Built from https://develop.svn.wordpress.org/trunk@57377
git-svn-id: http://core.svn.wordpress.org/trunk@56883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-01-29 16:07:12 -05:00
|
|
|
(0,interactivity_namespaceObject.store)('core/file', {
|
|
|
|
state: {
|
|
|
|
get hasPdfPreview() {
|
|
|
|
return browserSupportsPdfs();
|
2023-09-26 10:23:26 -04:00
|
|
|
}
|
|
|
|
}
|
2024-02-09 13:22:22 -05:00
|
|
|
}, {
|
|
|
|
lock: true
|
2023-09-26 10:23:26 -04:00
|
|
|
});
|
2024-01-31 07:59:56 -05:00
|
|
|
|