@pie-element/fraction-model 6.1.1-next.11 → 6.1.2-next.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.
Files changed (194) hide show
  1. package/configure.js +2 -0
  2. package/controller.js +1 -0
  3. package/dist/author/card-bar.d.ts +20 -0
  4. package/dist/author/card-bar.js +40 -0
  5. package/dist/author/defaults.d.ts +113 -0
  6. package/dist/author/defaults.js +84 -0
  7. package/dist/author/index.d.ts +44 -0
  8. package/dist/author/index.js +88 -0
  9. package/dist/author/main.d.ts +25 -0
  10. package/dist/author/main.js +156 -0
  11. package/dist/author/model-options.d.ts +32 -0
  12. package/dist/author/model-options.js +85 -0
  13. package/dist/author/number-text-field.d.ts +15 -0
  14. package/dist/author/number-text-field.js +24 -0
  15. package/dist/browser/author/index.js +37287 -0
  16. package/dist/browser/author/index.js.map +1 -0
  17. package/dist/browser/controller/index.js +78 -0
  18. package/dist/browser/controller/index.js.map +1 -0
  19. package/dist/browser/delivery/index.js +2 -0
  20. package/dist/browser/delivery-BSG67wbh.js +28213 -0
  21. package/dist/browser/delivery-BSG67wbh.js.map +1 -0
  22. package/dist/browser/fraction-model.css +2 -0
  23. package/dist/browser/isEmpty-Cj-5W3cl.js +16 -0
  24. package/dist/browser/isEmpty-Cj-5W3cl.js.map +1 -0
  25. package/dist/browser/isTypedArray-yL07_GBh.js +171 -0
  26. package/dist/browser/isTypedArray-yL07_GBh.js.map +1 -0
  27. package/dist/controller/defaults.d.ts +21 -0
  28. package/dist/controller/defaults.js +13 -0
  29. package/dist/controller/index.d.ts +23 -0
  30. package/dist/controller/index.js +68 -0
  31. package/dist/delivery/answer-fraction.d.ts +27 -0
  32. package/dist/delivery/answer-fraction.js +69 -0
  33. package/dist/delivery/fraction-model-chart.d.ts +11 -0
  34. package/dist/delivery/fraction-model-chart.js +154 -0
  35. package/dist/delivery/index.d.ts +22 -0
  36. package/dist/delivery/index.js +54 -0
  37. package/dist/delivery/main.d.ts +38 -0
  38. package/dist/delivery/main.js +136 -0
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.iife.d.ts +8 -0
  41. package/dist/index.iife.js +179 -0
  42. package/dist/index.js +2 -0
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  152. package/package.json +79 -19
  153. package/CHANGELOG.json +0 -1
  154. package/CHANGELOG.md +0 -584
  155. package/LICENSE.md +0 -5
  156. package/README.md +0 -18
  157. package/configure/CHANGELOG.json +0 -1
  158. package/configure/CHANGELOG.md +0 -549
  159. package/configure/lib/card-bar.js +0 -57
  160. package/configure/lib/card-bar.js.map +0 -1
  161. package/configure/lib/defaults.js +0 -114
  162. package/configure/lib/defaults.js.map +0 -1
  163. package/configure/lib/index.js +0 -163
  164. package/configure/lib/index.js.map +0 -1
  165. package/configure/lib/main.js +0 -253
  166. package/configure/lib/main.js.map +0 -1
  167. package/configure/lib/model-options.js +0 -144
  168. package/configure/lib/model-options.js.map +0 -1
  169. package/configure/lib/number-text-field.js +0 -47
  170. package/configure/lib/number-text-field.js.map +0 -1
  171. package/configure/package.json +0 -24
  172. package/controller/CHANGELOG.json +0 -1
  173. package/controller/CHANGELOG.md +0 -476
  174. package/controller/lib/defaults.js +0 -20
  175. package/controller/lib/defaults.js.map +0 -1
  176. package/controller/lib/index.js +0 -215
  177. package/controller/lib/index.js.map +0 -1
  178. package/controller/package.json +0 -15
  179. package/docs/config-schema.json +0 -1796
  180. package/docs/config-schema.json.md +0 -1318
  181. package/docs/demo/config.js +0 -8
  182. package/docs/demo/generate.js +0 -6
  183. package/docs/demo/index.html +0 -1
  184. package/docs/demo/session.js +0 -6
  185. package/docs/pie-schema.json +0 -873
  186. package/docs/pie-schema.json.md +0 -639
  187. package/lib/answer-fraction.js +0 -109
  188. package/lib/answer-fraction.js.map +0 -1
  189. package/lib/fraction-model-chart.js +0 -279
  190. package/lib/fraction-model-chart.js.map +0 -1
  191. package/lib/index.js +0 -91
  192. package/lib/index.js.map +0 -1
  193. package/lib/main.js +0 -203
  194. package/lib/main.js.map +0 -1
package/package.json CHANGED
@@ -1,33 +1,93 @@
1
1
  {
2
2
  "name": "@pie-element/fraction-model",
3
- "repository": "pie-framework/pie-elements",
4
- "publishConfig": {
5
- "access": "public"
6
- },
7
- "version": "6.1.1-next.11+84119e88b",
3
+ "version": "6.1.2-next.0",
8
4
  "description": "",
9
5
  "dependencies": {
10
6
  "@emotion/react": "^11.14.0",
11
7
  "@emotion/style": "^0.8.0",
12
8
  "@mui/icons-material": "^7.3.4",
13
9
  "@mui/material": "^7.3.4",
14
- "@pie-framework/pie-player-events": "^0.1.0",
15
- "@pie-lib/config-ui": "13.0.5",
16
- "@pie-lib/correct-answer-toggle": "4.0.3",
17
- "@pie-lib/math-rendering": "5.0.2",
18
- "@pie-lib/render-ui": "6.1.1",
10
+ "@pie-lib/config-ui": "13.0.3",
11
+ "@pie-lib/correct-answer-toggle": "4.0.2",
12
+ "@pie-lib/render-ui": "6.1.0",
19
13
  "@pie-lib/test-utils": "2.0.2",
20
14
  "prop-types": "^15.8.1",
21
- "react": "18.3.1",
22
- "react-dom": "18.3.1",
23
- "recharts": "2.15.1"
15
+ "recharts": "^3.7.0",
16
+ "@pie-element/shared-configure-events": "0.1.0",
17
+ "@pie-lib/editable-html-tip-tap": "2.1.1",
18
+ "lodash-es": "^4.18.1",
19
+ "@pie-element/shared-player-events": "0.1.0",
20
+ "@pie-element/shared-math-rendering-mathjax": "0.1.0",
21
+ "@emotion/core": "0.x.x",
22
+ "react-is": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
23
+ },
24
+ "peerDependencies": {
25
+ "react": "^18.0.0",
26
+ "react-dom": "^18.0.0"
27
+ },
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "default": "./dist/index.js"
32
+ },
33
+ "./delivery": {
34
+ "types": "./dist/delivery/index.d.ts",
35
+ "default": "./dist/delivery/index.js"
36
+ },
37
+ "./browser/delivery": {
38
+ "default": "./dist/browser/delivery/index.js"
39
+ },
40
+ "./author": {
41
+ "types": "./dist/author/index.d.ts",
42
+ "default": "./dist/author/index.js"
43
+ },
44
+ "./browser/author": {
45
+ "default": "./dist/browser/author/index.js"
46
+ },
47
+ "./configure": {
48
+ "types": "./dist/author/index.d.ts",
49
+ "default": "./dist/author/index.js"
50
+ },
51
+ "./controller": {
52
+ "types": "./dist/controller/index.d.ts",
53
+ "default": "./dist/controller/index.js"
54
+ },
55
+ "./controller.js": {
56
+ "types": "./dist/controller/index.d.ts",
57
+ "default": "./dist/controller/index.js"
58
+ },
59
+ "./browser/controller": {
60
+ "default": "./dist/browser/controller/index.js"
61
+ }
62
+ },
63
+ "type": "module",
64
+ "main": "./dist/index.js",
65
+ "types": "./dist/index.d.ts",
66
+ "files": [
67
+ "configure.js",
68
+ "controller.js",
69
+ "dist"
70
+ ],
71
+ "sideEffects": false,
72
+ "devDependencies": {
73
+ "vite": "^8.0.1",
74
+ "typescript": "^5.9.3",
75
+ "@vitejs/plugin-react": "^6.0.1",
76
+ "@types/react": "^18.2.0",
77
+ "@types/react-dom": "^18.2.0"
24
78
  },
25
- "author": "",
26
- "license": "ISC",
27
- "gitHead": "84119e88bfc3869f06f03cb7d63655060d30db73",
28
79
  "scripts": {
29
- "postpublish": "../../scripts/postpublish"
80
+ "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",
81
+ "dev": "bun x vite",
82
+ "demo": "bun x vite --mode demo",
83
+ "test": "bun x vitest run"
30
84
  },
31
- "main": "lib/index.js",
32
- "module": "src/index.js"
85
+ "pie": {
86
+ "controller": "@pie-element/fraction-model/controller",
87
+ "configure": "@pie-element/fraction-model/configure",
88
+ "browserSharedDependencies": {
89
+ "react": "18.2.0",
90
+ "react-dom": "18.2.0"
91
+ }
92
+ }
33
93
  }
package/CHANGELOG.json DELETED
@@ -1 +0,0 @@
1
- []