@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.
- package/dist/cli.mjs +4 -8
- package/dist/cli.mjs.map +1 -1
- package/dist/config.d.mts +0 -2
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +1 -2
- package/dist/index.d.mts +0 -28
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +26 -52
- package/dist/index.mjs.map +1 -1
- package/dist/postgres.d.mts +0 -2
- package/dist/postgres.d.mts.map +1 -1
- package/dist/postgres.mjs +1 -2
- package/package.json +10 -10
package/dist/postgres.d.mts
CHANGED
|
@@ -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
|
package/dist/postgres.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres.d.mts","names":[],"sources":["../src/postgres.ts"],"mappings":"
|
|
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
|
-
|
|
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.
|
|
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": "
|
|
43
|
+
"@shware/workflow": "5.0.1",
|
|
44
44
|
"@tailwindcss/vite": "^4.3.3",
|
|
45
|
-
"@tanstack/react-query": "^5.104.
|
|
46
|
-
"@tanstack/react-router": "^1.170.
|
|
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.
|
|
51
|
-
"i18next-browser-languagedetector": "^8.2.
|
|
52
|
-
"lucide-react": "^1.
|
|
53
|
-
"react-i18next": "^17.
|
|
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.
|
|
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.
|
|
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",
|