@dxs-ts/eveli-ide 0.0.80 → 0.0.82

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.
package/build/index.d.ts CHANGED
@@ -985,6 +985,108 @@ declare module '@mui/material/styles' {
985
985
  }
986
986
 
987
987
 
988
+ declare namespace WrenchComposerApi {
989
+ interface Nav {
990
+ value?: string | null;
991
+ }
992
+ interface TabData {
993
+ nav?: Nav;
994
+ withNav(nav: Nav): TabData;
995
+ }
996
+ interface Tab extends BurgerApi.TabSession<TabData> {
997
+ }
998
+ interface DebugSession {
999
+ error?: HdesApi.StoreError;
1000
+ debug?: HdesApi.DebugResponse;
1001
+ csv?: string;
1002
+ json?: string;
1003
+ selected: HdesApi.EntityId;
1004
+ inputType: DebugInputType;
1005
+ }
1006
+ type DebugInputType = "CSV" | "JSON";
1007
+ interface DebugSessions {
1008
+ selected?: HdesApi.EntityId;
1009
+ values: Record<HdesApi.EntityId, DebugSession>;
1010
+ }
1011
+ interface PageUpdate {
1012
+ saved: boolean;
1013
+ origin: HdesApi.Entity<any>;
1014
+ value: HdesApi.AstCommand[];
1015
+ withValue(value: HdesApi.AstCommand[]): PageUpdate;
1016
+ }
1017
+ interface Session {
1018
+ site: HdesApi.Site;
1019
+ pages: Record<HdesApi.EntityId, PageUpdate>;
1020
+ debug: DebugSessions;
1021
+ branchName?: string;
1022
+ getDecision(decisionName: string): undefined | HdesApi.Entity<HdesApi.AstDecision>;
1023
+ getFlow(flowName: string): undefined | HdesApi.Entity<HdesApi.AstFlow>;
1024
+ getService(serviceName: string): undefined | HdesApi.Entity<HdesApi.AstService>;
1025
+ getEntity(id: HdesApi.EntityId): undefined | HdesApi.Entity<any>;
1026
+ withDebug(page: DebugSession): Session;
1027
+ withPage(page: HdesApi.EntityId): Session;
1028
+ withPageValue(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): Session;
1029
+ withoutPages(pages: HdesApi.EntityId[]): Session;
1030
+ withBranch(branchName?: string): Session;
1031
+ withSite(site: HdesApi.Site): Session;
1032
+ }
1033
+ interface Actions {
1034
+ handleLoad(): Promise<void>;
1035
+ handleLoadSite(site?: HdesApi.Site): Promise<void>;
1036
+ handleDebugUpdate(debug: DebugSession): void;
1037
+ handlePageUpdate(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): void;
1038
+ handlePageUpdateRemove(pages: HdesApi.EntityId[]): void;
1039
+ handleBranchUpdate(branchName?: string): void;
1040
+ }
1041
+ interface ContextType {
1042
+ session: Session;
1043
+ actions: Actions;
1044
+ service: HdesApi.Service;
1045
+ }
1046
+ }
1047
+
1048
+
1049
+ declare namespace WrenchComposerApi {
1050
+ class ImmutableTabData implements TabData {
1051
+ private _nav;
1052
+ constructor(props: {
1053
+ nav: Nav;
1054
+ });
1055
+ get nav(): Nav;
1056
+ withNav(nav: Nav): ImmutableTabData;
1057
+ }
1058
+ const createTab: (props: {
1059
+ nav: Nav;
1060
+ page?: HdesApi.Entity<any>;
1061
+ }) => ImmutableTabData;
1062
+ const ComposerContext: React.Context<ContextType>;
1063
+ const useUnsaved: (entity: HdesApi.Entity<any>) => boolean;
1064
+ const useComposer: () => {
1065
+ session: Session;
1066
+ service: HdesApi.Service;
1067
+ actions: Actions;
1068
+ site: HdesApi.Site;
1069
+ isArticleSaved: (entity: HdesApi.Entity<any>) => boolean;
1070
+ };
1071
+ const useSite: () => HdesApi.Site;
1072
+ const useBranchName: () => string | undefined;
1073
+ const useSession: () => Session;
1074
+ const useNav: () => {
1075
+ handleInTab: (props: {
1076
+ article: HdesApi.Entity<any>;
1077
+ }) => void;
1078
+ findTab: (article: HdesApi.Entity<any>) => Tab | undefined;
1079
+ };
1080
+ const useDebug: () => {
1081
+ handleDebugInit: (selected: HdesApi.EntityId) => void;
1082
+ };
1083
+ const Provider: React.FC<{
1084
+ children: React.ReactNode;
1085
+ service: HdesApi.Service;
1086
+ }>;
1087
+ }
1088
+
1089
+
988
1090
  declare namespace StencilComposerApi {
989
1091
  interface SearchData {
990
1092
  values: readonly SearchDataEntry[];
@@ -1142,108 +1244,6 @@ declare namespace StencilComposerApi {
1142
1244
  }>;
1143
1245
  }
1144
1246
 
1145
-
1146
- declare namespace WrenchComposerApi {
1147
- interface Nav {
1148
- value?: string | null;
1149
- }
1150
- interface TabData {
1151
- nav?: Nav;
1152
- withNav(nav: Nav): TabData;
1153
- }
1154
- interface Tab extends BurgerApi.TabSession<TabData> {
1155
- }
1156
- interface DebugSession {
1157
- error?: HdesApi.StoreError;
1158
- debug?: HdesApi.DebugResponse;
1159
- csv?: string;
1160
- json?: string;
1161
- selected: HdesApi.EntityId;
1162
- inputType: DebugInputType;
1163
- }
1164
- type DebugInputType = "CSV" | "JSON";
1165
- interface DebugSessions {
1166
- selected?: HdesApi.EntityId;
1167
- values: Record<HdesApi.EntityId, DebugSession>;
1168
- }
1169
- interface PageUpdate {
1170
- saved: boolean;
1171
- origin: HdesApi.Entity<any>;
1172
- value: HdesApi.AstCommand[];
1173
- withValue(value: HdesApi.AstCommand[]): PageUpdate;
1174
- }
1175
- interface Session {
1176
- site: HdesApi.Site;
1177
- pages: Record<HdesApi.EntityId, PageUpdate>;
1178
- debug: DebugSessions;
1179
- branchName?: string;
1180
- getDecision(decisionName: string): undefined | HdesApi.Entity<HdesApi.AstDecision>;
1181
- getFlow(flowName: string): undefined | HdesApi.Entity<HdesApi.AstFlow>;
1182
- getService(serviceName: string): undefined | HdesApi.Entity<HdesApi.AstService>;
1183
- getEntity(id: HdesApi.EntityId): undefined | HdesApi.Entity<any>;
1184
- withDebug(page: DebugSession): Session;
1185
- withPage(page: HdesApi.EntityId): Session;
1186
- withPageValue(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): Session;
1187
- withoutPages(pages: HdesApi.EntityId[]): Session;
1188
- withBranch(branchName?: string): Session;
1189
- withSite(site: HdesApi.Site): Session;
1190
- }
1191
- interface Actions {
1192
- handleLoad(): Promise<void>;
1193
- handleLoadSite(site?: HdesApi.Site): Promise<void>;
1194
- handleDebugUpdate(debug: DebugSession): void;
1195
- handlePageUpdate(page: HdesApi.EntityId, value: HdesApi.AstCommand[]): void;
1196
- handlePageUpdateRemove(pages: HdesApi.EntityId[]): void;
1197
- handleBranchUpdate(branchName?: string): void;
1198
- }
1199
- interface ContextType {
1200
- session: Session;
1201
- actions: Actions;
1202
- service: HdesApi.Service;
1203
- }
1204
- }
1205
-
1206
-
1207
- declare namespace WrenchComposerApi {
1208
- class ImmutableTabData implements TabData {
1209
- private _nav;
1210
- constructor(props: {
1211
- nav: Nav;
1212
- });
1213
- get nav(): Nav;
1214
- withNav(nav: Nav): ImmutableTabData;
1215
- }
1216
- const createTab: (props: {
1217
- nav: Nav;
1218
- page?: HdesApi.Entity<any>;
1219
- }) => ImmutableTabData;
1220
- const ComposerContext: React.Context<ContextType>;
1221
- const useUnsaved: (entity: HdesApi.Entity<any>) => boolean;
1222
- const useComposer: () => {
1223
- session: Session;
1224
- service: HdesApi.Service;
1225
- actions: Actions;
1226
- site: HdesApi.Site;
1227
- isArticleSaved: (entity: HdesApi.Entity<any>) => boolean;
1228
- };
1229
- const useSite: () => HdesApi.Site;
1230
- const useBranchName: () => string | undefined;
1231
- const useSession: () => Session;
1232
- const useNav: () => {
1233
- handleInTab: (props: {
1234
- article: HdesApi.Entity<any>;
1235
- }) => void;
1236
- findTab: (article: HdesApi.Entity<any>) => Tab | undefined;
1237
- };
1238
- const useDebug: () => {
1239
- handleDebugInit: (selected: HdesApi.EntityId) => void;
1240
- };
1241
- const Provider: React.FC<{
1242
- children: React.ReactNode;
1243
- service: HdesApi.Service;
1244
- }>;
1245
- }
1246
-
1247
1247
  declare namespace Decision {
1248
1248
  const Table: import("react").FC<{
1249
1249
  ast: import("../../client").HdesApi.AstDecision;
package/build/index.js CHANGED
@@ -48110,7 +48110,7 @@ const zX = ({ site: e }) => {
48110
48110
  ] })
48111
48111
  }
48112
48112
  );
48113
- }, uc = { tag: "eveli-ide-0.0.80", built: "30/12/2024" }, GX = (e, t, n) => {
48113
+ }, uc = { tag: "eveli-ide-0.0.82", built: "06/01/2025" }, GX = (e, t, n) => {
48114
48114
  var i, r, s, o, l, a, u, d;
48115
48115
  return [
48116
48116
  {
@@ -81945,7 +81945,7 @@ const Nne = () => {
81945
81945
  // array of data
81946
81946
  page: C.pageable.pageNumber,
81947
81947
  // current page we are on, starts with 0 = first page
81948
- totalCount: C.numberOfElements
81948
+ totalCount: C.totalElements
81949
81949
  // total entries on all the pages combined
81950
81950
  }));
81951
81951
  }, v = () => r.cFetch(`${s}worker/rest/api/tasks/unread`).then((E) => E.json()).then((E) => E);
@@ -84754,16 +84754,16 @@ const cre = ({ taskId: e, onComplete: t }) => {
84754
84754
  }, lM = (e) => {
84755
84755
  const { getOneFeedback: t, isTaskFeedbackEnabled: n } = bp(), [i, r] = ae.useState(), [s, o] = ae.useState();
84756
84756
  ae.useEffect(() => {
84757
- n(e.taskId).then((d) => {
84757
+ o(void 0), n(e.taskId).then((d) => {
84758
84758
  d && t(e.taskId).then(r), o(d);
84759
84759
  });
84760
- }, [e.taskId]);
84760
+ }, [e.taskId, e.reload]);
84761
84761
  function l(d) {
84762
84762
  t(e.taskId).then((p) => {
84763
84763
  r(p), e.onComplete(d);
84764
84764
  });
84765
84765
  }
84766
- const a = { ...e, onComplete: l, enabled: s }, u = !!i;
84766
+ const a = { ...e, onComplete: l, enabled: s, version: e.reload }, u = !!i;
84767
84767
  return a.enabled === void 0 ? /* @__PURE__ */ y(Be, { children: "...loading" }) : a.enabled === !1 ? /* @__PURE__ */ y(ge, { id: "feedback.notenabled" }) : u ? /* @__PURE__ */ y(hre, { ...a }) : /* @__PURE__ */ y(cre, { ...a });
84768
84768
  };
84769
84769
  class tc {
@@ -84922,12 +84922,12 @@ const pre = () => {
84922
84922
  console.log("taskId loaded", e);
84923
84923
  }, [e]), /* @__PURE__ */ y(W3, { children: /* @__PURE__ */ Q(Rn, { element: /* @__PURE__ */ y(mre, {}), children: [
84924
84924
  /* @__PURE__ */ y(Rn, { path: "/feedback", element: /* @__PURE__ */ y(pre, {}) }),
84925
- /* @__PURE__ */ y(Rn, { path: "/feedback/:taskId", element: /* @__PURE__ */ y(lM, { taskId: e, onComplete: t }) })
84925
+ /* @__PURE__ */ y(Rn, { path: "/feedback/:taskId", element: /* @__PURE__ */ y(lM, { taskId: e, onComplete: t, reload: 0 }) })
84926
84926
  ] }) });
84927
- }, bre = ({ taskId: e }) => {
84928
- function t() {
84927
+ }, bre = ({ taskId: e, reload: t }) => {
84928
+ function n() {
84929
84929
  }
84930
- return /* @__PURE__ */ y(lM, { taskId: e, onComplete: t });
84930
+ return /* @__PURE__ */ y(lM, { taskId: e, onComplete: n, reload: t ?? 0 });
84931
84931
  }, yre = ({ editTask: e, readonly: t }) => {
84932
84932
  const n = e.id, i = zL(), [r, s] = un([]);
84933
84933
  return Mn(() => {
@@ -85285,7 +85285,7 @@ class wre extends ae.Component {
85285
85285
  ]
85286
85286
  }
85287
85287
  ),
85288
- /* @__PURE__ */ y(Jf, { sx: Ei.accordionDetails, children: /* @__PURE__ */ y(bre, { taskId: n.id + "" }) })
85288
+ /* @__PURE__ */ y(Jf, { sx: Ei.accordionDetails, children: /* @__PURE__ */ y(bre, { taskId: n.id + "", reload: o == null ? void 0 : o.length }) })
85289
85289
  ] }) : /* @__PURE__ */ y(Yf, { id: "task.comments.external.createTask" }) }),
85290
85290
  /* @__PURE__ */ y(ct, { size: { xs: 12 }, children: n.id ? /* @__PURE__ */ y(yre, { readonly: u, editTask: n }) : /* @__PURE__ */ y(Yf, { id: "task.attachments.createTask" }) }),
85291
85291
  /* @__PURE__ */ y(ct, { size: { xs: 12 }, children: n.id ? /* @__PURE__ */ Q(Xf, { children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxs-ts/eveli-ide",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
4
4
  "homepage": "https://github.com/digiexpress-io/digiexpress-parent",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",