@khanacademy/perseus-core 39.2.2 → 40.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.
@@ -1,5 +1,12 @@
1
1
  import type { PerseusSorterWidgetOptions } from "../../data-schema";
2
2
  export declare const SORTER_MAX_CARDS = 10;
3
+ export declare function exceedsCardLimit(correct: readonly string[]): boolean;
4
+ /**
5
+ * Maximum number of cards Sorter to supports in horizontal layout.
6
+ * If this number is exceeded, the cards render vertically even if
7
+ * the layout is set to horizontal.
8
+ */
9
+ export declare const SORTER_MAX_HORIZONTAL_CARDS = 5;
3
10
  /**
4
11
  * For details on the individual options, see the
5
12
  * PerseusSorterWidgetOptions type
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Shared Perseus infrastructure",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "39.2.2",
6
+ "version": "40.0.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -15,30 +15,23 @@
15
15
  "bugs": {
16
16
  "url": "https://github.com/Khan/perseus/issues"
17
17
  },
18
- "module": "dist/es/index.js",
19
- "main": "dist/index.js",
20
- "source": "src/index.ts",
18
+ "type": "module",
21
19
  "exports": {
22
- ".": {
23
- "types": "./dist/index.d.ts",
24
- "source": "./src/index.ts",
25
- "import": "./dist/es/index.js",
26
- "require": "./dist/index.js"
27
- }
20
+ ".": "./dist/index.js"
28
21
  },
29
22
  "files": [
30
23
  "dist"
31
24
  ],
32
25
  "dependencies": {
33
26
  "tiny-invariant": "1.3.1",
34
- "@khanacademy/kas": "2.2.6",
35
- "@khanacademy/perseus-utils": "2.1.5",
36
- "@khanacademy/pure-markdown": "2.3.2"
27
+ "@khanacademy/kas": "3.0.0",
28
+ "@khanacademy/perseus-utils": "3.0.0",
29
+ "@khanacademy/pure-markdown": "3.0.0"
37
30
  },
38
31
  "devDependencies": {
39
32
  "@khanacademy/wonder-stuff-core": "3.0.0",
40
33
  "underscore": "1.4.4",
41
- "perseus-build-settings": "0.9.1"
34
+ "perseus-build-settings": "0.9.2"
42
35
  },
43
36
  "peerDependencies": {
44
37
  "@khanacademy/wonder-stuff-core": "^3.0.0",