@pie-lib/graphing-solution-set 4.0.4-next.0 → 4.0.4-next.104

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 (332) hide show
  1. package/CHANGELOG.json +1 -0
  2. package/CHANGELOG.md +449 -0
  3. package/LICENSE.md +5 -0
  4. package/lib/axis/arrow.js +79 -0
  5. package/lib/axis/arrow.js.map +1 -0
  6. package/lib/axis/axes.js +327 -0
  7. package/lib/axis/axes.js.map +1 -0
  8. package/lib/axis/index.js +21 -0
  9. package/lib/axis/index.js.map +1 -0
  10. package/lib/bg.js +114 -0
  11. package/lib/bg.js.map +1 -0
  12. package/lib/container/actions.js +18 -0
  13. package/lib/container/actions.js.map +1 -0
  14. package/lib/container/index.js +129 -0
  15. package/lib/container/index.js.map +1 -0
  16. package/lib/container/marks.js +22 -0
  17. package/lib/container/marks.js.map +1 -0
  18. package/lib/container/middleware.js +19 -0
  19. package/lib/container/middleware.js.map +1 -0
  20. package/lib/container/reducer.js +18 -0
  21. package/lib/container/reducer.js.map +1 -0
  22. package/lib/coordinates-label.js +77 -0
  23. package/lib/coordinates-label.js.map +1 -0
  24. package/lib/graph-with-controls.js +297 -0
  25. package/lib/graph-with-controls.js.map +1 -0
  26. package/lib/graph.js +353 -0
  27. package/lib/graph.js.map +1 -0
  28. package/lib/grid-setup.js +414 -0
  29. package/lib/grid-setup.js.map +1 -0
  30. package/lib/grid.js +131 -0
  31. package/lib/grid.js.map +1 -0
  32. package/lib/index.js +40 -0
  33. package/lib/index.js.map +1 -0
  34. package/lib/labels.js +199 -0
  35. package/lib/labels.js.map +1 -0
  36. package/lib/mark-label.js +159 -0
  37. package/lib/mark-label.js.map +1 -0
  38. package/lib/toggle-bar.js +248 -0
  39. package/lib/toggle-bar.js.map +1 -0
  40. package/lib/tool-menu.js +218 -0
  41. package/lib/tool-menu.js.map +1 -0
  42. package/lib/tools/index.js +24 -0
  43. package/lib/tools/index.js.map +1 -0
  44. package/lib/tools/line/component.js +92 -0
  45. package/lib/tools/line/component.js.map +1 -0
  46. package/lib/tools/line/index.js +11 -0
  47. package/lib/tools/line/index.js.map +1 -0
  48. package/lib/tools/polygon/component.js +358 -0
  49. package/lib/tools/polygon/component.js.map +1 -0
  50. package/lib/tools/polygon/index.js +89 -0
  51. package/lib/tools/polygon/index.js.map +1 -0
  52. package/lib/tools/polygon/line.js +114 -0
  53. package/lib/tools/polygon/line.js.map +1 -0
  54. package/lib/tools/polygon/polygon.js +128 -0
  55. package/lib/tools/polygon/polygon.js.map +1 -0
  56. package/lib/tools/shared/arrow-head.js +62 -0
  57. package/lib/tools/shared/arrow-head.js.map +1 -0
  58. package/lib/tools/shared/line/index.js +539 -0
  59. package/lib/tools/shared/line/index.js.map +1 -0
  60. package/lib/tools/shared/line/line-path.js +121 -0
  61. package/lib/tools/shared/line/line-path.js.map +1 -0
  62. package/lib/tools/shared/line/with-root-edge.js +121 -0
  63. package/lib/tools/shared/line/with-root-edge.js.map +1 -0
  64. package/lib/tools/shared/point/arrow-point.js +86 -0
  65. package/lib/tools/shared/point/arrow-point.js.map +1 -0
  66. package/lib/tools/shared/point/arrow.js +70 -0
  67. package/lib/tools/shared/point/arrow.js.map +1 -0
  68. package/lib/tools/shared/point/base-point.js +137 -0
  69. package/lib/tools/shared/point/base-point.js.map +1 -0
  70. package/lib/tools/shared/point/index.js +80 -0
  71. package/lib/tools/shared/point/index.js.map +1 -0
  72. package/lib/tools/shared/styles.js +26 -0
  73. package/lib/tools/shared/styles.js.map +1 -0
  74. package/lib/tools/shared/types.js +15 -0
  75. package/lib/tools/shared/types.js.map +1 -0
  76. package/lib/undo-redo.js +67 -0
  77. package/lib/undo-redo.js.map +1 -0
  78. package/lib/use-debounce.js +25 -0
  79. package/lib/use-debounce.js.map +1 -0
  80. package/lib/utils.js +235 -0
  81. package/lib/utils.js.map +1 -0
  82. package/package.json +27 -37
  83. package/src/__tests__/bg.test.jsx +250 -0
  84. package/src/__tests__/coordinates-label.test.jsx +243 -0
  85. package/src/__tests__/graph-with-controls.test.jsx +184 -0
  86. package/src/__tests__/graph.test.jsx +93 -0
  87. package/src/__tests__/grid-setup.test.jsx +645 -0
  88. package/src/__tests__/grid.test.jsx +23 -0
  89. package/src/__tests__/labels.test.jsx +41 -0
  90. package/src/__tests__/mark-label.test.jsx +66 -0
  91. package/src/__tests__/toggle-bar.test.jsx +106 -0
  92. package/src/__tests__/tool-menu.test.jsx +453 -0
  93. package/src/__tests__/undo-redo.test.jsx +26 -0
  94. package/src/__tests__/use-debounce.test.js +21 -0
  95. package/src/__tests__/utils.js +41 -0
  96. package/src/__tests__/utils.test.js +105 -0
  97. package/src/axis/__tests__/arrow.test.jsx +43 -0
  98. package/src/axis/__tests__/axes.test.jsx +182 -0
  99. package/src/axis/arrow.jsx +57 -0
  100. package/src/axis/axes.jsx +284 -0
  101. package/src/axis/index.js +3 -0
  102. package/src/bg.jsx +96 -0
  103. package/src/container/__tests__/actions.test.js +105 -0
  104. package/src/container/__tests__/index.test.jsx +227 -0
  105. package/src/container/__tests__/marks.test.js +172 -0
  106. package/src/container/__tests__/middleware.test.js +235 -0
  107. package/src/container/__tests__/reducer.test.js +324 -0
  108. package/src/container/actions.js +8 -0
  109. package/src/container/index.jsx +93 -0
  110. package/src/container/marks.js +14 -0
  111. package/src/container/middleware.js +7 -0
  112. package/src/container/reducer.js +5 -0
  113. package/src/coordinates-label.jsx +62 -0
  114. package/src/graph-with-controls.jsx +242 -0
  115. package/src/graph.jsx +333 -0
  116. package/src/grid-setup.jsx +432 -0
  117. package/src/grid.jsx +133 -0
  118. package/src/index.js +7 -0
  119. package/src/labels.jsx +173 -0
  120. package/src/mark-label.jsx +125 -0
  121. package/src/toggle-bar.jsx +221 -0
  122. package/src/tool-menu.jsx +235 -0
  123. package/src/tools/index.js +8 -0
  124. package/src/tools/line/__tests__/component.test.jsx +37 -0
  125. package/src/tools/line/component.jsx +77 -0
  126. package/src/tools/line/index.js +4 -0
  127. package/src/tools/polygon/__tests__/component.test.jsx +487 -0
  128. package/src/tools/polygon/__tests__/index.test.js +65 -0
  129. package/src/tools/polygon/__tests__/line.test.jsx +23 -0
  130. package/src/tools/polygon/__tests__/polygon.test.jsx +44 -0
  131. package/src/tools/polygon/component.jsx +324 -0
  132. package/src/tools/polygon/index.js +52 -0
  133. package/src/tools/polygon/line.jsx +80 -0
  134. package/src/tools/polygon/polygon.jsx +93 -0
  135. package/src/tools/shared/__tests__/arrow-head.test.jsx +33 -0
  136. package/src/tools/shared/arrow-head.jsx +46 -0
  137. package/src/tools/shared/line/__tests__/index.test.jsx +553 -0
  138. package/src/tools/shared/line/__tests__/line-path.test.jsx +56 -0
  139. package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +488 -0
  140. package/src/tools/shared/line/index.jsx +471 -0
  141. package/src/tools/shared/line/line-path.jsx +85 -0
  142. package/src/tools/shared/line/with-root-edge.jsx +97 -0
  143. package/src/tools/shared/point/__tests__/arrow-point.test.jsx +91 -0
  144. package/src/tools/shared/point/__tests__/arrow.test.jsx +469 -0
  145. package/src/tools/shared/point/__tests__/base-point.test.jsx +87 -0
  146. package/src/tools/shared/point/arrow-point.jsx +60 -0
  147. package/src/tools/shared/point/arrow.jsx +40 -0
  148. package/src/tools/shared/point/base-point.jsx +113 -0
  149. package/src/tools/shared/point/index.jsx +58 -0
  150. package/src/tools/shared/styles.js +20 -0
  151. package/src/tools/shared/types.js +8 -0
  152. package/src/undo-redo.jsx +37 -0
  153. package/src/use-debounce.js +13 -0
  154. package/src/utils.js +230 -0
  155. package/dist/_virtual/_rolldown/runtime.js +0 -23
  156. package/dist/axis/arrow.d.ts +0 -13
  157. package/dist/axis/arrow.js +0 -34
  158. package/dist/axis/axes.d.ts +0 -132
  159. package/dist/axis/axes.js +0 -214
  160. package/dist/axis/index.d.ts +0 -10
  161. package/dist/bg.d.ts +0 -51
  162. package/dist/bg.js +0 -44
  163. package/dist/container/actions.d.ts +0 -15
  164. package/dist/container/actions.js +0 -7
  165. package/dist/container/index.d.ts +0 -26
  166. package/dist/container/index.js +0 -50
  167. package/dist/container/marks.d.ts +0 -10
  168. package/dist/container/marks.js +0 -11
  169. package/dist/container/middleware.d.ts +0 -10
  170. package/dist/container/middleware.js +0 -4
  171. package/dist/container/reducer.d.ts +0 -12
  172. package/dist/container/reducer.js +0 -7
  173. package/dist/coordinates-label.d.ts +0 -50
  174. package/dist/coordinates-label.js +0 -46
  175. package/dist/graph-with-controls.d.ts +0 -85
  176. package/dist/graph-with-controls.js +0 -155
  177. package/dist/graph.d.ts +0 -119
  178. package/dist/graph.js +0 -221
  179. package/dist/grid-setup.d.ts +0 -27
  180. package/dist/grid-setup.js +0 -307
  181. package/dist/grid.d.ts +0 -43
  182. package/dist/grid.js +0 -59
  183. package/dist/index.d.ts +0 -14
  184. package/dist/index.js +0 -6
  185. package/dist/labels.d.ts +0 -73
  186. package/dist/labels.js +0 -134
  187. package/dist/mark-label.d.ts +0 -50
  188. package/dist/mark-label.js +0 -84
  189. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -7
  190. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
  191. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js +0 -12
  192. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -7
  193. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
  194. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -12
  195. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -8
  196. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
  197. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
  198. package/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
  199. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +0 -100
  200. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +0 -61
  201. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +0 -42
  202. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +0 -9
  203. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +0 -14
  204. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -21
  205. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +0 -16
  206. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +0 -8
  207. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +0 -15
  208. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js +0 -78
  209. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +0 -79
  210. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +0 -79
  211. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +0 -6
  212. package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +0 -49
  213. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +0 -18
  214. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +0 -10
  215. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +0 -9
  216. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +0 -6
  217. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +0 -46
  218. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +0 -52
  219. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +0 -57
  220. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +0 -91
  221. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +0 -21
  222. package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +0 -32
  223. package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +0 -33
  224. package/dist/node_modules/.bun/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -68
  225. package/dist/node_modules/.bun/invariant@2.2.4/node_modules/invariant/browser.js +0 -28
  226. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +0 -21
  227. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +0 -21
  228. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +0 -10
  229. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +0 -21
  230. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +0 -9
  231. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +0 -14
  232. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +0 -15
  233. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +0 -16
  234. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +0 -9
  235. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +0 -8
  236. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +0 -14
  237. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +0 -15
  238. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +0 -19
  239. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +0 -11
  240. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +0 -13
  241. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +0 -12
  242. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +0 -18
  243. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +0 -14
  244. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +0 -14
  245. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +0 -12
  246. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +0 -16
  247. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +0 -11
  248. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +0 -14
  249. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +0 -14
  250. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +0 -13
  251. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +0 -14
  252. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +0 -19
  253. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +0 -14
  254. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +0 -13
  255. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +0 -13
  256. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +0 -14
  257. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +0 -9
  258. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +0 -12
  259. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +0 -10
  260. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +0 -20
  261. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +0 -11
  262. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +0 -16
  263. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +0 -12
  264. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +0 -20
  265. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +0 -37
  266. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +0 -509
  267. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +0 -108
  268. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +0 -31
  269. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +0 -45
  270. package/dist/node_modules/.bun/react-input-autosize@2.2.2_f4eacebf2041cd4f/node_modules/react-input-autosize/lib/AutosizeInput.js +0 -216
  271. package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +0 -82
  272. package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +0 -62
  273. package/dist/node_modules/.bun/react-is@16.13.1/node_modules/react-is/index.js +0 -10
  274. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/Context.js +0 -5
  275. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/Provider.js +0 -47
  276. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/components/connectAdvanced.js +0 -95
  277. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/connect.js +0 -52
  278. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mapDispatchToProps.js +0 -23
  279. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mapStateToProps.js +0 -13
  280. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/mergeProps.js +0 -26
  281. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/selectorFactory.js +0 -41
  282. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/verifySubselectors.js +0 -11
  283. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/connect/wrapMapToProps.js +0 -28
  284. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/index.js +0 -4
  285. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/isPlainObject.js +0 -10
  286. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/shallowEqual.js +0 -15
  287. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/verifyPlainObject.js +0 -8
  288. package/dist/node_modules/.bun/react-redux@6.0.1_926323a638b43722/node_modules/react-redux/es/utils/warning.js +0 -9
  289. package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +0 -49
  290. package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +0 -34
  291. package/dist/node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js +0 -185
  292. package/dist/node_modules/.bun/redux@4.2.1/node_modules/redux/es/redux.js +0 -225
  293. package/dist/toggle-bar.d.ts +0 -40
  294. package/dist/tool-menu.d.ts +0 -21
  295. package/dist/tool-menu.js +0 -188
  296. package/dist/tools/index.d.ts +0 -17
  297. package/dist/tools/index.js +0 -12
  298. package/dist/tools/line/component.d.ts +0 -113
  299. package/dist/tools/line/component.js +0 -58
  300. package/dist/tools/line/index.d.ts +0 -13
  301. package/dist/tools/line/index.js +0 -6
  302. package/dist/tools/polygon/component.d.ts +0 -114
  303. package/dist/tools/polygon/component.js +0 -194
  304. package/dist/tools/polygon/index.d.ts +0 -19
  305. package/dist/tools/polygon/index.js +0 -55
  306. package/dist/tools/polygon/line.d.ts +0 -125
  307. package/dist/tools/polygon/polygon.d.ts +0 -122
  308. package/dist/tools/polygon/polygon.js +0 -62
  309. package/dist/tools/shared/arrow-head.d.ts +0 -43
  310. package/dist/tools/shared/arrow-head.js +0 -37
  311. package/dist/tools/shared/line/index.d.ts +0 -240
  312. package/dist/tools/shared/line/index.js +0 -320
  313. package/dist/tools/shared/line/line-path.d.ts +0 -57
  314. package/dist/tools/shared/line/with-root-edge.d.ts +0 -143
  315. package/dist/tools/shared/point/arrow-point.d.ts +0 -57
  316. package/dist/tools/shared/point/arrow-point.js +0 -47
  317. package/dist/tools/shared/point/arrow.d.ts +0 -46
  318. package/dist/tools/shared/point/arrow.js +0 -36
  319. package/dist/tools/shared/point/base-point.d.ts +0 -50
  320. package/dist/tools/shared/point/base-point.js +0 -88
  321. package/dist/tools/shared/point/index.d.ts +0 -217
  322. package/dist/tools/shared/point/index.js +0 -51
  323. package/dist/tools/shared/styles.d.ts +0 -24
  324. package/dist/tools/shared/styles.js +0 -17
  325. package/dist/tools/shared/types.d.ts +0 -15
  326. package/dist/tools/shared/types.js +0 -10
  327. package/dist/undo-redo.d.ts +0 -20
  328. package/dist/undo-redo.js +0 -33
  329. package/dist/use-debounce.d.ts +0 -9
  330. package/dist/use-debounce.js +0 -13
  331. package/dist/utils.d.ts +0 -58
  332. package/dist/utils.js +0 -72
@@ -1,45 +0,0 @@
1
- import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_postfix as t } from "./postfix.js";
3
- //#region ../../../node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js
4
- var n = /* @__PURE__ */ e(((e, n) => {
5
- var r = t();
6
- r.prototype.postfixEval = function(e) {
7
- e ||= {}, e.PI = Math.PI, e.E = Math.E;
8
- for (var t = [], n, i, a, o = this.value, s = e.n !== void 0, c = 0; c < o.length; c++) if (o[c].type === 1) t.push({
9
- value: o[c].value,
10
- type: 1
11
- });
12
- else if (o[c].type === 3) t.push({
13
- value: e[o[c].value],
14
- type: 1
15
- });
16
- else if (o[c].type === 0) t[t.length - 1].type === void 0 ? t[t.length - 1].value.push(o[c]) : t[t.length - 1].value = o[c].value(t[t.length - 1].value);
17
- else if (o[c].type === 7) t[t.length - 1].type === void 0 ? t[t.length - 1].value.push(o[c]) : t[t.length - 1].value = o[c].value(t[t.length - 1].value);
18
- else if (o[c].type === 8) {
19
- for (var l = [], u = 0; u < o[c].numberOfArguments; u++) l.push(t.pop().value);
20
- t.push({
21
- type: 1,
22
- value: o[c].value.apply(o[c], l.reverse())
23
- });
24
- } else o[c].type === 10 ? (n = t.pop(), i = t.pop(), i.type === void 0 ? (i.value = i.concat(n), i.value.push(o[c]), t.push(i)) : n.type === void 0 ? (n.unshift(i), n.push(o[c]), t.push(n)) : t.push({
25
- type: 1,
26
- value: o[c].value(i.value, n.value)
27
- })) : o[c].type === 2 || o[c].type === 9 ? (n = t.pop(), i = t.pop(), i.type === void 0 ? (i = i.concat(n), i.push(o[c]), t.push(i)) : n.type === void 0 ? (n.unshift(i), n.push(o[c]), t.push(n)) : t.push({
28
- type: 1,
29
- value: o[c].value(i.value, n.value)
30
- })) : o[c].type === 12 ? (n = t.pop(), n.type !== void 0 && (n = [n]), i = t.pop(), a = t.pop(), t.push({
31
- type: 1,
32
- value: o[c].value(a.value, i.value, new r(n))
33
- })) : o[c].type === 13 && (s ? t.push({
34
- value: e[o[c].value],
35
- type: 3
36
- }) : t.push([o[c]]));
37
- if (t.length > 1) throw new r.Exception("Uncaught Syntax error");
38
- return t[0].value > 0x38d7ea4c68000 ? "Infinity" : parseFloat(t[0].value.toFixed(15));
39
- }, r.eval = function(e, t, n) {
40
- return t === void 0 ? this.lex(e).toPostfix().postfixEval() : n === void 0 ? t.length === void 0 ? this.lex(e).toPostfix().postfixEval(t) : this.lex(e, t).toPostfix().postfixEval() : this.lex(e, t).toPostfix().postfixEval(n);
41
- }, n.exports = r;
42
- }));
43
- //#endregion
44
- export default n();
45
- export { n as require_postfix_evaluator };
@@ -1,216 +0,0 @@
1
- import { __commonJSMin as e, __require as t } from "../../../../../../_virtual/_rolldown/runtime.js";
2
- //#region ../../../node_modules/.bun/react-input-autosize@2.2.2+f4eacebf2041cd4f/node_modules/react-input-autosize/lib/AutosizeInput.js
3
- var n = /* @__PURE__ */ e(((e) => {
4
- Object.defineProperty(e, "__esModule", { value: !0 });
5
- var n = Object.assign || function(e) {
6
- for (var t = 1; t < arguments.length; t++) {
7
- var n = arguments[t];
8
- for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
9
- }
10
- return e;
11
- }, r = function() {
12
- function e(e, t) {
13
- for (var n = 0; n < t.length; n++) {
14
- var r = t[n];
15
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
16
- }
17
- }
18
- return function(t, n, r) {
19
- return n && e(t.prototype, n), r && e(t, r), t;
20
- };
21
- }(), i = t("react"), a = s(i), o = s(t("prop-types"));
22
- function s(e) {
23
- return e && e.__esModule ? e : { default: e };
24
- }
25
- function c(e, t) {
26
- var n = {};
27
- for (var r in e) t.indexOf(r) >= 0 || Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
28
- return n;
29
- }
30
- function l(e, t) {
31
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
32
- }
33
- function u(e, t) {
34
- if (!e) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
35
- return t && (typeof t == "object" || typeof t == "function") ? t : e;
36
- }
37
- function d(e, t) {
38
- if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function, not " + typeof t);
39
- e.prototype = Object.create(t && t.prototype, { constructor: {
40
- value: e,
41
- enumerable: !1,
42
- writable: !0,
43
- configurable: !0
44
- } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
45
- }
46
- var f = {
47
- position: "absolute",
48
- top: 0,
49
- left: 0,
50
- visibility: "hidden",
51
- height: 0,
52
- overflow: "scroll",
53
- whiteSpace: "pre"
54
- }, p = [
55
- "extraWidth",
56
- "injectStyles",
57
- "inputClassName",
58
- "inputRef",
59
- "inputStyle",
60
- "minWidth",
61
- "onAutosize",
62
- "placeholderIsMinWidth"
63
- ], m = function(e) {
64
- return p.forEach(function(t) {
65
- return delete e[t];
66
- }), e;
67
- }, h = function(e, t) {
68
- t.style.fontSize = e.fontSize, t.style.fontFamily = e.fontFamily, t.style.fontWeight = e.fontWeight, t.style.fontStyle = e.fontStyle, t.style.letterSpacing = e.letterSpacing, t.style.textTransform = e.textTransform;
69
- }, g = typeof window < "u" && window.navigator ? /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent) : !1, _ = function() {
70
- return g ? "_" + Math.random().toString(36).substr(2, 12) : void 0;
71
- }, v = function(e) {
72
- d(t, e);
73
- function t(e) {
74
- l(this, t);
75
- var n = u(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));
76
- return n.inputRef = function(e) {
77
- n.input = e, typeof n.props.inputRef == "function" && n.props.inputRef(e);
78
- }, n.placeHolderSizerRef = function(e) {
79
- n.placeHolderSizer = e;
80
- }, n.sizerRef = function(e) {
81
- n.sizer = e;
82
- }, n.state = {
83
- inputWidth: e.minWidth,
84
- inputId: e.id || _()
85
- }, n;
86
- }
87
- return r(t, [
88
- {
89
- key: "componentDidMount",
90
- value: function() {
91
- this.mounted = !0, this.copyInputStyles(), this.updateInputWidth();
92
- }
93
- },
94
- {
95
- key: "UNSAFE_componentWillReceiveProps",
96
- value: function(e) {
97
- var t = e.id;
98
- t !== this.props.id && this.setState({ inputId: t || _() });
99
- }
100
- },
101
- {
102
- key: "componentDidUpdate",
103
- value: function(e, t) {
104
- t.inputWidth !== this.state.inputWidth && typeof this.props.onAutosize == "function" && this.props.onAutosize(this.state.inputWidth), this.updateInputWidth();
105
- }
106
- },
107
- {
108
- key: "componentWillUnmount",
109
- value: function() {
110
- this.mounted = !1;
111
- }
112
- },
113
- {
114
- key: "copyInputStyles",
115
- value: function() {
116
- if (!(!this.mounted || !window.getComputedStyle)) {
117
- var e = this.input && window.getComputedStyle(this.input);
118
- e && (h(e, this.sizer), this.placeHolderSizer && h(e, this.placeHolderSizer));
119
- }
120
- }
121
- },
122
- {
123
- key: "updateInputWidth",
124
- value: function() {
125
- if (!(!this.mounted || !this.sizer || this.sizer.scrollWidth === void 0)) {
126
- var e = void 0;
127
- e = this.props.placeholder && (!this.props.value || this.props.value && this.props.placeholderIsMinWidth) ? Math.max(this.sizer.scrollWidth, this.placeHolderSizer.scrollWidth) + 2 : this.sizer.scrollWidth + 2;
128
- var t = this.props.type === "number" && this.props.extraWidth === void 0 ? 16 : parseInt(this.props.extraWidth) || 0;
129
- e += t, e < this.props.minWidth && (e = this.props.minWidth), e !== this.state.inputWidth && this.setState({ inputWidth: e });
130
- }
131
- }
132
- },
133
- {
134
- key: "getInput",
135
- value: function() {
136
- return this.input;
137
- }
138
- },
139
- {
140
- key: "focus",
141
- value: function() {
142
- this.input.focus();
143
- }
144
- },
145
- {
146
- key: "blur",
147
- value: function() {
148
- this.input.blur();
149
- }
150
- },
151
- {
152
- key: "select",
153
- value: function() {
154
- this.input.select();
155
- }
156
- },
157
- {
158
- key: "renderStyles",
159
- value: function() {
160
- var e = this.props.injectStyles;
161
- return g && e ? a.default.createElement("style", { dangerouslySetInnerHTML: { __html: "input#" + this.state.inputId + "::-ms-clear {display: none;}" } }) : null;
162
- }
163
- },
164
- {
165
- key: "render",
166
- value: function() {
167
- var e = [
168
- this.props.defaultValue,
169
- this.props.value,
170
- ""
171
- ].reduce(function(e, t) {
172
- return e ?? t;
173
- }), t = n({}, this.props.style);
174
- t.display ||= "inline-block";
175
- var r = n({
176
- boxSizing: "content-box",
177
- width: this.state.inputWidth + "px"
178
- }, this.props.inputStyle), i = c(this.props, []);
179
- return m(i), i.className = this.props.inputClassName, i.id = this.state.inputId, i.style = r, a.default.createElement("div", {
180
- className: this.props.className,
181
- style: t
182
- }, this.renderStyles(), a.default.createElement("input", n({}, i, { ref: this.inputRef })), a.default.createElement("div", {
183
- ref: this.sizerRef,
184
- style: f
185
- }, e), this.props.placeholder ? a.default.createElement("div", {
186
- ref: this.placeHolderSizerRef,
187
- style: f
188
- }, this.props.placeholder) : null);
189
- }
190
- }
191
- ]), t;
192
- }(i.Component);
193
- v.propTypes = {
194
- className: o.default.string,
195
- defaultValue: o.default.any,
196
- extraWidth: o.default.oneOfType([o.default.number, o.default.string]),
197
- id: o.default.string,
198
- injectStyles: o.default.bool,
199
- inputClassName: o.default.string,
200
- inputRef: o.default.func,
201
- inputStyle: o.default.object,
202
- minWidth: o.default.oneOfType([o.default.number, o.default.string]),
203
- onAutosize: o.default.func,
204
- onChange: o.default.func,
205
- placeholder: o.default.string,
206
- placeholderIsMinWidth: o.default.bool,
207
- style: o.default.object,
208
- value: o.default.any
209
- }, v.defaultProps = {
210
- minWidth: 1,
211
- injectStyles: !0
212
- }, e.default = v;
213
- }));
214
- //#endregion
215
- export default n();
216
- export { n as require_AutosizeInput };
@@ -1,82 +0,0 @@
1
- import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
- //#region ../../../node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
3
- var t = /* @__PURE__ */ e(((e) => {
4
- process.env.NODE_ENV !== "production" && (function() {
5
- var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
6
- function b(e) {
7
- return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
8
- }
9
- function x(e) {
10
- if (typeof e == "object" && e) {
11
- var t = e.$$typeof;
12
- switch (t) {
13
- case n:
14
- var p = e.type;
15
- switch (p) {
16
- case l:
17
- case u:
18
- case i:
19
- case o:
20
- case a:
21
- case f: return p;
22
- default:
23
- var g = p && p.$$typeof;
24
- switch (g) {
25
- case c:
26
- case d:
27
- case h:
28
- case m:
29
- case s: return g;
30
- default: return t;
31
- }
32
- }
33
- case r: return t;
34
- }
35
- }
36
- }
37
- var S = l, C = u, w = c, T = s, E = n, D = d, O = i, k = h, A = m, j = r, M = o, N = a, P = f, F = !1;
38
- function I(e) {
39
- return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), L(e) || x(e) === l;
40
- }
41
- function L(e) {
42
- return x(e) === u;
43
- }
44
- function R(e) {
45
- return x(e) === c;
46
- }
47
- function z(e) {
48
- return x(e) === s;
49
- }
50
- function B(e) {
51
- return typeof e == "object" && !!e && e.$$typeof === n;
52
- }
53
- function V(e) {
54
- return x(e) === d;
55
- }
56
- function H(e) {
57
- return x(e) === i;
58
- }
59
- function U(e) {
60
- return x(e) === h;
61
- }
62
- function W(e) {
63
- return x(e) === m;
64
- }
65
- function G(e) {
66
- return x(e) === r;
67
- }
68
- function K(e) {
69
- return x(e) === o;
70
- }
71
- function q(e) {
72
- return x(e) === a;
73
- }
74
- function J(e) {
75
- return x(e) === f;
76
- }
77
- e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = I, e.isConcurrentMode = L, e.isContextConsumer = R, e.isContextProvider = z, e.isElement = B, e.isForwardRef = V, e.isFragment = H, e.isLazy = U, e.isMemo = W, e.isPortal = G, e.isProfiler = K, e.isStrictMode = q, e.isSuspense = J, e.isValidElementType = b, e.typeOf = x;
78
- })();
79
- }));
80
- //#endregion
81
- export default t();
82
- export { t as require_react_is_development };
@@ -1,62 +0,0 @@
1
- import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
- //#region ../../../node_modules/.bun/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js
3
- var t = /* @__PURE__ */ e(((e) => {
4
- var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
5
- function b(e) {
6
- if (typeof e == "object" && e) {
7
- var t = e.$$typeof;
8
- switch (t) {
9
- case n: switch (e = e.type, e) {
10
- case l:
11
- case u:
12
- case i:
13
- case o:
14
- case a:
15
- case f: return e;
16
- default: switch (e &&= e.$$typeof, e) {
17
- case c:
18
- case d:
19
- case h:
20
- case m:
21
- case s: return e;
22
- default: return t;
23
- }
24
- }
25
- case r: return t;
26
- }
27
- }
28
- }
29
- function x(e) {
30
- return b(e) === u;
31
- }
32
- e.AsyncMode = l, e.ConcurrentMode = u, e.ContextConsumer = c, e.ContextProvider = s, e.Element = n, e.ForwardRef = d, e.Fragment = i, e.Lazy = h, e.Memo = m, e.Portal = r, e.Profiler = o, e.StrictMode = a, e.Suspense = f, e.isAsyncMode = function(e) {
33
- return x(e) || b(e) === l;
34
- }, e.isConcurrentMode = x, e.isContextConsumer = function(e) {
35
- return b(e) === c;
36
- }, e.isContextProvider = function(e) {
37
- return b(e) === s;
38
- }, e.isElement = function(e) {
39
- return typeof e == "object" && !!e && e.$$typeof === n;
40
- }, e.isForwardRef = function(e) {
41
- return b(e) === d;
42
- }, e.isFragment = function(e) {
43
- return b(e) === i;
44
- }, e.isLazy = function(e) {
45
- return b(e) === h;
46
- }, e.isMemo = function(e) {
47
- return b(e) === m;
48
- }, e.isPortal = function(e) {
49
- return b(e) === r;
50
- }, e.isProfiler = function(e) {
51
- return b(e) === o;
52
- }, e.isStrictMode = function(e) {
53
- return b(e) === a;
54
- }, e.isSuspense = function(e) {
55
- return b(e) === f;
56
- }, e.isValidElementType = function(e) {
57
- return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
58
- }, e.typeOf = b;
59
- }));
60
- //#endregion
61
- export default t();
62
- export { t as require_react_is_production_min };
@@ -1,10 +0,0 @@
1
- import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_react_is_production_min as t } from "./cjs/react-is.production.min.js";
3
- import { require_react_is_development as n } from "./cjs/react-is.development.js";
4
- //#region ../../../node_modules/.bun/react-is@16.13.1/node_modules/react-is/index.js
5
- var r = /* @__PURE__ */ e(((e, r) => {
6
- process.env.NODE_ENV === "production" ? r.exports = t() : r.exports = n();
7
- }));
8
- //#endregion
9
- export default r();
10
- export { r as require_react_is };
@@ -1,5 +0,0 @@
1
- import e from "react";
2
- //#region ../../../node_modules/.bun/react-redux@6.0.1+926323a638b43722/node_modules/react-redux/es/components/Context.js
3
- var t = e.createContext(null);
4
- //#endregion
5
- export { t as default };
@@ -1,47 +0,0 @@
1
- import { _inheritsLoose as e } from "../../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js";
2
- import t from "./Context.js";
3
- import n, { Component as r } from "react";
4
- import i from "prop-types";
5
- //#region ../../../node_modules/.bun/react-redux@6.0.1+926323a638b43722/node_modules/react-redux/es/components/Provider.js
6
- var a = /*#__PURE__*/ function(r) {
7
- e(i, r);
8
- function i(e) {
9
- var t = r.call(this, e) || this, n = e.store;
10
- return t.state = {
11
- storeState: n.getState(),
12
- store: n
13
- }, t;
14
- }
15
- var a = i.prototype;
16
- return a.componentDidMount = function() {
17
- this._isMounted = !0, this.subscribe();
18
- }, a.componentWillUnmount = function() {
19
- this.unsubscribe && this.unsubscribe(), this._isMounted = !1;
20
- }, a.componentDidUpdate = function(e) {
21
- this.props.store !== e.store && (this.unsubscribe && this.unsubscribe(), this.subscribe());
22
- }, a.subscribe = function() {
23
- var e = this, t = this.props.store;
24
- this.unsubscribe = t.subscribe(function() {
25
- var n = t.getState();
26
- e._isMounted && e.setState(function(e) {
27
- return e.storeState === n ? null : { storeState: n };
28
- });
29
- });
30
- var n = t.getState();
31
- n !== this.state.storeState && this.setState({ storeState: n });
32
- }, a.render = function() {
33
- var e = this.props.context || t;
34
- return n.createElement(e.Provider, { value: this.state }, this.props.children);
35
- }, i;
36
- }(r);
37
- a.propTypes = {
38
- store: i.shape({
39
- subscribe: i.func.isRequired,
40
- dispatch: i.func.isRequired,
41
- getState: i.func.isRequired
42
- }),
43
- context: i.object,
44
- children: i.any
45
- };
46
- //#endregion
47
- export { a as default };
@@ -1,95 +0,0 @@
1
- import { __toESM as e } from "../../../../../../../_virtual/_rolldown/runtime.js";
2
- import { require_browser as t } from "../../../../../invariant@2.2.4/node_modules/invariant/browser.js";
3
- import { _inheritsLoose as n } from "../../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js";
4
- import r from "./Context.js";
5
- import { _assertThisInitialized as i } from "../../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js";
6
- import { _extends as a } from "../../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js";
7
- import { _objectWithoutPropertiesLoose as o } from "../../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
8
- import { require_react_is as s } from "../../../../../react-is@16.13.1/node_modules/react-is/index.js";
9
- import { require_hoist_non_react_statics_cjs as c } from "../../../../../hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js";
10
- import l, { Component as u, PureComponent as d } from "react";
11
- //#region ../../../node_modules/.bun/react-redux@6.0.1+926323a638b43722/node_modules/react-redux/es/components/connectAdvanced.js
12
- var f = /* @__PURE__ */ e(c()), p = /* @__PURE__ */ e(t()), m = s(), h = function(e) {
13
- try {
14
- return JSON.stringify(e);
15
- } catch {
16
- return String(e);
17
- }
18
- };
19
- function g(e, t) {
20
- t === void 0 && (t = {});
21
- var s = t, c = s.getDisplayName, g = c === void 0 ? function(e) {
22
- return "ConnectAdvanced(" + e + ")";
23
- } : c, _ = s.methodName, v = _ === void 0 ? "connectAdvanced" : _, y = s.renderCountProp, b = y === void 0 ? void 0 : y, x = s.shouldHandleStateChanges, S = x === void 0 ? !0 : x, C = s.storeKey, w = C === void 0 ? "store" : C, T = s.withRef, E = T === void 0 ? !1 : T, D = s.forwardRef, O = D === void 0 ? !1 : D, k = s.context, A = k === void 0 ? r : k, j = o(s, [
24
- "getDisplayName",
25
- "methodName",
26
- "renderCountProp",
27
- "shouldHandleStateChanges",
28
- "storeKey",
29
- "withRef",
30
- "forwardRef",
31
- "context"
32
- ]);
33
- (0, p.default)(b === void 0, "renderCountProp is removed. render counting is built into the latest React dev tools profiling extension"), (0, p.default)(!E, "withRef is removed. To access the wrapped instance, use a ref on the connected component");
34
- var M = "To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect";
35
- (0, p.default)(w === "store", "storeKey has been removed and does not do anything. " + M);
36
- var N = A;
37
- return function(t) {
38
- process.env.NODE_ENV !== "production" && (0, p.default)((0, m.isValidElementType)(t), "You must pass a component to the function returned by " + (v + ". Instead received " + h(t)));
39
- var r = t.displayName || t.name || "Component", o = g(r), s = a({}, j, {
40
- getDisplayName: g,
41
- methodName: v,
42
- renderCountProp: b,
43
- shouldHandleStateChanges: S,
44
- storeKey: w,
45
- displayName: o,
46
- wrappedComponentName: r,
47
- WrappedComponent: t
48
- }), c = j.pure, _ = u;
49
- c && (_ = d);
50
- function y() {
51
- var t, n, r, i, a, o;
52
- return function(s, l, u, d) {
53
- return c && t === l && n === s ? r : ((u !== i || a !== d) && (i = u, a = d, o = e(u.dispatch, d)), t = l, n = s, r = o(s, l), r);
54
- };
55
- }
56
- function x() {
57
- var e, t, n, r;
58
- return function(i, o, s) {
59
- return (o !== e || s !== t || r !== i) && (e = o, t = s, r = i, n = l.createElement(i, a({}, o, { ref: s }))), n;
60
- };
61
- }
62
- var C = /*#__PURE__*/ function(e) {
63
- n(r, e);
64
- function r(t) {
65
- var n = e.call(this, t) || this;
66
- return (0, p.default)(O ? !t.wrapperProps[w] : !t[w], "Passing redux store in props has been removed and does not do anything. " + M), n.selectDerivedProps = y(), n.selectChildElement = x(), n.indirectRenderWrappedComponent = n.indirectRenderWrappedComponent.bind(i(n)), n;
67
- }
68
- var a = r.prototype;
69
- return a.indirectRenderWrappedComponent = function(e) {
70
- return this.renderWrappedComponent(e);
71
- }, a.renderWrappedComponent = function(e) {
72
- (0, p.default)(e, "Could not find \"store\" in the context of " + ("\"" + o + "\". Either wrap the root component in a <Provider>, ") + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + o + " in connect options."));
73
- var n = e.storeState, r = e.store, i = this.props, a;
74
- O && (i = this.props.wrapperProps, a = this.props.forwardedRef);
75
- var c = this.selectDerivedProps(n, i, r, s);
76
- return this.selectChildElement(t, c, a);
77
- }, a.render = function() {
78
- var e = this.props.context && this.props.context.Consumer && (0, m.isContextConsumer)(l.createElement(this.props.context.Consumer, null)) ? this.props.context : N;
79
- return l.createElement(e.Consumer, null, this.indirectRenderWrappedComponent);
80
- }, r;
81
- }(_);
82
- if (C.WrappedComponent = t, C.displayName = o, O) {
83
- var T = l.forwardRef(function(e, t) {
84
- return l.createElement(C, {
85
- wrapperProps: e,
86
- forwardedRef: t
87
- });
88
- });
89
- return T.displayName = o, T.WrappedComponent = t, (0, f.default)(T, t);
90
- }
91
- return (0, f.default)(C, t);
92
- };
93
- }
94
- //#endregion
95
- export { g as default };
@@ -1,52 +0,0 @@
1
- import { _extends as e } from "../../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js";
2
- import { _objectWithoutPropertiesLoose as t } from "../../../../../@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
3
- import n from "../components/connectAdvanced.js";
4
- import r from "../utils/shallowEqual.js";
5
- import i from "./mapDispatchToProps.js";
6
- import a from "./mapStateToProps.js";
7
- import o from "./mergeProps.js";
8
- import s from "./selectorFactory.js";
9
- //#region ../../../node_modules/.bun/react-redux@6.0.1+926323a638b43722/node_modules/react-redux/es/connect/connect.js
10
- function c(e, t, n) {
11
- for (var r = t.length - 1; r >= 0; r--) {
12
- var i = t[r](e);
13
- if (i) return i;
14
- }
15
- return function(t, r) {
16
- throw Error("Invalid value of type " + typeof e + " for " + n + " argument when connecting component " + r.wrappedComponentName + ".");
17
- };
18
- }
19
- function l(e, t) {
20
- return e === t;
21
- }
22
- function u(u) {
23
- var d = u === void 0 ? {} : u, f = d.connectHOC, p = f === void 0 ? n : f, m = d.mapStateToPropsFactories, h = m === void 0 ? a : m, g = d.mapDispatchToPropsFactories, _ = g === void 0 ? i : g, v = d.mergePropsFactories, y = v === void 0 ? o : v, b = d.selectorFactory, x = b === void 0 ? s : b;
24
- return function(n, i, a, o) {
25
- o === void 0 && (o = {});
26
- var s = o, u = s.pure, d = u === void 0 ? !0 : u, f = s.areStatesEqual, m = f === void 0 ? l : f, g = s.areOwnPropsEqual, v = g === void 0 ? r : g, b = s.areStatePropsEqual, S = b === void 0 ? r : b, C = s.areMergedPropsEqual, w = C === void 0 ? r : C, T = t(s, [
27
- "pure",
28
- "areStatesEqual",
29
- "areOwnPropsEqual",
30
- "areStatePropsEqual",
31
- "areMergedPropsEqual"
32
- ]), E = c(n, h, "mapStateToProps"), D = c(i, _, "mapDispatchToProps"), O = c(a, y, "mergeProps");
33
- return p(x, e({
34
- methodName: "connect",
35
- getDisplayName: function(e) {
36
- return "Connect(" + e + ")";
37
- },
38
- shouldHandleStateChanges: !!n,
39
- initMapStateToProps: E,
40
- initMapDispatchToProps: D,
41
- initMergeProps: O,
42
- pure: d,
43
- areStatesEqual: m,
44
- areOwnPropsEqual: v,
45
- areStatePropsEqual: S,
46
- areMergedPropsEqual: w
47
- }, T));
48
- };
49
- }
50
- var d = u();
51
- //#endregion
52
- export { d as default };
@@ -1,23 +0,0 @@
1
- import { bindActionCreators as e } from "../../../../../redux@4.2.1/node_modules/redux/es/redux.js";
2
- import { wrapMapToPropsConstant as t, wrapMapToPropsFunc as n } from "./wrapMapToProps.js";
3
- //#region ../../../node_modules/.bun/react-redux@6.0.1+926323a638b43722/node_modules/react-redux/es/connect/mapDispatchToProps.js
4
- function r(e) {
5
- return typeof e == "function" ? n(e, "mapDispatchToProps") : void 0;
6
- }
7
- function i(e) {
8
- return e ? void 0 : t(function(e) {
9
- return { dispatch: e };
10
- });
11
- }
12
- function a(n) {
13
- return n && typeof n == "object" ? t(function(t) {
14
- return e(n, t);
15
- }) : void 0;
16
- }
17
- var o = [
18
- r,
19
- i,
20
- a
21
- ];
22
- //#endregion
23
- export { o as default };
@@ -1,13 +0,0 @@
1
- import { wrapMapToPropsConstant as e, wrapMapToPropsFunc as t } from "./wrapMapToProps.js";
2
- //#region ../../../node_modules/.bun/react-redux@6.0.1+926323a638b43722/node_modules/react-redux/es/connect/mapStateToProps.js
3
- function n(e) {
4
- return typeof e == "function" ? t(e, "mapStateToProps") : void 0;
5
- }
6
- function r(t) {
7
- return t ? void 0 : e(function() {
8
- return {};
9
- });
10
- }
11
- var i = [n, r];
12
- //#endregion
13
- export { i as default };