forked from vermiliondesign/gutenberg-post-selector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.map
1 lines (1 loc) · 36.5 KB
/
index.map
1
{"version":3,"sources":["../node_modules/object-assign/index.js","../node_modules/react/cjs/react.production.min.js","../node_modules/react/index.js","PostSelector.js","index.js"],"names":["getOwnPropertySymbols","Object","hasOwnProperty","prototype","propIsEnumerable","propertyIsEnumerable","toObject","val","TypeError","shouldUseNative","assign","test1","String","getOwnPropertyNames","test2","i","fromCharCode","order2","map","n","join","test3","split","forEach","letter","keys","err","module","exports","target","source","from","symbols","to","s","arguments","length","key","call","k","require","Symbol","for","p","q","r","t","u","v","w","x","y","z","A","B","C","iterator","aa","a","b","e","c","d","g","h","f","Error","l","m","replace","name","framesToPop","D","encodeURIComponent","E","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","F","G","props","context","refs","updater","H","I","isReactComponent","setState","forceUpdate","J","constructor","isPureReactComponent","K","current","currentDispatcher","L","M","ref","__self","__source","N","children","Array","defaultProps","$$typeof","type","_owner","ba","O","escape","P","Q","R","pop","result","keyPrefix","func","count","S","push","T","U","isArray","next","done","value","V","toString","ca","da","W","X","Children","toArray","only","createRef","Component","PureComponent","createContext","_calculateChangedBits","_currentValue","_currentValue2","_threadCount","Provider","Consumer","_context","forwardRef","render","lazy","_ctor","_status","_result","memo","compare","Fragment","StrictMode","Suspense","createElement","cloneElement","createFactory","bind","isValidElement","version","unstable_ConcurrentMode","unstable_Profiler","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","Y","default","Z","wp","element","decodeEntities","htmlEntities","keycodes","UP","DOWN","ENTER","components","Spinner","Popover","IconButton","withInstanceId","compose","apiFetch","addQueryArgs","url","stopEventPropagation","event","stopPropagation","debounce","wait","timeout","args","clearTimeout","setTimeout","apply","PostSelector","onChange","onKeyDown","bindListNode","updateSuggestions","limit","parseInt","suggestionNodes","state","posts","showSuggestions","selectedSuggestion","input","suggestionsRequest","listNode","index","test","loading","request","path","search","per_page","subtype","postType","undefined","then","catch","inputValue","keyCode","preventDefault","previousIndex","nextIndex","post","selectLink","data","reachOutToApi","returnData","prop","onPostSelect","id","response","fullpost","title","rendered","excerpt","link","date","human_date","display","justifyContent","alignItems","flexWrap","maxWidth","padding","textAlign","splice","autoFocus","instanceId","inputDisabled","renderSelectedPosts","width","bindSuggestionNode"],"mappings":";AAMA,aAEA,IAAIA,EAAwBC,OAAOD,sBAC/BE,EAAiBD,OAAOE,UAAUD,eAClCE,EAAmBH,OAAOE,UAAUE,qBAExC,SAASC,EAASC,GACbA,GAAAA,MAAAA,EACG,MAAA,IAAIC,UAAU,yDAGdP,OAAAA,OAAOM,GAGf,SAASE,IACJ,IACC,IAACR,OAAOS,OACJ,OAAA,EAMJC,IAAAA,EAAQ,IAAIC,OAAO,OAEnBX,GADJU,EAAM,GAAK,KACkC,MAAzCV,OAAOY,oBAAoBF,GAAO,GAC9B,OAAA,EAKH,IADDG,IAAAA,EAAQ,GACHC,EAAI,EAAGA,EAAI,GAAIA,IACvBD,EAAM,IAAMF,OAAOI,aAAaD,IAAMA,EAKnCE,GAAoB,eAHXhB,OAAOY,oBAAoBC,GAAOI,IAAI,SAAUC,GACrDL,OAAAA,EAAMK,KAEHC,KAAK,IACR,OAAA,EAIJC,IAAAA,EAAQ,GAIRpB,MAHmBqB,uBAAAA,MAAM,IAAIC,QAAQ,SAAUC,GAClDH,EAAMG,GAAUA,IAGf,yBADEvB,OAAOwB,KAAKxB,OAAOS,OAAO,GAAIW,IAAQD,KAAK,IAM9C,MAAOM,GAED,OAAA,GAITC,OAAOC,QAAUnB,IAAoBR,OAAOS,OAAS,SAAUmB,EAAQC,GAKjE,IAJDC,IAAAA,EAEAC,EADAC,EAAK3B,EAASuB,GAGTK,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAGrC,IAAA,IAAIG,KAFTN,EAAO9B,OAAOkC,UAAUD,IAGnBhC,EAAeoC,KAAKP,EAAMM,KA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) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/** @license React v16.7.0\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var k=require(\"object-assign\"),n=\"function\"===typeof Symbol&&Symbol.for,p=n?Symbol.for(\"react.element\"):60103,q=n?Symbol.for(\"react.portal\"):60106,r=n?Symbol.for(\"react.fragment\"):60107,t=n?Symbol.for(\"react.strict_mode\"):60108,u=n?Symbol.for(\"react.profiler\"):60114,v=n?Symbol.for(\"react.provider\"):60109,w=n?Symbol.for(\"react.context\"):60110,x=n?Symbol.for(\"react.concurrent_mode\"):60111,y=n?Symbol.for(\"react.forward_ref\"):60112,z=n?Symbol.for(\"react.suspense\"):60113,A=n?Symbol.for(\"react.memo\"):\n60115,B=n?Symbol.for(\"react.lazy\"):60116,C=\"function\"===typeof Symbol&&Symbol.iterator;function aa(a,b,e,c,d,g,h,f){if(!a){a=void 0;if(void 0===b)a=Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var l=[e,c,d,g,h,f],m=0;a=Error(b.replace(/%s/g,function(){return l[m++]}));a.name=\"Invariant Violation\"}a.framesToPop=1;throw a;}}\nfunction D(a){for(var b=arguments.length-1,e=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=0;c<b;c++)e+=\"&args[]=\"+encodeURIComponent(arguments[c+1]);aa(!1,\"Minified React error #\"+a+\"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. \",e)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F={};\nfunction G(a,b,e){this.props=a;this.context=b;this.refs=F;this.updater=e||E}G.prototype.isReactComponent={};G.prototype.setState=function(a,b){\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a?D(\"85\"):void 0;this.updater.enqueueSetState(this,a,b,\"setState\")};G.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function H(){}H.prototype=G.prototype;function I(a,b,e){this.props=a;this.context=b;this.refs=F;this.updater=e||E}var J=I.prototype=new H;\nJ.constructor=I;k(J,G.prototype);J.isPureReactComponent=!0;var K={current:null,currentDispatcher:null},L=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0};\nfunction N(a,b,e){var c=void 0,d={},g=null,h=null;if(null!=b)for(c in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(g=\"\"+b.key),b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=b[c]);var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){for(var l=Array(f),m=0;m<f;m++)l[m]=arguments[m+2];d.children=l}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===d[c]&&(d[c]=f[c]);return{$$typeof:p,type:a,key:g,ref:h,props:d,_owner:K.current}}\nfunction ba(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+(\"\"+a).replace(/[=:]/g,function(a){return b[a]})}var P=/\\/+/g,Q=[];function R(a,b,e,c){if(Q.length){var d=Q.pop();d.result=a;d.keyPrefix=b;d.func=e;d.context=c;d.count=0;return d}return{result:a,keyPrefix:b,func:e,context:c,count:0}}\nfunction S(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q.length&&Q.push(a)}\nfunction T(a,b,e,c){var d=typeof a;if(\"undefined\"===d||\"boolean\"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case \"string\":case \"number\":g=!0;break;case \"object\":switch(a.$$typeof){case p:case q:g=!0}}if(g)return e(c,a,\"\"===b?\".\"+U(a,0):b),1;g=0;b=\"\"===b?\".\":b+\":\";if(Array.isArray(a))for(var h=0;h<a.length;h++){d=a[h];var f=b+U(d,h);g+=T(d,f,e,c)}else if(null===a||\"object\"!==typeof a?f=null:(f=C&&a[C]||a[\"@@iterator\"],f=\"function\"===typeof f?f:null),\"function\"===typeof f)for(a=f.call(a),h=\n0;!(d=a.next()).done;)d=d.value,f=b+U(d,h++),g+=T(d,f,e,c);else\"object\"===d&&(e=\"\"+a,D(\"31\",\"[object Object]\"===e?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":e,\"\"));return g}function V(a,b,e){return null==a?0:T(a,\"\",b,e)}function U(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ca(a,b){a.func.call(a.context,b,a.count++)}\nfunction da(a,b,e){var c=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,c,e,function(a){return a}):null!=a&&(O(a)&&(a=ba(a,d+(!a.key||b&&b.key===a.key?\"\":(\"\"+a.key).replace(P,\"$&/\")+\"/\")+e)),c.push(a))}function W(a,b,e,c,d){var g=\"\";null!=e&&(g=(\"\"+e).replace(P,\"$&/\")+\"/\");b=R(b,g,c,d);V(a,da,b);S(b)}\nvar X={Children:{map:function(a,b,e){if(null==a)return a;var c=[];W(a,c,null,b,e);return c},forEach:function(a,b,e){if(null==a)return a;b=R(null,null,b,e);V(a,ca,b);S(b)},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){O(a)?void 0:D(\"143\");return a}},createRef:function(){return{current:null}},Component:G,PureComponent:I,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,\n_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:B,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:A,type:a,compare:void 0===b?null:b}},Fragment:r,StrictMode:t,Suspense:z,createElement:N,cloneElement:function(a,b,e){null===a||void 0===a?D(\"267\",a):void 0;var c=void 0,d=k({},a.props),g=a.key,h=a.ref,f=a._owner;\nif(null!=b){void 0!==b.ref&&(h=b.ref,f=K.current);void 0!==b.key&&(g=\"\"+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)d.children=e;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];d.children=l}return{$$typeof:p,type:a.type,key:g,ref:h,props:d,_owner:f}},createFactory:function(a){var b=N.bind(null,a);b.type=a;return b},isValidElement:O,version:\"16.7.0\",\nunstable_ConcurrentMode:x,unstable_Profiler:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:K,assign:k}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","const { Component, Fragment } = wp.element;\nconst { decodeEntities } = wp.htmlEntities;\nconst { UP, DOWN, ENTER } = wp.keycodes;\nconst { Spinner, Popover, IconButton } = wp.components;\nconst { withInstanceId } = wp.compose;\nconst { apiFetch } = wp;\nconst { addQueryArgs } = wp.url;\n\nconst stopEventPropagation = event => event.stopPropagation();\n\nfunction debounce(func, wait = 100) {\n let timeout;\n return function (...args) {\n clearTimeout(timeout);\n timeout = setTimeout(() => {\n func.apply(this, args);\n }, wait);\n };\n}\n\nclass PostSelector extends Component {\n /**\n * ===== Available Props =======\n *\n * posts <Array> of Post Objects, must include ID and title.\n * data <Array> array of post properties to return (top level only right now)\n * postType = <String> singular name of post type to restrict results to.\n * onPostSelect <Function> callback for when a new post is selected.\n * onChange <Function> callback for when posts are deleted or rearranged.\n * limit <Number> limit selection to posts to X number of posts.\n *\n */\n constructor() {\n super(...arguments);\n this.onChange = this.onChange.bind(this);\n this.onKeyDown = this.onKeyDown.bind(this);\n this.bindListNode = this.bindListNode.bind(this);\n this.updateSuggestions = debounce(this.updateSuggestions.bind(this), 200);\n this.limit = this.props.limit ? parseInt(this.props.limit) : false;\n\n this.suggestionNodes = [];\n\n this.state = {\n posts: [],\n showSuggestions: false,\n selectedSuggestion: null,\n input: ''\n };\n }\n\n componentDidUpdate() { }\n\n componentWillUnmount() {\n delete this.suggestionsRequest;\n }\n\n bindListNode(ref) {\n this.listNode = ref;\n }\n\n bindSuggestionNode(index) {\n return ref => {\n this.suggestionNodes[index] = ref;\n };\n }\n\n updateSuggestions(value) {\n // Show the suggestions after typing at least 2 characters\n // and also for URLs\n if (value.length < 2 || /^https?:/.test(value)) {\n this.setState({\n showSuggestions: false,\n selectedSuggestion: null,\n loading: false\n });\n\n return;\n }\n\n this.setState({\n showSuggestions: true,\n selectedSuggestion: null,\n loading: true\n });\n\n const request = apiFetch({\n path: addQueryArgs('/wp/v2/search', {\n search: value,\n per_page: 20,\n type: 'post',\n subtype: this.props.postType ? this.props.postType : undefined\n })\n });\n\n request\n .then(posts => {\n // A fetch Promise doesn't have an abort option. It's mimicked by\n // comparing the request reference in on the instance, which is\n // reset or deleted on subsequent requests or unmounting.\n if (this.suggestionsRequest !== request) {\n return;\n }\n\n this.setState({\n posts,\n loading: false\n });\n })\n .catch(() => {\n if (this.suggestionsRequest === request) {\n this.setState({\n loading: false\n });\n }\n });\n\n this.suggestionsRequest = request;\n }\n\n onChange(event) {\n const inputValue = event.target.value;\n this.setState({ input: inputValue });\n this.updateSuggestions(inputValue);\n }\n\n onKeyDown(event) {\n const { showSuggestions, selectedSuggestion, posts, loading } = this.state;\n // If the suggestions are not shown or loading, we shouldn't handle the arrow keys\n // We shouldn't preventDefault to allow block arrow keys navigation\n if (!showSuggestions || !posts.length || loading) {\n return;\n }\n\n switch (event.keyCode) {\n case UP: {\n event.stopPropagation();\n event.preventDefault();\n const previousIndex = !selectedSuggestion ? posts.length - 1 : selectedSuggestion - 1;\n this.setState({\n selectedSuggestion: previousIndex\n });\n break;\n }\n case DOWN: {\n event.stopPropagation();\n event.preventDefault();\n const nextIndex = selectedSuggestion === null || selectedSuggestion === posts.length - 1 ? 0 : selectedSuggestion + 1;\n this.setState({\n selectedSuggestion: nextIndex\n });\n break;\n }\n case ENTER: {\n if (this.state.selectedSuggestion !== null) {\n event.stopPropagation();\n const post = this.state.posts[this.state.selectedSuggestion];\n this.selectLink(post);\n }\n }\n }\n }\n\n selectLink(post) {\n // get the \"full\" post data if a post was selected. this may be something to add as a prop in the future for custom use cases.\n if (this.props.data) {\n // if data already exists in the post object, there's no need to make an API call.\n let reachOutToApi = false;\n const returnData = {};\n for (const prop of this.props.data) {\n if (!post.hasOwnProperty(prop)) {\n reachOutToApi = true;\n return;\n }\n returnData[prop] = post[prop];\n }\n\n if (!reachOutToApi) {\n this.props.onPostSelect(returnData);\n this.setState({\n input: '',\n selectedSuggestion: null,\n showSuggestions: false\n });\n return;\n }\n }\n apiFetch({\n path: `/wp/v2/${post.subtype}s/${post.id}`\n }).then(response => {\n // console.log( response );\n const fullpost = {\n title: decodeEntities(response.title.rendered),\n id: response.id,\n excerpt: decodeEntities(response.excerpt.rendered),\n url: response.link,\n date: response.human_date\n\n };\n // send data to the block;\n this.props.onPostSelect(fullpost);\n });\n\n this.setState({\n input: '',\n selectedSuggestion: null,\n showSuggestions: false\n });\n }\n\n renderSelectedPosts() {\n // show each post in the list.\n return (\n <ul>\n {this.props.posts.map((post, i) => (\n <li style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'baseline', flexWrap: 'nowrap' }} key={post.id}>\n <span style={{ maxWidth: '60%' }}>{post.title}</span>\n <span>\n {i !== 0 ? (\n <IconButton\n style={{ display: 'inline-flex', padding: '8px 2px', textAlign: 'center' }}\n icon=\"arrow-up-alt2\"\n onClick={() => {\n this.props.posts.splice(i - 1, 0, this.props.posts.splice(i, 1)[0]);\n this.props.onChange(this.props.posts);\n this.setState({ state: this.state });\n }}\n />\n ) : null}\n\n {i !== this.props.posts.length - 1 ? (\n <IconButton\n style={{ display: 'inline-flex', padding: '8px 2px', textAlign: 'center' }}\n icon=\"arrow-down-alt2\"\n onClick={() => {\n this.props.posts.splice(i + 1, 0, this.props.posts.splice(i, 1)[0]);\n this.props.onChange(this.props.posts);\n this.setState({ state: this.state });\n }}\n />\n ) : null}\n\n <IconButton\n style={{ display: 'inline-flex', textAlign: 'center' }}\n icon=\"no\"\n onClick={() => {\n this.props.posts.splice(i, 1);\n this.props.onChange(this.props.posts);\n // force a re-render.\n this.setState({ state: this.state });\n }}\n />\n </span>\n </li>\n ))}\n </ul>\n );\n }\n\n render() {\n const { autoFocus = true, instanceId, limit } = this.props;\n const { showSuggestions, posts, selectedSuggestion, loading, input } = this.state;\n const inputDisabled = !!limit && this.props.posts.length >= limit;\n /* eslint-disable jsx-a11y/no-autofocus */\n return (\n <Fragment>\n {this.renderSelectedPosts()}\n <div className=\"editor-url-input\">\n <input\n autoFocus={autoFocus}\n type=\"text\"\n aria-label={'URL'}\n required\n value={input}\n onChange={this.onChange}\n onInput={stopEventPropagation}\n placeholder={inputDisabled ? `Limted to ${limit} posts` : 'Type page or post name'}\n onKeyDown={this.onKeyDown}\n role=\"combobox\"\n aria-expanded={showSuggestions}\n aria-autocomplete=\"list\"\n aria-owns={`editor-url-input-suggestions-${instanceId}`}\n aria-activedescendant={selectedSuggestion !== null ? `editor-url-input-suggestion-${instanceId}-${selectedSuggestion}` : undefined}\n style={{ width: '100%' }}\n disabled={inputDisabled}\n />\n\n {loading && <Spinner />}\n </div>\n {showSuggestions &&\n !!posts.length && (\n <Popover position=\"bottom\" noArrow focusOnMount={false}>\n <div className=\"editor-url-input__suggestions\" id={`editor-url-input-suggestions-${instanceId}`} ref={this.bindListNode} role=\"listbox\">\n {posts.map((post, index) => (\n <button key={post.id} role=\"option\" tabIndex=\"-1\" id={`editor-url-input-suggestion-${instanceId}-${index}`} ref={this.bindSuggestionNode(index)} className={`editor-url-input__suggestion ${index === selectedSuggestion ? 'is-selected' : ''}`} onClick={() => this.selectLink(post)} aria-selected={index === selectedSuggestion}>\n {decodeEntities(post.title) || '(no title)'}\n </button>\n ))}\n </div>\n </Popover>\n )}\n </Fragment>\n );\n /* eslint-enable jsx-a11y/no-autofocus */\n }\n}\n\nexport default withInstanceId(PostSelector);\n","import PostSelector from './PostSelector';\n\nexport default PostSelector;\n"]}