@ws-ui/roles-editor 1.10.4-rc2 → 1.10.4-rc4

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.
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode, Dispatch } from 'react';
2
- import { ITabFlags, IModal, ModalCloseReason, TRolesDict, TById, TRawData, TSanitizedPrivilege, IRolesState } from '@ws-ui/shared';
2
+ import { ITabFlags, IModal, ModalCloseReason, TRolesDict, TById, TRawData, IRolesState } from '@ws-ui/shared';
3
3
  import { IEditorStateAdapter } from '../types';
4
4
  /**
5
5
  * Modal state interface
@@ -18,6 +18,9 @@ interface IReducerState extends IRolesState {
18
18
  * Action types for the reducer
19
19
  */
20
20
  type ReducerAction = {
21
+ type: 'UPDATE_STATE';
22
+ payload: Partial<IReducerState>;
23
+ } | {
21
24
  type: 'UPDATE_ROLES';
22
25
  payload: TRolesDict;
23
26
  } | {
@@ -66,7 +69,6 @@ type ReducerAction = {
66
69
  interface IExternalData {
67
70
  catalog?: datasources.IEnhancedCatalog | null;
68
71
  qodly?: boolean;
69
- guestPrivilege?: TSanitizedPrivilege | null;
70
72
  catalogMethods?: catalog.IMethod[];
71
73
  dataclasses?: datasources.IDataClasses;
72
74
  singletons?: datasources.ISingletons;
@@ -1 +1 @@
1
- {"version":3,"file":"common.cjs.js","sources":["../src/common.ts"],"sourcesContent":["export const ROLES_EDITOR_SCOPE_CLASS = 'qodly-roles-editor';\n"],"names":["ROLES_EDITOR_SCOPE_CLASS"],"mappings":"gFAAO,MAAMA,EAA2B"}
1
+ {"version":3,"file":"common.cjs.js","sources":["../src/common.ts"],"sourcesContent":["export const ROLES_EDITOR_SCOPE_CLASS = 'qodly-roles-editor';\r\n"],"names":["ROLES_EDITOR_SCOPE_CLASS"],"mappings":"gFAAO,MAAMA,EAA2B"}
@@ -1 +1 @@
1
- {"version":3,"file":"common.es.js","sources":["../src/common.ts"],"sourcesContent":["export const ROLES_EDITOR_SCOPE_CLASS = 'qodly-roles-editor';\n"],"names":["ROLES_EDITOR_SCOPE_CLASS"],"mappings":"AAAO,MAAMA,IAA2B;"}
1
+ {"version":3,"file":"common.es.js","sources":["../src/common.ts"],"sourcesContent":["export const ROLES_EDITOR_SCOPE_CLASS = 'qodly-roles-editor';\r\n"],"names":["ROLES_EDITOR_SCOPE_CLASS"],"mappings":"AAAO,MAAMA,IAA2B;"}