@beinformed/ui 1.53.0 → 1.54.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/esm/hooks/useModelCatalog.js +25 -10
  3. package/esm/hooks/useModelCatalog.js.map +1 -1
  4. package/esm/hooks/useModularUIBasic.js +9 -4
  5. package/esm/hooks/useModularUIBasic.js.map +1 -1
  6. package/esm/redux/_modularui/ModularUIActions.js +1 -0
  7. package/esm/redux/_modularui/ModularUIActions.js.map +1 -1
  8. package/esm/redux/_modularui/ModularUIMiddleware.js +2 -1
  9. package/esm/redux/_modularui/ModularUIMiddleware.js.map +1 -1
  10. package/esm/redux/_modularui/types.js.map +1 -1
  11. package/lib/hooks/useModelCatalog.js +25 -10
  12. package/lib/hooks/useModelCatalog.js.flow +23 -3
  13. package/lib/hooks/useModelCatalog.js.map +1 -1
  14. package/lib/hooks/useModularUIBasic.js +9 -4
  15. package/lib/hooks/useModularUIBasic.js.flow +13 -5
  16. package/lib/hooks/useModularUIBasic.js.map +1 -1
  17. package/lib/redux/_modularui/ModularUIActions.js +1 -0
  18. package/lib/redux/_modularui/ModularUIActions.js.flow +1 -0
  19. package/lib/redux/_modularui/ModularUIActions.js.map +1 -1
  20. package/lib/redux/_modularui/ModularUIMiddleware.js +2 -1
  21. package/lib/redux/_modularui/ModularUIMiddleware.js.flow +2 -0
  22. package/lib/redux/_modularui/ModularUIMiddleware.js.map +1 -1
  23. package/lib/redux/_modularui/types.js.flow +1 -0
  24. package/lib/redux/_modularui/types.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/hooks/useModelCatalog.js +23 -3
  27. package/src/hooks/useModularUIBasic.js +13 -5
  28. package/src/redux/_modularui/ModularUIActions.js +1 -0
  29. package/src/redux/_modularui/ModularUIMiddleware.js +2 -0
  30. package/src/redux/_modularui/types.js +1 -0
  31. package/types/models/concepts/ConceptDetailModel.d.ts +9 -1
  32. package/types/models/concepts/ConceptLinkModel.d.ts +8 -0
  33. package/types/models/concepts/ConceptTypeDetailModel.d.ts +19 -0
  34. package/types/models/content/ContentIndexModel.d.ts +3 -0
  35. package/types/models/links/LinkCollection.d.ts +8 -0
  36. package/types/redux/_modularui/types.d.ts +1 -0
@@ -20,10 +20,18 @@ export default class LinkCollection extends BaseCollection<LinkModel> {
20
20
  * Get a link by it's key, handy for getting the self link
21
21
  */
22
22
  getLinkByKey(key: string): LinkModel | null;
23
+ /**
24
+ * Indicate if a link by key exists
25
+ */
26
+ hasLinkByKey(key: string): boolean;
23
27
  /**
24
28
  * Get a link by it's Href
25
29
  */
26
30
  getLinkByHref(href: Href | string): LinkModel | null;
31
+ /**
32
+ * Indicate if a link by href exists
33
+ */
34
+ hasLinkByHref(href: Href | string): boolean;
27
35
  /**
28
36
  * Getting the links by group key. For instance getting all 'tab' links of the web application.
29
37
  */
@@ -39,6 +39,7 @@ type ModularUIAction = {
39
39
  childmodels?: boolean;
40
40
  targetModel?: any;
41
41
  forceTargetModel?: boolean;
42
+ cache?: boolean;
42
43
  successAction: (model: ModularUIModel) => SetModelAction | UpdateModelAction;
43
44
  errorAction?: ErrorAction;
44
45
  };