@hortiview/modulebase 1.0.1 → 1.0.2

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.
@@ -1,6 +1,6 @@
1
1
  import * as o from "react";
2
- import { g as l } from "./mutation-BIuQs3WB.js";
3
- import { S as d, s as m, h as a, n as h, u as p, a as b, b as v } from "./QueryClientProvider-CTj9TWgb.js";
2
+ import { g as l } from "./mutation-DztCHC7y.js";
3
+ import { S as d, s as m, h as a, n as h, u as p, a as b, b as v } from "./QueryClientProvider-Bak-4BVu.js";
4
4
  var f = class extends d {
5
5
  #s;
6
6
  #i = void 0;
@@ -1,5 +1,5 @@
1
- import { S as q, p as L, d as u, s as M, f as y, a as Q, j as _, k as j, t as K, l as w, m as $, r as B, n as W, b as z, u as G } from "./QueryClientProvider-CTj9TWgb.js";
2
- import { f as J, u as X } from "./IsRestoringProvider-D5gAh2bq.js";
1
+ import { S as q, p as L, i as u, s as M, k as y, a as Q, m as _, o as B, t as K, q as w, v as $, r as j, n as W, b as z, u as G } from "./QueryClientProvider-Bak-4BVu.js";
2
+ import { f as J, u as X } from "./IsRestoringProvider-BfrdLTDw.js";
3
3
  import * as m from "react";
4
4
  import "react/jsx-runtime";
5
5
  var Y = class extends q {
@@ -121,7 +121,7 @@ var Y = class extends q {
121
121
  this.options.staleTime,
122
122
  this.#t
123
123
  );
124
- if (_.isServer() || this.#e.isStale || !j(t))
124
+ if (_.isServer() || this.#e.isStale || !B(t))
125
125
  return;
126
126
  const s = K(this.#e.dataUpdatedAt, t) + 1;
127
127
  this.#o = w.setTimeout(() => {
@@ -132,7 +132,7 @@ var Y = class extends q {
132
132
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
133
133
  }
134
134
  #g(t) {
135
- this.#S(), this.#n = t, !(_.isServer() || u(this.options.enabled, this.#t) === !1 || !j(this.#n) || this.#n === 0) && (this.#h = w.setInterval(() => {
135
+ this.#S(), this.#n = t, !(_.isServer() || u(this.options.enabled, this.#t) === !1 || !B(this.#n) || this.#n === 0) && (this.#h = w.setInterval(() => {
136
136
  (this.options.refetchIntervalInBackground || $.isFocused()) && this.#c();
137
137
  }, this.#n));
138
138
  }
@@ -163,7 +163,7 @@ var Y = class extends q {
163
163
  i?.isPlaceholderData && e.placeholderData === n?.placeholderData ? (c = i.data, D = !0) : c = typeof e.placeholderData == "function" ? e.placeholderData(
164
164
  this.#d?.state.data,
165
165
  this.#d
166
- ) : e.placeholderData, c !== void 0 && (p = "success", o = B(
166
+ ) : e.placeholderData, c !== void 0 && (p = "success", o = j(
167
167
  i?.data,
168
168
  c,
169
169
  e
@@ -174,7 +174,7 @@ var Y = class extends q {
174
174
  o = this.#l;
175
175
  else
176
176
  try {
177
- this.#m = e.select, o = e.select(o), o = B(i?.data, o, e), this.#l = o, this.#i = null;
177
+ this.#m = e.select, o = e.select(o), o = j(i?.data, o, e), this.#l = o, this.#i = null;
178
178
  } catch (c) {
179
179
  this.#i = c;
180
180
  }
@@ -25,7 +25,7 @@ const g = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([
25
25
  }, E = (r, e) => {
26
26
  const t = c(r), n = c(e), o = t.pop(), i = n.pop(), s = p(t, n);
27
27
  return s !== 0 ? s : o && i ? p(o.split("."), i.split(".")) : o || i ? o ? -1 : 1 : 0;
28
- }, d = "1.0.0", w = (r) => m.every((e) => y(e, r)), y = (r, e) => {
28
+ }, d = "1.0.1", w = (r) => m.every((e) => y(e, r)), y = (r, e) => {
29
29
  if (!e[r]) {
30
30
  if (e.throwError)
31
31
  return e.throwError(`Missing required prop: ${r}`, 404), !1;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hortiview/modulebase",
3
3
  "description": "This is a base module for hortiview",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "type": "module",
6
6
  "author": "Falk Menge <falk.menge.ext@bayer.com>",
7
7
  "contributors": [
@@ -26,11 +26,11 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@hortiview/default-components": "^1.5.3",
29
- "@hortiview/shared-components": "^2.23.4",
29
+ "@hortiview/shared-components": "^2.24.0",
30
30
  "@microsoft/signalr": "^8.0.17",
31
- "@tanstack/query-async-storage-persister": "^5.100.1",
32
- "@tanstack/react-query": "^5.100.1",
33
- "@tanstack/react-query-persist-client": "^5.100.1",
31
+ "@tanstack/query-async-storage-persister": "^5.100.9",
32
+ "@tanstack/react-query": "^5.100.9",
33
+ "@tanstack/react-query-persist-client": "^5.100.9",
34
34
  "compare-versions": "^6.1.1",
35
35
  "idb-keyval": "^6.2.2",
36
36
  "lodash": "^4.18.1",
@@ -38,9 +38,6 @@
38
38
  "react-dom": "^18.3.1",
39
39
  "react-router": "^7.14.2",
40
40
  "react-signalr": "^0.2.24",
41
- "socket.io-client": "^4.8.3",
42
- "vite-plugin-dts": "^4.5.4",
43
- "vite-plugin-lib-inject-css": "^2.2.2",
44
41
  "zustand": "^5.0.12"
45
42
  },
46
43
  "devDependencies": {
@@ -54,13 +51,15 @@
54
51
  "@types/react-dom": "^18.3.7",
55
52
  "@vitejs/plugin-react": "^5.2.0",
56
53
  "conventional-changelog-conventionalcommits": "^9.3.1",
57
- "eslint": "^10.2.1",
54
+ "eslint": "^10.3.0",
58
55
  "eslint-plugin-react-hooks": "^7.1.1",
59
56
  "eslint-plugin-react-refresh": "^0.5.2",
60
57
  "glob": "^13.0.6",
61
- "globals": "^17.5.0",
58
+ "globals": "^17.6.0",
62
59
  "typescript": "~5.9.3",
63
- "typescript-eslint": "^8.59.0",
64
- "vite": "^7.3.2"
60
+ "typescript-eslint": "^8.59.2",
61
+ "vite": "^7.3.2",
62
+ "vite-plugin-dts": "^5.0.0",
63
+ "vite-plugin-lib-inject-css": "^2.2.2"
65
64
  }
66
65
  }