@knovator/pagecreator-admin 0.0.9 → 0.2.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/README.md +2 -2
  2. package/index.d.ts +1 -5
  3. package/package.json +3 -7
  4. package/index.css +0 -1602
  5. package/index.js +0 -7361
  6. package/lib/api/index.d.ts +0 -10
  7. package/lib/api/list.d.ts +0 -48
  8. package/lib/components/Page/AddButton/AddButton.d.ts +0 -3
  9. package/lib/components/Page/AddButton/index.d.ts +0 -2
  10. package/lib/components/Page/Form/PageForm.d.ts +0 -4
  11. package/lib/components/Page/Form/index.d.ts +0 -2
  12. package/lib/components/Page/Page/Page.d.ts +0 -13
  13. package/lib/components/Page/Page/index.d.ts +0 -2
  14. package/lib/components/Page/PageFormActions/PageFormActions.d.ts +0 -4
  15. package/lib/components/Page/PageFormActions/index.d.ts +0 -2
  16. package/lib/components/Page/PageFormWrapper/PageFormWrapper.d.ts +0 -4
  17. package/lib/components/Page/PageFormWrapper/index.d.ts +0 -2
  18. package/lib/components/Page/Pagination/PagePagination.d.ts +0 -3
  19. package/lib/components/Page/Pagination/index.d.ts +0 -2
  20. package/lib/components/Page/Search/PageSearch.d.ts +0 -3
  21. package/lib/components/Page/Search/index.d.ts +0 -2
  22. package/lib/components/Page/Table/PageTable.d.ts +0 -3
  23. package/lib/components/Page/Table/index.d.ts +0 -2
  24. package/lib/components/Page/index.d.ts +0 -2
  25. package/lib/components/Widget/AddButton/AddButton.d.ts +0 -3
  26. package/lib/components/Widget/AddButton/index.d.ts +0 -2
  27. package/lib/components/Widget/Form/TileItemsAccordian.d.ts +0 -4
  28. package/lib/components/Widget/Form/WidgetForm.d.ts +0 -4
  29. package/lib/components/Widget/Form/index.d.ts +0 -2
  30. package/lib/components/Widget/Pagination/WidgetPagination.d.ts +0 -3
  31. package/lib/components/Widget/Pagination/index.d.ts +0 -2
  32. package/lib/components/Widget/Search/WidgetSearch.d.ts +0 -3
  33. package/lib/components/Widget/Search/index.d.ts +0 -2
  34. package/lib/components/Widget/Table/WidgetTable.d.ts +0 -3
  35. package/lib/components/Widget/Table/index.d.ts +0 -2
  36. package/lib/components/Widget/Widget/Widget.d.ts +0 -13
  37. package/lib/components/Widget/Widget/index.d.ts +0 -2
  38. package/lib/components/Widget/WidgetFormActions/WidgetFormActions.d.ts +0 -4
  39. package/lib/components/Widget/WidgetFormActions/index.d.ts +0 -2
  40. package/lib/components/Widget/WidgetFormWrapper/WidgetFormWrapper.d.ts +0 -4
  41. package/lib/components/Widget/WidgetFormWrapper/index.d.ts +0 -2
  42. package/lib/components/Widget/index.d.ts +0 -2
  43. package/lib/components/common/Accordian/Accordian.d.ts +0 -13
  44. package/lib/components/common/Accordian/index.d.ts +0 -2
  45. package/lib/components/common/Button/Button.d.ts +0 -4
  46. package/lib/components/common/Button/index.d.ts +0 -2
  47. package/lib/components/common/DNDItemsList/DNDItemsList.d.ts +0 -4
  48. package/lib/components/common/DNDItemsList/index.d.ts +0 -2
  49. package/lib/components/common/DeleteModal/DeleteModal.d.ts +0 -4
  50. package/lib/components/common/DeleteModal/index.d.ts +0 -2
  51. package/lib/components/common/Drawer/Drawer.d.ts +0 -9
  52. package/lib/components/common/Drawer/index.d.ts +0 -2
  53. package/lib/components/common/Form/Form.d.ts +0 -15
  54. package/lib/components/common/Form/SimpleForm.d.ts +0 -17
  55. package/lib/components/common/Form/index.d.ts +0 -4
  56. package/lib/components/common/FormActions/FormActions.d.ts +0 -10
  57. package/lib/components/common/FormActions/index.d.ts +0 -2
  58. package/lib/components/common/ImageUpload/ImageUpload.d.ts +0 -4
  59. package/lib/components/common/ImageUpload/index.d.ts +0 -2
  60. package/lib/components/common/Input/Checkbox.d.ts +0 -4
  61. package/lib/components/common/Input/Input.d.ts +0 -4
  62. package/lib/components/common/Input/ReactSelect.d.ts +0 -4
  63. package/lib/components/common/Input/Select.d.ts +0 -4
  64. package/lib/components/common/Input/index.d.ts +0 -10
  65. package/lib/components/common/Modal/Modal.d.ts +0 -8
  66. package/lib/components/common/Modal/index.d.ts +0 -2
  67. package/lib/components/common/Pagination/Pagination.d.ts +0 -4
  68. package/lib/components/common/Pagination/index.d.ts +0 -2
  69. package/lib/components/common/Table/Table.d.ts +0 -4
  70. package/lib/components/common/Table/index.d.ts +0 -2
  71. package/lib/components/common/Toggle/Toggle.d.ts +0 -4
  72. package/lib/components/common/Toggle/index.d.ts +0 -2
  73. package/lib/constants/common.d.ts +0 -100
  74. package/lib/context/PageContext.d.ts +0 -7
  75. package/lib/context/ProviderContext.d.ts +0 -5
  76. package/lib/context/WidgetContext.d.ts +0 -7
  77. package/lib/helper/utils.d.ts +0 -11
  78. package/lib/hooks/usePage.d.ts +0 -39
  79. package/lib/hooks/usePagination.d.ts +0 -27
  80. package/lib/hooks/useWidget.d.ts +0 -45
  81. package/lib/icons/chevronDown.d.ts +0 -4
  82. package/lib/icons/chevronLeft.d.ts +0 -4
  83. package/lib/icons/chevronRight.d.ts +0 -4
  84. package/lib/icons/chevronUp.d.ts +0 -4
  85. package/lib/icons/close.d.ts +0 -4
  86. package/lib/icons/pencil.d.ts +0 -4
  87. package/lib/icons/trash.d.ts +0 -4
  88. package/lib/types/api.d.ts +0 -34
  89. package/lib/types/common.d.ts +0 -20
  90. package/lib/types/components.d.ts +0 -276
  91. package/lib/types/context.d.ts +0 -95
  92. package/lib/types/index.d.ts +0 -4
package/README.md CHANGED
@@ -146,8 +146,8 @@ import { Provider } from '@knovator/pagecreator-admin';
146
146
  - `class` name to apply to `Toggle` component, default is `khb_switch`
147
147
  - `widgetRoutesPrefix`
148
148
  - Prefix to apply after `baseUrl` while calling `widget` API
149
- - `tilesRoutesPrefix`
150
- - Prefix to apply after `baseUrl` while calling `tiles` API
149
+ - `itemsRoutesPrefix`
150
+ - Prefix to apply after `baseUrl` while calling `items` API
151
151
  - `pageRoutesPrefix`
152
152
  - Prefix to apply after `baseUrl` while calling `page` API
153
153
 
package/index.d.ts CHANGED
@@ -1,5 +1 @@
1
- import './styles/index.css';
2
- import { Page } from './lib/components/Page';
3
- import { Widget } from './lib/components/Widget';
4
- import Provider from './lib/context/ProviderContext';
5
- export { Widget, Provider, Page };
1
+ declare module '@knovator/api';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knovator/pagecreator-admin",
3
- "version": "0.0.9",
3
+ "version": "0.2.0",
4
4
  "dependencies": {
5
5
  "classnames": "^2.3.1",
6
6
  "react-beautiful-dnd": "^13.1.0",
@@ -11,7 +11,7 @@
11
11
  "@knovator/api": "^1.0.2"
12
12
  },
13
13
  "peerDependencies": {
14
- "react": "^18"
14
+ "react": "^18 | ^17"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
@@ -31,9 +31,5 @@
31
31
  "index.css",
32
32
  "index.d.ts",
33
33
  "index.js"
34
- ],
35
- "module": "./index.js",
36
- "main": "./index.js",
37
- "type": "module",
38
- "types": "./index.d.ts"
34
+ ]
39
35
  }