@kentico/xperience-admin-base 14.0.0-68025 → 22.0.1
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/entry.d.ts +177 -12
- package/dist/entry.js +22 -2
- package/package.json +61 -47
- package/dist/8ce68503cd833f15dce1.png +0 -0
- package/dist/commands/CommandContext.d.ts +0 -27
- package/dist/commands/CommandProvider.d.ts +0 -12
- package/dist/commands/index.d.ts +0 -3
- package/dist/commands/useCommand.types.d.ts +0 -36
- package/dist/commands/useCommandInvoker.d.ts +0 -11
- package/dist/commands/usePageCommand.d.ts +0 -11
- package/dist/components/ActionList/ActionList.d.ts +0 -3
- package/dist/components/ActionList/ActionList.types.d.ts +0 -4
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +0 -11
- package/dist/components/ErrorBoundary/ErrorBoundary.types.d.ts +0 -9
- package/dist/components/index.d.ts +0 -5
- package/dist/components/loader/Loader.d.ts +0 -2
- package/dist/components/page-loader/PageLoader.d.ts +0 -2
- package/dist/components/page-message-pane/PageMessagePane.d.ts +0 -7
- package/dist/components/portal/Portal.d.ts +0 -8
- package/dist/forms/form/Form.d.ts +0 -3
- package/dist/forms/form/Form.types.d.ts +0 -88
- package/dist/forms/form/FormField.d.ts +0 -3
- package/dist/forms/form/FormField.types.d.ts +0 -6
- package/dist/forms/form/index.d.ts +0 -2
- package/dist/forms/form-components/FormComponent.types.d.ts +0 -22
- package/dist/forms/form-components/FormComponentLoader.d.ts +0 -3
- package/dist/forms/form-components/checkbox-form-component/CheckboxFormComponent.d.ts +0 -3
- package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.d.ts +0 -3
- package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.types.d.ts +0 -18
- package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponent.d.ts +0 -3
- package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponentProps.types.d.ts +0 -16
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponent.d.ts +0 -3
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponentProps.types.d.ts +0 -9
- package/dist/forms/form-components/formComponentUtils.d.ts +0 -5
- package/dist/forms/form-components/index.d.ts +0 -13
- package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.d.ts +0 -3
- package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.types.d.ts +0 -3
- package/dist/forms/form-components/number-input-form-component/NumberInputFormComponent.d.ts +0 -3
- package/dist/forms/form-components/password-form-component/PasswordFormComponent.d.ts +0 -3
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponent.d.ts +0 -3
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponentProps.types.d.ts +0 -19
- package/dist/forms/form-components/text-input-form-component/TextInputFormComponent.d.ts +0 -3
- package/dist/forms/form-components/text-input-form-component/TextInputFormComponentProps.types.d.ts +0 -4
- package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.d.ts +0 -3
- package/dist/forms/hooks/FormComponentCommand.types.d.ts +0 -7
- package/dist/forms/hooks/FormComponentCommandUtils.d.ts +0 -4
- package/dist/forms/hooks/index.d.ts +0 -3
- package/dist/forms/hooks/useFormComponentCommand.d.ts +0 -4
- package/dist/forms/hooks/useFormComponentCommandProvider.d.ts +0 -4
- package/dist/forms/hooks/useValidationRule.d.ts +0 -2
- package/dist/forms/index.d.ts +0 -4
- package/dist/forms/validation-rules/ValidationRule.types.d.ts +0 -12
- package/dist/forms/validation-rules/ValidationRuleLoader.d.ts +0 -2
- package/dist/forms/validation-rules/ValidationRuleLoader.types.d.ts +0 -7
- package/dist/forms/validation-rules/index.d.ts +0 -8
- package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.d.ts +0 -3
- package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.types.d.ts +0 -5
- package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.d.ts +0 -3
- package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.types.d.ts +0 -5
- package/dist/forms/validation-rules/required-value-rule/RequiredStringValueValidationRule.Types.d.ts +0 -4
- package/dist/forms/validation-rules/required-value-rule/RequiredStringValueValidationRule.d.ts +0 -3
- package/dist/forms/validation-rules/server-rule/ServerValidationRule.d.ts +0 -2
- package/dist/hooks/index.d.ts +0 -4
- package/dist/hooks/useComponent.d.ts +0 -1
- package/dist/hooks/useInterval.d.ts +0 -1
- package/dist/hooks/useNotificationMessage.d.ts +0 -9
- package/dist/hooks/usePagePath.d.ts +0 -5
- package/dist/localization/Localization.types.d.ts +0 -7
- package/dist/localization/LocalizationContext.d.ts +0 -4
- package/dist/localization/LocalizationProvider.d.ts +0 -3
- package/dist/localization/index.d.ts +0 -4
- package/dist/notifications/NotificationsContext.d.ts +0 -5
- package/dist/notifications/NotificationsContext.types.d.ts +0 -13
- package/dist/notifications/index.d.ts +0 -2
- package/dist/shared-components/AppLinkButton/AppLinkButton.d.ts +0 -3
- package/dist/shared-components/AppLinkButton/AppLinkButton.types.d.ts +0 -4
- package/dist/shared-components/AppLinkButton/index.d.ts +0 -2
- package/dist/shared-components/AssetsFoldersTreeView/AssetsFoldersTreeView.d.ts +0 -3
- package/dist/shared-components/AssetsFoldersTreeView/AssetsFoldersTreeView.types.d.ts +0 -17
- package/dist/shared-components/AssetsFoldersTreeView/index.d.ts +0 -2
- package/dist/shared-components/AssetsPanel/AssetsPanel.d.ts +0 -3
- package/dist/shared-components/AssetsPanel/AssetsPanel.types.d.ts +0 -39
- package/dist/shared-components/AssetsPanel/index.d.ts +0 -2
- package/dist/shared-components/AssetsSelector/AssetsSelector.d.ts +0 -3
- package/dist/shared-components/AssetsSelector/AssetsSelector.types.d.ts +0 -35
- package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.types.d.ts +0 -33
- package/dist/shared-components/ConditionBuilder/Condition/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.types.d.ts +0 -16
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.types.d.ts +0 -4
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/DropDownParameterOverview.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/NumberInputParameterOverview.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/SingleObjectSelectorParameterOverview.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/TextInputFormParameterOverview.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterOverviewComponentLoader.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.types.d.ts +0 -4
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/index.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.types.d.ts +0 -23
- package/dist/shared-components/ConditionBuilder/ConditionGroup/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.types.d.ts +0 -9
- package/dist/shared-components/ConditionBuilder/ConditionPicker/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.types.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/OperatorSelect/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/Operators.d.ts +0 -4
- package/dist/shared-components/ConditionBuilder/utils/convertModel.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/findMacroRule.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/getInitialSelectedParameterValues.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/getOperatorName.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/getOperatorText.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/index.d.ts +0 -8
- package/dist/shared-components/ConditionBuilder/utils/isComponentParameter.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/isTextualParameter.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/mapArrayToKeys.d.ts +0 -6
- package/dist/shared-components/OverviewCard/OverviewCard.d.ts +0 -3
- package/dist/shared-components/OverviewCard/OverviewCard.types.d.ts +0 -13
- package/dist/shared-components/OverviewCard/index.d.ts +0 -2
- package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.d.ts +0 -3
- package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.types.d.ts +0 -4
- package/dist/shared-components/OverviewCardGroup/index.d.ts +0 -2
- package/dist/shared-components/callout/Callout.d.ts +0 -3
- package/dist/shared-components/callout/Callout.types.d.ts +0 -9
- package/dist/shared-components/index.d.ts +0 -5
- package/dist/template-components/dialog/TemplateDialog.d.ts +0 -3
- package/dist/template-components/dialog/TemplateDialog.types.d.ts +0 -8
- package/dist/template-components/dialog/TemplateDialogContext.d.ts +0 -4
- package/dist/template-components/dialog/TemplateDialogContext.types.d.ts +0 -32
- package/dist/template-components/index.d.ts +0 -4
- package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.d.ts +0 -4
- package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.types.d.ts +0 -7
- package/dist/template-components/template-loader/TemplateLoader.d.ts +0 -6
- package/dist/template-components/template-loader/useTemplateDataLoader.d.ts +0 -9
- package/dist/template-properties/TemplateProperties.types.d.ts +0 -29
- package/dist/template-properties/TemplatePropertiesProvider.d.ts +0 -9
- package/dist/template-properties/index.d.ts +0 -2
- package/dist/templates/app/App.types.d.ts +0 -17
- package/dist/templates/app/AppTemplate.d.ts +0 -4
- package/dist/templates/app/avatar/Avatar.d.ts +0 -8
- package/dist/templates/app/breadcrumbs/Breadcrumbs.d.ts +0 -4
- package/dist/templates/app/breadcrumbs/Breadcrumbs.types.d.ts +0 -18
- package/dist/templates/app/breadcrumbs/BreadcrumbsContext.d.ts +0 -4
- package/dist/templates/app/breadcrumbs/BreadcrumbsProvider.d.ts +0 -3
- package/dist/templates/app/breadcrumbs/index.d.ts +0 -2
- package/dist/templates/app/header/Header.d.ts +0 -5
- package/dist/templates/app/header/index.d.ts +0 -1
- package/dist/templates/app/main/Main.d.ts +0 -8
- package/dist/templates/app/sidebar/Sidebar.d.ts +0 -7
- package/dist/templates/app/sidebar/index.d.ts +0 -1
- package/dist/templates/app/siteselector/SiteSelector.d.ts +0 -6
- package/dist/templates/condition-builder/ConditionBuilderTemplate.d.ts +0 -3
- package/dist/templates/condition-builder/ConditionBuilderTemplate.types.d.ts +0 -7
- package/dist/templates/dashboard/DashboardTemplate.d.ts +0 -3
- package/dist/templates/dashboard/tile/Tile.d.ts +0 -3
- package/dist/templates/dashboard/tile-category/TileCategory.d.ts +0 -3
- package/dist/templates/edit/EditTemplate.d.ts +0 -3
- package/dist/templates/edit/EditTemplate.types.d.ts +0 -12
- package/dist/templates/field-editor/FieldEditorBarItemHeader.d.ts +0 -3
- package/dist/templates/field-editor/FieldEditorBarItemHeader.types.d.ts +0 -4
- package/dist/templates/field-editor/FieldEditorForm.d.ts +0 -6
- package/dist/templates/field-editor/FieldEditorForm.types.d.ts +0 -11
- package/dist/templates/field-editor/FieldEditorTemplate.d.ts +0 -15
- package/dist/templates/field-editor/FieldEditorTemplate.types.d.ts +0 -83
- package/dist/templates/index.d.ts +0 -10
- package/dist/templates/listing/Listing.types.d.ts +0 -22
- package/dist/templates/listing/ListingTemplate.d.ts +0 -3
- package/dist/templates/overview/OverviewTemplate.d.ts +0 -3
- package/dist/templates/overview/OverviewTemplate.types.d.ts +0 -71
- package/dist/templates/side-navigation-layout/SideNavigationLayoutTemplate.d.ts +0 -2
- package/dist/templates/side-navigation-layout/vertical-menu/VerticalMenu.d.ts +0 -8
- package/dist/types/Action.types.d.ts +0 -14
- package/dist/types/NotificationMessage.types.d.ts +0 -11
- package/dist/types/index.d.ts +0 -4
- package/dist/utils/authentication/logonUrlProvider.d.ts +0 -10
- package/dist/utils/basePathUtils.d.ts +0 -8
- package/dist/utils/constants.d.ts +0 -2
- package/dist/utils/convertTagGradient.d.ts +0 -3
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/loadModule.d.ts +0 -10
- package/dist/utils/pathUtils/index.d.ts +0 -1
- package/dist/utils/pathUtils/pathUtils.d.ts +0 -9
- package/dist/utils/postToAdmin.d.ts +0 -21
- package/dist/utils/responseStatusActions.d.ts +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kentico/xperience-admin-base",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.1",
|
|
4
4
|
"main": "dist/entry.js",
|
|
5
5
|
"types": "dist/entry.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -16,67 +16,81 @@
|
|
|
16
16
|
],
|
|
17
17
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@kentico/xperience-admin-components": "
|
|
19
|
+
"@kentico/xperience-admin-components": "22.0.1",
|
|
20
|
+
"@react-aria/focus": "^3.6.1",
|
|
21
|
+
"@react-aria/visually-hidden": "^3.3.1",
|
|
20
22
|
"classnames": "^2.3.1",
|
|
21
|
-
"history": "^5.0
|
|
22
|
-
"react": "^
|
|
23
|
-
"react-
|
|
24
|
-
"react-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
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"
|
|
28
35
|
},
|
|
29
36
|
"devDependencies": {
|
|
30
|
-
"@babel/core": "^7.
|
|
31
|
-
"@babel/eslint-parser": "^7.
|
|
32
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
33
|
-
"@babel/preset-env": "^7.
|
|
34
|
-
"@babel/preset-react": "^7.
|
|
35
|
-
"@babel/preset-typescript": "^7.
|
|
36
|
-
"@babel/runtime": "^7.
|
|
37
|
-
"@testing-library/jest-dom": "^5.
|
|
38
|
-
"@testing-library/react": "^
|
|
39
|
-
"@
|
|
40
|
-
"@types/
|
|
41
|
-
"@types/
|
|
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",
|
|
42
50
|
"@types/react-beautiful-dnd": "^13.1.2",
|
|
43
|
-
"@types/react-dom": "^
|
|
44
|
-
"@types/react-router-dom": "^5.
|
|
51
|
+
"@types/react-dom": "^18.0.5",
|
|
52
|
+
"@types/react-router-dom": "^5.3.3",
|
|
45
53
|
"@types/systemjs": "^6.1.1",
|
|
46
|
-
"@types/
|
|
47
|
-
"@types/uuid": "^8.3.
|
|
48
|
-
"
|
|
49
|
-
"
|
|
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",
|
|
50
59
|
"cross-env": "^7.0.3",
|
|
51
|
-
"css-loader": "^6.
|
|
52
|
-
"
|
|
53
|
-
"eslint
|
|
60
|
+
"css-loader": "^6.7.1",
|
|
61
|
+
"dompurify": "2.3.8",
|
|
62
|
+
"eslint": "^8.18.0",
|
|
63
|
+
"eslint-config-prettier": "^8.5.0",
|
|
54
64
|
"eslint-config-ts-react-important-stuff": "^3.0.0",
|
|
55
|
-
"eslint-plugin-prettier": "^4.
|
|
56
|
-
"eslint-plugin-react": "^7.
|
|
65
|
+
"eslint-plugin-prettier": "^4.1.0",
|
|
66
|
+
"eslint-plugin-react": "^7.30.1",
|
|
57
67
|
"file-loader": "^6.2.0",
|
|
58
|
-
"jest": "^
|
|
59
|
-
"jest-
|
|
60
|
-
"
|
|
61
|
-
"postcss
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"webpack
|
|
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",
|
|
71
83
|
"webpack-merge": "^5.8.0"
|
|
72
84
|
},
|
|
73
85
|
"scripts": {
|
|
74
86
|
"start": "webpack serve --mode development",
|
|
75
87
|
"dev:remote": "webpack serve --mode development --env remote",
|
|
76
88
|
"build": "webpack --mode=production",
|
|
77
|
-
"declaration": "tsc --project tsconfig.declaration.json",
|
|
78
89
|
"typecheck": "tsc --noEmit",
|
|
79
90
|
"analyze": "webpack --mode=production --env.analyze=true",
|
|
80
|
-
"test": "cross-env BABEL_ENV=test jest"
|
|
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"
|
|
81
95
|
}
|
|
82
96
|
}
|
|
Binary file
|
|
@@ -1,27 +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
|
-
* @param files Files to be uploaded by the command.
|
|
15
|
-
*/
|
|
16
|
-
executeCommand: <TCommandResult = void, TData = void>(name: string, data?: TData, files?: FileList) => Promise<TCommandResult | undefined>;
|
|
17
|
-
/**
|
|
18
|
-
* Registers command into the current provider.
|
|
19
|
-
* @param name Name of the command to be registered.
|
|
20
|
-
* @param execute Callback that executes the command.
|
|
21
|
-
*/
|
|
22
|
-
registerCommand: <T>(name: string, execute: (data: T, files?: FileList) => Promise<void>) => void;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Returns the command provider for the current page.
|
|
26
|
-
*/
|
|
27
|
-
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 {};
|
package/dist/commands/index.d.ts
DELETED
|
@@ -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 | undefined) => void;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Command invocation callback.
|
|
35
|
-
*/
|
|
36
|
-
export declare type CommandExecutor<TData, TResponse> = (data?: TData, files?: FileList) => Promise<TResponse>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface CommandInvokerResponse<T> {
|
|
2
|
-
result: T;
|
|
3
|
-
command: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Defines a command invocation function with messaging and navigation support.
|
|
7
|
-
*
|
|
8
|
-
* @returns Command invocation function.
|
|
9
|
-
*/
|
|
10
|
-
export declare function useCommandInvoker<T>(): (name: string, data?: any, files?: FileList | undefined) => Promise<CommandInvokerResponse<T> | undefined>;
|
|
11
|
-
export {};
|
|
@@ -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,11 +0,0 @@
|
|
|
1
|
-
import React, { Component, ErrorInfo } from 'react';
|
|
2
|
-
import { ErrorBoundaryProps, ErrorBoundaryState } from './ErrorBoundary.types';
|
|
3
|
-
/**
|
|
4
|
-
* ErrorBoundary component allows to catch the unhandled errors and display a fallback component.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
7
|
-
state: ErrorBoundaryState;
|
|
8
|
-
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
9
|
-
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
10
|
-
render(): React.ReactNode;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface ErrorBoundaryProps {
|
|
3
|
-
readonly children: ReactNode;
|
|
4
|
-
readonly fallback: (error: Error | null) => ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export interface ErrorBoundaryState {
|
|
7
|
-
readonly hasError: boolean;
|
|
8
|
-
readonly error: Error | null;
|
|
9
|
-
}
|
|
@@ -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,88 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormComponentProps } from '../form-components/FormComponent.types';
|
|
3
|
-
/**
|
|
4
|
-
* Form reference exposing Form functions.
|
|
5
|
-
*/
|
|
6
|
-
export declare type FormRef = {
|
|
7
|
-
/**
|
|
8
|
-
* Submits the entire form.
|
|
9
|
-
*/
|
|
10
|
-
submit: (action?: string) => void;
|
|
11
|
-
} | null;
|
|
12
|
-
/**
|
|
13
|
-
* Name of the form the components are rendered within.
|
|
14
|
-
*/
|
|
15
|
-
export declare const FormNameContext: React.Context<string>;
|
|
16
|
-
/**
|
|
17
|
-
* Properties for Form cmponent.
|
|
18
|
-
*/
|
|
19
|
-
export interface FormProps {
|
|
20
|
-
/**
|
|
21
|
-
* Form component has no button rendered, define the children to display submitting component.
|
|
22
|
-
*/
|
|
23
|
-
readonly children?: React.ReactNode;
|
|
24
|
-
/**
|
|
25
|
-
* Collection of form components which will be displayed inside the form.
|
|
26
|
-
*/
|
|
27
|
-
readonly components: FormComponentProps[];
|
|
28
|
-
/**
|
|
29
|
-
* Name of the form.
|
|
30
|
-
*/
|
|
31
|
-
readonly name?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Determines whether the form is read only.
|
|
34
|
-
*/
|
|
35
|
-
readonly readOnly?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Function for form value change monitoring.
|
|
38
|
-
*/
|
|
39
|
-
readonly onChange?: (e: ChangeEventHandler) => void;
|
|
40
|
-
/**
|
|
41
|
-
* Submit function used to submit form data.
|
|
42
|
-
*/
|
|
43
|
-
readonly onSubmit?: (e: SubmitEventHandler, action?: string) => void;
|
|
44
|
-
}
|
|
45
|
-
export interface ChangeEventHandler {
|
|
46
|
-
readonly changedField: {
|
|
47
|
-
name: string;
|
|
48
|
-
hasDependencies: boolean;
|
|
49
|
-
};
|
|
50
|
-
readonly values: {
|
|
51
|
-
[fieldName: string]: any;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
export interface SubmitEventHandler {
|
|
55
|
-
readonly values: {
|
|
56
|
-
[fieldName: string]: any;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Represents result of form submission.
|
|
61
|
-
*/
|
|
62
|
-
export interface FormSubmissionResult {
|
|
63
|
-
/**
|
|
64
|
-
* Collection of form components which will be displayed inside the form.
|
|
65
|
-
*/
|
|
66
|
-
readonly components: FormComponentProps[];
|
|
67
|
-
/**
|
|
68
|
-
* Status of the form submission and validation process.
|
|
69
|
-
*/
|
|
70
|
-
readonly status: FormSubmissionStatus;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Indicates the state of the form submission and validation result.
|
|
74
|
-
*/
|
|
75
|
-
export declare enum FormSubmissionStatus {
|
|
76
|
-
/**
|
|
77
|
-
* Error during the form submission.
|
|
78
|
-
*/
|
|
79
|
-
Error = "error",
|
|
80
|
-
/**
|
|
81
|
-
* Form validation failed.
|
|
82
|
-
*/
|
|
83
|
-
ValidationFailure = "validationFailure",
|
|
84
|
-
/**
|
|
85
|
-
* Submission and validation successful.
|
|
86
|
-
*/
|
|
87
|
-
ValidationSuccess = "validationSuccess"
|
|
88
|
-
}
|
|
@@ -1,6 +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 allowRevalidate: boolean;
|
|
5
|
-
readonly onValidated?: (invalidValidationResults: ValidationResult[]) => void;
|
|
6
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ValidationRuleProps } from '../validation-rules/ValidationRule.types';
|
|
2
|
-
export declare type OnChangeValueType = string | number | boolean;
|
|
3
|
-
export interface FieldInfo {
|
|
4
|
-
readonly name: string;
|
|
5
|
-
readonly fieldValues: Record<string, any>;
|
|
6
|
-
}
|
|
7
|
-
export interface FormComponentProps extends FieldInfo {
|
|
8
|
-
readonly componentName: string;
|
|
9
|
-
readonly hasDependencies: boolean;
|
|
10
|
-
readonly label?: string;
|
|
11
|
-
readonly explanationText?: string;
|
|
12
|
-
readonly tooltip?: string;
|
|
13
|
-
readonly readOnly?: boolean;
|
|
14
|
-
readonly value?: any;
|
|
15
|
-
readonly invalid?: boolean;
|
|
16
|
-
readonly validationMessage?: string;
|
|
17
|
-
readonly validationRules?: ValidationRuleProps[];
|
|
18
|
-
readonly onChange?: (value: OnChangeValueType) => void;
|
|
19
|
-
readonly required?: boolean;
|
|
20
|
-
readonly disabledMessage?: string;
|
|
21
|
-
readonly guid: string;
|
|
22
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ConditionBuilderFormComponentProps } from './ConditionBuilderFormComponent.types';
|
|
3
|
-
export declare const ConditionBuilderFormComponent: ({ initialConfiguration, availableMacroRules, availableMacroRuleConfigurations, onChange, label, disabledMessage, invalid, validationMessage, readOnly, required, explanationText, tooltip }: ConditionBuilderFormComponentProps) => JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FormComponentProps } from '../FormComponent.types';
|
|
2
|
-
import { ConditionBuilderProps } from '../../../shared-components/ConditionBuilder/ConditionBuilder';
|
|
3
|
-
import { FormSubmissionStatus } from '../..';
|
|
4
|
-
export interface ConditionBuilderFormComponentProps extends FormComponentProps, Omit<ConditionBuilderProps, 'onChange'> {
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Represents result of form submission.
|
|
8
|
-
*/
|
|
9
|
-
export interface GetMacroCommandSubmissionResult {
|
|
10
|
-
/**
|
|
11
|
-
* Status of the form submission and validation process.
|
|
12
|
-
*/
|
|
13
|
-
readonly status: FormSubmissionStatus;
|
|
14
|
-
/**
|
|
15
|
-
* Status of the form submission and validation process.
|
|
16
|
-
*/
|
|
17
|
-
readonly result?: string;
|
|
18
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SingleObjectSelectorFormComponentProps } from './SingleObjectSelectorFormComponentProps.types';
|
|
3
|
-
export declare const SingleObjectSelectorFormComponent: ({ objectType, textColumnName, valueColumnName, ...props }: SingleObjectSelectorFormComponentProps) => JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DropDownOption } from '../../dropdown-form-component/DropDownFormComponentProps.types';
|
|
2
|
-
import { FormComponentProps } from '../../FormComponent.types';
|
|
3
|
-
export interface SingleObjectSelectorFormComponentProps extends FormComponentProps {
|
|
4
|
-
readonly objectType: string;
|
|
5
|
-
readonly textColumnName: string;
|
|
6
|
-
readonly valueColumnName: string;
|
|
7
|
-
readonly placeholder?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface LoadOptionsCommandArguments {
|
|
10
|
-
readonly options: DropDownOption[];
|
|
11
|
-
}
|
|
12
|
-
export interface LoadOptionsCommandResult {
|
|
13
|
-
readonly objectType: string;
|
|
14
|
-
readonly textColumnName: string;
|
|
15
|
-
readonly valueColumnName: string;
|
|
16
|
-
}
|
package/dist/forms/form-components/dropdown-form-component/DropDownFormComponentProps.types.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FormComponentProps } from '../FormComponent.types';
|
|
2
|
-
export interface DropDownFormComponentProps extends FormComponentProps {
|
|
3
|
-
readonly options: DropDownOption[];
|
|
4
|
-
readonly placeholder?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface DropDownOption {
|
|
7
|
-
readonly value: string;
|
|
8
|
-
readonly text: string;
|
|
9
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './FormComponent.types';
|
|
2
|
-
export * from './checkbox-form-component/CheckboxFormComponent';
|
|
3
|
-
export * from './namespace-code-name-form-component/NamespaceCodeNameFormComponent';
|
|
4
|
-
export * from './condition-builder-form-component/ConditionBuilderFormComponent';
|
|
5
|
-
export * from './dropdown-form-component/DropDownFormComponent';
|
|
6
|
-
export * from './dropdown-form-component/DropDownFormComponentProps.types';
|
|
7
|
-
export * from './number-input-form-component/NumberInputFormComponent';
|
|
8
|
-
export * from './password-form-component/PasswordFormComponent';
|
|
9
|
-
export * from './rich-text-editor-form-component/RichTextEditorFormComponent';
|
|
10
|
-
export * from './text-input-form-component/TextInputFormComponent';
|
|
11
|
-
export * from './text-input-form-component/TextInputFormComponentProps.types';
|
|
12
|
-
export * from './textarea-form-component/TextAreaFormComponent';
|
|
13
|
-
export * from './condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponent';
|
package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponent.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { RichTextEditorFormComponentProps } from './RichTextEditorFormComponentProps.types';
|
|
3
|
-
export declare const RichTextEditorFormComponent: ({ label, placeholder, tooltipTextOnDisabled, value, onChange, invalid, validationMessage, readOnly, required, disabledMessage, tooltip, explanationText, guid, ...props }: RichTextEditorFormComponentProps) => JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FormComponentProps } from '../FormComponent.types';
|
|
2
|
-
export interface RichTextEditorFormComponentProps extends FormComponentProps {
|
|
3
|
-
readonly placeholder?: string;
|
|
4
|
-
readonly tooltipTextOnDisabled?: string;
|
|
5
|
-
readonly assetsPanelEnabled: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface LoadAssetsPanelItemsParameters {
|
|
8
|
-
readonly folderPath: string;
|
|
9
|
-
readonly libraryIdentifier: string;
|
|
10
|
-
}
|
|
11
|
-
export interface LoadAssetsFoldersParameters {
|
|
12
|
-
readonly folderPath: string;
|
|
13
|
-
readonly isSelected: boolean;
|
|
14
|
-
readonly libraryIdentifier: string;
|
|
15
|
-
}
|
|
16
|
-
export interface UploadAssetsParameters {
|
|
17
|
-
readonly folderPath: string;
|
|
18
|
-
readonly libraryIdentifier: string;
|
|
19
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { FieldInfo } from '../form-components/FormComponent.types';
|
|
2
|
-
import { FormComponentCommandModel } from './FormComponentCommand.types';
|
|
3
|
-
export declare const componentCommandName = "ComponentCommand";
|
|
4
|
-
export declare const prepareFormComponentCommandPayload: <TData = unknown>(formName: string, fieldInfo: FieldInfo, commandName: string, data?: TData | undefined) => FormComponentCommandModel;
|