@khanacademy/perseus 64.0.0 → 65.1.0
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/components/inline-icon.d.ts +1 -2
- package/dist/es/index.css +1 -1
- package/dist/es/index.js +23 -31
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +22 -32
- package/dist/index.js.map +1 -1
- package/dist/renderability.d.ts +0 -9
- package/dist/renderer.d.ts +1 -1
- package/dist/server-item-renderer.d.ts +1 -0
- package/dist/types.d.ts +0 -2
- package/dist/util.d.ts +7 -7
- package/dist/widget-ai-utils/label-image/label-image-ai-utils.d.ts +1 -0
- package/dist/widget-ai-utils/radio/radio-ai-utils.d.ts +1 -0
- package/dist/widgets/definition/definition.d.ts +0 -1
- package/dist/widgets/dropdown/dropdown.d.ts +0 -1
- package/dist/widgets/explanation/explanation.d.ts +0 -1
- package/dist/widgets/expression/expression.d.ts +4 -5
- package/dist/widgets/graded-group/graded-group.d.ts +0 -1
- package/dist/widgets/graded-group-set/graded-group-set.d.ts +0 -1
- package/dist/widgets/group/group.d.ts +0 -1
- package/dist/widgets/image/image.d.ts +0 -1
- package/dist/widgets/interactive-graph.d.ts +0 -1
- package/dist/widgets/label-image/label-image.d.ts +0 -1
- package/dist/widgets/numeric-input/numeric-input.class.d.ts +0 -1
- package/dist/widgets/radio/base-radio.new.d.ts +5 -5
- package/dist/widgets/radio/choice-icon/choice-icon.new.d.ts +2 -2
- package/dist/widgets/radio/choice-none-above.new.d.ts +2 -2
- package/dist/widgets/radio/choice.new.d.ts +2 -2
- package/dist/widgets/radio/focus-ring.new.d.ts +3 -3
- package/dist/widgets/radio/option-status.new.d.ts +3 -3
- package/dist/widgets/radio/radio.d.ts +0 -1
- package/dist/widgets/table/table.d.ts +0 -1
- package/dist/widgets.d.ts +0 -2
- package/package.json +11 -11
- package/dist/a11y.d.ts +0 -5
- package/dist/traversal.d.ts +0 -15
- package/dist/util.graphie.d.ts +0 -6
package/dist/renderability.d.ts
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calculates whether a perseus item is renderable by a specific
|
|
3
|
-
* perseus-item-data version.
|
|
4
|
-
*
|
|
5
|
-
* This is done inside of the perseus repo so that it can traverse
|
|
6
|
-
* widget-specific data that might need to do a sub-traversal.
|
|
7
|
-
* This supports widgets that contain renderers, such as the
|
|
8
|
-
* group or sequence widgets.
|
|
9
|
-
*/
|
|
10
1
|
export declare const isItemRenderableByVersion: (itemData: any, rendererContentVersion: any) => boolean;
|
package/dist/renderer.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import type { GetPromptJSONInterface, RendererPromptJSON } from "./widget-ai-uti
|
|
|
10
10
|
import type { KeypadAPI } from "@khanacademy/math-input";
|
|
11
11
|
import type { PerseusRenderer, PerseusWidget, PerseusWidgetOptions, PerseusWidgetsMap, ShowSolutions, PerseusScore, UserInputArray, UserInputMap } from "@khanacademy/perseus-core";
|
|
12
12
|
import type { LinterContextProps } from "@khanacademy/perseus-linter";
|
|
13
|
-
import "./styles/perseus-renderer.
|
|
13
|
+
import "./styles/perseus-renderer.css";
|
|
14
14
|
type WidgetState = {
|
|
15
15
|
isMobile?: boolean;
|
|
16
16
|
inTable?: boolean;
|
|
@@ -69,6 +69,7 @@ export declare class ServerItemRenderer extends React.Component<Props, State> im
|
|
|
69
69
|
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
70
70
|
componentDidUpdate(prevProps: Props, prevState: State): void;
|
|
71
71
|
componentWillUnmount(): void;
|
|
72
|
+
maybeCallOnRendered(): void;
|
|
72
73
|
_handleFocusChange: (newFocus: FocusPath, oldFocus: FocusPath) => void;
|
|
73
74
|
_setCurrentFocus(newFocus: FocusPath): void;
|
|
74
75
|
_onRendererBlur(blurPath: FocusPath): void;
|
package/dist/types.d.ts
CHANGED
|
@@ -349,7 +349,6 @@ export type WidgetExports<T extends React.ComponentType<any> & Widget = React.Co
|
|
|
349
349
|
displayName: string;
|
|
350
350
|
getWidget?: () => T;
|
|
351
351
|
widget: T;
|
|
352
|
-
accessible?: boolean | ((props: any) => boolean);
|
|
353
352
|
/** Supresses widget from showing up in the dropdown in the content editor */
|
|
354
353
|
hidden?: boolean;
|
|
355
354
|
/**
|
|
@@ -363,7 +362,6 @@ export type WidgetExports<T extends React.ComponentType<any> & Widget = React.Co
|
|
|
363
362
|
version?: Version;
|
|
364
363
|
isLintable?: boolean;
|
|
365
364
|
tracking?: Tracking;
|
|
366
|
-
traverseChildWidgets?: any;
|
|
367
365
|
/**
|
|
368
366
|
* Transforms the widget options to the props used to render the widget.
|
|
369
367
|
*/
|
package/dist/util.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { getRealImageUrl, getBaseUrl, getSvgUrl, getDataUrl, getImageSizeModern, isLabeledSVG } from "@khanacademy/perseus-core";
|
|
2
2
|
import type { Range } from "@khanacademy/perseus-core";
|
|
3
3
|
import type * as React from "react";
|
|
4
4
|
type WordPosition = {
|
|
@@ -188,12 +188,12 @@ declare const Util: {
|
|
|
188
188
|
readonly supportsPassiveEvents: () => boolean;
|
|
189
189
|
readonly captureScratchpadTouchStart: typeof captureScratchpadTouchStart;
|
|
190
190
|
readonly getImageSize: typeof getImageSize;
|
|
191
|
-
readonly getImageSizeModern: typeof
|
|
192
|
-
readonly getRealImageUrl: typeof
|
|
193
|
-
readonly isLabeledSVG: typeof
|
|
194
|
-
readonly getBaseUrl: typeof
|
|
195
|
-
readonly getSvgUrl: typeof
|
|
196
|
-
readonly getDataUrl: typeof
|
|
191
|
+
readonly getImageSizeModern: typeof getImageSizeModern;
|
|
192
|
+
readonly getRealImageUrl: typeof getRealImageUrl;
|
|
193
|
+
readonly isLabeledSVG: typeof isLabeledSVG;
|
|
194
|
+
readonly getBaseUrl: typeof getBaseUrl;
|
|
195
|
+
readonly getSvgUrl: typeof getSvgUrl;
|
|
196
|
+
readonly getDataUrl: typeof getDataUrl;
|
|
197
197
|
readonly textarea: {
|
|
198
198
|
readonly getWordBeforeCursor: typeof getWordBeforeCursor;
|
|
199
199
|
readonly moveCursor: typeof moveCursor;
|
|
@@ -73,7 +73,6 @@ export declare class Expression extends React.Component<Props, ExpressionState>
|
|
|
73
73
|
declare const _default: {
|
|
74
74
|
name: string;
|
|
75
75
|
displayName: string;
|
|
76
|
-
accessible: true;
|
|
77
76
|
widget: React.ForwardRefExoticComponent<Omit<Pick<RenderProps & import("../../types").UniversalWidgetProps<Empty, Empty> & Partial<import("../..").PerseusDependenciesV2> & {
|
|
78
77
|
apiOptions: NonNullable<ExternalProps["apiOptions"]>;
|
|
79
78
|
buttonSets: NonNullable<ExternalProps["buttonSets"]>;
|
|
@@ -85,8 +84,11 @@ declare const _default: {
|
|
|
85
84
|
visibleLabel: PerseusExpressionWidgetOptions["visibleLabel"];
|
|
86
85
|
ariaLabel: PerseusExpressionWidgetOptions["ariaLabel"];
|
|
87
86
|
value: string;
|
|
88
|
-
}, "static" | "
|
|
87
|
+
}, "static" | "onChange" | "ariaLabel" | "buttonsVisible" | "containerSizeClass" | "widgetId" | "problemNum" | "questionCompleted" | "findWidgets" | "trackInteraction" | "keypadElement" | "reviewMode" | keyof import("../..").PerseusDependenciesV2 | "reviewModeRubric" | "alignment" | "isLastUsedWidget" | "visibleLabel" | "keypadConfiguration"> & {
|
|
89
88
|
value?: string | undefined;
|
|
89
|
+
buttonSets?: import("@khanacademy/perseus-core").LegacyButtonSets | undefined;
|
|
90
|
+
onFocus?: ((blurPath: FocusPath) => void) | undefined;
|
|
91
|
+
onBlur?: ((blurPath: FocusPath) => void) | undefined;
|
|
90
92
|
apiOptions?: Readonly<Readonly<{
|
|
91
93
|
isArticle?: boolean;
|
|
92
94
|
onFocusChange?: (newFocusPath: FocusPath, oldFocusPath: FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
|
|
@@ -135,10 +137,7 @@ declare const _default: {
|
|
|
135
137
|
setDrawingAreaAvailable: NonNullable<import("../..").APIOptions["setDrawingAreaAvailable"]>;
|
|
136
138
|
showAlignmentOptions: NonNullable<import("../..").APIOptions["showAlignmentOptions"]>;
|
|
137
139
|
}> | undefined;
|
|
138
|
-
onBlur?: ((blurPath: FocusPath) => void) | undefined;
|
|
139
|
-
onFocus?: ((blurPath: FocusPath) => void) | undefined;
|
|
140
140
|
linterContext?: import("@khanacademy/perseus-linter").LinterContextProps | undefined;
|
|
141
|
-
buttonSets?: import("@khanacademy/perseus-core").LegacyButtonSets | undefined;
|
|
142
141
|
functions?: string[] | undefined;
|
|
143
142
|
times?: boolean | undefined;
|
|
144
143
|
} & {}, keyof import("../..").PerseusDependenciesV2> & React.RefAttributes<Expression>>;
|
|
@@ -38,7 +38,6 @@ declare class ImageWidget extends React.Component<Props> implements Widget {
|
|
|
38
38
|
}
|
|
39
39
|
declare const _default: {
|
|
40
40
|
name: string;
|
|
41
|
-
accessible: (widgetOptions: PerseusImageWidgetOptions) => boolean;
|
|
42
41
|
displayName: string;
|
|
43
42
|
widget: typeof ImageWidget;
|
|
44
43
|
isLintable: true;
|
|
@@ -93,7 +93,6 @@ declare const _default: {
|
|
|
93
93
|
} & import("../../types").UniversalWidgetProps<Empty, Empty> & Partial<import("../..").PerseusDependenciesV2> & {
|
|
94
94
|
preferredPopoverDirection?: PreferredPopoverDirection;
|
|
95
95
|
}, keyof import("../..").PerseusDependenciesV2> & React.RefAttributes<LabelImage>>;
|
|
96
|
-
accessible: true;
|
|
97
96
|
isLintable: true;
|
|
98
97
|
};
|
|
99
98
|
export default _default;
|
|
@@ -56,7 +56,6 @@ export declare class NumericInput extends React.Component<NumericInputProps> imp
|
|
|
56
56
|
declare const _default: {
|
|
57
57
|
name: string;
|
|
58
58
|
displayName: string;
|
|
59
|
-
accessible: true;
|
|
60
59
|
widget: typeof NumericInput;
|
|
61
60
|
transform: (widgetOptions: PerseusNumericInputWidgetOptions) => RenderProps;
|
|
62
61
|
isLintable: true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PerseusRadioWidgetOptions } from "@khanacademy/perseus-core";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import type { APIOptions } from "../../types";
|
|
4
|
-
export
|
|
4
|
+
export interface ChoiceType {
|
|
5
5
|
checked: boolean;
|
|
6
6
|
content: React.ReactNode;
|
|
7
7
|
rationale: React.ReactNode;
|
|
@@ -14,8 +14,8 @@ export type ChoiceType = {
|
|
|
14
14
|
previouslyAnswered: boolean;
|
|
15
15
|
revealNoneOfTheAbove: boolean;
|
|
16
16
|
disabled: boolean;
|
|
17
|
-
}
|
|
18
|
-
|
|
17
|
+
}
|
|
18
|
+
interface BaseRadioProps {
|
|
19
19
|
apiOptions: APIOptions;
|
|
20
20
|
choices: ReadonlyArray<ChoiceType>;
|
|
21
21
|
deselectEnabled?: boolean;
|
|
@@ -30,7 +30,7 @@ type Props = {
|
|
|
30
30
|
checked: ReadonlyArray<boolean>;
|
|
31
31
|
}) => void;
|
|
32
32
|
isLastUsedWidget?: boolean;
|
|
33
|
-
}
|
|
33
|
+
}
|
|
34
34
|
/**
|
|
35
35
|
* The BaseRadio component is the core component for the radio widget.
|
|
36
36
|
* It is responsible for rendering the radio choices and handling user interactions.
|
|
@@ -41,5 +41,5 @@ type Props = {
|
|
|
41
41
|
*
|
|
42
42
|
* TODO(LEMS-2994): Clean up this file.
|
|
43
43
|
*/
|
|
44
|
-
declare const BaseRadio: ({ apiOptions, reviewModeRubric, reviewMode, choices, editMode, multipleSelect, labelWrap, countChoices, numCorrect, isLastUsedWidget, onChange, }:
|
|
44
|
+
declare const BaseRadio: ({ apiOptions, reviewModeRubric, reviewMode, choices, editMode, multipleSelect, labelWrap, countChoices, numCorrect, isLastUsedWidget, onChange, }: BaseRadioProps) => React.ReactElement;
|
|
45
45
|
export default BaseRadio;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
2
|
+
interface ChoiceIconProps {
|
|
3
3
|
pos: number;
|
|
4
4
|
checked: boolean;
|
|
5
5
|
focused: boolean;
|
|
@@ -10,7 +10,7 @@ type ChoiceIconProps = {
|
|
|
10
10
|
multipleSelect: boolean;
|
|
11
11
|
reviewMode: boolean;
|
|
12
12
|
previouslyAnswered: boolean;
|
|
13
|
-
}
|
|
13
|
+
}
|
|
14
14
|
/**
|
|
15
15
|
* This component is a duplicate of the ChoiceIcon component in choice-icon.tsx
|
|
16
16
|
* for the Radio Revitalization Project. (LEMS-2933)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { ChoiceProps } from "./choice.new";
|
|
3
|
-
interface
|
|
3
|
+
interface ChoiceNoneAboveProps extends ChoiceProps {
|
|
4
4
|
showContent?: boolean;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
@@ -10,5 +10,5 @@ interface Props extends ChoiceProps {
|
|
|
10
10
|
*
|
|
11
11
|
* TODO(LEMS-2994): Clean up this file.
|
|
12
12
|
*/
|
|
13
|
-
declare const ChoiceNoneAbove: React.ForwardRefExoticComponent<
|
|
13
|
+
declare const ChoiceNoneAbove: React.ForwardRefExoticComponent<ChoiceNoneAboveProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
14
|
export default ChoiceNoneAbove;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { APIOptions } from "../../types";
|
|
3
|
-
export
|
|
3
|
+
export interface ChoiceProps {
|
|
4
4
|
apiOptions?: APIOptions;
|
|
5
5
|
checked?: boolean;
|
|
6
6
|
rationale: React.ReactNode;
|
|
@@ -16,7 +16,7 @@ export type ChoiceProps = {
|
|
|
16
16
|
onChange?: (newValues: {
|
|
17
17
|
checked: boolean;
|
|
18
18
|
}) => void;
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
20
|
/**
|
|
21
21
|
* This component is a duplicate of the Choice component in choice.tsx
|
|
22
22
|
* for the Radio Revitalization Project. (LEMS-2933)
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Renders a circular selection ring around the child.
|
|
3
3
|
*/
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
|
|
5
|
+
interface FocusRingProps {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
visible?: boolean;
|
|
8
8
|
color?: string;
|
|
9
9
|
multipleSelect?: boolean;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
11
|
/**
|
|
12
12
|
* This component is a duplicate of the FocusRing component in focus-ring.tsx
|
|
13
13
|
* for the Radio Revitalization Project. (LEMS-2933)
|
|
@@ -15,5 +15,5 @@ type Props = {
|
|
|
15
15
|
*
|
|
16
16
|
* TODO(LEMS-2994): Clean up this file.
|
|
17
17
|
*/
|
|
18
|
-
declare const FocusRing: ({ visible, color, multipleSelect, children, }:
|
|
18
|
+
declare const FocusRing: ({ visible, color, multipleSelect, children, }: FocusRingProps) => React.ReactElement;
|
|
19
19
|
export default FocusRing;
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* between the states more immediately clear to users.
|
|
7
7
|
*/
|
|
8
8
|
import * as React from "react";
|
|
9
|
-
|
|
9
|
+
interface OptionStatusProps {
|
|
10
10
|
correct: boolean;
|
|
11
11
|
checked: boolean;
|
|
12
12
|
previouslyAnswered: boolean;
|
|
13
13
|
reviewMode: boolean;
|
|
14
|
-
}
|
|
14
|
+
}
|
|
15
15
|
/**
|
|
16
16
|
* This component is a duplicate of the OptionStatus component in option-status.tsx
|
|
17
17
|
* for the Radio Revitalization Project. (LEMS-2933)
|
|
@@ -19,5 +19,5 @@ type Props = {
|
|
|
19
19
|
*
|
|
20
20
|
* TODO(LEMS-2994): Clean up this file.
|
|
21
21
|
*/
|
|
22
|
-
declare const OptionStatus: ({ checked, correct, previouslyAnswered, reviewMode, }:
|
|
22
|
+
declare const OptionStatus: ({ checked, correct, previouslyAnswered, reviewMode, }: OptionStatusProps) => React.ReactElement | null;
|
|
23
23
|
export default OptionStatus;
|
|
@@ -5,7 +5,6 @@ import type { PerseusRadioWidgetOptions } from "@khanacademy/perseus-core";
|
|
|
5
5
|
declare const _default: {
|
|
6
6
|
name: string;
|
|
7
7
|
displayName: string;
|
|
8
|
-
accessible: true;
|
|
9
8
|
widget: typeof Radio;
|
|
10
9
|
transform: (widgetOptions: PerseusRadioWidgetOptions, strings: PerseusStrings, problemNum?: number | null) => RenderProps;
|
|
11
10
|
staticTransform: (widgetOptions: PerseusRadioWidgetOptions, strings: PerseusStrings, problemNum?: number | null) => RenderProps;
|
package/dist/widgets.d.ts
CHANGED
|
@@ -35,10 +35,8 @@ export declare const getVersionVector: () => {
|
|
|
35
35
|
[key: string]: Version;
|
|
36
36
|
};
|
|
37
37
|
export declare const getPublicWidgets: () => Record<string, WidgetExports>;
|
|
38
|
-
export declare const isAccessible: (widgetInfo: PerseusWidget) => boolean;
|
|
39
38
|
export declare const getAllWidgetTypes: () => ReadonlyArray<string>;
|
|
40
39
|
export declare const getRendererPropsForWidgetInfo: (widgetInfo: PerseusWidget, strings: PerseusStrings, problemNum?: number) => PerseusWidget;
|
|
41
|
-
export declare const traverseChildWidgets: (widgetInfo: PerseusWidget, traverseRenderer: any) => PerseusWidget;
|
|
42
40
|
/**
|
|
43
41
|
* Handling for static mode for widgets that support it.
|
|
44
42
|
*/
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Core Perseus API (includes renderers and widgets)",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "65.1.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
"mafs": "0.19.0",
|
|
42
42
|
"tiny-invariant": "1.3.1",
|
|
43
43
|
"uuid": "^10.0.0",
|
|
44
|
-
"@khanacademy/kas": "2.0.
|
|
45
|
-
"@khanacademy/keypad-context": "3.0.
|
|
46
|
-
"@khanacademy/kmath": "2.0.
|
|
47
|
-
"@khanacademy/math-input": "26.0.
|
|
48
|
-
"@khanacademy/perseus-core": "
|
|
49
|
-
"@khanacademy/perseus-linter": "
|
|
50
|
-
"@khanacademy/perseus-score": "7.
|
|
44
|
+
"@khanacademy/kas": "2.0.6",
|
|
45
|
+
"@khanacademy/keypad-context": "3.0.14",
|
|
46
|
+
"@khanacademy/kmath": "2.0.14",
|
|
47
|
+
"@khanacademy/math-input": "26.0.3",
|
|
48
|
+
"@khanacademy/perseus-core": "14.0.1",
|
|
49
|
+
"@khanacademy/perseus-linter": "4.0.1",
|
|
50
|
+
"@khanacademy/perseus-score": "7.1.1",
|
|
51
51
|
"@khanacademy/perseus-utils": "2.0.4",
|
|
52
|
-
"@khanacademy/pure-markdown": "2.0.
|
|
53
|
-
"@khanacademy/simple-markdown": "2.0.
|
|
52
|
+
"@khanacademy/pure-markdown": "2.0.6",
|
|
53
|
+
"@khanacademy/simple-markdown": "2.0.6"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@khanacademy/wonder-blocks-banner": "4.1.21",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"react-dom": "18.2.0",
|
|
87
87
|
"react-popper": "^2.2.5",
|
|
88
88
|
"underscore": "1.4.4",
|
|
89
|
-
"perseus-build-settings": "0.
|
|
89
|
+
"perseus-build-settings": "0.7.0",
|
|
90
90
|
"raphael": "1.5.4"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
package/dist/a11y.d.ts
DELETED
package/dist/traversal.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Traverses a {content, widgets, images} renderer props object,
|
|
3
|
-
* such as `itemData.question`
|
|
4
|
-
*
|
|
5
|
-
* This traversal is deep and handles some widget prop upgrades
|
|
6
|
-
* (TODO(aria): Handle minor prop upgrades :) )
|
|
7
|
-
*
|
|
8
|
-
* This is the right way to traverse itemData.
|
|
9
|
-
*
|
|
10
|
-
* NOTE: We should not expose this on the perseus API yet. Instead,
|
|
11
|
-
* build the traversal method you want inside perseus, and use this
|
|
12
|
-
* from that. We might eventually expose this, but I'd like to be
|
|
13
|
-
* more confident in the interface provided first.
|
|
14
|
-
*/
|
|
15
|
-
export declare const traverse: (rendererOptions: any, contentCallback?: ((arg1: any) => any) | null, widgetCallback?: ((widgetInfo: any, widgetId: string) => any) | null, optionsCallback?: (arg1: any) => void) => any;
|
package/dist/util.graphie.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare function getRealImageUrl(graphieUrl: string): string;
|
|
2
|
-
export declare function isLabeledSVG(graphieUrl: string): boolean;
|
|
3
|
-
export declare function getBaseUrl(graphieUrl: string): string;
|
|
4
|
-
export declare function getSvgUrl(graphieUrl: string): string;
|
|
5
|
-
export declare function getDataUrl(graphieUrl: string): string;
|
|
6
|
-
export declare function getImageSizeModern(url: string): Promise<[number, number]>;
|