@wix/entity-advanced-permissions 1.228.0 → 1.783.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.
- package/dist/cjs/__tests__/browser.e2e.js +1 -0
- package/dist/cjs/__tests__/browser.e2e.js.map +1 -1
- package/dist/cjs/__tests__/counter.spec.js +2 -2
- package/dist/cjs/__tests__/counter.spec.js.map +1 -1
- package/dist/cjs/components/DashboardIcons/AdminsIcon.js +3 -3
- package/dist/cjs/components/DashboardIcons/AdminsIcon.js.map +1 -1
- package/dist/cjs/components/DashboardIcons/BadgeIcon.js +3 -3
- package/dist/cjs/components/DashboardIcons/BadgeIcon.js.map +1 -1
- package/dist/cjs/components/DashboardIcons/PPIcon.js +3 -3
- package/dist/cjs/components/DashboardIcons/PPIcon.js.map +1 -1
- package/dist/cjs/components/DashboardIcons/RoleIcon.js +3 -3
- package/dist/cjs/components/DashboardIcons/RoleIcon.js.map +1 -1
- package/dist/cjs/components/DashboardIcons/SiteVisitorsIcon.js +3 -3
- package/dist/cjs/components/DashboardIcons/SiteVisitorsIcon.js.map +1 -1
- package/dist/cjs/components/DashboardIcons/interfaces.js +1 -1
- package/dist/cjs/components/DashboardIcons/interfaces.js.map +1 -1
- package/dist/cjs/components/EmptyState/EmptyState.js +9 -11
- package/dist/cjs/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/cjs/components/EmptyState/EmptyState.spec.js +5 -6
- package/dist/cjs/components/EmptyState/EmptyState.spec.js.map +1 -1
- package/dist/cjs/components/EntityAdvancedPermissions.js +103 -117
- package/dist/cjs/components/EntityAdvancedPermissions.js.map +1 -1
- package/dist/cjs/components/EntityAdvancedPermissionsState.js +6 -3
- package/dist/cjs/components/EntityAdvancedPermissionsState.js.map +1 -1
- package/dist/cjs/components/EntityAdvancedPermissionsTypes.js +1 -1
- package/dist/cjs/components/EntityAdvancedPermissionsTypes.js.map +1 -1
- package/dist/cjs/components/NotifyBox/NotifyBox.js +13 -21
- package/dist/cjs/components/NotifyBox/NotifyBox.js.map +1 -1
- package/dist/cjs/components/PermissionsDropdown/PermissionsDropdown.js +10 -12
- package/dist/cjs/components/PermissionsDropdown/PermissionsDropdown.js.map +1 -1
- package/dist/cjs/components/PermissionsDropdown/PermissionsDropdown.spec.js +5 -6
- package/dist/cjs/components/PermissionsDropdown/PermissionsDropdown.spec.js.map +1 -1
- package/dist/cjs/components/PermissionsList/Avatar.js +6 -6
- package/dist/cjs/components/PermissionsList/Avatar.js.map +1 -1
- package/dist/cjs/components/PermissionsList/AvatarRole.js +10 -12
- package/dist/cjs/components/PermissionsList/AvatarRole.js.map +1 -1
- package/dist/cjs/components/PermissionsList/PermissionsList.js +6 -6
- package/dist/cjs/components/PermissionsList/PermissionsList.js.map +1 -1
- package/dist/cjs/components/PermissionsList/PermissionsList.spec.js +9 -10
- package/dist/cjs/components/PermissionsList/PermissionsList.spec.js.map +1 -1
- package/dist/cjs/components/PermissionsList/ViewRow.js +8 -8
- package/dist/cjs/components/PermissionsList/ViewRow.js.map +1 -1
- package/dist/cjs/components/SearchEntity/CustomStyles.js.map +1 -1
- package/dist/cjs/components/SearchEntity/DashboardMultiSelect.js +4 -4
- package/dist/cjs/components/SearchEntity/DashboardMultiSelect.js.map +1 -1
- package/dist/cjs/components/SearchEntity/SearchEntity.js +14 -10
- package/dist/cjs/components/SearchEntity/SearchEntity.js.map +1 -1
- package/dist/cjs/components/SearchEntity/SearchEntity.spec.js +3 -4
- package/dist/cjs/components/SearchEntity/SearchEntity.spec.js.map +1 -1
- package/dist/cjs/components/SearchEntity/SearchReplacmentsComponents.js +18 -18
- package/dist/cjs/components/SearchEntity/SearchReplacmentsComponents.js.map +1 -1
- package/dist/cjs/components/SearchEntity/constants.js +1 -1
- package/dist/cjs/components/SearchEntity/constants.js.map +1 -1
- package/dist/cjs/components/SearchEntity/interfaces.js +2 -0
- package/dist/cjs/components/SearchEntity/interfaces.js.map +1 -1
- package/dist/cjs/custom.d.js +1 -1
- package/dist/cjs/custom.d.js.map +1 -1
- package/dist/cjs/example/BasicExample.js +25 -47
- package/dist/cjs/example/BasicExample.js.map +1 -1
- package/dist/cjs/example/CounterCmp.js.map +1 -1
- package/dist/cjs/example/counter.js +4 -2
- package/dist/cjs/example/counter.js.map +1 -1
- package/dist/cjs/external-types.d.js +1 -1
- package/dist/cjs/external-types.d.js.map +1 -1
- package/dist/cjs/globals.d.js +1 -1
- package/dist/cjs/globals.d.js.map +1 -1
- package/dist/cjs/index.js +12 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/__tests__/browser.e2e.js +11 -21
- package/dist/esm/__tests__/browser.e2e.js.map +1 -1
- package/dist/esm/__tests__/counter.spec.js +8 -8
- package/dist/esm/__tests__/counter.spec.js.map +1 -1
- package/dist/esm/components/DashboardIcons/AdminsIcon.js +1 -1
- package/dist/esm/components/DashboardIcons/AdminsIcon.js.map +1 -1
- package/dist/esm/components/DashboardIcons/BadgeIcon.js +1 -1
- package/dist/esm/components/DashboardIcons/BadgeIcon.js.map +1 -1
- package/dist/esm/components/DashboardIcons/PPIcon.js +1 -1
- package/dist/esm/components/DashboardIcons/PPIcon.js.map +1 -1
- package/dist/esm/components/DashboardIcons/RoleIcon.js +1 -1
- package/dist/esm/components/DashboardIcons/RoleIcon.js.map +1 -1
- package/dist/esm/components/DashboardIcons/SiteVisitorsIcon.js +1 -1
- package/dist/esm/components/DashboardIcons/SiteVisitorsIcon.js.map +1 -1
- package/dist/esm/components/DashboardIcons/interfaces.js +1 -0
- package/dist/esm/components/EmptyState/EmptyState.js +9 -9
- package/dist/esm/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/esm/components/EmptyState/EmptyState.spec.js +9 -9
- package/dist/esm/components/EmptyState/EmptyState.spec.js.map +1 -1
- package/dist/esm/components/EntityAdvancedPermissions.js +168 -184
- package/dist/esm/components/EntityAdvancedPermissions.js.map +1 -1
- package/dist/esm/components/EntityAdvancedPermissionsState.js +23 -23
- package/dist/esm/components/EntityAdvancedPermissionsState.js.map +1 -1
- package/dist/esm/components/EntityAdvancedPermissionsTypes.js +1 -1
- package/dist/esm/components/EntityAdvancedPermissionsTypes.js.map +1 -1
- package/dist/esm/components/NotifyBox/NotifyBox.js +16 -15
- package/dist/esm/components/NotifyBox/NotifyBox.js.map +1 -1
- package/dist/esm/components/PermissionsDropdown/PermissionsDropdown.js +27 -30
- package/dist/esm/components/PermissionsDropdown/PermissionsDropdown.js.map +1 -1
- package/dist/esm/components/PermissionsDropdown/PermissionsDropdown.spec.js +45 -45
- package/dist/esm/components/PermissionsDropdown/PermissionsDropdown.spec.js.map +1 -1
- package/dist/esm/components/PermissionsList/Avatar.js +4 -4
- package/dist/esm/components/PermissionsList/Avatar.js.map +1 -1
- package/dist/esm/components/PermissionsList/AvatarRole.js +7 -7
- package/dist/esm/components/PermissionsList/AvatarRole.js.map +1 -1
- package/dist/esm/components/PermissionsList/PermissionsList.js +16 -17
- package/dist/esm/components/PermissionsList/PermissionsList.js.map +1 -1
- package/dist/esm/components/PermissionsList/PermissionsList.spec.js +38 -38
- package/dist/esm/components/PermissionsList/PermissionsList.spec.js.map +1 -1
- package/dist/esm/components/PermissionsList/ViewRow.js +9 -10
- package/dist/esm/components/PermissionsList/ViewRow.js.map +1 -1
- package/dist/esm/components/SearchEntity/CustomStyles.js +16 -17
- package/dist/esm/components/SearchEntity/CustomStyles.js.map +1 -1
- package/dist/esm/components/SearchEntity/DashboardMultiSelect.js +38 -46
- package/dist/esm/components/SearchEntity/DashboardMultiSelect.js.map +1 -1
- package/dist/esm/components/SearchEntity/SearchEntity.js +38 -44
- package/dist/esm/components/SearchEntity/SearchEntity.js.map +1 -1
- package/dist/esm/components/SearchEntity/SearchEntity.spec.js +3 -3
- package/dist/esm/components/SearchEntity/SearchEntity.spec.js.map +1 -1
- package/dist/esm/components/SearchEntity/SearchReplacmentsComponents.js +35 -36
- package/dist/esm/components/SearchEntity/SearchReplacmentsComponents.js.map +1 -1
- package/dist/esm/components/SearchEntity/constants.js +5 -5
- package/dist/esm/components/SearchEntity/constants.js.map +1 -1
- package/dist/esm/components/SearchEntity/interfaces.js +1 -0
- package/dist/esm/example/BasicExample.js +24 -30
- package/dist/esm/example/BasicExample.js.map +1 -1
- package/dist/esm/example/counter.js +7 -10
- package/dist/esm/example/counter.js.map +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/statics/entity-advanced-permissions.umd.js +57040 -63567
- package/dist/statics/entity-advanced-permissions.umd.js.map +1 -1
- package/dist/statics/entity-advanced-permissions.umd.min.js +23 -1
- package/dist/statics/entity-advanced-permissions.umd.min.js.map +1 -1
- package/dist/statics/manifest.json +1 -1
- package/dist/statics/manifest.min.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -14266
- package/dist/types/components/EntityAdvancedPermissionsTypes.d.ts +2 -2
- package/dist/types/components/SearchEntity/CustomStyles.d.ts +1 -1
- package/dist/types/components/SearchEntity/SearchReplacmentsComponents.d.ts +3 -3
- package/dist/types/components/SearchEntity/interfaces.d.ts +1 -1
- package/dist/types/index.d.ts +5 -5
- package/package.json +106 -1
|
@@ -2,7 +2,7 @@ import { PermissionChangeProps } from './PermissionsList/PermissionsList';
|
|
|
2
2
|
import { SelectRoleProps } from './SearchEntity/interfaces';
|
|
3
3
|
import { PermissionsOptionsProps } from './PermissionsDropdown/PermissionsDropdown';
|
|
4
4
|
import { ViewRowProps } from './PermissionsList/ViewRow';
|
|
5
|
-
import {
|
|
5
|
+
import { StatesButtonStates } from 'wix-ui-tpa';
|
|
6
6
|
export declare const DefaultPermissions: PermissionsOptionsProps[];
|
|
7
7
|
export interface LabelsProps {
|
|
8
8
|
title?: string;
|
|
@@ -85,7 +85,7 @@ export interface AdvancedPermissionState {
|
|
|
85
85
|
notify?: boolean;
|
|
86
86
|
notifyMessage?: string;
|
|
87
87
|
chosenPermission?: string;
|
|
88
|
-
saveState?:
|
|
88
|
+
saveState?: StatesButtonStates;
|
|
89
89
|
errorMessage?: string;
|
|
90
90
|
pendingSave?: boolean;
|
|
91
91
|
availabilityStatus?: AvailabilityStatus;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SearchEntityProps } from './interfaces';
|
|
2
2
|
import { StylesConfig } from 'react-select';
|
|
3
|
-
export declare const customStyles: (props: SearchEntityProps, rtl: boolean) => StylesConfig
|
|
3
|
+
export declare const customStyles: (props: SearchEntityProps, rtl: boolean) => StylesConfig<any, any>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { OptionProps, MenuProps, MultiValueProps, ValueContainerProps } from 'react-select';
|
|
3
3
|
export declare const NoOptionsMessage: (props: any) => JSX.Element;
|
|
4
4
|
export declare const LoadingMessage: (props: any) => JSX.Element;
|
|
5
|
-
export declare const Menu: (resultString: string) => (props: MenuProps<any>) => JSX.Element;
|
|
5
|
+
export declare const Menu: (resultString: string) => (props: MenuProps<any, any>) => JSX.Element;
|
|
6
6
|
export declare const MultiValueRemove: (removeMessage: string) => (props: MultiValueProps<any>) => JSX.Element;
|
|
7
|
-
export declare const ValueContainer: (props: ValueContainerProps<any>) => JSX.Element;
|
|
8
|
-
export declare const Option: (props: OptionProps<any>) => JSX.Element;
|
|
7
|
+
export declare const ValueContainer: (props: ValueContainerProps<any, any>) => JSX.Element;
|
|
8
|
+
export declare const Option: (props: OptionProps<any, any>) => JSX.Element;
|
|
@@ -6,7 +6,7 @@ export interface SearchEntityProps {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
placeholder: string;
|
|
8
8
|
setSelectedRoles?(data: SelectRoleProps[] | undefined): void;
|
|
9
|
-
value?: ValueType<any
|
|
9
|
+
value?: ValueType<any, any>[];
|
|
10
10
|
allOptionsSelected?: string;
|
|
11
11
|
noOptionsMessage?: string;
|
|
12
12
|
queryFunction?(searchString: string, nextCursor: string | null, memberIds: string): Promise<object>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import EntityAdvancedPermissions from './components/EntityAdvancedPermissions';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import AdminsIcon from './assets/icons/AdminsIcon.svg';
|
|
3
|
+
import RoleIcon from './assets/icons/RoleIcon.svg';
|
|
4
|
+
import PPIcon from './assets/icons/PPIcon.svg';
|
|
5
|
+
import SiteVisitorsIcon from './assets/icons/SiteVisitorsIcon.svg';
|
|
6
|
+
import BadgeIcon from './assets/icons/BadgeIcon.svg';
|
|
7
7
|
import { SiteVisitorsIcon as DashboardSiteVisitorsIcon } from './components/DashboardIcons/SiteVisitorsIcon';
|
|
8
8
|
import { AdminsIcon as DashboardAdminsIcon } from './components/DashboardIcons/AdminsIcon';
|
|
9
9
|
import { RoleIcon as DashboardRoleIcon } from './components/DashboardIcons/RoleIcon';
|
package/package.json
CHANGED
|
@@ -1 +1,106 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@wix/entity-advanced-permissions",
|
|
3
|
+
"version": "1.783.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "essam",
|
|
7
|
+
"email": "essam@wix.com"
|
|
8
|
+
},
|
|
9
|
+
"main": "dist/cjs/index.js",
|
|
10
|
+
"module": "dist/esm/index.js",
|
|
11
|
+
"types": "dist/types/index.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"registry": "https://registry.npmjs.org/"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "yoshi-library build",
|
|
20
|
+
"start": "yoshi-library start",
|
|
21
|
+
"test": "yoshi-library test",
|
|
22
|
+
"lint": "yoshi-library lint",
|
|
23
|
+
"posttest": "npm run lint",
|
|
24
|
+
"example": "npm start --prefix example",
|
|
25
|
+
"storybook": "start-storybook -p 6006 ",
|
|
26
|
+
"build-storybook": "build-storybook"
|
|
27
|
+
},
|
|
28
|
+
"husky": {
|
|
29
|
+
"hooks": {
|
|
30
|
+
"pre-commit": "tsc && lint-staged"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"lint-staged": {
|
|
34
|
+
"*.{js,ts,tsx}": "yoshi-flow-library lint"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@babel/core": "^7.11.1",
|
|
38
|
+
"@storybook/addon-actions": "^6.5.10",
|
|
39
|
+
"@storybook/addon-knobs": "^6.4.0",
|
|
40
|
+
"@storybook/addon-links": "^6.5.10",
|
|
41
|
+
"@storybook/addons": "^6.5.10",
|
|
42
|
+
"@storybook/react": "^6.5.10",
|
|
43
|
+
"@testing-library/react": "^11.2.6",
|
|
44
|
+
"@types/he": "^1.1.1",
|
|
45
|
+
"@types/jest": "^24.0.0",
|
|
46
|
+
"@types/node": "^8.0.0",
|
|
47
|
+
"@types/react": "^16.9.46",
|
|
48
|
+
"@types/react-dom": "^16.9.8",
|
|
49
|
+
"@types/react-select": "^3.0.21",
|
|
50
|
+
"@wix/jest-yoshi-preset": "^6.31.5",
|
|
51
|
+
"@wix/yoshi": "^6.31.5",
|
|
52
|
+
"@wix/yoshi-flow-library": "^6.31.5",
|
|
53
|
+
"babel-loader": "^8.1.0",
|
|
54
|
+
"husky": "^4.2.1",
|
|
55
|
+
"lint-staged": "^10.0.7",
|
|
56
|
+
"react": "^16.13.1",
|
|
57
|
+
"react-dom": "^16.13.1",
|
|
58
|
+
"ts-jest": "^24.0.2"
|
|
59
|
+
},
|
|
60
|
+
"yoshi": {
|
|
61
|
+
"separateCss": false,
|
|
62
|
+
"tpaStyle": true
|
|
63
|
+
},
|
|
64
|
+
"jest": {
|
|
65
|
+
"preset": "@wix/jest-yoshi-preset"
|
|
66
|
+
},
|
|
67
|
+
"yoshiFlowLibrary": {
|
|
68
|
+
"bundle": {
|
|
69
|
+
"library": "entity-advanced-permissions",
|
|
70
|
+
"externals": {
|
|
71
|
+
"react": "React",
|
|
72
|
+
"react-dom": "ReactDOM"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"eslintConfig": {
|
|
77
|
+
"extends": "yoshi"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"@types/lodash": "^4.14.165",
|
|
81
|
+
"@wix/yoshi-storybook-dependencies": "^6.31.5",
|
|
82
|
+
"@wix/yoshi-style-dependencies": "^6.31.5",
|
|
83
|
+
"he": "^1.2.0",
|
|
84
|
+
"lodash": "^4.17.20",
|
|
85
|
+
"react-scrollbars-custom": "^4.0.25",
|
|
86
|
+
"react-select": "^3.1.0",
|
|
87
|
+
"react-select-async-paginate": "^0.4.1",
|
|
88
|
+
"typescript": "~4.7.4",
|
|
89
|
+
"wix-style-react": "^10.46.0",
|
|
90
|
+
"wix-ui-tpa": "^3.24.0"
|
|
91
|
+
},
|
|
92
|
+
"peerDependencies": {
|
|
93
|
+
"react": "^16.13.1",
|
|
94
|
+
"react-dom": "^16.13.1",
|
|
95
|
+
"wix-ui-tpa": "^3.24.0"
|
|
96
|
+
},
|
|
97
|
+
"wix": {
|
|
98
|
+
"artifact": {
|
|
99
|
+
"groupId": "com.wixpress",
|
|
100
|
+
"artifactId": "entity-advanced-permissions",
|
|
101
|
+
"targets": {
|
|
102
|
+
"static": true
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|