@edifice.io/react 2.2.5-develop.20250429151203 → 2.2.5-develop.20250513184359

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.
@@ -2,9 +2,11 @@ import { ReactNode } from 'react';
2
2
  export type TableRef = HTMLTableElement;
3
3
  export interface TableProps {
4
4
  children?: Array<React.ReactElement<HTMLTableSectionElement>> | any;
5
+ maxHeight?: string;
5
6
  }
6
7
  declare const Table: import('react').ForwardRefExoticComponent<{
7
8
  children: ReactNode;
9
+ maxHeight?: string;
8
10
  } & import('react').RefAttributes<HTMLTableElement>> & {
9
11
  Thead: {
10
12
  (props: React.HTMLAttributes<HTMLTableSectionElement>): import("react/jsx-runtime").JSX.Element;
@@ -6,8 +6,14 @@ import { TableTh } from "./TableTh.js";
6
6
  import { TableThead } from "./TableThead.js";
7
7
  import { TableTr } from "./TableTr.js";
8
8
  const Root = /* @__PURE__ */ forwardRef(({
9
- children
10
- }, ref) => /* @__PURE__ */ jsx("div", { className: "table-responsive", children: /* @__PURE__ */ jsx("table", { ref, className: "table align-middle mb-0", children }) })), Table = /* @__PURE__ */ Object.assign(Root, {
9
+ children,
10
+ maxHeight
11
+ }, ref) => /* @__PURE__ */ jsx("div", { className: "table-responsive", style: maxHeight ? {
12
+ maxHeight,
13
+ overflowY: "auto"
14
+ } : {}, children: /* @__PURE__ */ jsx("table", { ref, className: "table align-middle mb-0", style: {
15
+ overflow: maxHeight ? "visible" : "hidden"
16
+ }, children }) })), Table = /* @__PURE__ */ Object.assign(Root, {
11
17
  Thead: TableThead,
12
18
  Th: TableTh,
13
19
  Tbody: TableTbody,
@@ -80,15 +80,16 @@ const InternalLinker = ({
80
80
  setOptions(applicationList.sort((app1, app2) => app1.displayName.localeCompare(app2.displayName)));
81
81
  return;
82
82
  }
83
- const appPromises = resourceApplications.map((application) => odeServices.session().getWebApp(application)), webApps = await Promise.all(appPromises);
84
- setOptions(resourceApplications.map((application, index) => {
83
+ const appPromises = resourceApplications.map((application) => odeServices.session().getWebApp(application)), webApps = await Promise.all(appPromises), opts = resourceApplications.map((application, index) => {
85
84
  var _a;
86
- return {
85
+ let displayName = ((_a = webApps[index]) == null ? void 0 : _a.displayName) ?? application;
86
+ return application === "exercizer" ? displayName = "bbm.linker.int.app.exercizer" : application === "formulaire" && (displayName = "bbm.linker.int.app.forms"), {
87
87
  application,
88
- displayName: t(((_a = webApps[index]) == null ? void 0 : _a.displayName) ?? application),
88
+ displayName: t(displayName ?? application),
89
89
  icon: /* @__PURE__ */ jsx(AppIcon, { app: webApps[index], size: "24" })
90
90
  };
91
- }).sort((app1, app2) => app1.displayName.localeCompare(app2.displayName)));
91
+ }).sort((a, b) => a.displayName.localeCompare(b.displayName));
92
+ setOptions(opts);
92
93
  })();
93
94
  }, [resourceApplications, t, applicationList]), useEffect(() => {
94
95
  loadAndDisplayResources(debounceSearch);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.2.5-develop.20250429151203",
3
+ "version": "2.2.5-develop.20250513184359",
4
4
  "description": "Edifice React Library",
5
5
  "keywords": [
6
6
  "react",
@@ -118,9 +118,9 @@
118
118
  "react-slugify": "^3.0.3",
119
119
  "swiper": "^10.1.0",
120
120
  "ua-parser-js": "^1.0.36",
121
- "@edifice.io/bootstrap": "2.2.5-develop.20250429151203",
122
- "@edifice.io/tiptap-extensions": "2.2.5-develop.20250429151203",
123
- "@edifice.io/utilities": "2.2.5-develop.20250429151203"
121
+ "@edifice.io/bootstrap": "2.2.5-develop.20250513184359",
122
+ "@edifice.io/tiptap-extensions": "2.2.5-develop.20250513184359",
123
+ "@edifice.io/utilities": "2.2.5-develop.20250513184359"
124
124
  },
125
125
  "devDependencies": {
126
126
  "@babel/plugin-transform-react-pure-annotations": "^7.23.3",
@@ -151,8 +151,8 @@
151
151
  "vite": "^5.4.11",
152
152
  "vite-plugin-dts": "^4.1.0",
153
153
  "vite-tsconfig-paths": "^5.0.1",
154
- "@edifice.io/client": "2.2.5-develop.20250429151203",
155
- "@edifice.io/config": "2.2.5-develop.20250429151203"
154
+ "@edifice.io/client": "2.2.5-develop.20250513184359",
155
+ "@edifice.io/config": "2.2.5-develop.20250513184359"
156
156
  },
157
157
  "peerDependencies": {
158
158
  "@react-spring/web": "^9.7.5",