@shware/workflow-ui 2.1.2 → 2.1.4

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,5 @@
1
1
  import { StatsSource } from "./config.mjs";
2
2
  import { JourneyConfig } from "@shware/workflow";
3
- //#region src/postgres.d.ts
4
3
  /**
5
4
  * `@shware/workflow-ui/postgres` — the Studio's numbers read straight from the reporting a
6
5
  * journeyWorker on Postgres keeps (the engine's schema, `database.schema` in the config). The
@@ -41,5 +40,4 @@ export interface PostgresStatsOptions {
41
40
  */
42
41
  export declare function statsTimeScale(config: JourneyConfig, environment?: string): number;
43
42
  export declare function postgresStats(options: PostgresStatsOptions): StatsSource;
44
- //#endregion
45
43
  //# sourceMappingURL=postgres.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postgres.d.mts","names":[],"sources":["../src/postgres.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBA+BiB;;EAEf,QAAQ;EACR;;;;;;;EAOA;;EAEA;;;;;;;wBA6Bc,eAAe,QAAQ,eAAe;wBAItC,cAAc,SAAS,uBAAuB"}
1
+ {"version":3,"file":"postgres.d.mts","names":[],"sources":["../src/postgres.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;iBA+BiB;;EAEf,QAAQ;EACR;;;;;;;EAOA;;EAEA;;;;;;;wBA6Bc,eAAe,QAAQ,eAAe;wBAItC,cAAc,SAAS,uBAAuB"}
package/dist/postgres.mjs CHANGED
@@ -2,7 +2,7 @@ import { defineStats } from "./config.mjs";
2
2
  import { resolveRuntime } from "@shware/workflow";
3
3
  import { DEFAULT_SCHEMA } from "@shware/workflow/store";
4
4
  import postgres from "postgres";
5
- //#region src/postgres.ts
5
+ // src/postgres.ts
6
6
  /** A calendar day `count` days from a `YYYY-MM-DD` one: plain date math, no zone in it. */
7
7
  const addDays = (day, count) => new Date(Date.parse(`${day}T00:00:00Z`) + count * 864e5).toISOString().slice(0, 10);
8
8
  /**
@@ -315,7 +315,6 @@ function postgresStats(options) {
315
315
  }
316
316
  });
317
317
  }
318
- //#endregion
319
318
  export { postgresStats, statsTimeScale };
320
319
 
321
320
  //# sourceMappingURL=postgres.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shware/workflow-ui",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ShwareHQ/shware-sdk.git"
@@ -40,26 +40,26 @@
40
40
  "@floating-ui/react": "^0.27.20",
41
41
  "@fontsource-variable/inter": "^5.3.0",
42
42
  "@react-email/render": "^2.1.1",
43
- "@shware/workflow": "4.1.1",
43
+ "@shware/workflow": "5.0.1",
44
44
  "@tailwindcss/vite": "^4.3.3",
45
- "@tanstack/react-query": "^5.104.3",
46
- "@tanstack/react-router": "^1.170.45",
45
+ "@tanstack/react-query": "^5.104.5",
46
+ "@tanstack/react-router": "^1.170.46",
47
47
  "@vitejs/plugin-react": "^6.1.2",
48
48
  "@xyflow/react": "^12.12.0",
49
49
  "clsx": "^2.1.1",
50
- "i18next": "^26.4.7",
51
- "i18next-browser-languagedetector": "^8.2.1",
52
- "lucide-react": "^1.59.0",
53
- "react-i18next": "^17.0.20",
50
+ "i18next": "^26.5.10",
51
+ "i18next-browser-languagedetector": "^8.2.2",
52
+ "lucide-react": "^1.61.0",
53
+ "react-i18next": "^17.1.8",
54
54
  "sonner": "^2.0.8",
55
55
  "tailwind-merge": "^3.7.0",
56
56
  "tailwindcss": "^4.3.3",
57
- "vite": "^8.3.4",
57
+ "vite": "^8.3.5",
58
58
  "vite-plugin-svgr": "^5.2.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@repo/typescript-config": "0.0.0",
62
- "@tanstack/react-query-devtools": "^5.104.3",
62
+ "@tanstack/react-query-devtools": "^5.104.5",
63
63
  "@testing-library/react": "^16.3.3",
64
64
  "@testing-library/user-event": "^14.6.8",
65
65
  "@types/node": "^26.6.5",