@rebasepro/admin-types 0.10.1-canary.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 (72) hide show
  1. package/LICENSE +21 -0
  2. package/dist/admin_collection.d.ts +464 -0
  3. package/dist/augment.d.ts +66 -0
  4. package/dist/collections.d.ts +226 -0
  5. package/dist/controllers/analytics_controller.d.ts +7 -0
  6. package/dist/controllers/auth.d.ts +110 -0
  7. package/dist/controllers/customization_controller.d.ts +61 -0
  8. package/dist/controllers/dialogs_controller.d.ts +36 -0
  9. package/dist/controllers/index.d.ts +10 -0
  10. package/dist/controllers/local_config_persistence.d.ts +20 -0
  11. package/dist/controllers/navigation.d.ts +225 -0
  12. package/dist/controllers/registry.d.ts +80 -0
  13. package/dist/controllers/side_dialogs_controller.d.ts +67 -0
  14. package/dist/controllers/side_panel_controller.d.ts +97 -0
  15. package/dist/controllers/snackbar.d.ts +24 -0
  16. package/dist/index.d.ts +18 -0
  17. package/dist/index.es.js +92 -0
  18. package/dist/index.es.js.map +1 -0
  19. package/dist/react_component_ref.d.ts +43 -0
  20. package/dist/rebase_context.d.ts +68 -0
  21. package/dist/types/breadcrumbs.d.ts +26 -0
  22. package/dist/types/builders.d.ts +15 -0
  23. package/dist/types/component_overrides.d.ts +196 -0
  24. package/dist/types/entity_actions.d.ts +105 -0
  25. package/dist/types/entity_link_builder.d.ts +7 -0
  26. package/dist/types/entity_views.d.ts +95 -0
  27. package/dist/types/export_import.d.ts +21 -0
  28. package/dist/types/formex.d.ts +40 -0
  29. package/dist/types/index.d.ts +15 -0
  30. package/dist/types/locales.d.ts +4 -0
  31. package/dist/types/modify_collections.d.ts +5 -0
  32. package/dist/types/plugins.d.ts +277 -0
  33. package/dist/types/property_config.d.ts +74 -0
  34. package/dist/types/property_options.d.ts +154 -0
  35. package/dist/types/slots.d.ts +263 -0
  36. package/dist/types/translations.d.ts +915 -0
  37. package/dist/types/user_management_delegate.d.ts +22 -0
  38. package/package.json +103 -0
  39. package/src/admin_collection.ts +582 -0
  40. package/src/augment.ts +60 -0
  41. package/src/collections.ts +256 -0
  42. package/src/controllers/analytics_controller.tsx +57 -0
  43. package/src/controllers/auth.ts +121 -0
  44. package/src/controllers/customization_controller.tsx +72 -0
  45. package/src/controllers/dialogs_controller.tsx +37 -0
  46. package/src/controllers/index.ts +10 -0
  47. package/src/controllers/local_config_persistence.tsx +22 -0
  48. package/src/controllers/navigation.ts +264 -0
  49. package/src/controllers/registry.ts +96 -0
  50. package/src/controllers/side_dialogs_controller.tsx +82 -0
  51. package/src/controllers/side_panel_controller.tsx +112 -0
  52. package/src/controllers/snackbar.ts +29 -0
  53. package/src/index.ts +20 -0
  54. package/src/react_component_ref.ts +52 -0
  55. package/src/rebase_context.ts +81 -0
  56. package/src/types/breadcrumbs.ts +27 -0
  57. package/src/types/builders.ts +18 -0
  58. package/src/types/component_overrides.ts +244 -0
  59. package/src/types/entity_actions.tsx +127 -0
  60. package/src/types/entity_link_builder.ts +8 -0
  61. package/src/types/entity_views.tsx +114 -0
  62. package/src/types/export_import.ts +26 -0
  63. package/src/types/formex.ts +45 -0
  64. package/src/types/index.ts +15 -0
  65. package/src/types/locales.ts +81 -0
  66. package/src/types/modify_collections.tsx +6 -0
  67. package/src/types/plugins.tsx +346 -0
  68. package/src/types/property_config.tsx +95 -0
  69. package/src/types/property_options.ts +169 -0
  70. package/src/types/slots.tsx +309 -0
  71. package/src/types/translations.ts +1026 -0
  72. package/src/types/user_management_delegate.ts +23 -0
@@ -0,0 +1,22 @@
1
+ import type { User } from "@rebasepro/types";
2
+ /**
3
+ * Result of creating a new user via admin flow.
4
+ * Contains the created user plus information about how credentials were delivered.
5
+ */
6
+ export interface UserCreationResult<USER extends User = User> {
7
+ /** The created user */
8
+ user: USER;
9
+ /** Whether an invitation email was sent to the user */
10
+ invitationSent: boolean;
11
+ /**
12
+ * Temporary password, present when no invitation email could be delivered —
13
+ * either because no email service is configured, or because delivery failed
14
+ * (see `emailDeliveryFailed`). Returned one-time, to be shared manually.
15
+ */
16
+ temporaryPassword?: string;
17
+ /**
18
+ * Whether an email service was configured but delivery failed, causing the
19
+ * fallback to `temporaryPassword`. Absent when no email service is configured.
20
+ */
21
+ emailDeliveryFailed?: boolean;
22
+ }
package/package.json ADDED
@@ -0,0 +1,103 @@
1
+ {
2
+ "name": "@rebasepro/admin-types",
3
+ "type": "module",
4
+ "version": "0.10.1-canary.0",
5
+ "description": "Rebase admin-panel type definitions — the React-flavoured half of the type surface",
6
+ "funding": {
7
+ "url": "https://github.com/sponsors/rebaseco"
8
+ },
9
+ "author": "Rebase",
10
+ "license": "MIT",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/rebasepro/rebase.git",
14
+ "directory": "packages/admin-types"
15
+ },
16
+ "main": "./dist/index.es.js",
17
+ "module": "./dist/index.es.js",
18
+ "types": "./dist/index.d.ts",
19
+ "source": "src/index.ts",
20
+ "engines": {
21
+ "node": ">=20"
22
+ },
23
+ "keywords": [
24
+ "rebase",
25
+ "admin",
26
+ "cms",
27
+ "typescript",
28
+ "react",
29
+ "headless cms"
30
+ ],
31
+ "dependencies": {
32
+ "@rebasepro/types": "0.10.0"
33
+ },
34
+ "devDependencies": {
35
+ "@types/jest": "^30.0.0",
36
+ "@types/node": "^25.9.3",
37
+ "@types/object-hash": "^3.0.6",
38
+ "@types/react": "^19.2.17",
39
+ "@types/react-dom": "^19.2.3",
40
+ "@types/react-measure": "^2.0.12",
41
+ "@vitejs/plugin-react": "^6.0.2",
42
+ "hono": "^4.12.27",
43
+ "jest": "^30.4.2",
44
+ "ts-jest": "^29.4.11",
45
+ "typescript": "^6.0.3",
46
+ "vite": "^8.0.16"
47
+ },
48
+ "peerDependencies": {
49
+ "react": "^19.0.0",
50
+ "react-dom": "^19.0.0"
51
+ },
52
+ "files": [
53
+ "dist",
54
+ "src"
55
+ ],
56
+ "publishConfig": {
57
+ "access": "public"
58
+ },
59
+ "exports": {
60
+ ".": {
61
+ "types": "./dist/index.d.ts",
62
+ "development": "./dist/index.es.js",
63
+ "import": "./dist/index.es.js"
64
+ },
65
+ "./package.json": "./package.json"
66
+ },
67
+ "jest": {
68
+ "transform": {
69
+ "^.+\\.tsx?$": "ts-jest"
70
+ },
71
+ "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
72
+ "moduleFileExtensions": [
73
+ "ts",
74
+ "tsx",
75
+ "js",
76
+ "jsx",
77
+ "json",
78
+ "node"
79
+ ],
80
+ "testEnvironment": "node",
81
+ "testPathIgnorePatterns": [
82
+ "/bivariance/"
83
+ ],
84
+ "moduleNameMapper": {
85
+ "\\\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js",
86
+ "^@rebasepro/types$": "<rootDir>/../types/src/index.ts",
87
+ "^@rebasepro/utils$": "<rootDir>/../utils/src/index.ts"
88
+ }
89
+ },
90
+ "eslintConfig": {
91
+ "extends": [
92
+ "react-app",
93
+ "react-app/jest"
94
+ ]
95
+ },
96
+ "scripts": {
97
+ "watch": "vite build --watch",
98
+ "build": "vite build && tsc --emitDeclarationOnly -p tsconfig.prod.json && node ../../scripts/assert-build-output.mjs",
99
+ "test:lint": "eslint \"src/**\" --quiet",
100
+ "test": "jest --passWithNoTests",
101
+ "clean": "rm -rf dist && find ./src -name '*.js' -type f | xargs rm -f"
102
+ }
103
+ }