@plasmicpkgs/plasmic-basic-components 0.0.141 → 0.0.143

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Embed.d.ts CHANGED
@@ -5,6 +5,18 @@ export interface EmbedProps {
5
5
  code: string;
6
6
  hideInEditor?: boolean;
7
7
  }
8
+ /**
9
+ * A common use case for embedding HTML snippets is loading/running script tags, so most of the logic here is for
10
+ * handling that.
11
+ *
12
+ * You can't just write innerHTML with some <script> tags in there. You need to explicitly add each one via the DOM API.
13
+ *
14
+ * You also can't just add the script tags and expect them to run sequentially, and sometimes there are multiple scripts
15
+ * with dependencies on each other. You have to explicitly wait for earlier ones to finish loading.
16
+ *
17
+ * One last complication is that Next.js can run the effect multiple times in development mode. There's nothing actually
18
+ * that we can/should do about that, but just something to be aware of if you are here debugging issues.
19
+ */
8
20
  export default function Embed({ className, code, hideInEditor, }: EmbedProps): JSX.Element;
9
21
  export declare const embedMeta: ComponentMeta<EmbedProps>;
10
22
  export declare function registerEmbed(loader?: {