@guillotinaweb/react-gmi 0.18.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.
Files changed (119) hide show
  1. package/CHANGELOG.md +210 -0
  2. package/LICENSE +23 -0
  3. package/README.md +126 -0
  4. package/dist/actions/add_item.d.ts +1 -0
  5. package/dist/actions/change_pass.d.ts +1 -0
  6. package/dist/actions/copy_item.d.ts +1 -0
  7. package/dist/actions/copy_items.d.ts +1 -0
  8. package/dist/actions/index.d.ts +2 -0
  9. package/dist/actions/move_item.d.ts +1 -0
  10. package/dist/actions/move_items.d.ts +1 -0
  11. package/dist/actions/remove_item.d.ts +1 -0
  12. package/dist/actions/remove_items.d.ts +1 -0
  13. package/dist/components/Link.d.ts +6 -0
  14. package/dist/components/TdLink.d.ts +5 -0
  15. package/dist/components/behavior_view.d.ts +5 -0
  16. package/dist/components/behaviors/iattachment.d.ts +4 -0
  17. package/dist/components/behaviors/idublincore.d.ts +4 -0
  18. package/dist/components/behaviors/imultiattachment.d.ts +4 -0
  19. package/dist/components/context_toolbar.d.ts +5 -0
  20. package/dist/components/error_boundary.d.ts +5 -0
  21. package/dist/components/error_zone.d.ts +13 -0
  22. package/dist/components/fields/downloadField.d.ts +3 -0
  23. package/dist/components/fields/editComponent.d.ts +2 -0
  24. package/dist/components/fields/editableField.d.ts +10 -0
  25. package/dist/components/fields/renderField.d.ts +4 -0
  26. package/dist/components/flash.d.ts +1 -0
  27. package/dist/components/guillotina.d.ts +4 -0
  28. package/dist/components/index.d.ts +48 -0
  29. package/dist/components/input/button.d.ts +10 -0
  30. package/dist/components/input/checkbox.d.ts +17 -0
  31. package/dist/components/input/dropdown.d.ts +10 -0
  32. package/dist/components/input/email.d.ts +5 -0
  33. package/dist/components/input/form.d.ts +20 -0
  34. package/dist/components/input/form_builder.d.ts +12 -0
  35. package/dist/components/input/index.d.ts +1 -0
  36. package/dist/components/input/input.d.ts +1 -0
  37. package/dist/components/input/input_list.d.ts +1 -0
  38. package/dist/components/input/password.d.ts +4 -0
  39. package/dist/components/input/search_input.d.ts +25 -0
  40. package/dist/components/input/select.d.ts +1 -0
  41. package/dist/components/input/textarea.d.ts +1 -0
  42. package/dist/components/input/upload.d.ts +5 -0
  43. package/dist/components/item.d.ts +13 -0
  44. package/dist/components/layout.d.ts +5 -0
  45. package/dist/components/login.d.ts +14 -0
  46. package/dist/components/modal.d.ts +14 -0
  47. package/dist/components/notallowed.d.ts +1 -0
  48. package/dist/components/notfound.d.ts +1 -0
  49. package/dist/components/pagination.d.ts +6 -0
  50. package/dist/components/panel/actions.d.ts +24 -0
  51. package/dist/components/panel/addons.d.ts +1 -0
  52. package/dist/components/panel/behaviors.d.ts +1 -0
  53. package/dist/components/panel/index.d.ts +1 -0
  54. package/dist/components/panel/items.d.ts +1 -0
  55. package/dist/components/panel/permissions.d.ts +5 -0
  56. package/dist/components/panel/permissions_prinperm.d.ts +6 -0
  57. package/dist/components/panel/permissions_prinrole.d.ts +6 -0
  58. package/dist/components/panel/permissions_roleperm.d.ts +6 -0
  59. package/dist/components/panel/properties.d.ts +1 -0
  60. package/dist/components/panel/requester.d.ts +1 -0
  61. package/dist/components/path.d.ts +1 -0
  62. package/dist/components/properties_view.d.ts +2 -0
  63. package/dist/components/searchLabels.d.ts +1 -0
  64. package/dist/components/selected_items_actions.d.ts +32 -0
  65. package/dist/components/tabs.d.ts +11 -0
  66. package/dist/components/ui/delete.d.ts +5 -0
  67. package/dist/components/ui/icon.d.ts +5 -0
  68. package/dist/components/ui/index.d.ts +6 -0
  69. package/dist/components/ui/loading.d.ts +3 -0
  70. package/dist/components/ui/notification.d.ts +4 -0
  71. package/dist/components/ui/table.d.ts +5 -0
  72. package/dist/components/ui/tag.d.ts +6 -0
  73. package/dist/components/widgets/index.d.ts +1 -0
  74. package/dist/components/widgets/tags.d.ts +8 -0
  75. package/dist/contexts/index.d.ts +13 -0
  76. package/dist/css/style.css +7792 -0
  77. package/dist/forms/base.d.ts +7 -0
  78. package/dist/forms/required_fields.d.ts +8 -0
  79. package/dist/forms/users.d.ts +5 -0
  80. package/dist/hooks/useAsync.d.ts +1 -0
  81. package/dist/hooks/useAsyncFn.d.ts +3 -0
  82. package/dist/hooks/useClickAway.d.ts +1 -0
  83. package/dist/hooks/useConfig.d.ts +15 -0
  84. package/dist/hooks/useCrudContext.d.ts +1 -0
  85. package/dist/hooks/useInput.d.ts +7 -0
  86. package/dist/hooks/useLocation.d.ts +1 -0
  87. package/dist/hooks/useMountedState.d.ts +1 -0
  88. package/dist/hooks/useRegistry.d.ts +90 -0
  89. package/dist/hooks/useRemoteField.d.ts +1 -0
  90. package/dist/hooks/useSetState.d.ts +1 -0
  91. package/dist/index.d.ts +27 -0
  92. package/dist/lib/auth.d.ts +31 -0
  93. package/dist/lib/client.d.ts +49 -0
  94. package/dist/lib/helpers.d.ts +7 -0
  95. package/dist/lib/rest.d.ts +21 -0
  96. package/dist/lib/search.d.ts +2 -0
  97. package/dist/lib/search.test.d.ts +1 -0
  98. package/dist/lib/utils.d.ts +3 -0
  99. package/dist/lib/validators.d.ts +12 -0
  100. package/dist/models/index.d.ts +17 -0
  101. package/dist/models/sharing.d.ts +9 -0
  102. package/dist/react-gmi.esm.js +7521 -0
  103. package/dist/react-gmi.esm.js.map +1 -0
  104. package/dist/react-gmi.js +7658 -0
  105. package/dist/react-gmi.js.map +1 -0
  106. package/dist/react-gmi.modern.js +6163 -0
  107. package/dist/react-gmi.modern.js.map +1 -0
  108. package/dist/react-gmi.umd.js +7660 -0
  109. package/dist/react-gmi.umd.js.map +1 -0
  110. package/dist/reducers/guillotina.d.ts +19 -0
  111. package/dist/setupTests.d.ts +1 -0
  112. package/dist/views/application.d.ts +5 -0
  113. package/dist/views/base.d.ts +1 -0
  114. package/dist/views/container.d.ts +1 -0
  115. package/dist/views/folder.d.ts +1 -0
  116. package/dist/views/groups.d.ts +3 -0
  117. package/dist/views/item.d.ts +1 -0
  118. package/dist/views/users.d.ts +3 -0
  119. package/package.json +78 -0
@@ -0,0 +1,19 @@
1
+ export function guillotinaReducer(state: any, action: any): any;
2
+ export namespace initialState {
3
+ const path: string;
4
+ const loading: boolean;
5
+ const context: any;
6
+ namespace flash {
7
+ const message: any;
8
+ const type: any;
9
+ }
10
+ namespace action {
11
+ const action_1: any;
12
+ export { action_1 as action };
13
+ export const params: any;
14
+ }
15
+ const permissions: any;
16
+ const errorStatus: any;
17
+ const registry: {};
18
+ const refresh: any;
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export function ApplicationCtx(props: any): any;
2
+ export function DatabaseCtx({ state }: {
3
+ state: any;
4
+ }): any;
5
+ export function CreateContainer(props: any): any;
@@ -0,0 +1 @@
1
+ export function PanelNotImplemented(props: any): any;
@@ -0,0 +1 @@
1
+ export function ContainerCtx(props: any): any;
@@ -0,0 +1 @@
1
+ export function FolderCtx(props: any): any;
@@ -0,0 +1,3 @@
1
+ export function GroupToolbar(): any;
2
+ export function GroupsCtx(props: any): any;
3
+ export function GroupCtx(): any;
@@ -0,0 +1 @@
1
+ export function ItemCtx(props: any): any;
@@ -0,0 +1,3 @@
1
+ export function UsersToolbar(props: any): any;
2
+ export function UsersCtx(props: any): any;
3
+ export function UserCtx(): any;
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "version": "0.18.0",
3
+ "repository": {
4
+ "type": "git",
5
+ "url": "git@github.com:guillotinaweb/guillotina_react.git"
6
+ },
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "source": "./src/guillo-gmi/index.js",
11
+ "main": "./dist/react-gmi.js",
12
+ "exports": "./dist/react-gmi.modern.js",
13
+ "types": "./dist/index.d.ts",
14
+ "unpkg": "./dist/react-gmi.umd.js",
15
+ "name": "@guillotinaweb/react-gmi",
16
+ "dependencies": {
17
+ "brace": "0.11.1",
18
+ "bulma": "0.9.1",
19
+ "jwt-decode": "3.1.2",
20
+ "prop-types": "15.7.2",
21
+ "react-ace": "9.2.1",
22
+ "react-useportal": "1.0.13"
23
+ },
24
+ "peerDependencies": {
25
+ "react": "^16.12.0",
26
+ "react-dom": "^16.12.0"
27
+ },
28
+ "devDependencies": {
29
+ "@babel/cli": "7.12.10",
30
+ "@babel/core": "7.12.10",
31
+ "@testing-library/jest-dom": "5.11.6",
32
+ "@testing-library/react": "11.2.2",
33
+ "@testing-library/user-event": "12.6.0",
34
+ "husky": "4.3.6",
35
+ "microbundle": "0.13.0",
36
+ "node-sass": "5.0.0",
37
+ "prettier": "2.2.1",
38
+ "serialize-javascript": "5.0.1"
39
+ },
40
+ "scripts": {
41
+ "format": "prettier --write \"src/**/*.js\"",
42
+ "format:tests": "prettier --write \"e2e/cypress/**/*.js\"",
43
+ "format:check": "prettier --check \"src/**/*.js\"",
44
+ "build": "yarn build:js && yarn build:css",
45
+ "build:js": "rm -rf ./dist && microbundle --jsx React.createElement --no-compress --sourcemap",
46
+ "build:css": "rm -rf ./dist/css && mkdir ./dist/css && node-sass ./src/guillo-gmi/scss/styles.sass ./dist/css/style.css",
47
+ "prepublish": "yarn build"
48
+ },
49
+ "eslintConfig": {
50
+ "extends": "react-app"
51
+ },
52
+ "browserslist": {
53
+ "production": [
54
+ ">0.2%",
55
+ "not dead",
56
+ "not op_mini all"
57
+ ],
58
+ "development": [
59
+ "last 1 chrome version",
60
+ "last 1 firefox version",
61
+ "last 1 safari version"
62
+ ]
63
+ },
64
+ "husky": {
65
+ "hooks": {
66
+ "pre-commit": "prettier --write \"src/**/*.js\""
67
+ }
68
+ },
69
+ "prettier": {
70
+ "trailingComma": "es5",
71
+ "tabWidth": 2,
72
+ "semi": false,
73
+ "singleQuote": true
74
+ },
75
+ "author": "Jordi Collell <jordic@gmail.com> ",
76
+ "license": "MIT",
77
+ "homepage": "https://github.com/guillotinaweb/guillotina_react/"
78
+ }