@doenet/doenetml-iframe 0.7.0-alpha13 → 0.7.0-alpha15

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/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # DoenetML IFrame Renderer
2
+
3
+ This workspace contains a DoenetML viewer and editor that render inside of an iframe.
4
+ This allows DoenetML to be used without affecting the surrounding page.
5
+ It also allows multiple versions of DoenetML to be used at the same time.
6
+
7
+ ## Development
8
+
9
+ Source code in `src/iframe-viewer-index.ts` and `src/iframe-editor-index.ts`
10
+ is pre-compiled and included directly in the generated iframe.
11
+ Source code in `src/index.tsx` is compiled into the `DoenetViewer` and `DoenetEditor` components.
package/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  import { default as default_2 } from 'react';
2
2
  import { DoenetEditor as DoenetEditor_2 } from '@doenet/doenetml';
3
3
  import { DoenetViewer as DoenetViewer_2 } from '@doenet/doenetml';
4
+ import { ErrorDescription } from '@doenet/utils';
4
5
  import { mathjaxConfig } from '@doenet/utils';
6
+ import { WarningDescription } from '@doenet/utils';
5
7
 
6
8
  /**
7
9
  * Render Doenet Editor constrained to an iframe. A URL pointing to a version of DoenetML
@@ -47,7 +49,7 @@ export declare type DoenetEditorIframeProps = DoenetEditorProps & {
47
49
  height?: string;
48
50
  };
49
51
 
50
- declare type DoenetEditorProps = Omit<React.ComponentProps<typeof DoenetEditor_2>, "doenetML" | "width" | "height">;
52
+ declare type DoenetEditorProps = Omit<React.ComponentProps<typeof DoenetEditor_2>, "doenetML" | "width" | "height" | "keyboardIsOutsideIframe">;
51
53
 
52
54
  /**
53
55
  * Render Doenet viewer constrained to an iframe. A URL pointing to a version of DoenetML
@@ -58,7 +60,7 @@ declare type DoenetEditorProps = Omit<React.ComponentProps<typeof DoenetEditor_2
58
60
  * DoenetML component. Instead you must use the message passing interface of `DoenetViewer` to communicate
59
61
  * with the underlying DoenetML component.
60
62
  */
61
- export declare function DoenetViewer({ doenetML, standaloneUrl: specifiedStandaloneUrl, cssUrl: specifiedCssUrl, doenetmlVersion: specifiedDoenetmlVersion, autodetectVersion, scrollableContainer: _scrollableContainer, ...doenetViewerProps }: DoenetViewerIframeProps): default_2.JSX.Element | null;
63
+ export declare function DoenetViewer({ doenetML, standaloneUrl: specifiedStandaloneUrl, cssUrl: specifiedCssUrl, doenetmlVersion: specifiedDoenetmlVersion, autodetectVersion, ...doenetViewerProps }: DoenetViewerIframeProps): default_2.JSX.Element | null;
62
64
 
63
65
  export declare type DoenetViewerIframeProps = DoenetViewerProps & {
64
66
  doenetML: string;
@@ -83,17 +85,16 @@ export declare type DoenetViewerIframeProps = DoenetViewerProps & {
83
85
  * overwriting any doenetmlVersion or urls provided
84
86
  */
85
87
  autodetectVersion?: boolean;
86
- /**
87
- * Added to remove the scrollableContainer attribute from DoenetViewerProps
88
- * that will be stringified (as it has circular structure)
89
- */
90
- scrollableContainer?: any;
91
88
  };
92
89
 
93
- declare type DoenetViewerProps = Omit<React.ComponentProps<typeof DoenetViewer_2>, "doenetML" | "scrollableContainer">;
90
+ declare type DoenetViewerProps = Omit<React.ComponentProps<typeof DoenetViewer_2>, "doenetML" | "scrollableContainer" | "keyboardIsOutsideIframe">;
91
+
92
+ export { ErrorDescription }
94
93
 
95
94
  export { mathjaxConfig }
96
95
 
97
96
  export declare const version: string;
98
97
 
98
+ export { WarningDescription }
99
+
99
100
  export { }