@shware/workflow-ui 2.2.4 → 2.2.5
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 +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/postgres.d.mts +1 -1
- package/dist/postgres.mjs +1 -1
- package/package.json +12 -12
- package/src/app/integrations/toast/toast-provider.tsx +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { ConfigCompileError, checkInFlight, compileConfig, describeInFlight, isConfig, isDiscordTemplate, isEmailTemplate, isPushTemplate, isSlackTemplate, pinnedWorkflows } from "@shware/workflow";
|
|
3
|
-
import { renderDrizzleSchema } from "@shware/workflow/store";
|
|
4
2
|
import { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, realpathSync, writeFileSync } from "node:fs";
|
|
5
3
|
import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
4
|
+
import { ConfigCompileError, checkInFlight, compileConfig, describeInFlight, isConfig, isDiscordTemplate, isEmailTemplate, isPushTemplate, isSlackTemplate, pinnedWorkflows } from "@shware/workflow";
|
|
5
|
+
import { renderDrizzleSchema } from "@shware/workflow/store";
|
|
6
6
|
import { createServer, normalizePath, runnerImport, searchForWorkspaceRoot } from "vite";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import tailwindcss from "@tailwindcss/vite";
|
package/dist/index.d.mts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* (`workflow-ui`) composes exactly these — nothing is held back for it.
|
|
4
4
|
*/
|
|
5
5
|
import { Granularity, LinkStat, METRIC_CHANNELS, MessageStat, MetricChannel, MetricPoint, MetricsQuery, NodeStats, Profile, ProfilePage, ProfileQuery, ResolvedStudioConfig, SegmentReport, StatsRange, StatsSource, StudioError, WorkflowReport, defineStats } from "./config.mjs";
|
|
6
|
-
import { LucideIcon } from "lucide-react";
|
|
7
6
|
import { CSSProperties, ComponentProps, ReactNode } from "react";
|
|
8
7
|
import { DiscordTemplate, EmailConfig, EmailTemplate, PushTemplate, SlackTemplate, TemplateIssue, WorkflowIR } from "@shware/workflow";
|
|
8
|
+
import { LucideIcon } from "lucide-react";
|
|
9
9
|
/**
|
|
10
10
|
* Ported from the design system in the template project — same API, so the two
|
|
11
11
|
* stay diffable. Colours resolve through the studio's CSS variables
|
package/dist/postgres.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StatsSource } from "./config.mjs";
|
|
2
1
|
import { JourneyConfig } from "@shware/workflow";
|
|
2
|
+
import { StatsSource } from "./config.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* `@shware/workflow-ui/postgres` — the Studio's numbers read straight from the reporting a
|
|
5
5
|
* journeyWorker on Postgres keeps (the engine's schema, `database.schema` in the config). The
|
package/dist/postgres.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineStats } from "./config.mjs";
|
|
2
1
|
import { resolveRuntime } from "@shware/workflow";
|
|
3
2
|
import { DEFAULT_SCHEMA } from "@shware/workflow/store";
|
|
4
3
|
import postgres from "postgres";
|
|
4
|
+
import { defineStats } from "./config.mjs";
|
|
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);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shware/workflow-ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/ShwareHQ/shware-sdk.git"
|
|
@@ -40,28 +40,28 @@
|
|
|
40
40
|
"@floating-ui/react": "^0.27.20",
|
|
41
41
|
"@fontsource-variable/inter": "^5.3.0",
|
|
42
42
|
"@react-email/render": "^2.3.1",
|
|
43
|
-
"@shware/workflow": "12.0.
|
|
43
|
+
"@shware/workflow": "12.0.3",
|
|
44
44
|
"@tailwindcss/vite": "^4.3.5",
|
|
45
|
-
"@tanstack/react-query": "^5.
|
|
45
|
+
"@tanstack/react-query": "^5.108.3",
|
|
46
46
|
"@tanstack/react-router": "^1.170.46",
|
|
47
47
|
"@vitejs/plugin-react": "^6.3.0",
|
|
48
|
-
"@xyflow/react": "^13.0.
|
|
48
|
+
"@xyflow/react": "^13.0.2",
|
|
49
49
|
"clsx": "^2.1.1",
|
|
50
|
-
"i18next": "^27.
|
|
51
|
-
"i18next-browser-languagedetector": "^8.3.
|
|
52
|
-
"lucide-react": "^1.
|
|
53
|
-
"react-i18next": "^18.0.
|
|
50
|
+
"i18next": "^27.2.4",
|
|
51
|
+
"i18next-browser-languagedetector": "^8.3.1",
|
|
52
|
+
"lucide-react": "^1.78.0",
|
|
53
|
+
"react-i18next": "^18.0.3",
|
|
54
54
|
"sonner": "^2.0.8",
|
|
55
|
-
"tailwind-merge": "^3.7.
|
|
55
|
+
"tailwind-merge": "^3.7.1",
|
|
56
56
|
"tailwindcss": "^4.3.5",
|
|
57
57
|
"vite": "^8.3.8",
|
|
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.
|
|
62
|
+
"@tanstack/react-query-devtools": "^5.108.3",
|
|
63
63
|
"@testing-library/react": "^16.3.3",
|
|
64
|
-
"@testing-library/user-event": "^14.6.
|
|
64
|
+
"@testing-library/user-event": "^14.6.13",
|
|
65
65
|
"@types/node": "^26.6.6",
|
|
66
66
|
"@types/react": "^19.3.0",
|
|
67
67
|
"@types/react-dom": "^19.3.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"react": "^19.3.1",
|
|
72
72
|
"react-dom": "^19.3.1",
|
|
73
73
|
"typescript": "^7.0.2",
|
|
74
|
-
"vitest": "^5.1.
|
|
74
|
+
"vitest": "^5.1.1",
|
|
75
75
|
"zod": "^4.6.7"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
@@ -26,7 +26,7 @@ export function ToastProvider() {
|
|
|
26
26
|
closeButton: false,
|
|
27
27
|
// Long enough to read without racing the close button
|
|
28
28
|
duration: 5000,
|
|
29
|
-
style: { cornerShape: 'superellipse(1.2)' }
|
|
29
|
+
style: { cornerShape: 'superellipse(1.2)' },
|
|
30
30
|
classNames: {
|
|
31
31
|
toast: clsx(
|
|
32
32
|
'flex w-90 items-center gap-x-2 font-sans',
|