@doenet/doenetml-iframe 0.7.0-alpha10 → 0.7.0-alpha12
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/index.d.ts +24 -6
- package/index.js +39723 -23546
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -12,22 +12,31 @@ import { mathjaxConfig } from '@doenet/utils';
|
|
|
12
12
|
* DoenetML component. Instead you must use the message passing interface of `DoenetEditor` to communicate
|
|
13
13
|
* with the underlying DoenetML component.
|
|
14
14
|
*/
|
|
15
|
-
export declare function DoenetEditor({ doenetML, standaloneUrl: specifiedStandaloneUrl, cssUrl: specifiedCssUrl, doenetmlVersion: specifiedDoenetmlVersion, width, height, ...doenetEditorProps }: DoenetEditorIframeProps): default_2.JSX.Element;
|
|
15
|
+
export declare function DoenetEditor({ doenetML, standaloneUrl: specifiedStandaloneUrl, cssUrl: specifiedCssUrl, doenetmlVersion: specifiedDoenetmlVersion, width, height, autodetectVersion, ...doenetEditorProps }: DoenetEditorIframeProps): default_2.JSX.Element | null;
|
|
16
16
|
|
|
17
17
|
export declare type DoenetEditorIframeProps = DoenetEditorProps & {
|
|
18
18
|
doenetML: string;
|
|
19
19
|
/**
|
|
20
20
|
* The URL of a standalone DoenetML bundle. This may be from the CDN.
|
|
21
|
+
* If autodetectVersion is `true` and a version is detected, this URL is ignored.
|
|
21
22
|
*/
|
|
22
23
|
standaloneUrl?: string;
|
|
23
24
|
/**
|
|
24
25
|
* The URL of a CSS file that styles the standalone DoenetML bundle.
|
|
26
|
+
* If autodetectVersion is `true` and a version is detected, this URL is ignored.
|
|
25
27
|
*/
|
|
26
28
|
cssUrl?: string;
|
|
27
29
|
/**
|
|
28
|
-
* The version of standalone DoenetML bundle if urls are not provided
|
|
30
|
+
* The version of standalone DoenetML bundle if urls are not provided.
|
|
31
|
+
* If autodetectVersion is `true` and a version is detected, this setting is ignored.
|
|
29
32
|
*/
|
|
30
33
|
doenetmlVersion?: string;
|
|
34
|
+
/**
|
|
35
|
+
* If `true`, look for a xmlns attribute in an outer `<document>` tag
|
|
36
|
+
* and use that for the doenetmlVersion,
|
|
37
|
+
* overwriting any doenetmlVersion or urls provided
|
|
38
|
+
*/
|
|
39
|
+
autodetectVersion?: boolean;
|
|
31
40
|
/**
|
|
32
41
|
* The width of the iframe (and the width of the editor-viewer widget)
|
|
33
42
|
*/
|
|
@@ -38,7 +47,7 @@ export declare type DoenetEditorIframeProps = DoenetEditorProps & {
|
|
|
38
47
|
height?: string;
|
|
39
48
|
};
|
|
40
49
|
|
|
41
|
-
declare type DoenetEditorProps = Omit<
|
|
50
|
+
declare type DoenetEditorProps = Omit<React.ComponentProps<typeof DoenetEditor_2>, "doenetML" | "width" | "height">;
|
|
42
51
|
|
|
43
52
|
/**
|
|
44
53
|
* Render Doenet viewer constrained to an iframe. A URL pointing to a version of DoenetML
|
|
@@ -49,22 +58,31 @@ declare type DoenetEditorProps = Omit<default_2.ComponentProps<typeof DoenetEdit
|
|
|
49
58
|
* DoenetML component. Instead you must use the message passing interface of `DoenetViewer` to communicate
|
|
50
59
|
* with the underlying DoenetML component.
|
|
51
60
|
*/
|
|
52
|
-
export declare function DoenetViewer({ doenetML, standaloneUrl: specifiedStandaloneUrl, cssUrl: specifiedCssUrl, doenetmlVersion: specifiedDoenetmlVersion, scrollableContainer: _scrollableContainer, ...doenetViewerProps }: DoenetViewerIframeProps): default_2.JSX.Element;
|
|
61
|
+
export declare function DoenetViewer({ doenetML, standaloneUrl: specifiedStandaloneUrl, cssUrl: specifiedCssUrl, doenetmlVersion: specifiedDoenetmlVersion, autodetectVersion, scrollableContainer: _scrollableContainer, ...doenetViewerProps }: DoenetViewerIframeProps): default_2.JSX.Element | null;
|
|
53
62
|
|
|
54
63
|
export declare type DoenetViewerIframeProps = DoenetViewerProps & {
|
|
55
64
|
doenetML: string;
|
|
56
65
|
/**
|
|
57
66
|
* The URL of a standalone DoenetML bundle. This may be from the CDN.
|
|
67
|
+
* If autodetectVersion is `true` and a version is detected, this URL is ignored.
|
|
58
68
|
*/
|
|
59
69
|
standaloneUrl?: string;
|
|
60
70
|
/**
|
|
61
71
|
* The URL of a CSS file that styles the standalone DoenetML bundle.
|
|
72
|
+
* If autodetectVersion is `true` and a version is detected, this URL is ignored.
|
|
62
73
|
*/
|
|
63
74
|
cssUrl?: string;
|
|
64
75
|
/**
|
|
65
|
-
* The version of standalone DoenetML bundle if urls are not provided
|
|
76
|
+
* The version of standalone DoenetML bundle if urls are not provided.
|
|
77
|
+
* If autodetectVersion is `true` and a version is detected, this setting is ignored.
|
|
66
78
|
*/
|
|
67
79
|
doenetmlVersion?: string;
|
|
80
|
+
/**
|
|
81
|
+
* If `true`, look for a xmlns attribute in an outer `<document>` tag
|
|
82
|
+
* and use that for the doenetmlVersion,
|
|
83
|
+
* overwriting any doenetmlVersion or urls provided
|
|
84
|
+
*/
|
|
85
|
+
autodetectVersion?: boolean;
|
|
68
86
|
/**
|
|
69
87
|
* Added to remove the scrollableContainer attribute from DoenetViewerProps
|
|
70
88
|
* that will be stringified (as it has circular structure)
|
|
@@ -72,7 +90,7 @@ export declare type DoenetViewerIframeProps = DoenetViewerProps & {
|
|
|
72
90
|
scrollableContainer?: any;
|
|
73
91
|
};
|
|
74
92
|
|
|
75
|
-
declare type DoenetViewerProps = Omit<
|
|
93
|
+
declare type DoenetViewerProps = Omit<React.ComponentProps<typeof DoenetViewer_2>, "doenetML" | "scrollableContainer">;
|
|
76
94
|
|
|
77
95
|
export { mathjaxConfig }
|
|
78
96
|
|