15 lines
2.1 KiB
JavaScript
15 lines
2.1 KiB
JavaScript
import{j as e}from"./index-bIIEL2MP.js";import{useMDXComponents as s}from"./index-CO-0pc0F.js";import{M as r,C as c}from"./index-Z-6k0Xrj.js";import{D as l,a as i}from"./DocumentCloud.stories-MTL-Zap_.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iframe-CzjIX-qr.js";import"./index-aQYXhgXp.js";import"./index-DrFu-skq.js";import"./props-b4vEeO_8.js";import"./runtime-C3rQLW--.js";import"./lifecycle-F2p_Qkk3.js";import"./create-runtime-stories-7AWWVphH.js";import"./snippet-C5kbqVpq.js";import"./svelte-component-C8Ginrj8.js";import"./get-C3XmtPLd.js";import"./attributes-Cg6aLqN3.js";import"./style-DvJ3IcV1.js";import"./Block-D3Ui8rd-.js";function t(n){const o={a:"a",code:"code",h1:"h1",p:"p",pre:"pre",strong:"strong",...s(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{of:l}),`
|
|
`,e.jsx(o.h1,{id:"documentcloud",children:"DocumentCloud"}),`
|
|
`,e.jsxs(o.p,{children:["The ",e.jsx(o.code,{children:"DocumentCloud"})," component embeds a document hosted by ",e.jsx(o.a,{href:"https://documentcloud.org",rel:"nofollow",children:"DocumentCloud"}),"."]}),`
|
|
`,e.jsxs(o.p,{children:["The document must have its access level set to ",e.jsx(o.strong,{children:"public"})," before it can be embedded. The ",e.jsx(o.code,{children:"slug"})," can be found after the final slash in the document's URL."]}),`
|
|
`,e.jsxs(o.p,{children:["For instance, the document included in the example is found at ",e.jsx(o.a,{href:"https://www.documentcloud.org/documents/3259984-Trump-Intelligence-Allegations",rel:"nofollow",children:"documentcloud.org/documents/3259984-Trump-Intelligence-Allegations"}),". The ",e.jsx(o.code,{children:"slug"})," is ",e.jsx(o.code,{children:"3259984-Trump-Intelligence-Allegations"}),"."]}),`
|
|
`,e.jsx(o.pre,{children:e.jsx(o.code,{className:"language-svelte",children:`<script>
|
|
import { DocumentCloud } from '@reuters-graphics/graphics-components';
|
|
<\/script>
|
|
|
|
<DocumentCloud
|
|
slug="3259984-Trump-Intelligence-Allegations"
|
|
altText="These Reports Allege Trump Has Deep Ties To Russia"
|
|
/>
|
|
`})}),`
|
|
`,e.jsx(c,{of:i})]})}function I(n={}){const{wrapper:o}={...s(),...n.components};return o?e.jsx(o,{...n,children:e.jsx(t,{...n})}):t(n)}export{I as default};
|