@kentico/xperience-admin-base 14.0.0-51372 → 22.0.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 (92) hide show
  1. package/dist/entry.d.ts +177 -10
  2. package/dist/entry.js +22 -2
  3. package/package.json +95 -77
  4. package/dist/8ce68503cd833f15dce10d33fdea4385.png +0 -0
  5. package/dist/commands/CommandContext.d.ts +0 -26
  6. package/dist/commands/CommandProvider.d.ts +0 -12
  7. package/dist/commands/index.d.ts +0 -3
  8. package/dist/commands/useCommand.types.d.ts +0 -36
  9. package/dist/commands/useCommandInvoker.d.ts +0 -9
  10. package/dist/commands/usePageCommand.d.ts +0 -11
  11. package/dist/components/ActionList/ActionList.d.ts +0 -3
  12. package/dist/components/ActionList/ActionList.types.d.ts +0 -4
  13. package/dist/components/index.d.ts +0 -5
  14. package/dist/components/loader/Loader.d.ts +0 -2
  15. package/dist/components/page-loader/PageLoader.d.ts +0 -2
  16. package/dist/components/page-message-pane/PageMessagePane.d.ts +0 -7
  17. package/dist/components/portal/Portal.d.ts +0 -8
  18. package/dist/forms/form/Form.d.ts +0 -3
  19. package/dist/forms/form/Form.types.d.ts +0 -73
  20. package/dist/forms/form/FormField.d.ts +0 -3
  21. package/dist/forms/form/FormField.types.d.ts +0 -7
  22. package/dist/forms/form/index.d.ts +0 -2
  23. package/dist/forms/form-components/FormComponent.types.d.ts +0 -15
  24. package/dist/forms/form-components/FormComponentLoader.d.ts +0 -3
  25. package/dist/forms/form-components/index.d.ts +0 -4
  26. package/dist/forms/form-components/password-form-component/PasswordFormComponent.d.ts +0 -3
  27. package/dist/forms/form-components/text-input-form-component/TextInputFormComponent.d.ts +0 -3
  28. package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.d.ts +0 -3
  29. package/dist/forms/hooks/index.d.ts +0 -1
  30. package/dist/forms/hooks/useValidationRule.d.ts +0 -2
  31. package/dist/forms/index.d.ts +0 -4
  32. package/dist/forms/validation-rules/ValidationRule.types.d.ts +0 -12
  33. package/dist/forms/validation-rules/ValidationRuleLoader.d.ts +0 -2
  34. package/dist/forms/validation-rules/ValidationRuleLoader.types.d.ts +0 -7
  35. package/dist/forms/validation-rules/index.d.ts +0 -7
  36. package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.d.ts +0 -3
  37. package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.types.d.ts +0 -5
  38. package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.d.ts +0 -3
  39. package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.types.d.ts +0 -5
  40. package/dist/forms/validation-rules/required-value-rule/RequiredStringValueValidationRule.Types.d.ts +0 -4
  41. package/dist/forms/validation-rules/required-value-rule/RequiredStringValueValidationRule.d.ts +0 -3
  42. package/dist/hooks/index.d.ts +0 -2
  43. package/dist/hooks/useComponent.d.ts +0 -1
  44. package/dist/hooks/usePagePath.d.ts +0 -1
  45. package/dist/localization/Localization.types.d.ts +0 -7
  46. package/dist/localization/LocalizationContext.d.ts +0 -4
  47. package/dist/localization/LocalizationProvider.d.ts +0 -3
  48. package/dist/localization/index.d.ts +0 -4
  49. package/dist/template-components/index.d.ts +0 -2
  50. package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.d.ts +0 -6
  51. package/dist/template-components/template-loader/TemplateLoader.d.ts +0 -6
  52. package/dist/template-properties/TemplateProperties.types.d.ts +0 -14
  53. package/dist/template-properties/TemplatePropertiesProvider.d.ts +0 -9
  54. package/dist/template-properties/index.d.ts +0 -2
  55. package/dist/templates/app/App.types.d.ts +0 -16
  56. package/dist/templates/app/AppTemplate.d.ts +0 -4
  57. package/dist/templates/app/avatar/Avatar.d.ts +0 -8
  58. package/dist/templates/app/breadcrumbs/BreadcrumbItem.d.ts +0 -4
  59. package/dist/templates/app/breadcrumbs/BreadcrumbItem.types.d.ts +0 -4
  60. package/dist/templates/app/breadcrumbs/Breadcrumbs.d.ts +0 -3
  61. package/dist/templates/app/breadcrumbs/Breadcrumbs.types.d.ts +0 -13
  62. package/dist/templates/app/breadcrumbs/BreadcrumbsContext.d.ts +0 -4
  63. package/dist/templates/app/breadcrumbs/BreadcrumbsProvider.d.ts +0 -3
  64. package/dist/templates/app/breadcrumbs/index.d.ts +0 -2
  65. package/dist/templates/app/header/Header.d.ts +0 -5
  66. package/dist/templates/app/header/index.d.ts +0 -1
  67. package/dist/templates/app/main/Main.d.ts +0 -8
  68. package/dist/templates/app/sidebar/Sidebar.d.ts +0 -7
  69. package/dist/templates/app/sidebar/index.d.ts +0 -1
  70. package/dist/templates/app/siteselector/SiteSelector.d.ts +0 -6
  71. package/dist/templates/dashboard/DashboardTemplate.d.ts +0 -3
  72. package/dist/templates/dashboard/tile/Tile.d.ts +0 -3
  73. package/dist/templates/dashboard/tile-category/TileCategory.d.ts +0 -3
  74. package/dist/templates/edit/EditTemplate.d.ts +0 -3
  75. package/dist/templates/edit/EditTemplate.types.d.ts +0 -10
  76. package/dist/templates/field-editor/FieldEditorForm.d.ts +0 -6
  77. package/dist/templates/field-editor/FieldEditorForm.types.d.ts +0 -22
  78. package/dist/templates/field-editor/FieldEditorTemplate.d.ts +0 -5
  79. package/dist/templates/field-editor/FieldEditorTemplate.types.d.ts +0 -20
  80. package/dist/templates/index.d.ts +0 -8
  81. package/dist/templates/listing/Listing.types.d.ts +0 -19
  82. package/dist/templates/listing/ListingTemplate.d.ts +0 -3
  83. package/dist/templates/side-navigation-layout/SideNavigationLayoutTemplate.d.ts +0 -2
  84. package/dist/templates/side-navigation-layout/vertical-menu/VerticalMenu.d.ts +0 -8
  85. package/dist/types/Action.types.d.ts +0 -13
  86. package/dist/types/index.d.ts +0 -2
  87. package/dist/utils/authentication/logonUrlProvider.d.ts +0 -10
  88. package/dist/utils/getBaseUri.d.ts +0 -4
  89. package/dist/utils/index.d.ts +0 -3
  90. package/dist/utils/loadModule.d.ts +0 -10
  91. package/dist/utils/postToAdmin.d.ts +0 -5
  92. package/dist/utils/responseStatusActions.d.ts +0 -12
package/package.json CHANGED
@@ -1,78 +1,96 @@
1
1
  {
2
- "name": "@kentico/xperience-admin-base",
3
- "version": "14.0.0-51372",
4
- "main": "dist/entry.js",
5
- "types": "dist/entry.d.ts",
6
- "files": [
7
- "dist"
8
- ],
9
- "description": "Kentico Xperience administration base library.",
10
- "keywords": [
11
- "kentico",
12
- "xperience",
13
- "administration",
14
- "admin",
15
- "base"
16
- ],
17
- "license": "SEE LICENSE IN LICENSE.txt",
18
- "dependencies": {
19
- "@kentico/xperience-admin-components": "14.0.0-51372",
20
- "classnames": "^2.3.1",
21
- "history": "^5.0.0",
22
- "react": "^17.0.2",
23
- "react-dom": "^17.0.2",
24
- "react-router-dom": "^6.0.0-beta.0"
25
- },
26
- "devDependencies": {
27
- "@babel/core": "^7.13.16",
28
- "@babel/eslint-parser": "^7.13.14",
29
- "@babel/plugin-transform-runtime": "^7.13.15",
30
- "@babel/preset-env": "^7.13.15",
31
- "@babel/preset-react": "^7.13.13",
32
- "@babel/preset-typescript": "^7.13.0",
33
- "@babel/runtime": "^7.13.17",
34
- "@testing-library/jest-dom": "^5.11.10",
35
- "@testing-library/react": "^11.2.6",
36
- "@types/history": "^4.7.8",
37
- "@types/jest": "^26.0.22",
38
- "@types/react": "^17.0.3",
39
- "@types/react-dom": "^17.0.3",
40
- "@types/react-router-dom": "^5.1.7",
41
- "@types/systemjs": "^6.1.0",
42
- "@types/webpack-env": "^1.16.0",
43
- "autoprefixer": "^10.2.5",
44
- "babel-loader": "8.2.2",
45
- "cross-env": "^7.0.3",
46
- "css-loader": "^5.2.4",
47
- "eslint": "^7.24.0",
48
- "eslint-config-prettier": "^8.2.0",
49
- "eslint-config-ts-react-important-stuff": "^3.0.0",
50
- "eslint-plugin-prettier": "^3.4.0",
51
- "eslint-plugin-react": "^7.23.2",
52
- "file-loader": "^6.2.0",
53
- "jest": "^26.6.3",
54
- "jest-junit": "^12.0.0",
55
- "postcss": "^8.2.15",
56
- "postcss-loader": "^5.3.0",
57
- "prettier": "^2.2.1",
58
- "sass": "^1.32.13",
59
- "sass-loader": "^10.1.0",
60
- "style-loader": "^2.0.0",
61
- "svg-url-loader": "^7.1.1",
62
- "ts-jest": "^26.5.5",
63
- "typescript": "^4.2.4",
64
- "webpack": "^5.37.0",
65
- "webpack-cli": "^4.7.0",
66
- "webpack-dev-server": "^3.11.2",
67
- "webpack-merge": "^5.7.3"
68
- },
69
- "scripts": {
70
- "start": "webpack serve --mode development",
71
- "dev:remote": "webpack serve --mode development --env remote",
72
- "build": "webpack --mode=production",
73
- "declaration": "tsc --project tsconfig.declaration.json",
74
- "typecheck": "tsc --noEmit",
75
- "analyze": "webpack --mode=production --env.analyze=true",
76
- "test": "cross-env BABEL_ENV=test jest"
77
- }
78
- }
2
+ "name": "@kentico/xperience-admin-base",
3
+ "version": "22.0.0",
4
+ "main": "dist/entry.js",
5
+ "types": "dist/entry.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "description": "Kentico Xperience administration base library.",
10
+ "keywords": [
11
+ "kentico",
12
+ "xperience",
13
+ "administration",
14
+ "admin",
15
+ "base"
16
+ ],
17
+ "license": "SEE LICENSE IN LICENSE.txt",
18
+ "dependencies": {
19
+ "@kentico/xperience-admin-components": "22.0.0",
20
+ "@react-aria/focus": "^3.6.1",
21
+ "@react-aria/visually-hidden": "^3.3.1",
22
+ "classnames": "^2.3.1",
23
+ "history": "^5.3.0",
24
+ "react": "^18.2.0",
25
+ "react-cool-inview": "^3.0.1",
26
+ "react-dnd": "^15.1.1",
27
+ "react-dnd-html5-backend": "^15.1.2",
28
+ "react-dom": "^18.2.0",
29
+ "react-router-dom": "6.3.0",
30
+ "react-select": "^5.3.2",
31
+ "react-select-async-paginate": "^0.6.1",
32
+ "use-debounce": "^8.0.1",
33
+ "use-resize-observer": "9.0.2",
34
+ "uuid": "^8.3.2"
35
+ },
36
+ "devDependencies": {
37
+ "@babel/core": "^7.18.6",
38
+ "@babel/eslint-parser": "^7.18.2",
39
+ "@babel/plugin-transform-runtime": "^7.18.6",
40
+ "@babel/preset-env": "^7.18.6",
41
+ "@babel/preset-react": "^7.18.6",
42
+ "@babel/preset-typescript": "^7.18.6",
43
+ "@babel/runtime": "^7.18.6",
44
+ "@testing-library/jest-dom": "^5.16.4",
45
+ "@testing-library/react": "^13.3.0",
46
+ "@testing-library/react-hooks": "^8.0.1",
47
+ "@types/dompurify": "2.3.3",
48
+ "@types/jest": "^28.1.3",
49
+ "@types/react": "^18.0.14",
50
+ "@types/react-beautiful-dnd": "^13.1.2",
51
+ "@types/react-dom": "^18.0.5",
52
+ "@types/react-router-dom": "^5.3.3",
53
+ "@types/systemjs": "^6.1.1",
54
+ "@types/testing-library__jest-dom": "5.14.5",
55
+ "@types/uuid": "^8.3.4",
56
+ "@types/webpack-env": "^1.17.0",
57
+ "autoprefixer": "^10.4.7",
58
+ "babel-loader": "8.2.5",
59
+ "cross-env": "^7.0.3",
60
+ "css-loader": "^6.7.1",
61
+ "dompurify": "2.3.8",
62
+ "eslint": "^8.18.0",
63
+ "eslint-config-prettier": "^8.5.0",
64
+ "eslint-config-ts-react-important-stuff": "^3.0.0",
65
+ "eslint-plugin-prettier": "^4.1.0",
66
+ "eslint-plugin-react": "^7.30.1",
67
+ "file-loader": "^6.2.0",
68
+ "jest": "^28.1.1",
69
+ "jest-environment-jsdom": "28.1.1",
70
+ "jest-junit": "^14.0.0",
71
+ "postcss": "^8.4.14",
72
+ "postcss-loader": "^7.0.0",
73
+ "prettier": "^2.7.1",
74
+ "react-test-renderer": "^18.2.0",
75
+ "sass": "^1.53.0",
76
+ "sass-loader": "^13.0.2",
77
+ "style-loader": "^3.3.1",
78
+ "ts-jest": "^28.0.5",
79
+ "typescript": "^4.7.4",
80
+ "webpack": "^5.73.0",
81
+ "webpack-cli": "^4.10.0",
82
+ "webpack-dev-server": "^4.9.2",
83
+ "webpack-merge": "^5.8.0"
84
+ },
85
+ "scripts": {
86
+ "start": "webpack serve --mode development",
87
+ "dev:remote": "webpack serve --mode development --env remote",
88
+ "build": "webpack --mode=production",
89
+ "typecheck": "tsc --noEmit",
90
+ "analyze": "webpack --mode=production --env.analyze=true",
91
+ "test": "cross-env BABEL_ENV=test jest",
92
+ "tsc-decleration": "tsc --project tsconfig.declaration.json",
93
+ "declaration": "npm run tsc-decleration && npx ts-node ../../scripts/typesRollup",
94
+ "validate-api": "npx ts-node ../../scripts/validateApi"
95
+ }
96
+ }
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * Instance of command context type.
4
- */
5
- export declare const CommandContext: React.Context<CommandContextType>;
6
- /**
7
- * Defines a command context type.
8
- */
9
- export interface CommandContextType {
10
- /**
11
- * Executes page command.
12
- * @param name Name of the command to be executed.
13
- * @param data Data passed to the command.
14
- */
15
- executeCommand: <TResponse = void, TData = unknown>(name: string, data?: TData) => Promise<TResponse>;
16
- /**
17
- * Registers command into the current provider.
18
- * @param name Name of the command to be registered.
19
- * @param execute Callback that executes the command.
20
- */
21
- registerCommand: <T>(name: string, execute: (data: T) => Promise<void>) => void;
22
- }
23
- /**
24
- * Returns the command provider for the current page.
25
- */
26
- export declare const usePageCommandProvider: () => CommandContextType;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- interface CommandProviderProps {
3
- readonly children: React.ReactNode;
4
- }
5
- /**
6
- * Ensures the command context for current template.
7
- */
8
- export declare const CommandProvider: {
9
- ({ children }: CommandProviderProps): JSX.Element;
10
- displayName: string;
11
- };
12
- export {};
@@ -1,3 +0,0 @@
1
- export { usePageCommand } from './usePageCommand';
2
- export { usePageCommandProvider } from './CommandContext';
3
- export type { Command, CommandExecutor, UseCommandConfig } from './useCommand.types';
@@ -1,36 +0,0 @@
1
- /**
2
- * Command result interface.
3
- */
4
- export interface Command<T = any> {
5
- /**
6
- * Invocation callback.
7
- */
8
- execute: CommandExecutor<T, void>;
9
- }
10
- /**
11
- * Command execution configuration.
12
- */
13
- export declare type UseCommandConfig<TCommandResult, TCommandData> = {
14
- /**
15
- * Command data.
16
- */
17
- data?: TCommandData;
18
- /**
19
- * Indicates whether command should be invoked automatically on component mount.
20
- * Defaults to `false`.
21
- */
22
- executeOnMount?: boolean;
23
- /**
24
- * Custom action executed before the command execution.
25
- * If the function returns `false` the command will not be executed.
26
- */
27
- before?: () => boolean | void;
28
- /**
29
- * Custom action executed after the command execution.
30
- */
31
- after?: (commandResult: TCommandResult) => void;
32
- };
33
- /**
34
- * Command invocation callback.
35
- */
36
- export declare type CommandExecutor<TData, TResponse> = (data?: TData) => Promise<TResponse>;
@@ -1,9 +0,0 @@
1
- /**
2
- * Defines a command invocation function with messaging and navigation support.
3
- *
4
- * @returns Command invocation function.
5
- */
6
- export declare function useCommandInvoker<T>(): (name: string, data?: any) => Promise<{
7
- result: T;
8
- command: string;
9
- }>;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { Command, UseCommandConfig } from './useCommand.types';
3
- /**
4
- * Registers command into the current command provider and returns its invocation callback.
5
- *
6
- * @param commandName Name of the command.
7
- * @param config Command options.
8
- * @param dependencies If present, command will only activate if the values in the list change.
9
- * @returns Invocation callback to be executed manually.
10
- */
11
- export declare function usePageCommand<TCommandResult, TCommandData = void>(commandName: string, config?: UseCommandConfig<TCommandResult, TCommandData>, dependencies?: React.DependencyList): Command<TCommandData>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { ActionListProps } from './ActionList.types';
3
- export declare const ActionList: ({ actions }: ActionListProps) => JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Action } from '../../types';
2
- export interface ActionListProps {
3
- actions?: Action[];
4
- }
@@ -1,5 +0,0 @@
1
- export { ActionList } from './ActionList/ActionList';
2
- export { Loader } from './loader/Loader';
3
- export { PageLoader } from './page-loader/PageLoader';
4
- export { PageMessagePane } from './page-message-pane/PageMessagePane';
5
- export { Portal } from './portal/Portal';
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Loader: () => JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const PageLoader: () => JSX.Element;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface PageMessagePaneProps {
3
- readonly title: string;
4
- readonly text?: string;
5
- readonly children?: React.ReactNode;
6
- }
7
- export declare const PageMessagePane: ({ title, text, children }: PageMessagePaneProps) => JSX.Element;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface PortalProps {
3
- readonly children: React.ReactNode;
4
- readonly container: HTMLElement | null;
5
- readonly key?: string | null | undefined;
6
- }
7
- declare const Portal: ({ children, container, key }: PortalProps) => JSX.Element;
8
- export { Portal };
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { FormProps, FormRef } from './Form.types';
3
- export declare const Form: React.ForwardRefExoticComponent<FormProps & React.RefAttributes<FormRef>>;
@@ -1,73 +0,0 @@
1
- /// <reference types="react" />
2
- import { FormComponentProps } from '../form-components/FormComponent.types';
3
- /**
4
- * Form reference exposing function for submission.
5
- */
6
- export declare type FormRef = {
7
- submit: (action?: string) => void;
8
- } | null;
9
- /**
10
- * Properties for Form cmponent.
11
- */
12
- export interface FormProps {
13
- /**
14
- * Form component has no button rendered, define the children to display submitting component.
15
- */
16
- readonly children?: React.ReactNode;
17
- /**
18
- * Collection of form components which will be displayed inside the form.
19
- */
20
- readonly components: FormComponentProps[];
21
- /**
22
- * Function for form value change monitoring.
23
- */
24
- readonly onChange?: (e: ChangeEventHandler) => void;
25
- /**
26
- * Submit function used to submit form data.
27
- */
28
- readonly onSubmit: (e: SubmitEventHandler, action?: string) => void;
29
- }
30
- export interface ChangeEventHandler {
31
- readonly changedField: {
32
- name: string;
33
- hasDependencies: boolean;
34
- };
35
- readonly values: {
36
- [fieldName: string]: any;
37
- };
38
- }
39
- export interface SubmitEventHandler {
40
- readonly values: {
41
- [fieldName: string]: any;
42
- };
43
- }
44
- /**
45
- * Represents result of form submission.
46
- */
47
- export interface FormSubmissionResult {
48
- /**
49
- * Collection of form components which will be displayed inside the form.
50
- */
51
- readonly components: FormComponentProps[];
52
- /**
53
- * Status of the form submission and validation process.
54
- */
55
- readonly status: FormSubmissionStatus;
56
- }
57
- /**
58
- * Indicates the state of the form submission and validation result.
59
- */
60
- export declare enum FormSubmissionStatus {
61
- /**
62
- * Error during the form submission.
63
- */
64
- Error = "error",
65
- /**
66
- * Form validation failed.
67
- */
68
- ValidationFailure = "validationFailure",
69
- /**
70
- * Submission and validation successful.
71
- */
72
- ValidationSuccess = "validationSuccess"
73
- }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { FormFieldProps } from './FormField.types';
3
- export declare const FormField: (props: FormFieldProps) => JSX.Element;
@@ -1,7 +0,0 @@
1
- import { FormComponentProps } from '../form-components/FormComponent.types';
2
- import { ValidationResult } from '../validation-rules/ValidationRule.types';
3
- export interface FormFieldProps extends FormComponentProps {
4
- readonly fieldValues: Record<string, any>;
5
- readonly allowRevalidate: boolean;
6
- readonly onValidated?: (invalidValidationResults: ValidationResult[]) => void;
7
- }
@@ -1,2 +0,0 @@
1
- export * from './Form';
2
- export * from './Form.types';
@@ -1,15 +0,0 @@
1
- import { ValidationRuleProps } from '../validation-rules/ValidationRule.types';
2
- export declare type OnChangeValueType = string | number | boolean;
3
- export interface FormComponentProps {
4
- readonly componentName: string;
5
- readonly hasDependencies: boolean;
6
- readonly name: string;
7
- readonly label?: string;
8
- readonly explanationText?: string;
9
- readonly tooltip?: string;
10
- readonly value?: any;
11
- readonly invalid?: boolean;
12
- readonly validationMessage?: string;
13
- readonly validationRules?: ValidationRuleProps[];
14
- readonly onChange?: (value: OnChangeValueType) => void;
15
- }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { FormComponentProps } from './FormComponent.types';
3
- export declare const FormComponentLoader: (props: FormComponentProps) => JSX.Element;
@@ -1,4 +0,0 @@
1
- export * from './textarea-form-component/TextAreaFormComponent';
2
- export * from './text-input-form-component/TextInputFormComponent';
3
- export * from './password-form-component/PasswordFormComponent';
4
- export * from './FormComponent.types';
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { FormComponentProps } from '../FormComponent.types';
3
- export declare const PasswordFormComponent: (props: FormComponentProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { FormComponentProps } from '../FormComponent.types';
3
- export declare const TextInputFormComponent: (props: FormComponentProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { FormComponentProps } from '../FormComponent.types';
3
- export declare const TextAreaFormComponent: (props: FormComponentProps) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './useValidationRule';
@@ -1,2 +0,0 @@
1
- import { ValidationRule, ValidationRuleProps } from '../validation-rules/ValidationRule.types';
2
- export declare function useValidationRule(rule: string): ValidationRule<ValidationRuleProps, any> | null;
@@ -1,4 +0,0 @@
1
- export * from './form';
2
- export * from './form-components';
3
- export * from './hooks';
4
- export * from './validation-rules';
@@ -1,12 +0,0 @@
1
- export interface ValidationRule<P extends ValidationRuleProps, T> {
2
- (props: P, value: T, fieldValues: Record<string, any>): ValidationResult;
3
- }
4
- export interface ValidationRuleProps {
5
- readonly ruleName: string;
6
- readonly isValid: boolean;
7
- readonly validationError: string | null;
8
- }
9
- export interface ValidationResult {
10
- readonly isValid: boolean;
11
- readonly errorMessage: string | null;
12
- }
@@ -1,2 +0,0 @@
1
- import { ValidationRuleLoaderProps } from './ValidationRuleLoader.types';
2
- export declare const ValidationRuleLoader: (props: ValidationRuleLoaderProps) => null;
@@ -1,7 +0,0 @@
1
- import { ValidationResult, ValidationRuleProps } from './ValidationRule.types';
2
- export interface ValidationRuleLoaderProps extends ValidationRuleProps {
3
- fieldValues: Record<string, any>;
4
- value?: any;
5
- allowRevalidate: boolean;
6
- onValidated: (result: ValidationResult) => void;
7
- }
@@ -1,7 +0,0 @@
1
- export * from './max-length-rule/MaxLengthValidationRule.types';
2
- export * from './max-length-rule/MaxLengthValidationRule';
3
- export * from './min-length-rule/MinLengthValidationRule.types';
4
- export * from './min-length-rule/MinLengthValidationRule';
5
- export * from './required-value-rule/RequiredStringValueValidationRule';
6
- export * from './required-value-rule/RequiredStringValueValidationRule.Types';
7
- export * from './ValidationRule.types';
@@ -1,3 +0,0 @@
1
- import { ValidationRule } from '../ValidationRule.types';
2
- import { MaxLengthValidationRuleProps } from './MaxLengthValidationRule.types';
3
- export declare const MaxLengthValidationRule: ValidationRule<MaxLengthValidationRuleProps, string>;
@@ -1,5 +0,0 @@
1
- import { ValidationRuleProps } from '../ValidationRule.types';
2
- export interface MaxLengthValidationRuleProps extends ValidationRuleProps {
3
- maxLength: number;
4
- invalidLengthMessage: string;
5
- }
@@ -1,3 +0,0 @@
1
- import { ValidationRule } from '../ValidationRule.types';
2
- import { MinLengthValidationRuleProps } from './MinLengthValidationRule.types';
3
- export declare const MinLengthValidationRule: ValidationRule<MinLengthValidationRuleProps, string>;
@@ -1,5 +0,0 @@
1
- import { ValidationRuleProps } from '../ValidationRule.types';
2
- export interface MinLengthValidationRuleProps extends ValidationRuleProps {
3
- minLength: number;
4
- invalidLengthMessage: string;
5
- }
@@ -1,4 +0,0 @@
1
- import { ValidationRuleProps } from '../ValidationRule.types';
2
- export interface RequiredStringValueValidationRuleProps extends ValidationRuleProps {
3
- missingValueMessage: string;
4
- }
@@ -1,3 +0,0 @@
1
- import { ValidationRule } from '../ValidationRule.types';
2
- import { RequiredStringValueValidationRuleProps } from './RequiredStringValueValidationRule.Types';
3
- export declare const RequiredStringValueValidationRule: ValidationRule<RequiredStringValueValidationRuleProps, string>;
@@ -1,2 +0,0 @@
1
- export * from './useComponent';
2
- export * from './usePagePath';
@@ -1 +0,0 @@
1
- export declare function useComponent(component: string): any;
@@ -1 +0,0 @@
1
- export declare const usePagePath: () => string;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type LocalizationContextType = {
3
- localization: any;
4
- };
5
- export interface LocalizationProviderProps {
6
- readonly children: React.ReactNode;
7
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { LocalizationContextType } from './Localization.types';
3
- export declare const LocalizationContext: React.Context<LocalizationContextType>;
4
- export declare const useLocalization: () => LocalizationContextType;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { LocalizationProviderProps } from './Localization.types';
3
- export declare const LocalizationProvider: ({ children }: LocalizationProviderProps) => JSX.Element;
@@ -1,4 +0,0 @@
1
- export { LocalizationProvider } from './LocalizationProvider';
2
- export * from './LocalizationContext';
3
- export * from './Localization.types';
4
- export * from './LocalizationProvider';
@@ -1,2 +0,0 @@
1
- export * from './routing-content-placeholder/RoutingContentPlaceholder';
2
- export * from './template-loader/TemplateLoader';
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface RoutingContentPlacholderProps {
3
- children?: React.ReactNode;
4
- }
5
- declare const RoutingContentPlaceholder: ({ children }: RoutingContentPlacholderProps) => JSX.Element;
6
- export { RoutingContentPlaceholder };
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- interface TemplateLoaderProps {
3
- readonly templateName: string;
4
- }
5
- declare const TemplateLoader: ({ templateName }: TemplateLoaderProps) => JSX.Element;
6
- export { TemplateLoader };