@pie-element/match 12.1.2-next.3 → 12.1.2-next.31

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.
Files changed (42) hide show
  1. package/author.js +2 -0
  2. package/dist/author/add-row.js +1 -1
  3. package/dist/author/answer-config-block.js +42 -41
  4. package/dist/author/index.d.ts +1 -0
  5. package/dist/author/index.js +4 -1
  6. package/dist/author/row.js +27 -23
  7. package/dist/browser/{Typography-BRnAIZOH.js → Typography-Drax8bVk.js} +1765 -1639
  8. package/dist/browser/Typography-Drax8bVk.js.map +1 -0
  9. package/dist/browser/assets/Symbola-4c507403.woff2 +0 -0
  10. package/dist/browser/author/index.js +25945 -36497
  11. package/dist/browser/author/index.js.map +1 -1
  12. package/dist/browser/browser-kkT1XVKw.js.map +1 -1
  13. package/dist/browser/controller/index.js +5 -5
  14. package/dist/browser/controller/index.js.map +1 -1
  15. package/dist/browser/delivery/index.js +164 -56
  16. package/dist/browser/delivery/index.js.map +1 -1
  17. package/dist/browser/{dist-i687VHmY.js → dist-C4gh2n2Z.js} +6 -2
  18. package/dist/browser/dist-C4gh2n2Z.js.map +1 -0
  19. package/dist/browser/editor-runtime/Typography-B9fRELAC.js +9350 -0
  20. package/dist/browser/editor-runtime/Typography-B9fRELAC.js.map +1 -0
  21. package/dist/browser/editor-runtime/assets/Symbola-4c507403.woff2 +0 -0
  22. package/dist/browser/editor-runtime/author/index.js +20538 -0
  23. package/dist/browser/editor-runtime/author/index.js.map +1 -0
  24. package/dist/browser/editor-runtime/browser-jJGxjKdp.js +219 -0
  25. package/dist/browser/editor-runtime/browser-jJGxjKdp.js.map +1 -0
  26. package/dist/browser/editor-runtime/controller/index.js +267 -0
  27. package/dist/browser/editor-runtime/controller/index.js.map +1 -0
  28. package/dist/browser/editor-runtime/delivery/index.js +2092 -0
  29. package/dist/browser/editor-runtime/delivery/index.js.map +1 -0
  30. package/dist/browser/editor-runtime/dist-C4gh2n2Z.js +104 -0
  31. package/dist/browser/editor-runtime/dist-C4gh2n2Z.js.map +1 -0
  32. package/dist/delivery/answer-grid.d.ts +1 -0
  33. package/dist/delivery/answer-grid.js +34 -26
  34. package/dist/delivery/index.js +2 -2
  35. package/dist/delivery/main.js +2 -2
  36. package/dist/index.iife.js +34 -34
  37. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +1 -1
  38. package/package.json +35 -27
  39. package/dist/author/common.d.ts +0 -22
  40. package/dist/browser/Typography-BRnAIZOH.js.map +0 -1
  41. package/dist/browser/dist-i687VHmY.js.map +0 -1
  42. package/dist/browser/match.css +0 -2
@@ -13,4 +13,4 @@ function t() {
13
13
  return i;
14
14
  }
15
15
  //#endregion
16
- export { t as default };
16
+ export { t as clsx, t as default };
package/package.json CHANGED
@@ -1,32 +1,33 @@
1
1
  {
2
2
  "name": "@pie-element/match",
3
- "version": "12.1.2-next.3",
3
+ "version": "12.1.2-next.31",
4
4
  "description": "",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/pie-framework/pie-elements-ng.git",
8
+ "directory": "packages/elements-react/match"
9
+ },
5
10
  "dependencies": {
6
11
  "@emotion/react": "^11.14.0",
7
- "@emotion/style": "^0.8.0",
8
12
  "@mui/icons-material": "^7.3.4",
9
13
  "@mui/material": "^7.3.4",
10
- "@pie-lib/correct-answer-toggle": "4.0.3-next.37",
11
- "@pie-lib/render-ui": "6.1.1-next.37",
12
- "@pie-lib/test-utils": "2.0.2",
14
+ "@pie-lib/correct-answer-toggle": "5.0.0-next.54",
15
+ "@pie-lib/render-ui": "6.2.0-next.51",
13
16
  "debug": "^4.1.1",
14
17
  "prop-types": "^15.8.1",
15
18
  "clsx": "^2.1.1",
16
- "@pie-element/shared-lodash": "0.1.1-next.0",
17
- "@pie-lib/editable-html-tip-tap": "2.1.2-next.30",
18
- "@pie-lib/drag": "4.0.3-next.37",
19
- "@pie-lib/config-ui": "13.0.4-next.30",
20
- "@pie-element/shared-configure-events": "0.1.0",
19
+ "@pie-element/shared-lodash": "0.1.1-next.3",
20
+ "@pie-lib/editable-html-tip-tap": "3.0.0-next.48",
21
+ "@pie-lib/drag": "4.1.0-next.52",
22
+ "@pie-lib/config-ui": "14.0.0-next.48",
23
+ "@pie-element/shared-configure-events": "0.1.1-next.1",
21
24
  "@dnd-kit/core": "^6.3.1",
22
- "@pie-element/shared-feedback": "0.1.0",
23
- "@pie-element/shared-controller-utils": "0.1.1-next.1",
24
- "@pie-element/shared-player-events": "0.1.0",
25
- "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.0"
26
- },
27
- "peerDependencies": {
28
- "react": "^18.0.0",
29
- "react-dom": "^18.0.0"
25
+ "@pie-element/shared-feedback": "0.1.1-next.1",
26
+ "@pie-element/shared-controller-utils": "0.1.1-next.7",
27
+ "@pie-element/shared-player-events": "0.1.1-next.3",
28
+ "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.6",
29
+ "react": "^18.2.0",
30
+ "react-dom": "^18.2.0"
30
31
  },
31
32
  "exports": {
32
33
  ".": {
@@ -38,6 +39,7 @@
38
39
  "default": "./dist/delivery/index.js"
39
40
  },
40
41
  "./browser/delivery": {
42
+ "types": "./dist/delivery/index.d.ts",
41
43
  "default": "./dist/browser/delivery/index.js"
42
44
  },
43
45
  "./author": {
@@ -45,6 +47,7 @@
45
47
  "default": "./dist/author/index.js"
46
48
  },
47
49
  "./browser/author": {
50
+ "types": "./dist/author/index.d.ts",
48
51
  "default": "./dist/browser/author/index.js"
49
52
  },
50
53
  "./configure": {
@@ -60,31 +63,27 @@
60
63
  "default": "./dist/controller/index.js"
61
64
  },
62
65
  "./browser/controller": {
66
+ "types": "./dist/controller/index.d.ts",
63
67
  "default": "./dist/browser/controller/index.js"
64
68
  },
65
69
  "./runtime-support": {
66
70
  "types": "./dist/runtime-support.d.ts",
67
71
  "default": "./dist/runtime-support.js"
68
- }
72
+ },
73
+ "./package.json": "./package.json"
69
74
  },
70
75
  "type": "module",
71
76
  "main": "./dist/index.js",
72
77
  "types": "./dist/index.d.ts",
73
78
  "files": [
79
+ "author.js",
74
80
  "configure.js",
75
81
  "controller.js",
76
82
  "dist"
77
83
  ],
78
84
  "sideEffects": false,
79
- "devDependencies": {
80
- "vite": "^8.0.1",
81
- "typescript": "^5.9.3",
82
- "@vitejs/plugin-react": "^6.0.1",
83
- "@types/react": "^18.2.0",
84
- "@types/react-dom": "^18.2.0"
85
- },
86
85
  "scripts": {
87
- "build": "bun x vite build && bun x vite build --config ../../../tools/vite/element-browser.config.ts && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
86
+ "build": "bun x vite build && bun x vite build --config ../../../tools/vite/element-browser.config.ts && bun x vite build --config ../../../tools/vite/element-browser-editor-runtime.config.ts && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
88
87
  "dev": "bun x vite",
89
88
  "demo": "bun x vite --mode demo",
90
89
  "test": "bun x vitest run"
@@ -95,6 +94,15 @@
95
94
  "browserSharedDependencies": {
96
95
  "react": "18.2.0",
97
96
  "react-dom": "18.2.0"
97
+ },
98
+ "browserEditorRuntime": {
99
+ "name": "@pie-element/shared-editor-runtime",
100
+ "version": "0.1.1-next.1",
101
+ "views": {
102
+ "delivery": "editor-runtime/delivery",
103
+ "author": "editor-runtime/author",
104
+ "controller": "editor-runtime/controller"
105
+ }
98
106
  }
99
107
  }
100
108
  }
@@ -1,22 +0,0 @@
1
- /**
2
- * @synced-from pie-elements/packages/match/configure/src/common.jsx
3
- * @auto-generated
4
- *
5
- * This file is automatically synced from pie-elements and converted to TypeScript.
6
- * Manual edits will be overwritten on next sync.
7
- * To make changes, edit the upstream JavaScript file and run sync again.
8
- */
9
- import * as React from 'react';
10
- import PropTypes from 'prop-types';
11
- export declare const InfoDialog: {
12
- ({ title, open, onOk }: {
13
- title: any;
14
- open: any;
15
- onOk: any;
16
- }): React.JSX.Element;
17
- propTypes: {
18
- title: PropTypes.Requireable<string>;
19
- open: PropTypes.Requireable<boolean>;
20
- onOk: PropTypes.Requireable<(...args: any[]) => any>;
21
- };
22
- };