@wordpress/components
Version:
UI components for WordPress.
8 lines (7 loc) • 1.33 kB
Source Map (JSON)
{
"version": 3,
"sources": ["../../src/focusable-iframe/index.tsx"],
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMergeRefs, useFocusableIframe } from '@wordpress/compose';\nimport deprecated from '@wordpress/deprecated';\n/**\n * Internal dependencies\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function FocusableIframe({\n iframeRef,\n ...props\n}) {\n const ref = useMergeRefs([iframeRef, useFocusableIframe()]);\n deprecated('wp.components.FocusableIframe', {\n since: '5.9',\n alternative: 'wp.compose.useFocusableIframe'\n });\n // Disable reason: The rendered iframe is a pass-through component,\n // assigning props inherited from the rendering parent. It's the\n // responsibility of the parent to assign a title.\n // eslint-disable-next-line jsx-a11y/iframe-has-title\n return /*#__PURE__*/_jsx(\"iframe\", {\n ref: ref,\n ...props\n });\n}"],
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAiD;AACjD,wBAAuB;AAIvB,yBAA4B;AACb,SAAR,gBAAiC;AAAA,EACtC;AAAA,EACA,GAAG;AACL,GAAG;AACD,QAAM,UAAM,6BAAa,CAAC,eAAW,mCAAmB,CAAC,CAAC;AAC1D,wBAAAA,SAAW,iCAAiC;AAAA,IAC1C,OAAO;AAAA,IACP,aAAa;AAAA,EACf,CAAC;AAKD,SAAoB,uCAAAC,KAAK,UAAU;AAAA,IACjC;AAAA,IACA,GAAG;AAAA,EACL,CAAC;AACH;",
"names": ["deprecated", "_jsx"]
}