@wix/entity-advanced-permissions 1.804.0 → 1.805.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.
@@ -36019,10 +36019,10 @@ module.exports = _interopRequireDefault, module.exports.__esModule = true, modul
36019
36019
 
36020
36020
  /***/ }),
36021
36021
 
36022
- /***/ 191:
36023
- /*!****************************************************************************************************!*\
36024
- !*** ../../../node_modules/@wix/babel-preset-yoshi/node_modules/@babel/runtime/helpers/extends.js ***!
36025
- \****************************************************************************************************/
36022
+ /***/ 9782:
36023
+ /*!*****************************************************************************************************!*\
36024
+ !*** ../../../node_modules/@wix/yoshi-webpack-utils/node_modules/@babel/runtime/helpers/extends.js ***!
36025
+ \*****************************************************************************************************/
36026
36026
  /***/ (function(module) {
36027
36027
 
36028
36028
  function _extends() {
@@ -36043,10 +36043,10 @@ module.exports = _extends, module.exports.__esModule = true, module.exports["def
36043
36043
 
36044
36044
  /***/ }),
36045
36045
 
36046
- /***/ 4887:
36047
- /*!*************************************************************************************************************************!*\
36048
- !*** ../../../node_modules/@wix/babel-preset-yoshi/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***!
36049
- \*************************************************************************************************************************/
36046
+ /***/ 6326:
36047
+ /*!**************************************************************************************************************************!*\
36048
+ !*** ../../../node_modules/@wix/yoshi-webpack-utils/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***!
36049
+ \**************************************************************************************************************************/
36050
36050
  /***/ (function(module) {
36051
36051
 
36052
36052
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -36320,8 +36320,8 @@ __webpack_require__.d(max_namespaceObject, {
36320
36320
  "upscaleMethods": function() { return upscaleMethods; }
36321
36321
  });
36322
36322
 
36323
- // EXTERNAL MODULE: ../../../node_modules/@wix/babel-preset-yoshi/node_modules/@babel/runtime/helpers/extends.js
36324
- var helpers_extends = __webpack_require__(191);
36323
+ // EXTERNAL MODULE: ../../../node_modules/@wix/yoshi-webpack-utils/node_modules/@babel/runtime/helpers/extends.js
36324
+ var helpers_extends = __webpack_require__(9782);
36325
36325
  var extends_default = /*#__PURE__*/__webpack_require__.n(helpers_extends);
36326
36326
  // EXTERNAL MODULE: external "React"
36327
36327
  var external_React_ = __webpack_require__(1024);
@@ -49929,8 +49929,8 @@ var ChevronLeftSmall_default = /*#__PURE__*/__webpack_require__.n(ChevronLeftSma
49929
49929
  // EXTERNAL MODULE: ../../../node_modules/wix-ui-icons-common/dist/src/general/dist/components/Dismiss.js
49930
49930
  var Dismiss = __webpack_require__(6083);
49931
49931
  var Dismiss_default = /*#__PURE__*/__webpack_require__.n(Dismiss);
49932
- // EXTERNAL MODULE: ../../../node_modules/@wix/babel-preset-yoshi/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
49933
- var objectWithoutPropertiesLoose = __webpack_require__(4887);
49932
+ // EXTERNAL MODULE: ../../../node_modules/@wix/yoshi-webpack-utils/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
49933
+ var objectWithoutPropertiesLoose = __webpack_require__(6326);
49934
49934
  var objectWithoutPropertiesLoose_default = /*#__PURE__*/__webpack_require__.n(objectWithoutPropertiesLoose);
49935
49935
  ;// CONCATENATED MODULE: ./components/EntityAdvancedPermissionsState.ts
49936
49936
  const _excluded=["type"];const SET_SELECTED_ROLES='SET_SELECTED_ROLES';const SET_ROLE_TO_PERMISSION='SET_ROLE_TO_PERMISSION';const SET_NOTIFY='SET_NOTIFY';const SET_MESSAGE='SET_MESSAGE';const SET_PERMISSION_ID='SET_PERMISSION_ID';const STEP2_RESET='STEP2_RESET';const RESET='RESET';const SET_SAVE_STATE='SET_SAVE_STATE';const SET_ERROR_MESSAGE='SET_ERROR_MESSAGE';const isPendingSave=(selectedRoles,roleToPermission)=>{const numRolesChanged=selectedRoles?selectedRoles.length:0;const numRolesSet=roleToPermission?roleToPermission.size:0;return numRolesChanged+numRolesSet>0;};function advancedPermissionReducer(state,action){const type=action.type,payload=objectWithoutPropertiesLoose_default()(action,_excluded);switch(action.type){case SET_SELECTED_ROLES:return extends_default()({},state,{selectedRoles:action.selectedRoles,pendingSave:isPendingSave(action.selectedRoles,state.roleToPermission)});case SET_ROLE_TO_PERMISSION:return extends_default()({},state,{roleToPermission:action.roleToPermission,pendingSave:isPendingSave(state.selectedRoles,action.roleToPermission)});case SET_NOTIFY:return extends_default()({},state,{notify:action.notify});case SET_MESSAGE:return extends_default()({},state,{notifyMessage:action.notifyMessage});case SET_PERMISSION_ID:return extends_default()({},state,{chosenPermission:action.chosenPermission});case SET_SAVE_STATE:return extends_default()({},state,{saveState:action.saveState});case SET_ERROR_MESSAGE:return extends_default()({},state,{errorMessage:action.errorMessage});case STEP2_RESET:return extends_default()({},state,payload,{pendingSave:isPendingSave(payload.selectedRoles,state.roleToPermission)});case RESET:return extends_default()({},state,payload);default:throw new Error();}}