@khanacademy/perseus 21.3.0 → 21.3.1

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/dist/index.css CHANGED
@@ -4322,6 +4322,20 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
4322
4322
  stroke-width: 6px;
4323
4323
  }
4324
4324
 
4325
+ .MafsView .movable-point {
4326
+ cursor: grab;
4327
+ touch-action: none;
4328
+ outline: none;
4329
+ }
4330
+
4331
+ .MafsView .movable-point.movable-point--dragging {
4332
+ cursor: grabbing;
4333
+ }
4334
+
4335
+ .MafsView .movable-point.movable-point--dragging .movable-point-halo {
4336
+ opacity: 0;
4337
+ }
4338
+
4325
4339
  .MafsView .movable-point-hitbox {
4326
4340
  fill: transparent;
4327
4341
  }
@@ -4333,7 +4347,9 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
4333
4347
  .movable-point-halo,
4334
4348
  .movable-point-focus-outline
4335
4349
  ) {
4336
- transition: r 0.15s ease-out;
4350
+ transition:
4351
+ r 0.15s ease-out,
4352
+ opacity 0.15s ease-out;
4337
4353
  }
4338
4354
 
4339
4355
  .MafsView .movable-point-center {
package/dist/index.js CHANGED
@@ -28599,15 +28599,13 @@ const StyledMovablePoint = props => {
28599
28599
  onMove,
28600
28600
  constrain: p => snap(state.snapStep, p)
28601
28601
  });
28602
+ const pointClasses = `movable-point ${dragging ? "movable-point--dragging" : ""}`;
28602
28603
  const [[x, y]] = useTransform(point);
28603
28604
  return /*#__PURE__*/React__namespace.createElement("g", {
28604
28605
  ref: hitboxRef,
28605
- className: "movable-point",
28606
+ className: pointClasses,
28606
28607
  tabIndex: 0,
28607
28608
  style: {
28608
- cursor: dragging ? "grabbing" : "grab",
28609
- touchAction: "none",
28610
- outline: "none",
28611
28609
  "--movable-point-color": color
28612
28610
  },
28613
28611
  "data-test-id": "movable-point"
@@ -42518,7 +42516,7 @@ const init = function (options) {
42518
42516
 
42519
42517
  // This file is processed by a Rollup plugin (replace) to inject the production
42520
42518
  const libName = "@khanacademy/perseus";
42521
- const libVersion = "21.3.0";
42519
+ const libVersion = "21.3.1";
42522
42520
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
42523
42521
 
42524
42522
  const apiVersion = {