@khanacademy/perseus 4.0.2 → 6.0.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/CHANGELOG.md +57 -0
- package/dist/components/fixed-to-responsive.d.ts +27 -1
- package/dist/components/fixed-to-responsive.js.flow +27 -1
- package/dist/components/graph.d.ts +42 -26
- package/dist/components/graph.js.flow +42 -28
- package/dist/components/graphie.d.ts +34 -22
- package/dist/components/graphie.js.flow +37 -24
- package/dist/components/highlighting/highlightable-content.d.ts +4 -4
- package/dist/components/highlighting/highlightable-content.js.flow +4 -7
- package/dist/components/highlighting/ui/highlight-renderer.d.ts +6 -6
- package/dist/components/highlighting/ui/highlight-renderer.js.flow +6 -8
- package/dist/components/highlighting/ui/highlight-set-renderer.d.ts +5 -5
- package/dist/components/highlighting/ui/highlight-set-renderer.js.flow +5 -8
- package/dist/components/highlighting/ui/highlight-tooltip.d.ts +2 -2
- package/dist/components/highlighting/ui/highlight-tooltip.js.flow +2 -4
- package/dist/components/highlighting/ui/highlighting-ui.d.ts +2 -2
- package/dist/components/highlighting/ui/highlighting-ui.js.flow +2 -2
- package/dist/components/highlighting/ui/selection-tracker.d.ts +5 -5
- package/dist/components/highlighting/ui/selection-tracker.js.flow +5 -7
- package/dist/components/highlighting/word-indexer.d.ts +2 -2
- package/dist/components/highlighting/word-indexer.js.flow +2 -2
- package/dist/components/hud.d.ts +8 -14
- package/dist/components/hud.js.flow +7 -14
- package/dist/components/inline-icon.d.ts +27 -3
- package/dist/components/inline-icon.js.flow +26 -3
- package/dist/components/lint.d.ts +41 -13
- package/dist/components/lint.js.flow +42 -13
- package/dist/components/math-output.d.ts +15 -11
- package/dist/components/math-output.js.flow +15 -11
- package/dist/components/simple-keypad-input.d.ts +1 -1
- package/dist/components/simple-keypad-input.js.flow +1 -1
- package/dist/components/sortable.d.ts +17 -9
- package/dist/components/sortable.js.flow +22 -9
- package/dist/components/svg-image.d.ts +5 -3
- package/dist/components/svg-image.js.flow +5 -3
- package/dist/components/tex-buttons.d.ts +2 -2
- package/dist/components/tex-buttons.js.flow +2 -2
- package/dist/components/tooltip.d.ts +45 -4
- package/dist/components/tooltip.js.flow +44 -31
- package/dist/error-boundary.d.ts +4 -4
- package/dist/error-boundary.js.flow +4 -6
- package/dist/es/index.css +0 -3
- package/dist/es/index.js +484 -658
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +0 -3
- package/dist/index.js +488 -655
- package/dist/index.js.map +1 -1
- package/dist/perseus-types.d.ts +11 -10
- package/dist/perseus-types.js.flow +11 -10
- package/dist/renderer.d.ts +2 -2
- package/dist/renderer.js.flow +1 -3
- package/dist/styles/shared.d.ts +0 -1
- package/dist/styles/shared.js.flow +0 -1
- package/dist/types.d.ts +0 -10
- package/dist/types.js.flow +0 -13
- package/dist/util/a11y.d.ts +0 -1
- package/dist/util/a11y.js.flow +0 -1
- package/dist/util/interactive.d.ts +2 -0
- package/dist/util/interactive.js.flow +2 -0
- package/dist/util.d.ts +3 -3
- package/dist/util.js.flow +4 -3
- package/dist/widgets/__stories__/test-keypad-context-wrapper.d.ts +2 -2
- package/dist/widgets/__stories__/test-keypad-context-wrapper.js.flow +2 -4
- package/dist/widgets/expression.d.ts +2 -2
- package/dist/widgets/expression.js.flow +2 -2
- package/dist/widgets/grapher.d.ts +1 -1
- package/dist/widgets/grapher.js.flow +12 -3
- package/dist/widgets/interaction/element-container.d.ts +5 -4
- package/dist/widgets/interaction/element-container.js.flow +6 -11
- package/dist/widgets/label-image/marker.d.ts +4 -4
- package/dist/widgets/label-image/marker.js.flow +4 -6
- package/dist/widgets/matcher.d.ts +7 -3
- package/dist/widgets/matcher.js.flow +7 -3
- package/dist/widgets/number-line.d.ts +1 -1
- package/dist/widgets/number-line.js.flow +1 -1
- package/dist/widgets/numeric-input.d.ts +0 -2
- package/dist/widgets/numeric-input.js.flow +0 -4
- package/dist/widgets/radio/base-radio.d.ts +7 -1
- package/dist/widgets/radio/base-radio.js.flow +7 -1
- package/dist/widgets/radio/choice-icon/choice-icon.d.ts +1 -1
- package/dist/widgets/radio/choice-icon/choice-icon.js.flow +1 -1
- package/dist/widgets/radio/choice-icon/cross-out-line.d.ts +2 -2
- package/dist/widgets/radio/choice-icon/cross-out-line.js.flow +2 -2
- package/dist/widgets/radio/focus-ring.d.ts +8 -1
- package/dist/widgets/radio/focus-ring.js.flow +8 -1
- package/dist/widgets/radio/option-status.d.ts +2 -2
- package/dist/widgets/radio/option-status.js.flow +2 -2
- package/dist/widgets/video-transcript-link.d.ts +1 -1
- package/dist/widgets/video-transcript-link.js.flow +1 -1
- package/package.json +4 -4
- package/src/__stories__/item-renderer.stories.tsx +2 -6
- package/src/__stories__/server-item-renderer.stories.tsx +2 -6
- package/src/__tests__/__snapshots__/item-renderer.test.tsx.snap +151 -159
- package/src/__tests__/__snapshots__/renderer.test.tsx.snap +358 -394
- package/src/__tests__/__snapshots__/server-item-renderer.test.tsx.snap +169 -189
- package/src/components/__stories__/button-group.stories.tsx +2 -6
- package/src/components/__stories__/fixed-to-responsive.stories.tsx +14 -16
- package/src/components/__stories__/graph.stories.tsx +3 -5
- package/src/components/__stories__/graphie.stories.tsx +3 -5
- package/src/components/__stories__/hud.stories.tsx +2 -6
- package/src/components/__stories__/icon.stories.tsx +1 -1
- package/src/components/__stories__/image-loader.stories.tsx +4 -4
- package/src/components/__stories__/info-tip.stories.tsx +2 -6
- package/src/components/__stories__/inline-icon.stories.tsx +4 -8
- package/src/components/__stories__/input-with-examples.stories.tsx +6 -10
- package/src/components/__stories__/lint.stories.tsx +62 -27
- package/src/components/__stories__/math-input.stories.tsx +4 -8
- package/src/components/__stories__/math-output.stories.tsx +3 -5
- package/src/components/__stories__/multi-button-group.stories.tsx +2 -6
- package/src/components/__stories__/number-input.stories.tsx +6 -8
- package/src/components/__stories__/prop-check-box.stories.tsx +9 -9
- package/src/components/__stories__/range-input.stories.tsx +4 -6
- package/src/components/__stories__/simple-keypad-input.stories.tsx +2 -4
- package/src/components/__stories__/sortable.stories.tsx +20 -20
- package/src/components/__stories__/stub-tag-editor.stories.tsx +5 -9
- package/src/components/__stories__/svg-image.stories.tsx +10 -18
- package/src/components/__stories__/tex.stories.tsx +1 -3
- package/src/components/__stories__/text-buttons.stories.tsx +10 -22
- package/src/components/__stories__/text-input.stories.tsx +4 -10
- package/src/components/__stories__/text-list-editor.stories.tsx +1 -3
- package/src/components/__stories__/tooltip.stories.tsx +52 -0
- package/src/components/__stories__/zoomable-tex.stories.tsx +6 -4
- package/src/components/__stories__/zoomable.stories.tsx +1 -3
- package/src/components/__tests__/__snapshots__/sortable.test.tsx.snap +114 -30
- package/src/components/__tests__/__snapshots__/sorter.test.tsx.snap +172 -204
- package/src/components/__tests__/sortable.test.tsx +54 -16
- package/src/components/__tests__/sorter.test.tsx +12 -9
- package/src/components/fixed-to-responsive.tsx +43 -38
- package/src/components/graph.tsx +95 -81
- package/src/components/graphie.tsx +62 -32
- package/src/components/highlighting/highlightable-content.tsx +4 -7
- package/src/components/highlighting/ui/highlight-renderer.tsx +6 -9
- package/src/components/highlighting/ui/highlight-set-renderer.tsx +5 -8
- package/src/components/highlighting/ui/highlight-tooltip.tsx +2 -2
- package/src/components/highlighting/ui/highlighting-ui.tsx +2 -2
- package/src/components/highlighting/ui/selection-tracker.tsx +5 -8
- package/src/components/highlighting/word-indexer.tsx +2 -2
- package/src/components/hud.tsx +104 -115
- package/src/components/inline-icon.tsx +17 -34
- package/src/components/input-with-examples.tsx +4 -4
- package/src/components/lint.tsx +47 -41
- package/src/components/math-output.tsx +17 -11
- package/src/components/simple-keypad-input.tsx +4 -4
- package/src/components/sortable.tsx +134 -94
- package/src/components/svg-image.tsx +10 -11
- package/src/components/tex-buttons.tsx +2 -2
- package/src/components/tooltip.tsx +189 -171
- package/src/components/visibility-observer/__stories__/visibility-observer.stories.tsx +1 -3
- package/src/error-boundary.tsx +4 -7
- package/src/interactive2/types.ts +2 -2
- package/src/multi-items/__stories__/multi-renderer.stories.tsx +1 -1
- package/src/multi-items/__tests__/__snapshots__/multi-renderer.test.tsx.snap +708 -764
- package/src/multi-items/__tests__/multi-renderer.test.tsx +2 -3
- package/src/perseus-types.ts +13 -12
- package/src/renderer.tsx +11 -22
- package/src/types.ts +0 -18
- package/src/util/graphie.ts +3 -3
- package/src/util/interactive.ts +18 -5
- package/src/util/tex.ts +13 -77
- package/src/util.ts +3 -4
- package/src/widgets/__stories__/categorizer.stories.tsx +1 -1
- package/src/widgets/__stories__/cs-program.stories.tsx +1 -1
- package/src/widgets/__stories__/definition.stories.tsx +3 -7
- package/src/widgets/__stories__/dropdown.stories.tsx +1 -1
- package/src/widgets/__stories__/explanation.stories.tsx +2 -2
- package/src/widgets/__stories__/expression.stories.tsx +5 -11
- package/src/widgets/__stories__/graded-group-set.stories.tsx +1 -1
- package/src/widgets/__stories__/graded-group.stories.tsx +1 -1
- package/src/widgets/__stories__/grapher.stories.tsx +7 -21
- package/src/widgets/__stories__/group.stories.tsx +1 -1
- package/src/widgets/__stories__/iframe.stories.tsx +1 -1
- package/src/widgets/__stories__/image.stories.tsx +1 -1
- package/src/widgets/__stories__/input-number.stories.tsx +3 -12
- package/src/widgets/__stories__/interaction.stories.tsx +1 -1
- package/src/widgets/__stories__/interactive-graph.stories.tsx +9 -9
- package/src/widgets/__stories__/matcher.stories.tsx +1 -1
- package/src/widgets/__stories__/matrix.stories.tsx +1 -1
- package/src/widgets/__stories__/number-line.stories.tsx +1 -1
- package/src/widgets/__stories__/numeric-input.stories.tsx +3 -5
- package/src/widgets/__stories__/orderer.stories.tsx +1 -1
- package/src/widgets/__stories__/passage-ref.stories.tsx +2 -2
- package/src/widgets/__stories__/passage.stories.tsx +3 -9
- package/src/widgets/__stories__/radio.stories.tsx +3 -5
- package/src/widgets/__stories__/sorter.stories.tsx +1 -1
- package/src/widgets/__stories__/test-keypad-context-wrapper.tsx +2 -4
- package/src/widgets/__stories__/transformer.stories.tsx +1 -1
- package/src/widgets/__stories__/unit.stories.tsx +1 -3
- package/src/widgets/__stories__/video-transcript-link.stories.tsx +2 -6
- package/src/widgets/__stories__/video.stories.tsx +1 -1
- package/src/widgets/__testdata__/group.testdata.ts +0 -2
- package/src/widgets/__tests__/__snapshots__/categorizer.test.ts.snap +717 -773
- package/src/widgets/__tests__/__snapshots__/cs-program.test.ts.snap +28 -36
- package/src/widgets/__tests__/__snapshots__/definition.test.ts.snap +52 -60
- package/src/widgets/__tests__/__snapshots__/dropdown.test.ts.snap +100 -108
- package/src/widgets/__tests__/__snapshots__/explanation.test.ts.snap +212 -260
- package/src/widgets/__tests__/__snapshots__/graded-group-set-jipt.test.ts.snap +613 -641
- package/src/widgets/__tests__/__snapshots__/graded-group-set.test.ts.snap +249 -261
- package/src/widgets/__tests__/__snapshots__/graded-group.test.ts.snap +671 -735
- package/src/widgets/__tests__/__snapshots__/grapher.test.ts.snap +2676 -2684
- package/src/widgets/__tests__/__snapshots__/group.test.tsx.snap +938 -1002
- package/src/widgets/__tests__/__snapshots__/iframe.test.ts.snap +28 -36
- package/src/widgets/__tests__/__snapshots__/image.test.ts.snap +227 -255
- package/src/widgets/__tests__/__snapshots__/input-number.test.ts.snap +353 -357
- package/src/widgets/__tests__/__snapshots__/interaction.test.ts.snap +255 -259
- package/src/widgets/__tests__/__snapshots__/interactive-graph.test.ts.snap +2401 -2433
- package/src/widgets/__tests__/__snapshots__/matcher.test.tsx.snap +600 -756
- package/src/widgets/__tests__/__snapshots__/matrix.test.ts.snap +420 -428
- package/src/widgets/__tests__/__snapshots__/number-line.test.ts.snap +762 -770
- package/src/widgets/__tests__/__snapshots__/numeric-input.test.ts.snap +373 -393
- package/src/widgets/__tests__/__snapshots__/orderer.test.ts.snap +116 -148
- package/src/widgets/__tests__/__snapshots__/passage-ref.test.ts.snap +289 -301
- package/src/widgets/__tests__/__snapshots__/passage.test.tsx.snap +1679 -1711
- package/src/widgets/__tests__/__snapshots__/radio.test.ts.snap +2692 -2960
- package/src/widgets/__tests__/__snapshots__/video.test.ts.snap +90 -98
- package/src/widgets/__tests__/group.test.tsx +0 -2
- package/src/widgets/__tests__/matcher.test.tsx +33 -9
- package/src/widgets/__tests__/radio/focus-ring.test.tsx +0 -1
- package/src/widgets/expression.tsx +12 -9
- package/src/widgets/grapher.tsx +3 -3
- package/src/widgets/image.tsx +2 -2
- package/src/widgets/interaction/element-container.tsx +7 -8
- package/src/widgets/interactive-graph.tsx +5 -5
- package/src/widgets/label-image/__stories__/answer-choices.stories.tsx +2 -4
- package/src/widgets/label-image/__stories__/marker.stories.tsx +9 -19
- package/src/widgets/label-image/marker.tsx +4 -4
- package/src/widgets/matcher.tsx +43 -24
- package/src/widgets/number-line.tsx +1 -1
- package/src/widgets/numeric-input.tsx +0 -3
- package/src/widgets/passage/passage-markdown.tsx +2 -2
- package/src/widgets/radio/__stories__/base-radio.stories.tsx +11 -19
- package/src/widgets/radio/__stories__/choice-icon.stories.tsx +9 -11
- package/src/widgets/radio/__stories__/choice-none-above.stories.tsx +1 -1
- package/src/widgets/radio/__stories__/choice.stories.tsx +4 -4
- package/src/widgets/radio/__stories__/focus-ring.stories.tsx +1 -1
- package/src/widgets/radio/__stories__/option-status.stories.tsx +2 -4
- package/src/widgets/radio/base-radio.tsx +1 -1
- package/src/widgets/radio/choice-icon/choice-icon.tsx +5 -5
- package/src/widgets/radio/choice-icon/cross-out-line.tsx +1 -3
- package/src/widgets/radio/choice-none-above.tsx +2 -2
- package/src/widgets/radio/choice.tsx +1 -3
- package/src/widgets/radio/focus-ring.tsx +1 -1
- package/src/widgets/radio/option-status.tsx +2 -4
- package/src/widgets/radio/widget.tsx +0 -1
- package/src/widgets/reaction-diagram.tsx +2 -2
- package/src/widgets/simulator.tsx +4 -6
- package/src/widgets/video-transcript-link.tsx +1 -1
- package/{tsconfig.json → tsconfig-build.json} +6 -6
- package/tsconfig-build.tsbuildinfo +1 -0
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -16,24 +16,18 @@ const defaultObject = {
|
|
|
16
16
|
onChange: () => {},
|
|
17
17
|
} as const;
|
|
18
18
|
|
|
19
|
-
export const EmptyPropsObject: React.
|
|
20
|
-
args,
|
|
21
|
-
): React.ReactElement => {
|
|
19
|
+
export const EmptyPropsObject = (args: StoryArgs): React.ReactElement => {
|
|
22
20
|
return <TextInput {...defaultObject} />;
|
|
23
21
|
};
|
|
24
22
|
|
|
25
|
-
export const TestValueProvided: React.
|
|
26
|
-
args,
|
|
27
|
-
): React.ReactElement => {
|
|
23
|
+
export const TestValueProvided = (args: StoryArgs): React.ReactElement => {
|
|
28
24
|
return <TextInput {...defaultObject} value="Test value" />;
|
|
29
25
|
};
|
|
30
26
|
|
|
31
|
-
export const AriaLabelTextProvided: React.
|
|
32
|
-
args,
|
|
33
|
-
): React.ReactElement => {
|
|
27
|
+
export const AriaLabelTextProvided = (args: StoryArgs): React.ReactElement => {
|
|
34
28
|
return <TextInput {...defaultObject} labelText="Test label" />;
|
|
35
29
|
};
|
|
36
30
|
|
|
37
|
-
export const Disabled
|
|
31
|
+
export const Disabled = (args: StoryArgs): React.ReactElement => {
|
|
38
32
|
return <TextInput {...defaultObject} disabled={true} />;
|
|
39
33
|
};
|
|
@@ -22,9 +22,7 @@ const defaultObject = {
|
|
|
22
22
|
|
|
23
23
|
const ClassName = "framework-perseus orderer";
|
|
24
24
|
|
|
25
|
-
export const SimpleListOfOptions: React.
|
|
26
|
-
args,
|
|
27
|
-
): React.ReactElement => {
|
|
25
|
+
export const SimpleListOfOptions = (args: StoryArgs): React.ReactElement => {
|
|
28
26
|
return (
|
|
29
27
|
// @ts-expect-error [FEI-5003] - TS2322 - Type '{ children: Element; class: string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
|
|
30
28
|
<div class={ClassName}>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {View} from "@khanacademy/wonder-blocks-core";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
import Tooltip, {HorizontalDirection, VerticalDirection} from "../tooltip";
|
|
5
|
+
|
|
6
|
+
import type {Meta} from "@storybook/react";
|
|
7
|
+
|
|
8
|
+
const meta: Meta<typeof Tooltip> = {
|
|
9
|
+
title: "Perseus/Components/Tooltip",
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const Shown = () => {
|
|
13
|
+
return (
|
|
14
|
+
<View style={{margin: "20px"}}>
|
|
15
|
+
Hover over{" "}
|
|
16
|
+
<Tooltip
|
|
17
|
+
show={true}
|
|
18
|
+
horizontalPosition={HorizontalDirection.Left}
|
|
19
|
+
horizontalAlign={HorizontalDirection.Left}
|
|
20
|
+
verticalPosition={VerticalDirection.Bottom}
|
|
21
|
+
>
|
|
22
|
+
<span>this</span>
|
|
23
|
+
<View style={{backgroundColor: "white"}}>
|
|
24
|
+
You can read so much more if you want...
|
|
25
|
+
</View>
|
|
26
|
+
</Tooltip>{" "}
|
|
27
|
+
to see more information
|
|
28
|
+
</View>
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const Hidden = () => {
|
|
33
|
+
return (
|
|
34
|
+
<View style={{margin: "20px"}}>
|
|
35
|
+
Hover over{" "}
|
|
36
|
+
<Tooltip
|
|
37
|
+
show={false}
|
|
38
|
+
horizontalPosition={HorizontalDirection.Left}
|
|
39
|
+
horizontalAlign={HorizontalDirection.Left}
|
|
40
|
+
verticalPosition={VerticalDirection.Bottom}
|
|
41
|
+
>
|
|
42
|
+
<span>this</span>
|
|
43
|
+
<View style={{backgroundColor: "white"}}>
|
|
44
|
+
You can read so much more if you want...
|
|
45
|
+
</View>
|
|
46
|
+
</Tooltip>{" "}
|
|
47
|
+
to see more information
|
|
48
|
+
</View>
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default meta;
|
|
@@ -12,16 +12,18 @@ export default {
|
|
|
12
12
|
title: "Perseus/Components/Zoomable Tex",
|
|
13
13
|
} as Story;
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
type Props = {
|
|
16
16
|
children: React.ReactNode;
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const ForceZoomWrapper = ({children}: Props): React.ReactElement => (
|
|
18
20
|
<>
|
|
19
21
|
<h1>Click on equation to zoom/unzoom</h1>
|
|
20
22
|
<div style={{width: "50px"}}>{children}</div>
|
|
21
23
|
</>
|
|
22
24
|
);
|
|
23
25
|
|
|
24
|
-
export const KaTeX
|
|
26
|
+
export const KaTeX = (args: StoryArgs): React.ReactElement => {
|
|
25
27
|
return (
|
|
26
28
|
<ForceZoomWrapper>
|
|
27
29
|
<ZoomableTex children="\sum_{i=1}^\infty\frac{1}{n^2} =\frac{\pi^2}{6}" />
|
|
@@ -29,7 +31,7 @@ export const KaTeX: React.FC<StoryArgs> = (args): React.ReactElement => {
|
|
|
29
31
|
);
|
|
30
32
|
};
|
|
31
33
|
|
|
32
|
-
export const ComplexKaTeX
|
|
34
|
+
export const ComplexKaTeX = (args: StoryArgs): React.ReactElement => {
|
|
33
35
|
return (
|
|
34
36
|
<ForceZoomWrapper>
|
|
35
37
|
{" "}
|
|
@@ -27,9 +27,7 @@ const computeChildBounds = (
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
export const ZoomableExample: React.
|
|
31
|
-
args,
|
|
32
|
-
): React.ReactElement => {
|
|
30
|
+
export const ZoomableExample = (args: StoryArgs): React.ReactElement => {
|
|
33
31
|
return (
|
|
34
32
|
<Zoomable computeChildBounds={computeChildBounds}>
|
|
35
33
|
<span>
|
|
@@ -1,5 +1,101 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`Sortable renders a spinner while waiting for the TeX renderer to load: first render: displays a spinner 1`] = `
|
|
4
|
+
<div>
|
|
5
|
+
<div
|
|
6
|
+
class="default_xu2jcg-o_O-spinnerContainer_agrn11"
|
|
7
|
+
>
|
|
8
|
+
<svg
|
|
9
|
+
height="96"
|
|
10
|
+
viewBox="0 0 96 96"
|
|
11
|
+
width="96"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
>
|
|
14
|
+
<path
|
|
15
|
+
class="loadingSpinner_1dvgeb3-o_O-inlineStyles_1kzk0y9"
|
|
16
|
+
d="M88.38 46.91a3.818 3.818 0 1 1 7.602 0h.006c.008.362.012.725.012 1.09 0 26.51-21.49 48-48 48S0 74.51 0 48 21.49 0 48 0c.365 0 .728.004 1.09.012v.005a3.818 3.818 0 1 1 0 7.602v.032c-.362-.01-.725-.015-1.09-.015C25.708 7.636 7.636 25.708 7.636 48c0 22.292 18.072 40.364 40.364 40.364 22.292 0 40.364-18.072 40.364-40.364 0-.365-.005-.728-.015-1.09h.032z"
|
|
17
|
+
fill-rule="nonzero"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
</div>
|
|
21
|
+
<div
|
|
22
|
+
style="display: none;"
|
|
23
|
+
>
|
|
24
|
+
<div
|
|
25
|
+
class="fake-tex"
|
|
26
|
+
>
|
|
27
|
+
1
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
exports[`Sortable renders a spinner while waiting for the TeX renderer to load: second render: displays the sortable 1`] = `
|
|
34
|
+
<div>
|
|
35
|
+
<ul
|
|
36
|
+
class="sortable_13d4756 perseus-sortable"
|
|
37
|
+
>
|
|
38
|
+
<li
|
|
39
|
+
class="card_1s6cuhy-o_O-draggable_12to336-o_O-horizontalCard_9um937 perseus-interactive perseus-sortable-draggable"
|
|
40
|
+
style="position: static; margin: 0px 5px 0px 0px;"
|
|
41
|
+
>
|
|
42
|
+
<div
|
|
43
|
+
class="perseus-renderer perseus-renderer-responsive"
|
|
44
|
+
>
|
|
45
|
+
<div
|
|
46
|
+
class="paragraph"
|
|
47
|
+
data-perseus-paragraph-index="0"
|
|
48
|
+
>
|
|
49
|
+
<div
|
|
50
|
+
class="paragraph"
|
|
51
|
+
>
|
|
52
|
+
a
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</li>
|
|
57
|
+
<li
|
|
58
|
+
class="card_1s6cuhy-o_O-draggable_12to336-o_O-horizontalCard_9um937 perseus-interactive perseus-sortable-draggable"
|
|
59
|
+
style="position: static; margin: 0px 5px 0px 0px;"
|
|
60
|
+
>
|
|
61
|
+
<div
|
|
62
|
+
class="perseus-renderer perseus-renderer-responsive"
|
|
63
|
+
>
|
|
64
|
+
<div
|
|
65
|
+
class="paragraph"
|
|
66
|
+
data-perseus-paragraph-index="0"
|
|
67
|
+
>
|
|
68
|
+
<div
|
|
69
|
+
class="paragraph"
|
|
70
|
+
>
|
|
71
|
+
b
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</li>
|
|
76
|
+
<li
|
|
77
|
+
class="card_1s6cuhy-o_O-draggable_12to336-o_O-horizontalCard_9um937 perseus-interactive perseus-sortable-draggable"
|
|
78
|
+
style="position: static; margin: 0px;"
|
|
79
|
+
>
|
|
80
|
+
<div
|
|
81
|
+
class="perseus-renderer perseus-renderer-responsive"
|
|
82
|
+
>
|
|
83
|
+
<div
|
|
84
|
+
class="paragraph"
|
|
85
|
+
data-perseus-paragraph-index="0"
|
|
86
|
+
>
|
|
87
|
+
<div
|
|
88
|
+
class="paragraph"
|
|
89
|
+
>
|
|
90
|
+
c
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</li>
|
|
95
|
+
</ul>
|
|
96
|
+
</div>
|
|
97
|
+
`;
|
|
98
|
+
|
|
3
99
|
exports[`Sortable should snapshot: first render 1`] = `
|
|
4
100
|
<div>
|
|
5
101
|
<ul
|
|
@@ -9,70 +105,58 @@ exports[`Sortable should snapshot: first render 1`] = `
|
|
|
9
105
|
class="card_1s6cuhy-o_O-draggable_12to336-o_O-horizontalCard_9um937 perseus-interactive perseus-sortable-draggable"
|
|
10
106
|
style="position: static; margin: 0px 5px 0px 0px;"
|
|
11
107
|
>
|
|
12
|
-
<
|
|
13
|
-
class="
|
|
108
|
+
<div
|
|
109
|
+
class="perseus-renderer perseus-renderer-responsive"
|
|
14
110
|
>
|
|
15
111
|
<div
|
|
16
|
-
class="
|
|
112
|
+
class="paragraph"
|
|
113
|
+
data-perseus-paragraph-index="0"
|
|
17
114
|
>
|
|
18
115
|
<div
|
|
19
116
|
class="paragraph"
|
|
20
|
-
data-perseus-paragraph-index="0"
|
|
21
117
|
>
|
|
22
|
-
|
|
23
|
-
class="paragraph"
|
|
24
|
-
>
|
|
25
|
-
a
|
|
26
|
-
</div>
|
|
118
|
+
a
|
|
27
119
|
</div>
|
|
28
120
|
</div>
|
|
29
|
-
</
|
|
121
|
+
</div>
|
|
30
122
|
</li>
|
|
31
123
|
<li
|
|
32
124
|
class="card_1s6cuhy-o_O-draggable_12to336-o_O-horizontalCard_9um937 perseus-interactive perseus-sortable-draggable"
|
|
33
125
|
style="position: static; margin: 0px 5px 0px 0px;"
|
|
34
126
|
>
|
|
35
|
-
<
|
|
36
|
-
class="
|
|
127
|
+
<div
|
|
128
|
+
class="perseus-renderer perseus-renderer-responsive"
|
|
37
129
|
>
|
|
38
130
|
<div
|
|
39
|
-
class="
|
|
131
|
+
class="paragraph"
|
|
132
|
+
data-perseus-paragraph-index="0"
|
|
40
133
|
>
|
|
41
134
|
<div
|
|
42
135
|
class="paragraph"
|
|
43
|
-
data-perseus-paragraph-index="0"
|
|
44
136
|
>
|
|
45
|
-
|
|
46
|
-
class="paragraph"
|
|
47
|
-
>
|
|
48
|
-
b
|
|
49
|
-
</div>
|
|
137
|
+
b
|
|
50
138
|
</div>
|
|
51
139
|
</div>
|
|
52
|
-
</
|
|
140
|
+
</div>
|
|
53
141
|
</li>
|
|
54
142
|
<li
|
|
55
143
|
class="card_1s6cuhy-o_O-draggable_12to336-o_O-horizontalCard_9um937 perseus-interactive perseus-sortable-draggable"
|
|
56
144
|
style="position: static; margin: 0px;"
|
|
57
145
|
>
|
|
58
|
-
<
|
|
59
|
-
class="
|
|
146
|
+
<div
|
|
147
|
+
class="perseus-renderer perseus-renderer-responsive"
|
|
60
148
|
>
|
|
61
149
|
<div
|
|
62
|
-
class="
|
|
150
|
+
class="paragraph"
|
|
151
|
+
data-perseus-paragraph-index="0"
|
|
63
152
|
>
|
|
64
153
|
<div
|
|
65
154
|
class="paragraph"
|
|
66
|
-
data-perseus-paragraph-index="0"
|
|
67
155
|
>
|
|
68
|
-
|
|
69
|
-
class="paragraph"
|
|
70
|
-
>
|
|
71
|
-
c
|
|
72
|
-
</div>
|
|
156
|
+
c
|
|
73
157
|
</div>
|
|
74
158
|
</div>
|
|
75
|
-
</
|
|
159
|
+
</div>
|
|
76
160
|
</li>
|
|
77
161
|
</ul>
|
|
78
162
|
</div>
|