authscape 1.0.392 → 1.0.396

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/index.js CHANGED
@@ -2340,6 +2340,8 @@ Object.defineProperty(exports, "__esModule", {
2340
2340
  });
2341
2341
  exports.Handle = void 0;
2342
2342
  var _react = _interopRequireWildcard(require("react"));
2343
+ var _DragIndicatorRounded = _interopRequireDefault(require("@mui/icons-material/DragIndicatorRounded"));
2344
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
2343
2345
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
2344
2346
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
2345
2347
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -2350,12 +2352,7 @@ var Handle = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
2350
2352
  ref: ref,
2351
2353
  cursor: "grab",
2352
2354
  "data-cypress": "draggable-handle"
2353
- }, props), /*#__PURE__*/_react["default"].createElement("svg", {
2354
- viewBox: "0 0 20 20",
2355
- width: "12"
2356
- }, /*#__PURE__*/_react["default"].createElement("path", {
2357
- d: "M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"
2358
- })));
2355
+ }, props), /*#__PURE__*/_react["default"].createElement(_DragIndicatorRounded["default"], null));
2359
2356
  });
2360
2357
  exports.Handle = Handle;
2361
2358
  "use strict";
@@ -3230,10 +3227,10 @@ function useMountStatus() {
3230
3227
  Object.defineProperty(exports, "__esModule", {
3231
3228
  value: true
3232
3229
  });
3233
- exports.coordinateGetter = void 0;
3230
+ exports.multipleContainersCoordinateGetter = void 0;
3234
3231
  var _core = require("@dnd-kit/core");
3235
3232
  var directions = [_core.KeyboardCode.Down, _core.KeyboardCode.Right, _core.KeyboardCode.Up, _core.KeyboardCode.Left];
3236
- var coordinateGetter = function coordinateGetter(event, _ref) {
3233
+ var multipleContainersCoordinateGetter = function multipleContainersCoordinateGetter(event, _ref) {
3237
3234
  var _ref$context = _ref.context,
3238
3235
  active = _ref$context.active,
3239
3236
  droppableRects = _ref$context.droppableRects,
@@ -3322,7 +3319,7 @@ var coordinateGetter = function coordinateGetter(event, _ref) {
3322
3319
  }
3323
3320
  return undefined;
3324
3321
  };
3325
- exports.coordinateGetter = coordinateGetter;
3322
+ exports.multipleContainersCoordinateGetter = multipleContainersCoordinateGetter;
3326
3323
  "use strict";
3327
3324
 
3328
3325
  Object.defineProperty(exports, "__esModule", {
@@ -3330,6 +3327,7 @@ Object.defineProperty(exports, "__esModule", {
3330
3327
  });
3331
3328
  exports.Remove = Remove;
3332
3329
  var _react = _interopRequireDefault(require("react"));
3330
+ var _DeleteRounded = _interopRequireDefault(require("@mui/icons-material/DeleteRounded"));
3333
3331
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
3334
3332
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3335
3333
  // import {Action} from './Action';
@@ -3340,13 +3338,7 @@ function Remove(props) {
3340
3338
  fill: 'rgba(255, 70, 70, 0.95)',
3341
3339
  background: 'rgba(255, 70, 70, 0.1)'
3342
3340
  }
3343
- }), /*#__PURE__*/_react["default"].createElement("svg", {
3344
- width: "8",
3345
- viewBox: "0 0 22 22",
3346
- xmlns: "http://www.w3.org/2000/svg"
3347
- }, /*#__PURE__*/_react["default"].createElement("path", {
3348
- d: "M2.99998 -0.000206962C2.7441 -0.000206962 2.48794 0.0972617 2.29294 0.292762L0.292945 2.29276C-0.0980552 2.68376 -0.0980552 3.31682 0.292945 3.70682L7.58591 10.9998L0.292945 18.2928C-0.0980552 18.6838 -0.0980552 19.3168 0.292945 19.7068L2.29294 21.7068C2.68394 22.0978 3.31701 22.0978 3.70701 21.7068L11 14.4139L18.2929 21.7068C18.6829 22.0978 19.317 22.0978 19.707 21.7068L21.707 19.7068C22.098 19.3158 22.098 18.6828 21.707 18.2928L14.414 10.9998L21.707 3.70682C22.098 3.31682 22.098 2.68276 21.707 2.29276L19.707 0.292762C19.316 -0.0982383 18.6829 -0.0982383 18.2929 0.292762L11 7.58573L3.70701 0.292762C3.51151 0.0972617 3.25585 -0.000206962 2.99998 -0.000206962Z"
3349
- })));
3341
+ }), /*#__PURE__*/_react["default"].createElement(_DeleteRounded["default"], null));
3350
3342
  }
3351
3343
  "use strict";
3352
3344
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.392",
3
+ "version": "1.0.396",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import React, {forwardRef} from 'react';
2
-
2
+ import DragIndicatorRoundedIcon from '@mui/icons-material/DragIndicatorRounded';
3
3
  // import {Action} from './Action';
4
4
 
5
5
  export const Handle = forwardRef(
@@ -11,9 +11,7 @@ export const Handle = forwardRef(
11
11
  data-cypress="draggable-handle"
12
12
  {...props}
13
13
  >
14
- <svg viewBox="0 0 20 20" width="12">
15
- <path d="M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"></path>
16
- </svg>
14
+ <DragIndicatorRoundedIcon/>
17
15
  </Action>
18
16
  );
19
17
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
-
2
+ import DeleteRoundedIcon from '@mui/icons-material/DeleteRounded';
3
3
  // import {Action} from './Action';
4
4
 
5
5
  export function Remove(props) {
@@ -11,9 +11,7 @@ export function Remove(props) {
11
11
  background: 'rgba(255, 70, 70, 0.1)',
12
12
  }}
13
13
  >
14
- <svg width="8" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
15
- <path d="M2.99998 -0.000206962C2.7441 -0.000206962 2.48794 0.0972617 2.29294 0.292762L0.292945 2.29276C-0.0980552 2.68376 -0.0980552 3.31682 0.292945 3.70682L7.58591 10.9998L0.292945 18.2928C-0.0980552 18.6838 -0.0980552 19.3168 0.292945 19.7068L2.29294 21.7068C2.68394 22.0978 3.31701 22.0978 3.70701 21.7068L11 14.4139L18.2929 21.7068C18.6829 22.0978 19.317 22.0978 19.707 21.7068L21.707 19.7068C22.098 19.3158 22.098 18.6828 21.707 18.2928L14.414 10.9998L21.707 3.70682C22.098 3.31682 22.098 2.68276 21.707 2.29276L19.707 0.292762C19.316 -0.0982383 18.6829 -0.0982383 18.2929 0.292762L11 7.58573L3.70701 0.292762C3.51151 0.0972617 3.25585 -0.000206962 2.99998 -0.000206962Z" />
16
- </svg>
14
+ <DeleteRoundedIcon />
17
15
  </Action>
18
16
  );
19
17
  }
@@ -13,7 +13,7 @@ import {
13
13
  KeyboardCode.Left,
14
14
  ];
15
15
 
16
- export const coordinateGetter = (
16
+ export const multipleContainersCoordinateGetter = (
17
17
  event,
18
18
  {context: {active, droppableRects, droppableContainers, collisionRect}}
19
19
  ) => {