@wordpress/components
Version:
UI components for WordPress.
1 lines • 1.24 kB
Source Map (JSON)
{"version":3,"file":"index.cjs","names":["useMergeRefs","useFocusableIframe"],"sources":["../../src/focusable-iframe/index.tsx"],"sourcesContent":["import { useMergeRefs, useFocusableIframe } from '@wordpress/compose';\nimport deprecated from '@wordpress/deprecated';\nimport type { FocusableIframeProps } from './types';\n\nexport default function FocusableIframe( {\n\tiframeRef,\n\t...props\n}: FocusableIframeProps ) {\n\tconst ref = useMergeRefs( [ iframeRef, useFocusableIframe() ] );\n\tdeprecated( 'wp.components.FocusableIframe', {\n\t\tsince: '5.9',\n\t\talternative: 'wp.compose.useFocusableIframe',\n\t} );\n\t// Disable reason: The rendered iframe is a pass-through component,\n\t// assigning props inherited from the rendering parent. It's the\n\t// responsibility of the parent to assign a title.\n\t// eslint-disable-next-line jsx-a11y/iframe-has-title\n\treturn <iframe ref={ ref } { ...props } />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,SAAwB,gBAAiB,EACxC,WACA,GAAG,SACsB;CACzB,MAAM,OAAA,GAAMA,mBAAAA,aAAAA,CAAc,CAAE,YAAA,GAAWC,mBAAAA,mBAAAA,CAAmB,CAAE,CAAE;CAC9D,CAAA,GAAA,sBAAA,QAAA,CAAY,iCAAiC;EAC5C,OAAO;EACP,aAAa;CACd,CAAE;CAKF,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD;EAAc;EAAM,GAAK;CAAS,CAAA;AAC1C"}