2018-12-14 06:02:53 -05:00
this [ "wp" ] = this [ "wp" ] || { } ; this [ "wp" ] [ "formatLibrary" ] =
/******/ ( function ( modules ) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = { } ;
/******/
/******/ // The require function
/******/ function _ _webpack _require _ _ ( moduleId ) {
/******/
/******/ // Check if module is in cache
/******/ if ( installedModules [ moduleId ] ) {
/******/ return installedModules [ moduleId ] . exports ;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules [ moduleId ] = {
/******/ i : moduleId ,
/******/ l : false ,
/******/ exports : { }
/******/ } ;
/******/
/******/ // Execute the module function
/******/ modules [ moduleId ] . call ( module . exports , module , module . exports , _ _webpack _require _ _ ) ;
/******/
/******/ // Flag the module as loaded
/******/ module . l = true ;
/******/
/******/ // Return the exports of the module
/******/ return module . exports ;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ _ _webpack _require _ _ . m = modules ;
/******/
/******/ // expose the module cache
/******/ _ _webpack _require _ _ . c = installedModules ;
/******/
/******/ // define getter function for harmony exports
/******/ _ _webpack _require _ _ . d = function ( exports , name , getter ) {
/******/ if ( ! _ _webpack _require _ _ . o ( exports , name ) ) {
/******/ Object . defineProperty ( exports , name , { enumerable : true , get : getter } ) ;
/******/ }
/******/ } ;
/******/
/******/ // define __esModule on exports
/******/ _ _webpack _require _ _ . r = function ( exports ) {
/******/ if ( typeof Symbol !== 'undefined' && Symbol . toStringTag ) {
/******/ Object . defineProperty ( exports , Symbol . toStringTag , { value : 'Module' } ) ;
/******/ }
/******/ Object . defineProperty ( exports , '__esModule' , { value : true } ) ;
/******/ } ;
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ _ _webpack _require _ _ . t = function ( value , mode ) {
/******/ if ( mode & 1 ) value = _ _webpack _require _ _ ( value ) ;
/******/ if ( mode & 8 ) return value ;
/******/ if ( ( mode & 4 ) && typeof value === 'object' && value && value . _ _esModule ) return value ;
/******/ var ns = Object . create ( null ) ;
/******/ _ _webpack _require _ _ . r ( ns ) ;
/******/ Object . defineProperty ( ns , 'default' , { enumerable : true , value : value } ) ;
/******/ if ( mode & 2 && typeof value != 'string' ) for ( var key in value ) _ _webpack _require _ _ . d ( ns , key , function ( key ) { return value [ key ] ; } . bind ( null , key ) ) ;
/******/ return ns ;
/******/ } ;
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ _ _webpack _require _ _ . n = function ( module ) {
/******/ var getter = module && module . _ _esModule ?
/******/ function getDefault ( ) { return module [ 'default' ] ; } :
/******/ function getModuleExports ( ) { return module ; } ;
/******/ _ _webpack _require _ _ . d ( getter , 'a' , getter ) ;
/******/ return getter ;
/******/ } ;
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ _ _webpack _require _ _ . o = function ( object , property ) { return Object . prototype . hasOwnProperty . call ( object , property ) ; } ;
/******/
/******/ // __webpack_public_path__
/******/ _ _webpack _require _ _ . p = "" ;
/******/
/******/
/******/ // Load entry module and return exports
/******/ return _ _webpack _require _ _ ( _ _webpack _require _ _ . s = "./node_modules/@wordpress/format-library/build-module/index.js" ) ;
/******/ } )
/************************************************************************/
/******/ ( {
/***/ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / assertThisInitialized . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _assertThisInitialized ; } ) ;
function _assertThisInitialized ( self ) {
if ( self === void 0 ) {
throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" ) ;
}
return self ;
}
/***/ } ) ,
/***/ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / classCallCheck . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _classCallCheck ; } ) ;
function _classCallCheck ( instance , Constructor ) {
if ( ! ( instance instanceof Constructor ) ) {
throw new TypeError ( "Cannot call a class as a function" ) ;
}
}
/***/ } ) ,
/***/ "./node_modules/@babel/runtime/helpers/esm/createClass.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / createClass . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _createClass ; } ) ;
function _defineProperties ( target , props ) {
for ( var i = 0 ; i < props . length ; i ++ ) {
var descriptor = props [ i ] ;
descriptor . enumerable = descriptor . enumerable || false ;
descriptor . configurable = true ;
if ( "value" in descriptor ) descriptor . writable = true ;
Object . defineProperty ( target , descriptor . key , descriptor ) ;
}
}
function _createClass ( Constructor , protoProps , staticProps ) {
if ( protoProps ) _defineProperties ( Constructor . prototype , protoProps ) ;
if ( staticProps ) _defineProperties ( Constructor , staticProps ) ;
return Constructor ;
}
/***/ } ) ,
/***/ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / getPrototypeOf . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _getPrototypeOf ; } ) ;
function _getPrototypeOf ( o ) {
_getPrototypeOf = Object . setPrototypeOf ? Object . getPrototypeOf : function _getPrototypeOf ( o ) {
return o . _ _proto _ _ || Object . getPrototypeOf ( o ) ;
} ;
return _getPrototypeOf ( o ) ;
}
/***/ } ) ,
/***/ "./node_modules/@babel/runtime/helpers/esm/inherits.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / inherits . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _inherits ; } ) ;
/* harmony import */ var _setPrototypeOf _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./setPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js" ) ;
function _inherits ( subClass , superClass ) {
if ( typeof superClass !== "function" && superClass !== null ) {
throw new TypeError ( "Super expression must either be null or a function" ) ;
}
subClass . prototype = Object . create ( superClass && superClass . prototype , {
constructor : {
value : subClass ,
writable : true ,
configurable : true
}
} ) ;
if ( superClass ) Object ( _setPrototypeOf _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( subClass , superClass ) ;
}
/***/ } ) ,
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / objectWithoutProperties . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _objectWithoutProperties ; } ) ;
/* harmony import */ var _objectWithoutPropertiesLoose _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js" ) ;
function _objectWithoutProperties ( source , excluded ) {
if ( source == null ) return { } ;
var target = Object ( _objectWithoutPropertiesLoose _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( 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 ;
}
/***/ } ) ,
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / objectWithoutPropertiesLoose . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _objectWithoutPropertiesLoose ; } ) ;
function _objectWithoutPropertiesLoose ( source , excluded ) {
if ( source == null ) return { } ;
var target = { } ;
var sourceKeys = Object . keys ( source ) ;
var key , i ;
for ( i = 0 ; i < sourceKeys . length ; i ++ ) {
key = sourceKeys [ i ] ;
if ( excluded . indexOf ( key ) >= 0 ) continue ;
target [ key ] = source [ key ] ;
}
return target ;
}
/***/ } ) ,
/***/ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / possibleConstructorReturn . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _possibleConstructorReturn ; } ) ;
/* harmony import */ var _helpers _esm _typeof _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ../../helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js" ) ;
/* harmony import */ var _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! ./assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" ) ;
function _possibleConstructorReturn ( self , call ) {
if ( call && ( Object ( _helpers _esm _typeof _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( call ) === "object" || typeof call === "function" ) ) {
return call ;
}
return Object ( _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( self ) ;
}
/***/ } ) ,
/***/ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / setPrototypeOf . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _setPrototypeOf ; } ) ;
function _setPrototypeOf ( o , p ) {
_setPrototypeOf = Object . setPrototypeOf || function _setPrototypeOf ( o , p ) {
o . _ _proto _ _ = p ;
return o ;
} ;
return _setPrototypeOf ( o , p ) ;
}
/***/ } ) ,
/***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ babel / runtime / helpers / esm / typeof . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "default" , function ( ) { return _typeof ; } ) ;
function _typeof2 ( obj ) { if ( typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ) { _typeof2 = function _typeof2 ( obj ) { return typeof obj ; } ; } else { _typeof2 = function _typeof2 ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ; } return _typeof2 ( obj ) ; }
function _typeof ( obj ) {
if ( typeof Symbol === "function" && _typeof2 ( Symbol . iterator ) === "symbol" ) {
_typeof = function _typeof ( obj ) {
return _typeof2 ( obj ) ;
} ;
} else {
_typeof = function _typeof ( obj ) {
return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : _typeof2 ( obj ) ;
} ;
}
return _typeof ( obj ) ;
}
/***/ } ) ,
/***/ "./node_modules/@wordpress/format-library/build-module/bold/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / format - library / build - module / bold / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: bold */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "bold" , function ( ) { return bold ; } ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/rich-text */ "@wordpress/rich-text" ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
2018-12-16 23:52:00 -05:00
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
2018-12-14 06:02:53 -05:00
/ * *
* WordPress dependencies
* /
2018-12-16 23:52:00 -05:00
2018-12-14 06:02:53 -05:00
var name = 'core/bold' ;
var bold = {
name : name ,
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Bold' ) ,
2018-12-16 23:52:00 -05:00
tagName : 'strong' ,
className : null ,
2018-12-14 06:02:53 -05:00
edit : function edit ( _ref ) {
var isActive = _ref . isActive ,
value = _ref . value ,
2018-12-16 23:52:00 -05:00
onChange = _ref . onChange ;
2018-12-14 06:02:53 -05:00
var onToggle = function onToggle ( ) {
return onChange ( Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "toggleFormat" ] ) ( value , {
type : name
} ) ) ;
} ;
2018-12-16 23:52:00 -05:00
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "Fragment" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "RichTextShortcut" ] , {
2018-12-14 06:02:53 -05:00
type : "primary" ,
character : "b" ,
onUse : onToggle
2018-12-16 23:52:00 -05:00
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "RichTextToolbarButton" ] , {
2018-12-14 06:02:53 -05:00
name : "bold" ,
icon : "editor-bold" ,
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Bold' ) ,
onClick : onToggle ,
isActive : isActive ,
shortcutType : "primary" ,
shortcutCharacter : "b"
} ) ) ;
}
} ;
/***/ } ) ,
/***/ "./node_modules/@wordpress/format-library/build-module/code/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / format - library / build - module / code / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: code */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "code" , function ( ) { return code ; } ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/rich-text */ "@wordpress/rich-text" ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
2018-12-16 23:52:00 -05:00
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
2018-12-14 06:02:53 -05:00
/ * *
* WordPress dependencies
* /
var name = 'core/code' ;
var code = {
name : name ,
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Code' ) ,
2018-12-16 23:52:00 -05:00
tagName : 'code' ,
className : null ,
2018-12-14 06:02:53 -05:00
edit : function edit ( _ref ) {
var value = _ref . value ,
2018-12-16 23:52:00 -05:00
onChange = _ref . onChange ;
2018-12-14 06:02:53 -05:00
var onToggle = function onToggle ( ) {
return onChange ( Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "toggleFormat" ] ) ( value , {
type : name
} ) ) ;
} ;
2018-12-16 23:52:00 -05:00
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "RichTextShortcut" ] , {
2018-12-14 06:02:53 -05:00
type : "access" ,
character : "x" ,
onUse : onToggle
2018-12-16 23:52:00 -05:00
} ) ;
2018-12-14 06:02:53 -05:00
}
} ;
/***/ } ) ,
/***/ "./node_modules/@wordpress/format-library/build-module/image/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / format - library / build - module / image / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: image */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "image" , function ( ) { return image ; } ) ;
/* harmony import */ var _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _7 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! @wordpress/rich-text */ "@wordpress/rich-text" ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _9 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _9 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _10 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _10 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _10 _ _ ) ;
/ * *
* WordPress dependencies
* /
var ALLOWED _MEDIA _TYPES = [ 'image' ] ;
var name = 'core/image' ;
var image = {
name : name ,
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "__" ] ) ( 'Image' ) ,
keywords : [ Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "__" ] ) ( 'photo' ) , Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "__" ] ) ( 'media' ) ] ,
object : true ,
2018-12-16 23:52:00 -05:00
tagName : 'img' ,
className : null ,
2018-12-14 06:02:53 -05:00
attributes : {
className : 'class' ,
style : 'style' ,
url : 'src' ,
alt : 'alt'
} ,
edit :
/*#__PURE__*/
function ( _Component ) {
Object ( _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] ) ( ImageEdit , _Component ) ;
function ImageEdit ( ) {
var _this ;
Object ( _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( this , ImageEdit ) ;
_this = Object ( _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( this , Object ( _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] ) ( ImageEdit ) . apply ( this , arguments ) ) ;
_this . openModal = _this . openModal . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . closeModal = _this . closeModal . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . state = {
modal : false
} ;
return _this ;
}
Object ( _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( ImageEdit , [ {
key : "openModal" ,
value : function openModal ( ) {
this . setState ( {
modal : true
} ) ;
}
} , {
key : "closeModal" ,
value : function closeModal ( ) {
this . setState ( {
modal : false
} ) ;
}
} , {
key : "render" ,
value : function render ( ) {
var _this2 = this ;
var _this$props = this . props ,
value = _this$props . value ,
2018-12-16 23:52:00 -05:00
onChange = _this$props . onChange ;
Block Editor: Update `@wordpress` dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
- Upgrades React from 16.5.2 to 16.6.3.
- Adds a missing `wp-date` dependency to the editor script.
- Updates changed dependencies in `script-loader.php`.
- Fixes undefined notices in some blocks.
- Removes incorrect `gutenberg` textdomain.
Merges [43891], [43903], and [43919] to trunk.
Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.
Built from https://develop.svn.wordpress.org/trunk@44262
git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 10:37:00 -05:00
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "MediaUploadCheck" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "RichTextInserterItem" ] , {
2018-12-16 23:52:00 -05:00
name : name ,
2018-12-14 06:02:53 -05:00
icon : Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "SVG" ] , {
xmlns : "http://www.w3.org/2000/svg" ,
viewBox : "0 0 24 24"
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "Path" ] , {
d : "M4 16h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2zM4 5h10v9H4V5zm14 9v2h4v-2h-4zM2 20h20v-2H2v2zm6.4-8.8L7 9.4 5 12h8l-2.6-3.4-2 2.6z"
} ) ) ,
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "__" ] ) ( 'Inline Image' ) ,
onClick : this . openModal
} ) , this . state . modal && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "MediaUpload" ] , {
allowedTypes : ALLOWED _MEDIA _TYPES ,
onSelect : function onSelect ( _ref ) {
var id = _ref . id ,
url = _ref . url ,
alt = _ref . alt ,
width = _ref . width ;
_this2 . closeModal ( ) ;
onChange ( Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "insertObject" ] ) ( value , {
type : name ,
attributes : {
className : "wp-image-" . concat ( id ) ,
style : "width: " . concat ( Math . min ( width , 150 ) , "px;" ) ,
url : url ,
alt : alt
}
} ) ) ;
} ,
onClose : this . closeModal ,
render : function render ( _ref2 ) {
var open = _ref2 . open ;
open ( ) ;
return null ;
}
} ) ) ;
}
} ] ) ;
return ImageEdit ;
} ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "Component" ] )
} ;
/***/ } ) ,
/***/ "./node_modules/@wordpress/format-library/build-module/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / format - library / build - module / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no exports provided */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony import */ var _babel _runtime _helpers _esm _objectWithoutProperties _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js" ) ;
/* harmony import */ var _bold _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! ./bold */ "./node_modules/@wordpress/format-library/build-module/bold/index.js" ) ;
/* harmony import */ var _code _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! ./code */ "./node_modules/@wordpress/format-library/build-module/code/index.js" ) ;
/* harmony import */ var _image _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! ./image */ "./node_modules/@wordpress/format-library/build-module/image/index.js" ) ;
/* harmony import */ var _italic _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! ./italic */ "./node_modules/@wordpress/format-library/build-module/italic/index.js" ) ;
/* harmony import */ var _link _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! ./link */ "./node_modules/@wordpress/format-library/build-module/link/index.js" ) ;
/* harmony import */ var _strikethrough _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! ./strikethrough */ "./node_modules/@wordpress/format-library/build-module/strikethrough/index.js" ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! @wordpress/rich-text */ "@wordpress/rich-text" ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _7 _ _ ) ;
/ * *
* Internal dependencies
* /
/ * *
* WordPress dependencies
* /
[ _bold _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "bold" ] , _code _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "code" ] , _image _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "image" ] , _italic _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "italic" ] , _link _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "link" ] , _strikethrough _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "strikethrough" ] ] . forEach ( function ( _ref ) {
var name = _ref . name ,
settings = Object ( _babel _runtime _helpers _esm _objectWithoutProperties _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( _ref , [ "name" ] ) ;
return Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "registerFormatType" ] ) ( name , settings ) ;
} ) ;
/***/ } ) ,
/***/ "./node_modules/@wordpress/format-library/build-module/italic/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / format - library / build - module / italic / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: italic */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "italic" , function ( ) { return italic ; } ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/rich-text */ "@wordpress/rich-text" ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
2018-12-16 23:52:00 -05:00
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
2018-12-14 06:02:53 -05:00
/ * *
* WordPress dependencies
* /
2018-12-16 23:52:00 -05:00
2018-12-14 06:02:53 -05:00
var name = 'core/italic' ;
var italic = {
name : name ,
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Italic' ) ,
2018-12-16 23:52:00 -05:00
tagName : 'em' ,
className : null ,
2018-12-14 06:02:53 -05:00
edit : function edit ( _ref ) {
var isActive = _ref . isActive ,
value = _ref . value ,
2018-12-16 23:52:00 -05:00
onChange = _ref . onChange ;
2018-12-14 06:02:53 -05:00
var onToggle = function onToggle ( ) {
return onChange ( Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "toggleFormat" ] ) ( value , {
type : name
} ) ) ;
} ;
2018-12-16 23:52:00 -05:00
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "Fragment" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "RichTextShortcut" ] , {
2018-12-14 06:02:53 -05:00
type : "primary" ,
character : "i" ,
onUse : onToggle
2018-12-16 23:52:00 -05:00
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "RichTextToolbarButton" ] , {
2018-12-14 06:02:53 -05:00
name : "italic" ,
icon : "editor-italic" ,
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Italic' ) ,
onClick : onToggle ,
isActive : isActive ,
shortcutType : "primary" ,
shortcutCharacter : "i"
} ) ) ;
}
} ;
/***/ } ) ,
/***/ "./node_modules/@wordpress/format-library/build-module/link/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / format - library / build - module / link / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: link */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "link" , function ( ) { return link ; } ) ;
/* harmony import */ var _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _7 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _8 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _8 _ _ ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! @wordpress/rich-text */ "@wordpress/rich-text" ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _9 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _9 _ _ ) ;
/* harmony import */ var _wordpress _url _ _WEBPACK _IMPORTED _MODULE _10 _ _ = _ _webpack _require _ _ ( /*! @wordpress/url */ "@wordpress/url" ) ;
/* harmony import */ var _wordpress _url _ _WEBPACK _IMPORTED _MODULE _10 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _10 _ _ ) ;
2018-12-16 23:52:00 -05:00
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _11 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _11 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _11 _ _ ) ;
/* harmony import */ var _inline _ _WEBPACK _IMPORTED _MODULE _12 _ _ = _ _webpack _require _ _ ( /*! ./inline */ "./node_modules/@wordpress/format-library/build-module/link/inline.js" ) ;
2018-12-14 06:02:53 -05:00
/ * *
* WordPress dependencies
* /
2018-12-16 23:52:00 -05:00
2018-12-14 06:02:53 -05:00
/ * *
* Internal dependencies
* /
var name = 'core/link' ;
var link = {
name : name ,
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "__" ] ) ( 'Link' ) ,
2018-12-16 23:52:00 -05:00
tagName : 'a' ,
className : null ,
2018-12-14 06:02:53 -05:00
attributes : {
url : 'href' ,
target : 'target'
} ,
edit : Object ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "withSpokenMessages" ] ) (
/*#__PURE__*/
function ( _Component ) {
Object ( _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] ) ( LinkEdit , _Component ) ;
function LinkEdit ( ) {
var _this ;
Object ( _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( this , LinkEdit ) ;
_this = Object ( _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( this , Object ( _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] ) ( LinkEdit ) . apply ( this , arguments ) ) ;
_this . addLink = _this . addLink . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . stopAddingLink = _this . stopAddingLink . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . onRemoveFormat = _this . onRemoveFormat . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . state = {
addingLink : false
} ;
return _this ;
}
Object ( _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( LinkEdit , [ {
key : "addLink" ,
value : function addLink ( ) {
var _this$props = this . props ,
value = _this$props . value ,
onChange = _this$props . onChange ;
var text = Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "getTextContent" ] ) ( Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "slice" ] ) ( value ) ) ;
if ( text && Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "isURL" ] ) ( text ) ) {
onChange ( Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "applyFormat" ] ) ( value , {
type : name ,
attributes : {
url : text
}
} ) ) ;
} else {
this . setState ( {
addingLink : true
} ) ;
}
}
} , {
key : "stopAddingLink" ,
value : function stopAddingLink ( ) {
this . setState ( {
addingLink : false
} ) ;
}
} , {
key : "onRemoveFormat" ,
value : function onRemoveFormat ( ) {
var _this$props2 = this . props ,
value = _this$props2 . value ,
onChange = _this$props2 . onChange ,
speak = _this$props2 . speak ;
onChange ( Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "removeFormat" ] ) ( value , name ) ) ;
speak ( Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "__" ] ) ( 'Link removed.' ) , 'assertive' ) ;
}
} , {
key : "render" ,
value : function render ( ) {
var _this$props3 = this . props ,
isActive = _this$props3 . isActive ,
activeAttributes = _this$props3 . activeAttributes ,
value = _this$props3 . value ,
2018-12-16 23:52:00 -05:00
onChange = _this$props3 . onChange ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "Fragment" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "RichTextShortcut" ] , {
2018-12-14 06:02:53 -05:00
type : "access" ,
character : "a" ,
onUse : this . addLink
2018-12-16 23:52:00 -05:00
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "RichTextShortcut" ] , {
2018-12-14 06:02:53 -05:00
type : "access" ,
character : "s" ,
onUse : this . onRemoveFormat
2018-12-16 23:52:00 -05:00
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "RichTextShortcut" ] , {
2018-12-14 06:02:53 -05:00
type : "primary" ,
character : "k" ,
onUse : this . addLink
2018-12-16 23:52:00 -05:00
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "RichTextShortcut" ] , {
2018-12-14 06:02:53 -05:00
type : "primaryShift" ,
character : "k" ,
onUse : this . onRemoveFormat
2018-12-16 23:52:00 -05:00
} ) , isActive && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "RichTextToolbarButton" ] , {
2018-12-14 06:02:53 -05:00
name : "link" ,
icon : "editor-unlink" ,
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "__" ] ) ( 'Unlink' ) ,
onClick : this . onRemoveFormat ,
isActive : isActive ,
shortcutType : "primaryShift" ,
shortcutCharacter : "k"
2018-12-16 23:52:00 -05:00
} ) , ! isActive && Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "RichTextToolbarButton" ] , {
2018-12-14 06:02:53 -05:00
name : "link" ,
icon : "admin-links" ,
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _7 _ _ [ "__" ] ) ( 'Link' ) ,
onClick : this . addLink ,
isActive : isActive ,
shortcutType : "primary" ,
shortcutCharacter : "k"
2018-12-16 23:52:00 -05:00
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _inline _ _WEBPACK _IMPORTED _MODULE _12 _ _ [ "default" ] , {
2018-12-14 06:02:53 -05:00
addingLink : this . state . addingLink ,
stopAddingLink : this . stopAddingLink ,
isActive : isActive ,
activeAttributes : activeAttributes ,
value : value ,
onChange : onChange
} ) ) ;
}
} ] ) ;
return LinkEdit ;
} ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "Component" ] ) )
} ;
/***/ } ) ,
/***/ "./node_modules/@wordpress/format-library/build-module/link/inline.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / format - library / build - module / link / inline . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony import */ var _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/assertThisInitialized */ "./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
2018-12-16 23:52:00 -05:00
/* harmony import */ var classnames _ _WEBPACK _IMPORTED _MODULE _7 _ _ = _ _webpack _require _ _ ( /*! classnames */ "./node_modules/classnames/index.js" ) ;
/* harmony import */ var classnames _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( classnames _ _WEBPACK _IMPORTED _MODULE _7 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _9 _ _ = _ _webpack _require _ _ ( /*! @wordpress/components */ "@wordpress/components" ) ;
/* harmony import */ var _wordpress _components _ _WEBPACK _IMPORTED _MODULE _9 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _9 _ _ ) ;
/* harmony import */ var _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _10 _ _ = _ _webpack _require _ _ ( /*! @wordpress/keycodes */ "@wordpress/keycodes" ) ;
/* harmony import */ var _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _10 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _10 _ _ ) ;
/* harmony import */ var _wordpress _url _ _WEBPACK _IMPORTED _MODULE _11 _ _ = _ _webpack _require _ _ ( /*! @wordpress/url */ "@wordpress/url" ) ;
/* harmony import */ var _wordpress _url _ _WEBPACK _IMPORTED _MODULE _11 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _11 _ _ ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _12 _ _ = _ _webpack _require _ _ ( /*! @wordpress/rich-text */ "@wordpress/rich-text" ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _12 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _12 _ _ ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _13 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _13 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _13 _ _ ) ;
/* harmony import */ var _positioned _at _selection _ _WEBPACK _IMPORTED _MODULE _14 _ _ = _ _webpack _require _ _ ( /*! ./positioned-at-selection */ "./node_modules/@wordpress/format-library/build-module/link/positioned-at-selection.js" ) ;
/* harmony import */ var _utils _ _WEBPACK _IMPORTED _MODULE _15 _ _ = _ _webpack _require _ _ ( /*! ./utils */ "./node_modules/@wordpress/format-library/build-module/link/utils.js" ) ;
2018-12-14 06:02:53 -05:00
2018-12-16 23:52:00 -05:00
/ * *
* External dependencies
* /
2018-12-14 06:02:53 -05:00
/ * *
* WordPress dependencies
* /
2018-12-16 23:52:00 -05:00
2018-12-14 06:02:53 -05:00
/ * *
* Internal dependencies
* /
2018-12-16 23:52:00 -05:00
2018-12-14 06:02:53 -05:00
var stopKeyPropagation = function stopKeyPropagation ( event ) {
return event . stopPropagation ( ) ;
} ;
2018-12-15 06:00:40 -05:00
/ * *
* Generates the format object that will be applied to the link text .
*
* @ param { string } url The href of the link .
* @ param { boolean } opensInNewWindow Whether this link will open in a new window .
* @ param { Object } text The text that is being hyperlinked .
*
* @ return { Object } The final format object .
* /
2018-12-14 06:02:53 -05:00
function createLinkFormat ( _ref ) {
var url = _ref . url ,
2018-12-15 06:00:40 -05:00
opensInNewWindow = _ref . opensInNewWindow ,
text = _ref . text ;
2018-12-14 06:02:53 -05:00
var format = {
type : 'core/link' ,
attributes : {
url : url
}
} ;
if ( opensInNewWindow ) {
2018-12-15 06:00:40 -05:00
// translators: accessibility label for external links, where the argument is the link text
2018-12-16 23:52:00 -05:00
var label = Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "sprintf" ] ) ( Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "__" ] ) ( '%s (opens in a new tab)' ) , text ) . trim ( ) ;
2018-12-14 06:02:53 -05:00
format . attributes . target = '_blank' ;
format . attributes . rel = 'noreferrer noopener' ;
2018-12-15 06:00:40 -05:00
format . attributes [ 'aria-label' ] = label ;
2018-12-14 06:02:53 -05:00
}
return format ;
}
function isShowingInput ( props , state ) {
return props . addingLink || state . editLink ;
}
var LinkEditor = function LinkEditor ( _ref2 ) {
var value = _ref2 . value ,
onChangeInputValue = _ref2 . onChangeInputValue ,
onKeyDown = _ref2 . onKeyDown ,
submitLink = _ref2 . submitLink ,
autocompleteRef = _ref2 . autocompleteRef ;
return ( // Disable reason: KeyPress must be suppressed so the block doesn't hide the toolbar
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( "form" , {
className : "editor-format-toolbar__link-container-content" ,
onKeyPress : stopKeyPropagation ,
onKeyDown : onKeyDown ,
onSubmit : submitLink
2018-12-16 23:52:00 -05:00
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _13 _ _ [ "URLInput" ] , {
2018-12-14 06:02:53 -05:00
value : value ,
onChange : onChangeInputValue ,
autocompleteRef : autocompleteRef
2018-12-16 23:52:00 -05:00
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "IconButton" ] , {
2018-12-14 06:02:53 -05:00
icon : "editor-break" ,
2018-12-16 23:52:00 -05:00
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "__" ] ) ( 'Apply' ) ,
2018-12-14 06:02:53 -05:00
type : "submit"
} ) )
/* eslint-enable jsx-a11y/no-noninteractive-element-interactions */
) ;
} ;
Block Editor: Update `@wordpress` dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
- Upgrades React from 16.5.2 to 16.6.3.
- Adds a missing `wp-date` dependency to the editor script.
- Updates changed dependencies in `script-loader.php`.
- Fixes undefined notices in some blocks.
- Removes incorrect `gutenberg` textdomain.
Merges [43891], [43903], and [43919] to trunk.
Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.
Built from https://develop.svn.wordpress.org/trunk@44262
git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 10:37:00 -05:00
var LinkViewerUrl = function LinkViewerUrl ( _ref3 ) {
var url = _ref3 . url ;
2018-12-16 23:52:00 -05:00
var prependedURL = Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "prependHTTP" ] ) ( url ) ;
var linkClassName = classnames _ _WEBPACK _IMPORTED _MODULE _7 _ _ _default ( ) ( 'editor-format-toolbar__link-container-value' , {
'has-invalid-link' : ! Object ( _utils _ _WEBPACK _IMPORTED _MODULE _15 _ _ [ "isValidHref" ] ) ( prependedURL )
} ) ;
Block Editor: Update `@wordpress` dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
- Upgrades React from 16.5.2 to 16.6.3.
- Adds a missing `wp-date` dependency to the editor script.
- Updates changed dependencies in `script-loader.php`.
- Fixes undefined notices in some blocks.
- Removes incorrect `gutenberg` textdomain.
Merges [43891], [43903], and [43919] to trunk.
Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.
Built from https://develop.svn.wordpress.org/trunk@44262
git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 10:37:00 -05:00
if ( ! url ) {
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( "span" , {
className : linkClassName
} ) ;
}
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "ExternalLink" ] , {
className : linkClassName ,
href : url
} , Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "filterURLForDisplay" ] ) ( Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "safeDecodeURI" ] ) ( url ) ) ) ;
} ;
var LinkViewer = function LinkViewer ( _ref4 ) {
var url = _ref4 . url ,
editLink = _ref4 . editLink ;
2018-12-14 06:02:53 -05:00
return ( // Disable reason: KeyPress must be suppressed so the block doesn't hide the toolbar
/* eslint-disable jsx-a11y/no-static-element-interactions */
Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( "div" , {
className : "editor-format-toolbar__link-container-content" ,
onKeyPress : stopKeyPropagation
Block Editor: Update `@wordpress` dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
- Upgrades React from 16.5.2 to 16.6.3.
- Adds a missing `wp-date` dependency to the editor script.
- Updates changed dependencies in `script-loader.php`.
- Fixes undefined notices in some blocks.
- Removes incorrect `gutenberg` textdomain.
Merges [43891], [43903], and [43919] to trunk.
Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.
Built from https://develop.svn.wordpress.org/trunk@44262
git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 10:37:00 -05:00
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( LinkViewerUrl , {
url : url
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "IconButton" ] , {
2018-12-14 06:02:53 -05:00
icon : "edit" ,
2018-12-16 23:52:00 -05:00
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "__" ] ) ( 'Edit' ) ,
2018-12-14 06:02:53 -05:00
onClick : editLink
} ) )
/* eslint-enable jsx-a11y/no-static-element-interactions */
) ;
} ;
var InlineLinkUI =
/*#__PURE__*/
function ( _Component ) {
Object ( _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] ) ( InlineLinkUI , _Component ) ;
function InlineLinkUI ( ) {
var _this ;
Object ( _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( this , InlineLinkUI ) ;
_this = Object ( _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( this , Object ( _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] ) ( InlineLinkUI ) . apply ( this , arguments ) ) ;
_this . editLink = _this . editLink . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . submitLink = _this . submitLink . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . onKeyDown = _this . onKeyDown . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . onChangeInputValue = _this . onChangeInputValue . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . setLinkTarget = _this . setLinkTarget . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . onClickOutside = _this . onClickOutside . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . resetState = _this . resetState . bind ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( Object ( _babel _runtime _helpers _esm _assertThisInitialized _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "default" ] ) ( _this ) ) ) ;
_this . autocompleteRef = Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createRef" ] ) ( ) ;
Block Editor: Update `@wordpress` dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
- Upgrades React from 16.5.2 to 16.6.3.
- Adds a missing `wp-date` dependency to the editor script.
- Updates changed dependencies in `script-loader.php`.
- Fixes undefined notices in some blocks.
- Removes incorrect `gutenberg` textdomain.
Merges [43891], [43903], and [43919] to trunk.
Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.
Built from https://develop.svn.wordpress.org/trunk@44262
git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 10:37:00 -05:00
_this . state = {
opensInNewWindow : false ,
inputValue : ''
} ;
2018-12-14 06:02:53 -05:00
return _this ;
}
Object ( _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( InlineLinkUI , [ {
key : "onKeyDown" ,
value : function onKeyDown ( event ) {
2018-12-16 23:52:00 -05:00
if ( [ _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "LEFT" ] , _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "DOWN" ] , _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "RIGHT" ] , _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "UP" ] , _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "BACKSPACE" ] , _wordpress _keycodes _ _WEBPACK _IMPORTED _MODULE _10 _ _ [ "ENTER" ] ] . indexOf ( event . keyCode ) > - 1 ) {
2018-12-14 06:02:53 -05:00
// Stop the key event from propagating up to ObserveTyping.startTypingInTextField.
event . stopPropagation ( ) ;
}
}
} , {
key : "onChangeInputValue" ,
value : function onChangeInputValue ( inputValue ) {
this . setState ( {
inputValue : inputValue
} ) ;
}
} , {
key : "setLinkTarget" ,
value : function setLinkTarget ( opensInNewWindow ) {
var _this$props = this . props ,
Block Editor: Update `@wordpress` dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
- Upgrades React from 16.5.2 to 16.6.3.
- Adds a missing `wp-date` dependency to the editor script.
- Updates changed dependencies in `script-loader.php`.
- Fixes undefined notices in some blocks.
- Removes incorrect `gutenberg` textdomain.
Merges [43891], [43903], and [43919] to trunk.
Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.
Built from https://develop.svn.wordpress.org/trunk@44262
git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 10:37:00 -05:00
_this$props$activeAtt = _this$props . activeAttributes . url ,
url = _this$props$activeAtt === void 0 ? '' : _this$props$activeAtt ,
2018-12-14 06:02:53 -05:00
value = _this$props . value ,
onChange = _this$props . onChange ;
this . setState ( {
opensInNewWindow : opensInNewWindow
} ) ; // Apply now if URL is not being edited.
if ( ! isShowingInput ( this . props , this . state ) ) {
2018-12-16 23:52:00 -05:00
onChange ( Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _12 _ _ [ "applyFormat" ] ) ( value , createLinkFormat ( {
2018-12-14 06:02:53 -05:00
url : url ,
2018-12-15 06:00:40 -05:00
opensInNewWindow : opensInNewWindow ,
text : value . text
2018-12-14 06:02:53 -05:00
} ) ) ) ;
}
}
} , {
key : "editLink" ,
value : function editLink ( event ) {
this . setState ( {
editLink : true
} ) ;
event . preventDefault ( ) ;
}
} , {
key : "submitLink" ,
value : function submitLink ( event ) {
var _this$props2 = this . props ,
isActive = _this$props2 . isActive ,
value = _this$props2 . value ,
onChange = _this$props2 . onChange ,
speak = _this$props2 . speak ;
var _this$state = this . state ,
inputValue = _this$state . inputValue ,
opensInNewWindow = _this$state . opensInNewWindow ;
2018-12-16 23:52:00 -05:00
var url = Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _11 _ _ [ "prependHTTP" ] ) ( inputValue ) ;
2018-12-14 06:02:53 -05:00
var format = createLinkFormat ( {
url : url ,
2018-12-15 06:00:40 -05:00
opensInNewWindow : opensInNewWindow ,
text : value . text
2018-12-14 06:02:53 -05:00
} ) ;
event . preventDefault ( ) ;
2018-12-16 23:52:00 -05:00
if ( Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _12 _ _ [ "isCollapsed" ] ) ( value ) && ! isActive ) {
var toInsert = Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _12 _ _ [ "applyFormat" ] ) ( Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _12 _ _ [ "create" ] ) ( {
2018-12-14 06:02:53 -05:00
text : url
} ) , format , 0 , url . length ) ;
2018-12-16 23:52:00 -05:00
onChange ( Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _12 _ _ [ "insert" ] ) ( value , toInsert ) ) ;
2018-12-14 06:02:53 -05:00
} else {
2018-12-16 23:52:00 -05:00
onChange ( Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _12 _ _ [ "applyFormat" ] ) ( value , format ) ) ;
2018-12-14 06:02:53 -05:00
}
this . resetState ( ) ;
2018-12-16 23:52:00 -05:00
if ( ! Object ( _utils _ _WEBPACK _IMPORTED _MODULE _15 _ _ [ "isValidHref" ] ) ( url ) ) {
speak ( Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "__" ] ) ( 'Warning: the link has been inserted but may have errors. Please test it.' ) , 'assertive' ) ;
} else if ( isActive ) {
speak ( Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "__" ] ) ( 'Link edited.' ) , 'assertive' ) ;
2018-12-14 06:02:53 -05:00
} else {
2018-12-16 23:52:00 -05:00
speak ( Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "__" ] ) ( 'Link inserted' ) , 'assertive' ) ;
2018-12-14 06:02:53 -05:00
}
}
} , {
key : "onClickOutside" ,
value : function onClickOutside ( event ) {
// The autocomplete suggestions list renders in a separate popover (in a portal),
// so onClickOutside fails to detect that a click on a suggestion occured in the
// LinkContainer. Detect clicks on autocomplete suggestions using a ref here, and
// return to avoid the popover being closed.
var autocompleteElement = this . autocompleteRef . current ;
if ( autocompleteElement && autocompleteElement . contains ( event . target ) ) {
return ;
}
this . resetState ( ) ;
}
} , {
key : "resetState" ,
value : function resetState ( ) {
this . props . stopAddingLink ( ) ;
this . setState ( {
editLink : false
} ) ;
}
} , {
key : "render" ,
value : function render ( ) {
var _this2 = this ;
var _this$props3 = this . props ,
isActive = _this$props3 . isActive ,
url = _this$props3 . activeAttributes . url ,
addingLink = _this$props3 . addingLink ,
value = _this$props3 . value ;
if ( ! isActive && ! addingLink ) {
return null ;
}
var _this$state2 = this . state ,
inputValue = _this$state2 . inputValue ,
opensInNewWindow = _this$state2 . opensInNewWindow ;
var showInput = isShowingInput ( this . props , this . state ) ;
2018-12-16 23:52:00 -05:00
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _positioned _at _selection _ _WEBPACK _IMPORTED _MODULE _14 _ _ [ "default" ] , {
2018-12-14 06:02:53 -05:00
key : "" . concat ( value . start ) . concat ( value . end )
/* Used to force rerender on selection change */
2018-12-16 23:52:00 -05:00
} , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _13 _ _ [ "URLPopover" ] , {
2018-12-14 06:02:53 -05:00
onClickOutside : this . onClickOutside ,
Block Editor: Update `@wordpress` dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
- Upgrades React from 16.5.2 to 16.6.3.
- Adds a missing `wp-date` dependency to the editor script.
- Updates changed dependencies in `script-loader.php`.
- Fixes undefined notices in some blocks.
- Removes incorrect `gutenberg` textdomain.
Merges [43891], [43903], and [43919] to trunk.
Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.
Built from https://develop.svn.wordpress.org/trunk@44262
git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 10:37:00 -05:00
onClose : this . resetState ,
2018-12-14 06:02:53 -05:00
focusOnMount : showInput ? 'firstElement' : false ,
renderSettings : function renderSettings ( ) {
2018-12-16 23:52:00 -05:00
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "ToggleControl" ] , {
label : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _8 _ _ [ "__" ] ) ( 'Open in New Tab' ) ,
2018-12-14 06:02:53 -05:00
checked : opensInNewWindow ,
onChange : _this2 . setLinkTarget
} ) ;
}
} , showInput ? Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( LinkEditor , {
value : inputValue ,
onChangeInputValue : this . onChangeInputValue ,
onKeyDown : this . onKeyDown ,
submitLink : this . submitLink ,
autocompleteRef : this . autocompleteRef
} ) : Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "createElement" ] ) ( LinkViewer , {
url : url ,
editLink : this . editLink
} ) ) ) ;
}
} ] , [ {
key : "getDerivedStateFromProps" ,
value : function getDerivedStateFromProps ( props , state ) {
var _props$activeAttribut = props . activeAttributes ,
url = _props$activeAttribut . url ,
target = _props$activeAttribut . target ;
var opensInNewWindow = target === '_blank' ;
if ( ! isShowingInput ( props , state ) ) {
if ( url !== state . inputValue ) {
return {
inputValue : url
} ;
}
if ( opensInNewWindow !== state . opensInNewWindow ) {
return {
opensInNewWindow : opensInNewWindow
} ;
}
}
return null ;
}
} ] ) ;
return InlineLinkUI ;
} ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "Component" ] ) ;
2018-12-16 23:52:00 -05:00
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( Object ( _wordpress _components _ _WEBPACK _IMPORTED _MODULE _9 _ _ [ "withSpokenMessages" ] ) ( InlineLinkUI ) ) ;
2018-12-14 06:02:53 -05:00
/***/ } ) ,
/***/ "./node_modules/@wordpress/format-library/build-module/link/positioned-at-selection.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / format - library / build - module / link / positioned - at - selection . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: default */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony import */ var _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/possibleConstructorReturn */ "./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/getPrototypeOf */ "./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" ) ;
/* harmony import */ var _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ = _ _webpack _require _ _ ( /*! @babel/runtime/helpers/esm/inherits */ "./node_modules/@babel/runtime/helpers/esm/inherits.js" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ ) ;
/* harmony import */ var _wordpress _dom _ _WEBPACK _IMPORTED _MODULE _6 _ _ = _ _webpack _require _ _ ( /*! @wordpress/dom */ "@wordpress/dom" ) ;
/* harmony import */ var _wordpress _dom _ _WEBPACK _IMPORTED _MODULE _6 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _dom _ _WEBPACK _IMPORTED _MODULE _6 _ _ ) ;
/ * *
* WordPress dependencies
* /
/ * *
* Returns a style object for applying as ` position: absolute ` for an element
* relative to the bottom - center of the current selection . Includes ` top ` and
* ` left ` style properties .
*
* @ return { Object } Style object .
* /
function getCurrentCaretPositionStyle ( ) {
var selection = window . getSelection ( ) ; // Unlikely, but in the case there is no selection, return empty styles so
// as to avoid a thrown error by `Selection#getRangeAt` on invalid index.
if ( selection . rangeCount === 0 ) {
return { } ;
} // Get position relative viewport.
var rect = Object ( _wordpress _dom _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "getRectangleFromRange" ] ) ( selection . getRangeAt ( 0 ) ) ;
var top = rect . top + rect . height ;
var left = rect . left + rect . width / 2 ; // Offset by positioned parent, if one exists.
var offsetParent = Object ( _wordpress _dom _ _WEBPACK _IMPORTED _MODULE _6 _ _ [ "getOffsetParent" ] ) ( selection . anchorNode ) ;
if ( offsetParent ) {
var parentRect = offsetParent . getBoundingClientRect ( ) ;
top -= parentRect . top ;
left -= parentRect . left ;
}
return {
top : top ,
left : left
} ;
}
/ * *
* Component which renders itself positioned under the current caret selection .
* The position is calculated at the time of the component being mounted , so it
* should only be mounted after the desired selection has been made .
*
* @ type { WPComponent }
* /
var PositionedAtSelection =
/*#__PURE__*/
function ( _Component ) {
Object ( _babel _runtime _helpers _esm _inherits _ _WEBPACK _IMPORTED _MODULE _4 _ _ [ "default" ] ) ( PositionedAtSelection , _Component ) ;
function PositionedAtSelection ( ) {
var _this ;
Object ( _babel _runtime _helpers _esm _classCallCheck _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "default" ] ) ( this , PositionedAtSelection ) ;
_this = Object ( _babel _runtime _helpers _esm _possibleConstructorReturn _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "default" ] ) ( this , Object ( _babel _runtime _helpers _esm _getPrototypeOf _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "default" ] ) ( PositionedAtSelection ) . apply ( this , arguments ) ) ;
_this . state = {
style : getCurrentCaretPositionStyle ( )
} ;
return _this ;
}
Object ( _babel _runtime _helpers _esm _createClass _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "default" ] ) ( PositionedAtSelection , [ {
key : "render" ,
value : function render ( ) {
var children = this . props . children ;
var style = this . state . style ;
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "createElement" ] ) ( "div" , {
className : "editor-format-toolbar__selection-position" ,
style : style
} , children ) ;
}
} ] ) ;
return PositionedAtSelection ;
} ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _5 _ _ [ "Component" ] ) ;
/* harmony default export */ _ _webpack _exports _ _ [ "default" ] = ( PositionedAtSelection ) ;
2018-12-16 23:52:00 -05:00
/***/ } ) ,
/***/ "./node_modules/@wordpress/format-library/build-module/link/utils.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / format - library / build - module / link / utils . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: isValidHref */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "isValidHref" , function ( ) { return isValidHref ; } ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! lodash */ "lodash" ) ;
/* harmony import */ var lodash _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( lodash _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/* harmony import */ var _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/url */ "@wordpress/url" ) ;
/* harmony import */ var _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/ * *
* External dependencies
* /
/ * *
* WordPress dependencies
* /
/ * *
* Check for issues with the provided href .
*
* @ param { string } href The href .
*
* @ return { boolean } Is the href invalid ?
* /
function isValidHref ( href ) {
if ( ! href ) {
return false ;
}
var trimmedHref = href . trim ( ) ;
if ( ! trimmedHref ) {
return false ;
Block Editor: Update `@wordpress` dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
- Upgrades React from 16.5.2 to 16.6.3.
- Adds a missing `wp-date` dependency to the editor script.
- Updates changed dependencies in `script-loader.php`.
- Fixes undefined notices in some blocks.
- Removes incorrect `gutenberg` textdomain.
Merges [43891], [43903], and [43919] to trunk.
Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.
Built from https://develop.svn.wordpress.org/trunk@44262
git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 10:37:00 -05:00
} // Does the href start with something that looks like a URL protocol?
2018-12-16 23:52:00 -05:00
if ( /^\S+:/ . test ( trimmedHref ) ) {
var protocol = Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "getProtocol" ] ) ( trimmedHref ) ;
if ( ! Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "isValidProtocol" ] ) ( protocol ) ) {
return false ;
Block Editor: Update `@wordpress` dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
- Upgrades React from 16.5.2 to 16.6.3.
- Adds a missing `wp-date` dependency to the editor script.
- Updates changed dependencies in `script-loader.php`.
- Fixes undefined notices in some blocks.
- Removes incorrect `gutenberg` textdomain.
Merges [43891], [43903], and [43919] to trunk.
Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.
Built from https://develop.svn.wordpress.org/trunk@44262
git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 10:37:00 -05:00
} // Add some extra checks for http(s) URIs, since these are the most common use-case.
// This ensures URIs with an http protocol have exactly two forward slashes following the protocol.
if ( Object ( lodash _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "startsWith" ] ) ( protocol , 'http' ) && ! /^https?:\/\/[^\/\s]/i . test ( trimmedHref ) ) {
return false ;
2018-12-16 23:52:00 -05:00
}
var authority = Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "getAuthority" ] ) ( trimmedHref ) ;
if ( ! Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "isValidAuthority" ] ) ( authority ) ) {
return false ;
}
var path = Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "getPath" ] ) ( trimmedHref ) ;
if ( path && ! Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "isValidPath" ] ) ( path ) ) {
return false ;
}
var queryString = Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "getQueryString" ] ) ( trimmedHref ) ;
if ( queryString && ! Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "isValidQueryString" ] ) ( queryString ) ) {
return false ;
}
var fragment = Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "getFragment" ] ) ( trimmedHref ) ;
Block Editor: Update `@wordpress` dependencies to match Gutenberg 4.5.1.
- Update the annotations, api-fetch, block-library, blocks, components, compose, core-data, data, date, dom, edit-post, editor, element, format-library, html-entities, i18n, jest-console, jest-preset-default, keycodes, list-reusable-blocks, notices, nux, plugins, rich-text, scripts, token-lists, url, viewport packages.
- Upgrades React from 16.5.2 to 16.6.3.
- Adds a missing `wp-date` dependency to the editor script.
- Updates changed dependencies in `script-loader.php`.
- Fixes undefined notices in some blocks.
- Removes incorrect `gutenberg` textdomain.
Merges [43891], [43903], and [43919] to trunk.
Props atimmer, aduth, youknowriad, danielbachhuber.
See #45145.
Built from https://develop.svn.wordpress.org/trunk@44262
git-svn-id: http://core.svn.wordpress.org/trunk@44092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-17 10:37:00 -05:00
if ( fragment && ! Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "isValidFragment" ] ) ( fragment ) ) {
2018-12-16 23:52:00 -05:00
return false ;
}
} // Validate anchor links.
if ( Object ( lodash _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "startsWith" ] ) ( trimmedHref , '#' ) && ! Object ( _wordpress _url _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "isValidFragment" ] ) ( trimmedHref ) ) {
return false ;
}
return true ;
}
2018-12-14 06:02:53 -05:00
/***/ } ) ,
/***/ "./node_modules/@wordpress/format-library/build-module/strikethrough/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / @ wordpress / format - library / build - module / strikethrough / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! exports provided: strikethrough */
/***/ ( function ( module , _ _webpack _exports _ _ , _ _webpack _require _ _ ) {
"use strict" ;
_ _webpack _require _ _ . r ( _ _webpack _exports _ _ ) ;
/* harmony export (binding) */ _ _webpack _require _ _ . d ( _ _webpack _exports _ _ , "strikethrough" , function ( ) { return strikethrough ; } ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! @wordpress/element */ "@wordpress/element" ) ;
/* harmony import */ var _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! @wordpress/i18n */ "@wordpress/i18n" ) ;
/* harmony import */ var _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ = _ _webpack _require _ _ ( /*! @wordpress/rich-text */ "@wordpress/rich-text" ) ;
/* harmony import */ var _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ ) ;
2018-12-16 23:52:00 -05:00
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ = _ _webpack _require _ _ ( /*! @wordpress/editor */ "@wordpress/editor" ) ;
/* harmony import */ var _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ ) ;
2018-12-14 06:02:53 -05:00
/ * *
* WordPress dependencies
* /
2018-12-16 23:52:00 -05:00
2018-12-14 06:02:53 -05:00
var name = 'core/strikethrough' ;
var strikethrough = {
name : name ,
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Strikethrough' ) ,
2018-12-16 23:52:00 -05:00
tagName : 'del' ,
className : null ,
2018-12-14 06:02:53 -05:00
edit : function edit ( _ref ) {
var isActive = _ref . isActive ,
value = _ref . value ,
2018-12-16 23:52:00 -05:00
onChange = _ref . onChange ;
2018-12-14 06:02:53 -05:00
var onToggle = function onToggle ( ) {
return onChange ( Object ( _wordpress _rich _text _ _WEBPACK _IMPORTED _MODULE _2 _ _ [ "toggleFormat" ] ) ( value , {
type : name
} ) ) ;
} ;
2018-12-16 23:52:00 -05:00
return Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "Fragment" ] , null , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "RichTextShortcut" ] , {
2018-12-14 06:02:53 -05:00
type : "access" ,
character : "d" ,
onUse : onToggle
2018-12-16 23:52:00 -05:00
} ) , Object ( _wordpress _element _ _WEBPACK _IMPORTED _MODULE _0 _ _ [ "createElement" ] ) ( _wordpress _editor _ _WEBPACK _IMPORTED _MODULE _3 _ _ [ "RichTextToolbarButton" ] , {
2018-12-14 06:02:53 -05:00
name : "strikethrough" ,
icon : "editor-strikethrough" ,
title : Object ( _wordpress _i18n _ _WEBPACK _IMPORTED _MODULE _1 _ _ [ "__" ] ) ( 'Strikethrough' ) ,
onClick : onToggle ,
isActive : isActive ,
shortcutType : "access" ,
shortcutCharacter : "d"
} ) ) ;
}
} ;
2018-12-16 23:52:00 -05:00
/***/ } ) ,
/***/ "./node_modules/classnames/index.js" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / classnames / index . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var _ _WEBPACK _AMD _DEFINE _ARRAY _ _ , _ _WEBPACK _AMD _DEFINE _RESULT _ _ ; / * !
Copyright ( c ) 2017 Jed Watson .
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
* /
/* global define */
( function ( ) {
'use strict' ;
var hasOwn = { } . hasOwnProperty ;
function classNames ( ) {
var classes = [ ] ;
for ( var i = 0 ; i < arguments . length ; i ++ ) {
var arg = arguments [ i ] ;
if ( ! arg ) continue ;
var argType = typeof arg ;
if ( argType === 'string' || argType === 'number' ) {
classes . push ( arg ) ;
} else if ( Array . isArray ( arg ) && arg . length ) {
var inner = classNames . apply ( null , arg ) ;
if ( inner ) {
classes . push ( inner ) ;
}
} else if ( argType === 'object' ) {
for ( var key in arg ) {
if ( hasOwn . call ( arg , key ) && arg [ key ] ) {
classes . push ( key ) ;
}
}
}
}
return classes . join ( ' ' ) ;
}
if ( true && module . exports ) {
classNames . default = classNames ;
module . exports = classNames ;
} else if ( true ) {
// register as 'classnames', consistent with npm package name
! ( _ _WEBPACK _AMD _DEFINE _ARRAY _ _ = [ ] , _ _WEBPACK _AMD _DEFINE _RESULT _ _ = ( function ( ) {
return classNames ;
} ) . apply ( exports , _ _WEBPACK _AMD _DEFINE _ARRAY _ _ ) ,
_ _WEBPACK _AMD _DEFINE _RESULT _ _ !== undefined && ( module . exports = _ _WEBPACK _AMD _DEFINE _RESULT _ _ ) ) ;
} else { }
} ( ) ) ;
2018-12-14 06:02:53 -05:00
/***/ } ) ,
/***/ "@wordpress/components" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "components" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "components" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/dom" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "dom" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "dom" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/editor" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "editor" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "editor" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/element" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "element" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "element" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/i18n" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "i18n" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "i18n" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/keycodes" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "keycodes" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "keycodes" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/rich-text" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "richText" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "richText" ] ; } ( ) ) ;
/***/ } ) ,
/***/ "@wordpress/url" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external { "this" : [ "wp" , "url" ] } * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "wp" ] [ "url" ] ; } ( ) ) ;
2018-12-16 23:52:00 -05:00
/***/ } ) ,
/***/ "lodash" :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * external "lodash" * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * /
/*! no static exports found */
/***/ ( function ( module , exports ) {
( function ( ) { module . exports = this [ "lodash" ] ; } ( ) ) ;
2018-12-14 06:02:53 -05:00
/***/ } )
/******/ } ) ;
//# sourceMappingURL=format-library.js.map