@guillotinaweb/react-gmi 0.34.0 → 0.34.2

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 (130) hide show
  1. package/README.md +120 -72
  2. package/dist/css/style.css +336 -334
  3. package/dist/css/style.css.map +1 -1
  4. package/dist/favicon.ico +0 -0
  5. package/dist/index.d.ts +1821 -30
  6. package/dist/index.html +44 -0
  7. package/dist/logo.svg +35 -0
  8. package/dist/logo512.png +0 -0
  9. package/dist/manifest.json +25 -0
  10. package/dist/react-gmi.js +24141 -14138
  11. package/dist/react-gmi.js.map +1 -1
  12. package/dist/react-gmi.modern.js +24265 -14128
  13. package/dist/react-gmi.modern.js.map +1 -1
  14. package/dist/robots.txt +2 -0
  15. package/package.json +54 -53
  16. package/dist/actions/add_item.d.ts +0 -5
  17. package/dist/actions/change_pass.d.ts +0 -1
  18. package/dist/actions/copy_item.d.ts +0 -6
  19. package/dist/actions/copy_items.d.ts +0 -8
  20. package/dist/actions/index.d.ts +0 -2
  21. package/dist/actions/move_item.d.ts +0 -6
  22. package/dist/actions/move_items.d.ts +0 -8
  23. package/dist/actions/remove_item.d.ts +0 -6
  24. package/dist/actions/remove_items.d.ts +0 -7
  25. package/dist/components/Link.d.ts +0 -11
  26. package/dist/components/TdLink.d.ts +0 -11
  27. package/dist/components/behavior_view.d.ts +0 -8
  28. package/dist/components/behaviors/iattachment.d.ts +0 -11
  29. package/dist/components/behaviors/idublincore.d.ts +0 -10
  30. package/dist/components/behaviors/iimageattachment.d.ts +0 -9
  31. package/dist/components/behaviors/imultiattachment.d.ts +0 -11
  32. package/dist/components/behaviors/imultiimageattachment.d.ts +0 -11
  33. package/dist/components/behaviors/imultiimageorderedattachment.d.ts +0 -11
  34. package/dist/components/behaviors/iworkflow.d.ts +0 -1
  35. package/dist/components/context_toolbar.d.ts +0 -7
  36. package/dist/components/error_boundary.d.ts +0 -6
  37. package/dist/components/error_zone.d.ts +0 -16
  38. package/dist/components/fields/downloadField.d.ts +0 -11
  39. package/dist/components/fields/editComponent.d.ts +0 -15
  40. package/dist/components/fields/editableField.d.ts +0 -12
  41. package/dist/components/fields/renderField.d.ts +0 -34
  42. package/dist/components/flash.d.ts +0 -1
  43. package/dist/components/guillotina.d.ts +0 -12
  44. package/dist/components/index.d.ts +0 -56
  45. package/dist/components/input/button.d.ts +0 -12
  46. package/dist/components/input/checkbox.d.ts +0 -18
  47. package/dist/components/input/dropdown.d.ts +0 -15
  48. package/dist/components/input/email.d.ts +0 -10
  49. package/dist/components/input/form.d.ts +0 -13
  50. package/dist/components/input/form_builder.d.ts +0 -15
  51. package/dist/components/input/index.d.ts +0 -14
  52. package/dist/components/input/input.d.ts +0 -26
  53. package/dist/components/input/input_list.d.ts +0 -9
  54. package/dist/components/input/password.d.ts +0 -11
  55. package/dist/components/input/search_input.d.ts +0 -21
  56. package/dist/components/input/search_input_list.d.ts +0 -21
  57. package/dist/components/input/select.d.ts +0 -25
  58. package/dist/components/input/select_vocabulary.d.ts +0 -15
  59. package/dist/components/input/textarea.d.ts +0 -15
  60. package/dist/components/input/upload.d.ts +0 -8
  61. package/dist/components/item.d.ts +0 -22
  62. package/dist/components/layout.d.ts +0 -9
  63. package/dist/components/login.d.ts +0 -10
  64. package/dist/components/modal.d.ts +0 -24
  65. package/dist/components/notallowed.d.ts +0 -1
  66. package/dist/components/notfound.d.ts +0 -1
  67. package/dist/components/pagination.d.ts +0 -8
  68. package/dist/components/panel/actions.d.ts +0 -1
  69. package/dist/components/panel/addons.d.ts +0 -1
  70. package/dist/components/panel/behaviors.d.ts +0 -1
  71. package/dist/components/panel/index.d.ts +0 -4
  72. package/dist/components/panel/items.d.ts +0 -1
  73. package/dist/components/panel/permissions.d.ts +0 -7
  74. package/dist/components/panel/permissions_prinperm.d.ts +0 -17
  75. package/dist/components/panel/permissions_prinrole.d.ts +0 -17
  76. package/dist/components/panel/permissions_roleperm.d.ts +0 -17
  77. package/dist/components/panel/properties.d.ts +0 -1
  78. package/dist/components/path.d.ts +0 -1
  79. package/dist/components/properties_view.d.ts +0 -3
  80. package/dist/components/search_labels.d.ts +0 -5
  81. package/dist/components/search_options_labels.d.ts +0 -9
  82. package/dist/components/search_vocabulary_labels.d.ts +0 -6
  83. package/dist/components/selected_items_actions.d.ts +0 -49
  84. package/dist/components/tabs.d.ts +0 -13
  85. package/dist/components/ui/delete.d.ts +0 -8
  86. package/dist/components/ui/icon.d.ts +0 -7
  87. package/dist/components/ui/index.d.ts +0 -6
  88. package/dist/components/ui/loading.d.ts +0 -6
  89. package/dist/components/ui/notification.d.ts +0 -7
  90. package/dist/components/ui/table.d.ts +0 -8
  91. package/dist/components/ui/tag.d.ts +0 -9
  92. package/dist/components/widgets/index.d.ts +0 -1
  93. package/dist/components/widgets/tags.d.ts +0 -13
  94. package/dist/contexts/index.d.ts +0 -57
  95. package/dist/forms/base.d.ts +0 -12
  96. package/dist/forms/required_fields.d.ts +0 -11
  97. package/dist/forms/users.d.ts +0 -13
  98. package/dist/hooks/useClickAway.d.ts +0 -2
  99. package/dist/hooks/useConfig.d.ts +0 -19
  100. package/dist/hooks/useCrudContext.d.ts +0 -21
  101. package/dist/hooks/useInput.d.ts +0 -11
  102. package/dist/hooks/useLocation.d.ts +0 -6
  103. package/dist/hooks/useMountedState.d.ts +0 -1
  104. package/dist/hooks/useRegistry.d.ts +0 -90
  105. package/dist/hooks/useRemoteField.d.ts +0 -2
  106. package/dist/hooks/useSetState.d.ts +0 -6
  107. package/dist/hooks/useVocabulary.d.ts +0 -8
  108. package/dist/lib/auth.d.ts +0 -26
  109. package/dist/lib/client.d.ts +0 -61
  110. package/dist/lib/helpers.d.ts +0 -16
  111. package/dist/lib/processResponse.d.ts +0 -9
  112. package/dist/lib/rest.d.ts +0 -16
  113. package/dist/lib/search.d.ts +0 -2
  114. package/dist/lib/utils.d.ts +0 -5
  115. package/dist/lib/validators.d.ts +0 -12
  116. package/dist/locales/generic_messages.d.ts +0 -248
  117. package/dist/models/index.d.ts +0 -17
  118. package/dist/models/sharing.d.ts +0 -12
  119. package/dist/react-gmi.umd.js +0 -14783
  120. package/dist/react-gmi.umd.js.map +0 -1
  121. package/dist/reducers/guillotina.d.ts +0 -35
  122. package/dist/types/global.d.ts +0 -17
  123. package/dist/types/guillotina.d.ts +0 -280
  124. package/dist/views/application.d.ts +0 -13
  125. package/dist/views/base.d.ts +0 -5
  126. package/dist/views/container.d.ts +0 -1
  127. package/dist/views/folder.d.ts +0 -1
  128. package/dist/views/groups.d.ts +0 -3
  129. package/dist/views/item.d.ts +0 -1
  130. package/dist/views/users.d.ts +0 -3
@@ -0,0 +1,2 @@
1
+ # https://www.robotstxt.org/robotstxt.html
2
+ User-agent: *
package/package.json CHANGED
@@ -1,25 +1,47 @@
1
1
  {
2
- "version": "0.34.0",
2
+ "name": "@guillotinaweb/react-gmi",
3
+ "version": "0.34.2",
4
+ "description": "React framework for building Guillotina admin interfaces",
3
5
  "repository": {
4
6
  "type": "git",
5
7
  "url": "git@github.com:guillotinaweb/guillotina_react.git"
6
8
  },
9
+ "author": "Jordi Collell <jordic@gmail.com>",
10
+ "license": "MIT",
11
+ "homepage": "https://github.com/guillotinaweb/guillotina_react/",
12
+ "type": "module",
7
13
  "files": [
8
14
  "dist"
9
15
  ],
10
- "source": "./src/guillo-gmi/index.ts",
11
16
  "main": "./dist/react-gmi.js",
12
17
  "module": "./dist/react-gmi.modern.js",
13
18
  "types": "./dist/index.d.ts",
14
- "unpkg": "./dist/react-gmi.umd.js",
15
19
  "exports": {
16
20
  ".": {
17
21
  "import": "./dist/react-gmi.modern.js",
18
22
  "require": "./dist/react-gmi.js",
19
23
  "types": "./dist/index.d.ts"
20
- }
24
+ },
25
+ "./css/style.css": "./dist/css/style.css"
26
+ },
27
+ "scripts": {
28
+ "dev": "vite --config playground/vite.config.ts",
29
+ "build": "vite build && pnpm build:css",
30
+ "build:css": "rm -rf ./dist/css && mkdir -p ./dist/css && sass ./src/guillo-gmi/scss/styles.sass ./dist/css/style.css",
31
+ "build:playground": "vite build --config playground/vite.config.ts --outDir ../playground/dist",
32
+ "preview": "vite preview --config playground/vite.config.ts",
33
+ "test": "vitest run",
34
+ "test:e2e": "pnpm -C e2e playwright:test",
35
+ "lint": "eslint src",
36
+ "format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
37
+ "format:check": "prettier --check \"src/**/*.{js,ts,tsx}\"",
38
+ "intl-extract": "formatjs extract 'src/**/*.js' --out-file src/guillo-gmi/locales/en.json --id-interpolation-pattern '[sha512:contenthash:base64:6]'",
39
+ "intl-compile-en": "formatjs compile src/guillo-gmi/locales/en.json --ast --out-file src/guillo-gmi/locales/compiled/en.json",
40
+ "intl-compile-ca": "formatjs compile src/guillo-gmi/locales/ca.json --ast --out-file src/guillo-gmi/locales/compiled/ca.json",
41
+ "intl-compile-es": "formatjs compile src/guillo-gmi/locales/es.json --ast --out-file src/guillo-gmi/locales/compiled/es.json",
42
+ "intl-compile": "pnpm intl-compile-en && pnpm intl-compile-es && pnpm intl-compile-ca",
43
+ "prepublishOnly": "pnpm build"
21
44
  },
22
- "name": "@guillotinaweb/react-gmi",
23
45
  "dependencies": {
24
46
  "brace": "0.11.1",
25
47
  "bulma": "0.9.4",
@@ -31,50 +53,34 @@
31
53
  "uuid": "9.0.1"
32
54
  },
33
55
  "peerDependencies": {
34
- "react": "^16.12.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
35
- "react-dom": "^16.12.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
56
+ "react": "^16.12.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
57
+ "react-dom": "^16.12.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
36
58
  },
37
59
  "devDependencies": {
38
- "@babel/cli": "7.12.10",
39
- "@babel/core": "7.12.10",
40
60
  "@formatjs/cli": "^6.2.4",
41
61
  "@formatjs/ts-transformer": "^3.13.11",
42
- "@testing-library/jest-dom": "5.11.6",
43
- "@testing-library/react": "11.2.2",
44
- "@testing-library/user-event": "12.6.0",
45
- "@typescript-eslint/eslint-plugin": "^6.18.1",
46
- "@typescript-eslint/parser": "^6.18.1",
47
- "@types/uuid":"9.0.8",
48
- "babel-plugin-formatjs": "^10.5.10",
49
- "eslint": "^8.56.0",
62
+ "@testing-library/jest-dom": "^6.4.2",
63
+ "@testing-library/react": "^14.2.1",
64
+ "@testing-library/user-event": "^14.5.2",
65
+ "@types/react": "^19.0.0",
66
+ "@types/react-beautiful-dnd": "^13.1.8",
67
+ "@types/react-dom": "^19.0.0",
68
+ "@types/uuid": "^9.0.8",
69
+ "@typescript-eslint/eslint-plugin": "^7.0.0",
70
+ "@typescript-eslint/parser": "^7.0.0",
71
+ "@vitejs/plugin-react": "^4.3.4",
72
+ "eslint": "^8.57.0",
50
73
  "eslint-plugin-react": "^7.33.2",
51
- "husky": "4.3.6",
52
- "microbundle": "0.13.0",
53
- "prettier": "2.2.1",
54
- "sass": "1.69.5",
55
- "serialize-javascript": "5.0.1",
56
- "typescript": "5.4.5",
57
- "vitest": "^0.34.6",
58
- "@types/react-beautiful-dnd": "13.1.8"
59
- },
60
- "scripts": {
61
- "format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
62
- "format:tests": "prettier --write \"e2e/cypress/**/*.js\"",
63
- "format:check": "prettier --check \"src/**/*.js\"",
64
- "build": "yarn build:js && yarn build:css",
65
- "build:js": "rm -rf ./dist && microbundle --jsx React.createElement --no-compress --sourcemap",
66
- "build:css": "rm -rf ./dist/css && mkdir -p ./dist/css && sass ./src/guillo-gmi/scss/styles.sass ./dist/css/style.css",
67
- "prepublish": "yarn build",
68
- "test": "vitest run",
69
- "lint": "eslint src",
70
- "intl-extract": "formatjs extract 'src/**/*.js' --out-file src/guillo-gmi/locales/en.json --id-interpolation-pattern '[sha512:contenthash:base64:6]'",
71
- "intl-compile-en": "formatjs compile src/guillo-gmi/locales/en.json --ast --out-file src/guillo-gmi/locales/compiled/en.json",
72
- "intl-compile-ca": "formatjs compile src/guillo-gmi/locales/ca.json --ast --out-file src/guillo-gmi/locales/compiled/ca.json",
73
- "intl-compile-es": "formatjs compile src/guillo-gmi/locales/es.json --ast --out-file src/guillo-gmi/locales/compiled/es.json",
74
- "intl-compile": "npm run intl-compile-en && npm run intl-compile-es && npm run intl-compile-ca"
75
- },
76
- "eslintConfig": {
77
- "extends": "react-app"
74
+ "eslint-plugin-react-hooks": "^4.6.0",
75
+ "eslint-plugin-react-refresh": "^0.4.6",
76
+ "prettier": "^3.2.5",
77
+ "react": "^19.0.0",
78
+ "react-dom": "^19.0.0",
79
+ "sass": "^1.71.1",
80
+ "typescript": "^5.4.5",
81
+ "vite": "^5.4.0",
82
+ "vite-plugin-dts": "^4.0.0",
83
+ "vitest": "^2.0.0"
78
84
  },
79
85
  "browserslist": {
80
86
  "production": [
@@ -88,19 +94,14 @@
88
94
  "last 1 safari version"
89
95
  ]
90
96
  },
91
- "husky": {
92
- "hooks": {
93
- "pre-commit": "prettier --write \"src/**/*.js\""
94
- }
95
- },
96
97
  "prettier": {
97
98
  "trailingComma": "es5",
98
99
  "tabWidth": 2,
99
100
  "semi": false,
100
101
  "singleQuote": true
101
102
  },
102
- "author": "Jordi Collell <jordic@gmail.com> ",
103
- "license": "MIT",
104
- "homepage": "https://github.com/guillotinaweb/guillotina_react/",
105
- "packageManager": "yarn@1.22.19"
103
+ "packageManager": "pnpm@9.15.0",
104
+ "engines": {
105
+ "node": ">=20"
106
+ }
106
107
  }
@@ -1,5 +0,0 @@
1
- interface Props {
2
- type: string;
3
- }
4
- export declare function AddItem(props: Props): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1 +0,0 @@
1
- export declare function ChangePassword(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { GuillotinaCommonObject } from '../types/guillotina';
2
- interface Props {
3
- item: GuillotinaCommonObject;
4
- }
5
- export declare function CopyItem(props: Props): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,8 +0,0 @@
1
- import { ItemModel } from '../models';
2
- import { GuillotinaCommonObject } from '../types/guillotina';
3
- import { SearchItem } from '../types/guillotina';
4
- interface Props {
5
- items: Array<ItemModel<SearchItem | GuillotinaCommonObject>>;
6
- }
7
- export declare function CopyItems(props: Props): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,2 +0,0 @@
1
- export * from './add_item';
2
- export * from './remove_items';
@@ -1,6 +0,0 @@
1
- import { GuillotinaCommonObject } from '../types/guillotina';
2
- interface Props {
3
- item: GuillotinaCommonObject;
4
- }
5
- export declare function MoveItem(props: Props): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,8 +0,0 @@
1
- import { ItemModel } from '../models';
2
- import { GuillotinaCommonObject } from '../types/guillotina';
3
- import { SearchItem } from '../types/guillotina';
4
- interface Props {
5
- items: ItemModel<SearchItem | GuillotinaCommonObject>[];
6
- }
7
- export declare function MoveItems(props: Props): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,6 +0,0 @@
1
- import { GuillotinaCommonObject } from '../types/guillotina';
2
- interface Props {
3
- item: GuillotinaCommonObject;
4
- }
5
- export declare function RemoveItem(props: Props): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,7 +0,0 @@
1
- import { ItemModel } from '../models';
2
- import { GuillotinaCommonObject, SearchItem } from '../types/guillotina';
3
- interface Props {
4
- items: ItemModel<SearchItem | GuillotinaCommonObject>[];
5
- }
6
- export declare function RemoveItems(props: Props): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { ItemModel } from '../models';
3
- import { GuillotinaCommonObject, SearchItem } from '../types/guillotina';
4
- interface Props {
5
- aRef?: React.Ref<HTMLAnchorElement>;
6
- model: ItemModel<SearchItem | GuillotinaCommonObject>;
7
- children: React.ReactNode;
8
- onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
9
- }
10
- export declare function Link({ aRef, model, children, ...props }: Props): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { ItemModel } from '../models';
3
- import { IndexSignature } from '../types/global';
4
- import { SearchOrCommonObject } from '../types/guillotina';
5
- interface Props<T extends SearchOrCommonObject = SearchOrCommonObject> {
6
- model: ItemModel<T>;
7
- children: React.ReactNode;
8
- style?: IndexSignature;
9
- }
10
- export declare function TdLink({ model, children, style }: Props): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,8 +0,0 @@
1
- import { GuillotinaCommonObject, GuillotinaSchema } from '../types/guillotina';
2
- interface Props {
3
- context: GuillotinaCommonObject;
4
- schema: GuillotinaSchema;
5
- }
6
- export declare function BehaviorsView({ context, schema }: Props): import("react/jsx-runtime").JSX.Element;
7
- export declare function BehaviorNotImplemented(): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,11 +0,0 @@
1
- import { GuillotinaFile, GuillotinaSchemaProperty } from '../../types/guillotina';
2
- interface Props {
3
- properties: {
4
- file: GuillotinaSchemaProperty;
5
- };
6
- values: {
7
- file: GuillotinaFile;
8
- };
9
- }
10
- export declare function IAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,10 +0,0 @@
1
- interface Props {
2
- properties: {
3
- [key: string]: any;
4
- };
5
- values: {
6
- [key: string]: any;
7
- };
8
- }
9
- export declare function IDublinCore({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,9 +0,0 @@
1
- import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
2
- interface Props {
3
- properties: GuillotinaSchemaProperties;
4
- values: {
5
- image: GuillotinaFile;
6
- };
7
- }
8
- export declare function IImageAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,11 +0,0 @@
1
- import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
2
- interface Props {
3
- properties: GuillotinaSchemaProperties;
4
- values: {
5
- files: {
6
- [key: string]: GuillotinaFile;
7
- };
8
- };
9
- }
10
- export declare function IMultiAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,11 +0,0 @@
1
- import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
2
- interface Props {
3
- properties: GuillotinaSchemaProperties;
4
- values: {
5
- images: {
6
- [key: string]: GuillotinaFile;
7
- };
8
- };
9
- }
10
- export declare function IMultiImageAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,11 +0,0 @@
1
- import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
2
- interface Props {
3
- properties: GuillotinaSchemaProperties;
4
- values: {
5
- images: {
6
- [key: string]: GuillotinaFile;
7
- };
8
- };
9
- }
10
- export declare function IMultiImageOrderedAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1 +0,0 @@
1
- export declare function IWorkflow(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function CreateButton(): import("react/jsx-runtime").JSX.Element | null;
3
- interface Props {
4
- AddButton?: React.FC;
5
- }
6
- export declare function ContextToolbar({ AddButton }: Props): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { IntlShape } from 'react-intl';
3
- export declare const ErrorBoundary: React.ComponentType<{
4
- intl: IntlShape;
5
- children: React.ReactNode;
6
- }>;
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- interface Props {
4
- children: React.ReactNode;
5
- id?: string;
6
- className?: string;
7
- }
8
- declare const ErrorZone: {
9
- ({ children, id, className }: Props): import("react/jsx-runtime").JSX.Element;
10
- propTypes: {
11
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
12
- id: PropTypes.Requireable<string>;
13
- className: PropTypes.Requireable<string>;
14
- };
15
- };
16
- export default ErrorZone;
@@ -1,11 +0,0 @@
1
- interface DownloadFieldProps {
2
- value: {
3
- data: {
4
- filename: string;
5
- content_type: string;
6
- };
7
- field: string;
8
- };
9
- }
10
- export declare const DownloadField: ({ value }: DownloadFieldProps) => import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { GuillotinaSchemaProperty } from '../../types/guillotina';
3
- import { EditableFieldValue } from '../../types/global';
4
- interface Props {
5
- schema: GuillotinaSchemaProperty;
6
- val: EditableFieldValue;
7
- setValue: (value: EditableFieldValue) => void;
8
- dataTest?: string;
9
- className?: string;
10
- placeholder?: string;
11
- id?: string;
12
- required?: boolean;
13
- }
14
- export declare const EditComponent: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<unknown>>;
15
- export default EditComponent;
@@ -1,12 +0,0 @@
1
- import { EditableFieldValue } from '../../types/global';
2
- import { GuillotinaSchemaProperty } from '../../types/guillotina';
3
- interface Props {
4
- field: string;
5
- value: EditableFieldValue;
6
- ns?: string;
7
- schema?: GuillotinaSchemaProperty;
8
- modifyContent?: boolean;
9
- required?: boolean;
10
- }
11
- export declare function EditableField({ field, value, ns, schema, modifyContent, required, }: Props): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,34 +0,0 @@
1
- /// <reference types="react" />
2
- import { GuillotinaSchemaProperty } from '../../types/guillotina';
3
- import { EditableFieldValue } from '../../types/global';
4
- type PlainType = string | boolean | number;
5
- interface RenderFieldProps {
6
- value: EditableFieldValue;
7
- Widget?: React.ComponentType<{
8
- value: EditableFieldValue;
9
- schema?: GuillotinaSchemaProperty;
10
- modifyContent?: boolean;
11
- }>;
12
- schema?: GuillotinaSchemaProperty;
13
- }
14
- export declare function RenderField({ value, Widget, schema }: RenderFieldProps): import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[] | PlainType;
15
- interface SearchRenderFieldProps {
16
- schema: GuillotinaSchemaProperty;
17
- value: string | string[];
18
- modifyContent: boolean;
19
- }
20
- export declare const SearchRenderField: ({ schema, value, modifyContent, }: SearchRenderFieldProps) => import("react/jsx-runtime").JSX.Element;
21
- interface VocabularyRenderFieldProps {
22
- schema: GuillotinaSchemaProperty;
23
- value: string | string[];
24
- modifyContent: boolean;
25
- }
26
- export declare const VocabularyRenderField: ({ schema, value, modifyContent, }: VocabularyRenderFieldProps) => import("react/jsx-runtime").JSX.Element;
27
- interface RenderFieldComponentProps {
28
- schema: GuillotinaSchemaProperty;
29
- field: string;
30
- val: EditableFieldValue;
31
- modifyContent?: boolean;
32
- }
33
- export declare function RenderFieldComponent({ schema, field, val, modifyContent, }: RenderFieldComponentProps): import("react/jsx-runtime").JSX.Element;
34
- export {};
@@ -1 +0,0 @@
1
- export declare function Flash(): import("react/jsx-runtime").JSX.Element | null;
@@ -1,12 +0,0 @@
1
- import { IConfig } from '../hooks/useConfig';
2
- import { IRegistry } from '../hooks/useRegistry';
3
- import { Auth } from '../lib/auth';
4
- interface GuillotinaProps {
5
- auth: Auth;
6
- locale: string;
7
- url: string;
8
- config?: Partial<IConfig>;
9
- registry: Partial<IRegistry>;
10
- }
11
- export declare function Guillotina({ auth, locale, ...props }: GuillotinaProps): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,56 +0,0 @@
1
- export * from './input/button';
2
- export * from './input/checkbox';
3
- export * from './input/email';
4
- export * from './input/form_builder';
5
- export * from './input/form';
6
- export * from './input/input';
7
- export * from './input/password';
8
- export * from './input/select';
9
- export * from './input/select_vocabulary';
10
- export * from './input/upload';
11
- export * from './input/textarea';
12
- export * from './input/search_input';
13
- export * from './input/search_input_list';
14
- export * from './input/input_list';
15
- export * from './input/dropdown';
16
- export * from './fields/editableField';
17
- export * from './fields/renderField';
18
- export * from './fields/downloadField';
19
- export * from './fields/editComponent';
20
- export * from './behaviors/iattachment';
21
- export * from './behaviors/imultiattachment';
22
- export * from './behaviors/iimageattachment';
23
- export * from './behaviors/imultiimageattachment';
24
- export * from './behaviors/imultiimageorderedattachment';
25
- export * from './behaviors/iworkflow';
26
- export * from './panel/actions';
27
- export * from './panel/addons';
28
- export * from './panel/behaviors';
29
- export * from './panel/items';
30
- export * from './panel/properties';
31
- export * from './panel/permissions';
32
- export * from './panel/permissions_prinperm';
33
- export * from './panel/permissions_prinrole';
34
- export * from './panel/permissions_roleperm';
35
- export * from './ui';
36
- export * from './widgets';
37
- export * from './behavior_view';
38
- export * from './properties_view';
39
- export * from './context_toolbar';
40
- export * from './error_zone';
41
- export * from './flash';
42
- export * from './guillotina';
43
- export * from './item';
44
- export * from './Link';
45
- export * from './layout';
46
- export * from './login';
47
- export * from './modal';
48
- export * from './notallowed';
49
- export * from './pagination';
50
- export * from './path';
51
- export * from './search_labels';
52
- export * from './search_options_labels';
53
- export * from './search_vocabulary_labels';
54
- export * from './tabs';
55
- export * from './selected_items_actions';
56
- export * from './TdLink';
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- interface Props {
3
- children: React.ReactNode;
4
- className?: string;
5
- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
6
- type?: 'submit' | 'reset' | 'button';
7
- loading?: boolean;
8
- disabled?: boolean;
9
- dataTest?: string;
10
- }
11
- export declare const Button: ({ children, className, onClick, type, loading, disabled, dataTest, }: Props) => import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,18 +0,0 @@
1
- /// <reference types="react" />
2
- interface Props {
3
- className?: string;
4
- classNameInput?: string;
5
- loading?: boolean;
6
- indeterminate?: boolean;
7
- backgroundColor?: string;
8
- borderColor?: string;
9
- dataTest?: string;
10
- onChange: (value: boolean) => void;
11
- id?: string;
12
- disabled?: boolean;
13
- checked?: boolean;
14
- children?: React.ReactNode;
15
- placeholder?: string;
16
- }
17
- export declare const Checkbox: ({ id, className, classNameInput, loading, disabled, indeterminate, checked, children, placeholder, onChange, dataTest, }: Props) => import("react/jsx-runtime").JSX.Element;
18
- export {};
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- interface Props {
3
- children: React.ReactNode;
4
- disabled?: boolean;
5
- id?: string;
6
- isRight?: boolean;
7
- onChange: (value: string) => void;
8
- optionDisabledWhen?: (option: any) => boolean;
9
- options: {
10
- text: string;
11
- value: string;
12
- }[];
13
- }
14
- export default function Dropdown({ children, disabled, id, isRight, onChange, optionDisabledWhen, options, }: Props): import("react/jsx-runtime").JSX.Element;
15
- export {};
@@ -1,10 +0,0 @@
1
- interface Props {
2
- value?: string;
3
- dataTest?: string;
4
- onChange: (value: string) => void;
5
- placeholder?: string;
6
- id?: string;
7
- required?: boolean;
8
- }
9
- export declare const EmailInput: ({ value, dataTest, placeholder, id, onChange, required, }: Props) => import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- interface Props {
3
- children: React.ReactNode;
4
- className?: string;
5
- onSubmit?: (event: React.FormEvent<HTMLFormElement>) => void;
6
- onReset?: (event: React.FormEvent<HTMLFormElement>) => void;
7
- autoComplete?: string;
8
- title?: string;
9
- error?: string;
10
- dataTest?: string;
11
- }
12
- export declare const Form: ({ children, className, onSubmit, onReset, autoComplete, title, error, dataTest, }: Props) => import("react/jsx-runtime").JSX.Element;
13
- export {};
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { IndexSignature } from '../../types/global';
3
- import { GuillotinaSchema } from '../../types/guillotina';
4
- interface Props {
5
- schema: GuillotinaSchema;
6
- formData?: IndexSignature;
7
- onSubmit: (formData: IndexSignature, initialData: IndexSignature) => void;
8
- actionName: string;
9
- children?: React.ReactNode;
10
- exclude?: string[];
11
- remotes?: IndexSignature;
12
- submitButton?: boolean;
13
- }
14
- export declare function FormBuilder({ schema, formData, onSubmit, actionName, children, exclude, remotes, submitButton, }: Props): import("react/jsx-runtime").JSX.Element;
15
- export {};
@@ -1,14 +0,0 @@
1
- export * from './button';
2
- export * from './checkbox';
3
- export * from './email';
4
- export * from './form';
5
- export * from './form_builder';
6
- export * from './input';
7
- export * from './password';
8
- export * from './select';
9
- export * from './select_vocabulary';
10
- export * from './search_input';
11
- export * from './search_input_list';
12
- export * from './input_list';
13
- export * from './textarea';
14
- export * from './upload';