@donotdev/ui 0.2.1 → 0.2.3

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 (174) hide show
  1. package/dist/{GoToDialog-CICRYHHG.js → GoToDialog-KSBGOIWO.js} +1 -1
  2. package/dist/chunk-MS7ZIW5Z.js +1 -0
  3. package/dist/components/auth/AuthHeader.d.ts.map +1 -1
  4. package/dist/components/auth/AuthHeader.js +0 -2
  5. package/dist/components/auth/AuthMenu.d.ts.map +1 -1
  6. package/dist/components/auth/AuthMenu.js +6 -40
  7. package/dist/components/common/TechBento.d.ts +2 -6
  8. package/dist/components/common/TechBento.d.ts.map +1 -1
  9. package/dist/components/common/TechBento.js +14 -16
  10. package/dist/components/common/icon.d.ts.map +1 -1
  11. package/dist/components/common/icon.js +2 -1
  12. package/dist/components/common/lucideIconByName.d.ts +9 -0
  13. package/dist/components/common/lucideIconByName.d.ts.map +1 -0
  14. package/dist/components/common/lucideIconByName.js +32 -0
  15. package/dist/components/layout/GameFlow.d.ts.map +1 -1
  16. package/dist/components/layout/components/Breadcrumbs.d.ts.map +1 -1
  17. package/dist/components/layout/components/Breadcrumbs.js +14 -9
  18. package/dist/components/layout/components/header/CacheSettings.d.ts.map +1 -1
  19. package/dist/components/layout/components/header/CacheSettings.js +6 -4
  20. package/dist/components/layout/components/header/SettingsMenu.d.ts.map +1 -1
  21. package/dist/components/layout/components/header/SettingsMenu.js +2 -1
  22. package/dist/components/layout/components/header/ThemeToggle.d.ts.map +1 -1
  23. package/dist/components/layout/components/header/ThemeToggle.js +2 -1
  24. package/dist/crud/components/CrudCardLink.d.ts +6 -6
  25. package/dist/crud/components/CrudCardLink.d.ts.map +1 -1
  26. package/dist/crud/components/CrudCardLink.js +3 -9
  27. package/dist/crud/components/EntityCardList.d.ts.map +1 -1
  28. package/dist/crud/components/EntityCardList.js +3 -11
  29. package/dist/crud/components/EntityDisplayRenderer.d.ts +1 -1
  30. package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
  31. package/dist/crud/components/EntityDisplayRenderer.js +17 -58
  32. package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
  33. package/dist/crud/components/EntityFormRenderer.js +27 -5
  34. package/dist/crud/components/EntityList.d.ts +4 -4
  35. package/dist/crud/components/EntityList.d.ts.map +1 -1
  36. package/dist/crud/components/EntityList.js +136 -59
  37. package/dist/crud/components/Form.d.ts +1 -1
  38. package/dist/crud/components/Form.d.ts.map +1 -1
  39. package/dist/crud/components/Form.js +2 -2
  40. package/dist/crud/components/cellEditFor.d.ts +28 -0
  41. package/dist/crud/components/cellEditFor.d.ts.map +1 -0
  42. package/dist/crud/components/cellEditFor.js +54 -0
  43. package/dist/crud/components/entityParent.d.ts +40 -0
  44. package/dist/crud/components/entityParent.d.ts.map +1 -0
  45. package/dist/crud/components/entityParent.js +54 -0
  46. package/dist/crud/components/useRecordBreadcrumb.d.ts +11 -0
  47. package/dist/crud/components/useRecordBreadcrumb.d.ts.map +1 -0
  48. package/dist/crud/components/useRecordBreadcrumb.js +34 -0
  49. package/dist/crud/crudImports.d.ts +3 -0
  50. package/dist/crud/crudImports.d.ts.map +1 -1
  51. package/dist/crud/crudImports.js +3 -0
  52. package/dist/dndev-next.css +483 -145
  53. package/dist/dndev.css +483 -145
  54. package/dist/index.js +4 -4
  55. package/dist/internal/common/RouteErrorFallback.d.ts.map +1 -1
  56. package/dist/internal/common/RouteErrorFallback.js +2 -4
  57. package/dist/internal/devtools/components/ConfigTab.d.ts.map +1 -1
  58. package/dist/internal/devtools/components/ConfigTab.js +1 -1
  59. package/dist/internal/devtools/components/CookieTab.d.ts.map +1 -1
  60. package/dist/internal/devtools/components/CookieTab.js +1 -5
  61. package/dist/internal/devtools/components/DesignTab.d.ts.map +1 -1
  62. package/dist/internal/devtools/components/DesignTab.js +18 -7
  63. package/dist/internal/devtools/components/StoresTab.d.ts.map +1 -1
  64. package/dist/internal/devtools/components/StoresTab.js +17 -3
  65. package/dist/internal/devtools/types.d.ts +3 -3
  66. package/dist/internal/devtools/types.d.ts.map +1 -1
  67. package/dist/internal/devtools/utils/maskSensitive.d.ts +1 -1
  68. package/dist/internal/devtools/utils/maskSensitive.d.ts.map +1 -1
  69. package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
  70. package/dist/internal/layout/DnDevLayout.js +21 -21
  71. package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
  72. package/dist/internal/layout/components/AutoMetaTags.js +45 -58
  73. package/dist/internal/layout/components/footer/FooterLegalLinks.js +2 -2
  74. package/dist/internal/layout/components/footer/useLegalLinks.d.ts +0 -2
  75. package/dist/internal/layout/components/footer/useLegalLinks.d.ts.map +1 -1
  76. package/dist/internal/layout/components/footer/useLegalLinks.js +0 -2
  77. package/dist/internal/layout/components/i18nSeoMeta.d.ts +54 -0
  78. package/dist/internal/layout/components/i18nSeoMeta.d.ts.map +1 -0
  79. package/dist/internal/layout/components/i18nSeoMeta.js +53 -0
  80. package/dist/internal/layout/components/index.d.ts +1 -1
  81. package/dist/internal/layout/components/index.js +1 -1
  82. package/dist/internal/layout/zones/DnDevMergedBar.js +3 -3
  83. package/dist/internal/providers/UIProviders.d.ts.map +1 -1
  84. package/dist/internal/providers/UIProviders.js +7 -2
  85. package/dist/providers/NextJsAppProviders.d.ts +5 -1
  86. package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
  87. package/dist/providers/NextJsAppProviders.js +36 -6
  88. package/dist/providers/ViteAppProviders.d.ts.map +1 -1
  89. package/dist/providers/ViteAppProviders.js +42 -4
  90. package/dist/routing/404.js +4 -4
  91. package/dist/routing/AuthGuard.d.ts +0 -4
  92. package/dist/routing/AuthGuard.d.ts.map +1 -1
  93. package/dist/routing/AuthGuard.js +0 -4
  94. package/dist/routing/AuthGuardFallback.d.ts.map +1 -1
  95. package/dist/routing/AuthGuardFallback.js +1 -2
  96. package/dist/routing/AuthReturnTo.d.ts.map +1 -1
  97. package/dist/routing/AuthReturnTo.js +9 -2
  98. package/dist/routing/GoTo.d.ts +0 -6
  99. package/dist/routing/GoTo.d.ts.map +1 -1
  100. package/dist/routing/GoTo.js +5 -8
  101. package/dist/routing/Link.d.ts +4 -2
  102. package/dist/routing/Link.d.ts.map +1 -1
  103. package/dist/routing/Link.js +8 -5
  104. package/dist/routing/SignedInRedirect.d.ts +27 -0
  105. package/dist/routing/SignedInRedirect.d.ts.map +1 -0
  106. package/dist/routing/SignedInRedirect.js +47 -0
  107. package/dist/routing/hooks/hooks.next.d.ts +2 -0
  108. package/dist/routing/hooks/hooks.next.d.ts.map +1 -1
  109. package/dist/routing/hooks/hooks.next.js +1 -1
  110. package/dist/routing/hooks/hooks.vite.d.ts +2 -0
  111. package/dist/routing/hooks/hooks.vite.d.ts.map +1 -1
  112. package/dist/routing/hooks/hooks.vite.js +1 -1
  113. package/dist/routing/hooks/useLocation.next.d.ts +12 -0
  114. package/dist/routing/hooks/useLocation.next.d.ts.map +1 -1
  115. package/dist/routing/hooks/useLocation.next.js +17 -4
  116. package/dist/routing/hooks/useMatch.next.d.ts +6 -0
  117. package/dist/routing/hooks/useMatch.next.d.ts.map +1 -1
  118. package/dist/routing/hooks/useMatch.next.js +8 -2
  119. package/dist/routing/hooks/useNavigate.next.d.ts +6 -1
  120. package/dist/routing/hooks/useNavigate.next.d.ts.map +1 -1
  121. package/dist/routing/hooks/useNavigate.next.js +13 -4
  122. package/dist/routing/hooks/useNavigate.vite.d.ts +7 -1
  123. package/dist/routing/hooks/useNavigate.vite.d.ts.map +1 -1
  124. package/dist/routing/hooks/useNavigate.vite.js +20 -4
  125. package/dist/routing/hooks/useRedirectGuard.next.d.ts.map +1 -1
  126. package/dist/routing/hooks/useRedirectGuard.next.js +7 -1
  127. package/dist/routing/hooks/useRedirectGuard.vite.d.ts.map +1 -1
  128. package/dist/routing/hooks/useRedirectGuard.vite.js +7 -1
  129. package/dist/routing/hooks/useRoutePath.next.d.ts +23 -0
  130. package/dist/routing/hooks/useRoutePath.next.d.ts.map +1 -0
  131. package/dist/routing/hooks/useRoutePath.next.js +36 -0
  132. package/dist/routing/hooks/useRoutePath.vite.d.ts +13 -0
  133. package/dist/routing/hooks/useRoutePath.vite.d.ts.map +1 -0
  134. package/dist/routing/hooks/useRoutePath.vite.js +25 -0
  135. package/dist/routing/hooks/useUrlLanguage.next.d.ts +28 -0
  136. package/dist/routing/hooks/useUrlLanguage.next.d.ts.map +1 -0
  137. package/dist/routing/hooks/useUrlLanguage.next.js +50 -0
  138. package/dist/routing/hooks/useUrlLanguage.vite.d.ts +22 -0
  139. package/dist/routing/hooks/useUrlLanguage.vite.d.ts.map +1 -0
  140. package/dist/routing/hooks/useUrlLanguage.vite.js +41 -0
  141. package/dist/routing/index.d.ts +3 -1
  142. package/dist/routing/index.d.ts.map +1 -1
  143. package/dist/routing/index.js +2 -1
  144. package/dist/routing/useNavigation.js +4 -4
  145. package/dist/styles/index.css +483 -145
  146. package/dist/symbol-index.json +1 -1
  147. package/dist/utils/assetResolver.d.ts.map +1 -1
  148. package/dist/utils/assetResolver.js +1 -0
  149. package/dist/utils/index.d.ts +2 -0
  150. package/dist/utils/index.d.ts.map +1 -1
  151. package/dist/utils/index.js +3 -0
  152. package/dist/utils/useDeleteAccountSafe.d.ts +17 -0
  153. package/dist/utils/useDeleteAccountSafe.d.ts.map +1 -0
  154. package/dist/utils/useDeleteAccountSafe.js +52 -0
  155. package/dist/utils/useFormStoreSafe.d.ts.map +1 -1
  156. package/dist/utils/useFormStoreSafe.js +1 -0
  157. package/dist/utils/useSeo.d.ts +10 -2
  158. package/dist/utils/useSeo.d.ts.map +1 -1
  159. package/dist/utils/useSeo.js +44 -9
  160. package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
  161. package/dist/vite-routing/AppRoutes.js +37 -4
  162. package/guidelines/COMPONENTS.md +2 -1
  163. package/guidelines/PAGES.md +7 -0
  164. package/guidelines/ROUTING.md +4 -0
  165. package/guidelines/SEO.md +64 -0
  166. package/package.json +9 -9
  167. package/dist/CookieConsent-5NH5DNTP.js +0 -1
  168. package/dist/CookieConsent-W7UE647Y.js +0 -1
  169. package/dist/GoToDialog-YGBON6FR.js +0 -1
  170. package/dist/chunk-DRFM6WXH.js +0 -1
  171. package/dist/chunk-MIPTBUWY.js +0 -1
  172. package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts +0 -57
  173. package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts.map +0 -1
  174. package/dist/internal/layout/components/NextJsAutoMetaTags.js +0 -182
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @fileoverview Parent / child records (nested lists)
3
+ * @description An `EntityList` with `parent` lists one parent's children and its
4
+ * add button opens `basePath/new?<field>=<id>`. `EntityFormRenderer` (create)
5
+ * prefills that reference field from the URL. URL input is untrusted: only
6
+ * reference fields of the entity the viewer may set on create, with an id-shaped
7
+ * value, are taken.
8
+ *
9
+ * @version 0.1.0
10
+ * @since 0.2.3
11
+ * @author AMBROISE PARK Consulting
12
+ */
13
+ import type { AnyEntity, EntityListParent } from '@donotdev/core';
14
+ /**
15
+ * Throws when `parent.field` is not a reference field of the listed entity.
16
+ * A wrong parent would silently list nothing.
17
+ *
18
+ * @param entity - The listed (child) entity
19
+ * @param parent - The nested list's parent
20
+ */
21
+ export declare function assertEntityParent(entity: AnyEntity, parent: EntityListParent): void;
22
+ /**
23
+ * Create path of a child record with its parent prefilled.
24
+ *
25
+ * @param basePath - The list's base path
26
+ * @param parent - The nested list's parent
27
+ * @returns `${basePath}/new?<field>=<id>`
28
+ */
29
+ export declare function childCreatePath(basePath: string, parent: EntityListParent): string;
30
+ /**
31
+ * Create-form values taken from the URL: reference fields of the entity the
32
+ * viewer may set on create, whose value is a record id. Anything else is ignored.
33
+ *
34
+ * @param entity - The entity being created
35
+ * @param params - The current URL's search params
36
+ * @param viewerRole - The viewer's role
37
+ * @returns The prefilled reference values (empty when none)
38
+ */
39
+ export declare function referencePrefillFromQuery(entity: AnyEntity, params: URLSearchParams, viewerRole: string): Record<string, string>;
40
+ //# sourceMappingURL=entityParent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entityParent.d.ts","sourceRoot":"","sources":["../../../src/crud/components/entityParent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAYlE;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,gBAAgB,GACvB,IAAI,CAWN;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,gBAAgB,GACvB,MAAM,CAGR;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,eAAe,EACvB,UAAU,EAAE,MAAM,GACjB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAaxB"}
@@ -0,0 +1,54 @@
1
+ // packages/ui/src/crud/components/entityParent.ts
2
+ import { isFieldEditable } from '../crudImports';
3
+ /** Record id shape accepted from a URL (Firestore ids, UUIDs, slugs). */
4
+ const RECORD_ID = /^[A-Za-z0-9_-]{1,128}$/;
5
+ /** True when `field` is a reference field of `entity`. */
6
+ const isReferenceField = (entity, field) => entity.fields[field]?.type === 'reference' &&
7
+ typeof entity.fields[field]?.validation?.reference === 'string';
8
+ /**
9
+ * Throws when `parent.field` is not a reference field of the listed entity.
10
+ * A wrong parent would silently list nothing.
11
+ *
12
+ * @param entity - The listed (child) entity
13
+ * @param parent - The nested list's parent
14
+ */
15
+ export function assertEntityParent(entity, parent) {
16
+ if (!isReferenceField(entity, parent.field)) {
17
+ throw new Error(`EntityList: parent.field "${parent.field}" is not a reference field of entity "${entity.name}".`);
18
+ }
19
+ if (!RECORD_ID.test(parent.value)) {
20
+ throw new Error(`EntityList: parent.value "${parent.value}" is not a record id.`);
21
+ }
22
+ }
23
+ /**
24
+ * Create path of a child record with its parent prefilled.
25
+ *
26
+ * @param basePath - The list's base path
27
+ * @param parent - The nested list's parent
28
+ * @returns `${basePath}/new?<field>=<id>`
29
+ */
30
+ export function childCreatePath(basePath, parent) {
31
+ const query = new URLSearchParams({ [parent.field]: parent.value });
32
+ return `${basePath}/new?${query.toString()}`;
33
+ }
34
+ /**
35
+ * Create-form values taken from the URL: reference fields of the entity the
36
+ * viewer may set on create, whose value is a record id. Anything else is ignored.
37
+ *
38
+ * @param entity - The entity being created
39
+ * @param params - The current URL's search params
40
+ * @param viewerRole - The viewer's role
41
+ * @returns The prefilled reference values (empty when none)
42
+ */
43
+ export function referencePrefillFromQuery(entity, params, viewerRole) {
44
+ const prefill = {};
45
+ for (const [key, value] of params.entries()) {
46
+ if (Object.hasOwn(entity.fields, key) &&
47
+ isReferenceField(entity, key) &&
48
+ RECORD_ID.test(value) &&
49
+ isFieldEditable(entity.fields[key].editable, viewerRole, 'create')) {
50
+ prefill[key] = value;
51
+ }
52
+ }
53
+ return prefill;
54
+ }
@@ -0,0 +1,11 @@
1
+ import type { AnyEntity } from '@donotdev/core';
2
+ /**
3
+ * Names the shown record in the breadcrumbs: the entity's card title, formatted like
4
+ * the card (the same title `<Seo entity>` uses). Cleared when the page unmounts or the record
5
+ * has no title. Client effect: the server render keeps the URL segment.
6
+ *
7
+ * @param entity - Entity of the record
8
+ * @param record - Loaded record (`undefined` / `null` while loading)
9
+ */
10
+ export declare function useRecordBreadcrumb(entity: AnyEntity, record: Record<string, unknown> | null | undefined): void;
11
+ //# sourceMappingURL=useRecordBreadcrumb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRecordBreadcrumb.d.ts","sourceRoot":"","sources":["../../../src/crud/components/useRecordBreadcrumb.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GACjD,IAAI,CAaN"}
@@ -0,0 +1,34 @@
1
+ // packages/ui/src/crud/components/useRecordBreadcrumb.ts
2
+ /**
3
+ * @fileoverview Record name in the breadcrumbs
4
+ * @description Publishes the shown record's display name to the layout store, so the
5
+ * breadcrumb segment holding its id (`/products/<uuid>`) reads as the record's name.
6
+ *
7
+ * @version 0.1.0
8
+ * @since 0.2.3
9
+ * @author AMBROISE PARK Consulting
10
+ */
11
+ import { useEffect } from 'react';
12
+ import { deriveEntitySeo, useLayout, useTranslation } from '@donotdev/core';
13
+ /**
14
+ * Names the shown record in the breadcrumbs: the entity's card title, formatted like
15
+ * the card (the same title `<Seo entity>` uses). Cleared when the page unmounts or the record
16
+ * has no title. Client effect: the server render keeps the URL segment.
17
+ *
18
+ * @param entity - Entity of the record
19
+ * @param record - Loaded record (`undefined` / `null` while loading)
20
+ */
21
+ export function useRecordBreadcrumb(entity, record) {
22
+ const setRecordLabel = useLayout('setRouteRecordLabel');
23
+ const id = typeof record?.id === 'string' ? record.id : undefined;
24
+ const { t, language } = useTranslation([entity.namespace, 'crud']);
25
+ const label = record
26
+ ? deriveEntitySeo(entity, record, { t, locale: language }).title
27
+ : undefined;
28
+ useEffect(() => {
29
+ if (!id || !label)
30
+ return;
31
+ setRecordLabel({ id, label });
32
+ return () => setRecordLabel(null);
33
+ }, [id, label, setRecordLabel]);
34
+ }
@@ -20,6 +20,7 @@ export declare const useFormStore: import("zustand").UseBoundStore<import("zusta
20
20
  export declare const useFieldConditions: typeof crudModule.useFieldConditions;
21
21
  export declare const useCrud: typeof crudModule.useCrud;
22
22
  export declare const useCrudList: typeof crudModule.useCrudList;
23
+ export declare const useCrudDoc: typeof crudModule.useCrudDoc;
23
24
  export declare const useCrudCardList: typeof crudModule.useCrudCardList;
24
25
  export declare const useEntityFavorites: typeof crudModule.useEntityFavorites;
25
26
  export declare const useCrudFilters: typeof crudModule.useCrudFilters;
@@ -33,4 +34,6 @@ export declare const EntityFilters: typeof crudModule.EntityFilters;
33
34
  export declare const CrudCard: typeof crudModule.CrudCard;
34
35
  export declare const translateFieldLabel: typeof crudModule.translateFieldLabel;
35
36
  export declare const formatValue: typeof crudModule.formatValue;
37
+ export declare const translateLabel: typeof crudModule.translateLabel;
38
+ export declare const isFieldEditable: typeof crudModule.isFieldEditable;
36
39
  //# sourceMappingURL=crudImports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"crudImports.d.ts","sourceRoot":"","sources":["../../src/crud/crudImports.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAE7C,0DAA0D;AAC1D,eAAO,MAAM,qBAAqB,SAA4C,CAAC;AAG/E,eAAO,MAAM,aAAa,iCAA4B,CAAC;AACvD,eAAO,MAAM,YAAY,iKAA2B,CAAC;AACrD,eAAO,MAAM,kBAAkB,sCAAiC,CAAC;AACjE,eAAO,MAAM,OAAO,2BAAsB,CAAC;AAC3C,eAAO,MAAM,WAAW,+BAA0B,CAAC;AACnD,eAAO,MAAM,eAAe,mCAA8B,CAAC;AAC3D,eAAO,MAAM,kBAAkB,sCAAiC,CAAC;AACjE,eAAO,MAAM,cAAc,kCAA6B,CAAC;AACzD,eAAO,MAAM,eAAe,mCAA8B,CAAC;AAC3D,eAAO,MAAM,iBAAiB,qCAAgC,CAAC;AAC/D,eAAO,MAAM,oBAAoB,wCAAmC,CAAC;AAGrE,eAAO,MAAM,oBAAoB,wCAAmC,CAAC;AACrE,eAAO,MAAM,iBAAiB,qCAAgC,CAAC;AAC/D,eAAO,MAAM,cAAc,kCAA6B,CAAC;AACzD,eAAO,MAAM,aAAa,iCAA4B,CAAC;AACvD,eAAO,MAAM,QAAQ,4BAAuB,CAAC;AAG7C,eAAO,MAAM,mBAAmB,uCAAkC,CAAC;AACnE,eAAO,MAAM,WAAW,+BAA0B,CAAC"}
1
+ {"version":3,"file":"crudImports.d.ts","sourceRoot":"","sources":["../../src/crud/crudImports.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAE7C,0DAA0D;AAC1D,eAAO,MAAM,qBAAqB,SAA4C,CAAC;AAG/E,eAAO,MAAM,aAAa,iCAA4B,CAAC;AACvD,eAAO,MAAM,YAAY,iKAA2B,CAAC;AACrD,eAAO,MAAM,kBAAkB,sCAAiC,CAAC;AACjE,eAAO,MAAM,OAAO,2BAAsB,CAAC;AAC3C,eAAO,MAAM,WAAW,+BAA0B,CAAC;AACnD,eAAO,MAAM,UAAU,8BAAyB,CAAC;AACjD,eAAO,MAAM,eAAe,mCAA8B,CAAC;AAC3D,eAAO,MAAM,kBAAkB,sCAAiC,CAAC;AACjE,eAAO,MAAM,cAAc,kCAA6B,CAAC;AACzD,eAAO,MAAM,eAAe,mCAA8B,CAAC;AAC3D,eAAO,MAAM,iBAAiB,qCAAgC,CAAC;AAC/D,eAAO,MAAM,oBAAoB,wCAAmC,CAAC;AAGrE,eAAO,MAAM,oBAAoB,wCAAmC,CAAC;AACrE,eAAO,MAAM,iBAAiB,qCAAgC,CAAC;AAC/D,eAAO,MAAM,cAAc,kCAA6B,CAAC;AACzD,eAAO,MAAM,aAAa,iCAA4B,CAAC;AACvD,eAAO,MAAM,QAAQ,4BAAuB,CAAC;AAG7C,eAAO,MAAM,mBAAmB,uCAAkC,CAAC;AACnE,eAAO,MAAM,WAAW,+BAA0B,CAAC;AACnD,eAAO,MAAM,cAAc,kCAA6B,CAAC;AACzD,eAAO,MAAM,eAAe,mCAA8B,CAAC"}
@@ -22,6 +22,7 @@ export const useFormStore = crudModule?.useFormStore;
22
22
  export const useFieldConditions = crudModule?.useFieldConditions;
23
23
  export const useCrud = crudModule?.useCrud;
24
24
  export const useCrudList = crudModule?.useCrudList;
25
+ export const useCrudDoc = crudModule?.useCrudDoc;
25
26
  export const useCrudCardList = crudModule?.useCrudCardList;
26
27
  export const useEntityFavorites = crudModule?.useEntityFavorites;
27
28
  export const useCrudFilters = crudModule?.useCrudFilters;
@@ -37,3 +38,5 @@ export const CrudCard = crudModule?.CrudCard;
37
38
  // --- Utils ---
38
39
  export const translateFieldLabel = crudModule?.translateFieldLabel;
39
40
  export const formatValue = crudModule?.formatValue;
41
+ export const translateLabel = crudModule?.translateLabel;
42
+ export const isFieldEditable = crudModule?.isFieldEditable;