@cosmicdrift/kumiko-bundled-features 0.398.0 → 0.399.0
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/billing-foundation/consumer-protection/consent-text.js +4 -4
- package/dist/channel-in-app/constants.js +4 -9
- package/dist/channel-in-app/feature.js +1 -1
- package/dist/channel-in-app/handlers/inbox.query.d.ts +4 -1
- package/dist/channel-in-app/handlers/inbox.query.js +23 -8
- package/dist/channel-in-app/handlers/unread-count.query.js +2 -9
- package/dist/channel-in-app/in-app-channel.js +23 -11
- package/dist/channel-in-app/in-app-target.d.ts +5 -0
- package/dist/channel-in-app/in-app-target.js +34 -0
- package/dist/channel-in-app/index.d.ts +1 -0
- package/dist/channel-in-app/index.js +1 -0
- package/dist/metrics/compute.d.ts +3 -0
- package/dist/metrics/compute.js +10 -3
- package/dist/metrics/feature.js +6 -2
- package/dist/metrics/types.d.ts +5 -1
- package/dist/metrics/validate.js +3 -0
- package/package.json +11 -11
- package/src/billing-foundation/changes.json +6 -0
- package/src/channel-in-app/changes.json +6 -0
- package/src/metrics/changes.json +6 -0
|
@@ -17,12 +17,12 @@ export const CONSENT_TEXTS = {
|
|
|
17
17
|
};
|
|
18
18
|
const DOCUMENTS_ACKNOWLEDGEMENT_TEXTS = {
|
|
19
19
|
de: {
|
|
20
|
-
withRefund: "Ich habe die AGB
|
|
21
|
-
withoutRefund: "Ich habe die AGB
|
|
20
|
+
withRefund: "Ich habe die AGB und die Erstattungsrichtlinie gelesen und bin mit ihnen einverstanden.",
|
|
21
|
+
withoutRefund: "Ich habe die AGB gelesen und bin mit ihnen einverstanden.",
|
|
22
22
|
},
|
|
23
23
|
en: {
|
|
24
|
-
withRefund: "I have read
|
|
25
|
-
withoutRefund: "I have read
|
|
24
|
+
withRefund: "I have read and agree to the Terms and the Refund Policy.",
|
|
25
|
+
withoutRefund: "I have read and agree to the Terms.",
|
|
26
26
|
},
|
|
27
27
|
};
|
|
28
28
|
export function legalLinksPerLocale(legalLinks) {
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
export const InAppQueries = {
|
|
7
|
-
inbox: "channel-in-app:query:inbox",
|
|
8
|
-
unreadCount: "channel-in-app:query:unread-count",
|
|
9
|
-
};
|
|
1
|
+
import { IN_APP_NOTIFICATION_FEATURE, IN_APP_NOTIFICATION_QUERIES, IN_APP_NOTIFICATION_WRITES, } from "@cosmicdrift/kumiko-types/in-app-notification-types";
|
|
2
|
+
export const CHANNEL_IN_APP_FEATURE = IN_APP_NOTIFICATION_FEATURE;
|
|
3
|
+
export const InAppHandlers = IN_APP_NOTIFICATION_WRITES;
|
|
4
|
+
export const InAppQueries = IN_APP_NOTIFICATION_QUERIES;
|
|
@@ -8,7 +8,7 @@ import { inAppChannel } from "./in-app-channel.js";
|
|
|
8
8
|
import { inAppMessagesTableMeta } from "./tables.js";
|
|
9
9
|
export function createChannelInAppFeature() {
|
|
10
10
|
return defineFeature("channel-in-app", (r) => {
|
|
11
|
-
r.describe("Persists notifications to an in-app inbox table so users can
|
|
11
|
+
r.describe("Persists notifications to an in-app inbox table so users can page through them via `queries.inbox` (cursor, total, parsed `target`) and track unread state with `handlers.markRead` / `handlers.markAllRead` and `queries.unreadCount`. A notification links to a screen when `data.target` is set with `inAppTarget(screenId, entityId?)`. The renderer shell shows a bell with a live unread badge whenever this feature is mounted. Requires `delivery`; no external service needed \u2014 messages are stored in the app's own database.");
|
|
12
12
|
r.uiHints({
|
|
13
13
|
displayLabel: "In-App Inbox",
|
|
14
14
|
category: "notifications",
|
|
@@ -2,6 +2,9 @@ import * as z from "zod";
|
|
|
2
2
|
export declare const inboxQuery: import("@cosmicdrift/kumiko-types/define-handler").QueryHandlerDefinition<"inbox", z.ZodObject<{
|
|
3
3
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
4
4
|
unreadOnly: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
5
6
|
}, z.core.$strip>, {
|
|
6
|
-
rows:
|
|
7
|
+
rows: any[];
|
|
8
|
+
nextCursor: string | null;
|
|
9
|
+
total: number;
|
|
7
10
|
}, import("@cosmicdrift/kumiko-types/event-type-map").KumikoEventTypeMap>;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { selectMany } from "@cosmicdrift/kumiko-framework/db";
|
|
2
2
|
import { defineQueryHandler } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
3
|
import * as z from "zod";
|
|
4
|
+
import { parseStoredNotificationData, targetOfNotificationData } from "../in-app-target.js";
|
|
4
5
|
import { inAppMessagesTable } from "../tables.js";
|
|
6
|
+
const SERIAL_ID_PATTERN = /^\d{1,15}$/;
|
|
5
7
|
export const inboxQuery = defineQueryHandler({
|
|
6
8
|
name: "inbox",
|
|
7
9
|
schema: z.object({
|
|
8
10
|
limit: z.number().min(1).max(100).default(50),
|
|
9
11
|
unreadOnly: z.boolean().default(false),
|
|
12
|
+
cursor: z.string().regex(SERIAL_ID_PATTERN).optional(),
|
|
10
13
|
}),
|
|
11
14
|
access: {
|
|
12
15
|
openToAll: {
|
|
@@ -14,15 +17,27 @@ export const inboxQuery = defineQueryHandler({
|
|
|
14
17
|
"inAppMessagesTable by the caller's own id",
|
|
15
18
|
},
|
|
16
19
|
},
|
|
17
|
-
description: "Lists the calling user's own in-app notification messages newest-first, optionally only the unread ones;
|
|
20
|
+
description: "Lists the calling user's own in-app notification messages newest-first with a parsed navigation target, optionally only the unread ones. Pass the returned nextCursor as cursor for the next page; total counts all matching messages, not just the page. Use it to show or inspect a user's notification inbox.",
|
|
18
21
|
handler: async (query, ctx) => {
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
const { limit, unreadOnly, cursor } = query.payload;
|
|
23
|
+
const ownMessages = { userId: query.user.id };
|
|
24
|
+
if (unreadOnly)
|
|
25
|
+
ownMessages["isRead"] = false;
|
|
26
|
+
const pageWhere = cursor === undefined ? ownMessages : { ...ownMessages, id: { lt: Number(cursor) } };
|
|
27
|
+
// One extra row tells whether another page exists without a second query.
|
|
28
|
+
const fetched = await selectMany(ctx.db, inAppMessagesTable, pageWhere, {
|
|
29
|
+
limit: limit + 1,
|
|
30
|
+
orderBy: { col: "id", direction: "desc" },
|
|
25
31
|
});
|
|
26
|
-
|
|
32
|
+
const page = fetched.slice(0, limit);
|
|
33
|
+
const lastRow = page[page.length - 1];
|
|
34
|
+
const nextCursor = fetched.length > limit && lastRow ? String(lastRow["id"]) : null;
|
|
35
|
+
const [totalRow] = await ctx.db.aggregate(inAppMessagesTable, { measure: { fn: "count" } }, ownMessages);
|
|
36
|
+
const rows = page.map((row) => {
|
|
37
|
+
const storedData = row["data"];
|
|
38
|
+
const data = parseStoredNotificationData(typeof storedData === "string" ? storedData : null);
|
|
39
|
+
return { ...row, target: targetOfNotificationData(data) };
|
|
40
|
+
});
|
|
41
|
+
return { rows, nextCursor, total: totalRow?.value ?? 0 };
|
|
27
42
|
},
|
|
28
43
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { selectMany } from "@cosmicdrift/kumiko-framework/db";
|
|
2
1
|
import { defineQueryHandler } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
2
|
import * as z from "zod";
|
|
4
3
|
import { inAppMessagesTable } from "../tables.js";
|
|
@@ -13,13 +12,7 @@ export const unreadCountQuery = defineQueryHandler({
|
|
|
13
12
|
},
|
|
14
13
|
description: "Counts the calling user's unread in-app notification messages; use it for an inbox badge or to check whether a user has pending notifications.",
|
|
15
14
|
handler: async (query, ctx) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
// user-scoped, with at most a few hundred rows; use raw .unsafe() with COUNT(*) if that grows.
|
|
19
|
-
const rows = await selectMany(ctx.db, inAppMessagesTable, {
|
|
20
|
-
userId: query.user.id,
|
|
21
|
-
isRead: false,
|
|
22
|
-
});
|
|
23
|
-
return { count: rows.length };
|
|
15
|
+
const [countRow] = await ctx.db.aggregate(inAppMessagesTable, { measure: { fn: "count" } }, { userId: query.user.id, isRead: false });
|
|
16
|
+
return { count: countRow?.value ?? 0 };
|
|
24
17
|
},
|
|
25
18
|
});
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { tenantChannel } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
|
+
import { createFallbackLogger } from "@cosmicdrift/kumiko-framework/logging";
|
|
3
|
+
import { IN_APP_NOTIFICATION_DELIVERED_EVENT } from "@cosmicdrift/kumiko-types/in-app-notification-types";
|
|
4
|
+
import { targetOfNotificationData } from "./in-app-target.js";
|
|
2
5
|
import { inAppMessagesTable } from "./tables.js";
|
|
6
|
+
const log = createFallbackLogger("channel-in-app");
|
|
3
7
|
export const inAppChannel = {
|
|
4
8
|
name: "inApp",
|
|
5
9
|
mode: "inline",
|
|
@@ -10,24 +14,32 @@ export const inAppChannel = {
|
|
|
10
14
|
async send(address, message, ctx) {
|
|
11
15
|
// address is the user-id string after the ES migration — keep it as-is.
|
|
12
16
|
const userId = address;
|
|
17
|
+
// A malformed target drops only the link, never the notification.
|
|
18
|
+
const target = targetOfNotificationData(message.data);
|
|
19
|
+
const storedData = message.data === undefined
|
|
20
|
+
? null
|
|
21
|
+
: JSON.stringify({ ...message.data, target: target ?? undefined });
|
|
13
22
|
const row = await ctx.db.insertOne(inAppMessagesTable, {
|
|
14
23
|
userId,
|
|
15
24
|
notificationType: message.notificationType,
|
|
16
25
|
title: message.title,
|
|
17
26
|
body: message.body ?? null,
|
|
18
|
-
data:
|
|
27
|
+
data: storedData,
|
|
19
28
|
});
|
|
20
29
|
if (ctx.sseBroker) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
notificationType: message.notificationType,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
// The row is stored, so a failing push (e.g. Redis down) must not turn the delivery into
|
|
31
|
+
// a failure that gets retried and stored twice. Clients fetch the inbox on reconnect.
|
|
32
|
+
try {
|
|
33
|
+
await ctx.sseBroker.pushToChannel(tenantChannel(ctx.tenantId), {
|
|
34
|
+
type: IN_APP_NOTIFICATION_DELIVERED_EVENT,
|
|
35
|
+
data: { id: row?.id, userId, notificationType: message.notificationType },
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
log.warn("in-app SSE push failed; the notification is stored", {
|
|
40
|
+
error: error instanceof Error ? error.message : String(error),
|
|
41
|
+
});
|
|
42
|
+
}
|
|
31
43
|
}
|
|
32
44
|
return { status: "sent", address };
|
|
33
45
|
},
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InAppNotificationTarget } from "@cosmicdrift/kumiko-types/in-app-notification-types";
|
|
2
|
+
export declare function inAppTarget(screenId: string, entityId?: string): InAppNotificationTarget;
|
|
3
|
+
export declare function parseInAppTarget(value: unknown): InAppNotificationTarget | null;
|
|
4
|
+
export declare function targetOfNotificationData(data: unknown): InAppNotificationTarget | null;
|
|
5
|
+
export declare function parseStoredNotificationData(stored: string | null): unknown;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
const SCREEN_ID_PATTERN = /^[^\s:]+:screen:[^\s:]+$/;
|
|
3
|
+
const targetSchema = z.object({
|
|
4
|
+
screenId: z.string().regex(SCREEN_ID_PATTERN),
|
|
5
|
+
entityId: z.string().min(1).optional(),
|
|
6
|
+
});
|
|
7
|
+
export function inAppTarget(screenId, entityId) {
|
|
8
|
+
return entityId === undefined ? { screenId } : { screenId, entityId };
|
|
9
|
+
}
|
|
10
|
+
// Returns null for anything that is not a well-formed target, so a malformed `data.target`
|
|
11
|
+
// drops only the link and never the notification.
|
|
12
|
+
export function parseInAppTarget(value) {
|
|
13
|
+
const parsed = targetSchema.safeParse(value);
|
|
14
|
+
if (!parsed.success)
|
|
15
|
+
return null;
|
|
16
|
+
const { screenId, entityId } = parsed.data;
|
|
17
|
+
return inAppTarget(screenId, entityId);
|
|
18
|
+
}
|
|
19
|
+
// Reads `target` out of the stored notification data (a JSON string) or out of a raw data object.
|
|
20
|
+
export function targetOfNotificationData(data) {
|
|
21
|
+
if (typeof data !== "object" || data === null || !("target" in data))
|
|
22
|
+
return null;
|
|
23
|
+
return parseInAppTarget(data.target);
|
|
24
|
+
}
|
|
25
|
+
export function parseStoredNotificationData(stored) {
|
|
26
|
+
if (stored === null)
|
|
27
|
+
return null;
|
|
28
|
+
try {
|
|
29
|
+
return JSON.parse(stored);
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { CHANNEL_IN_APP_FEATURE, InAppHandlers, InAppQueries } from "./constants.ts";
|
|
2
2
|
export { createChannelInAppFeature } from "./feature.ts";
|
|
3
3
|
export { inAppChannel } from "./in-app-channel.ts";
|
|
4
|
+
export { inAppTarget } from "./in-app-target.ts";
|
|
4
5
|
export { inAppMessagesTable } from "./tables.ts";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { CHANNEL_IN_APP_FEATURE, InAppHandlers, InAppQueries } from "./constants.js";
|
|
2
2
|
export { createChannelInAppFeature } from "./feature.js";
|
|
3
3
|
export { inAppChannel } from "./in-app-channel.js";
|
|
4
|
+
export { inAppTarget } from "./in-app-target.js";
|
|
4
5
|
export { inAppMessagesTable } from "./tables.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { WhereObject } from "@cosmicdrift/kumiko-framework/db";
|
|
2
|
+
import type { AggregateKey } from "@cosmicdrift/kumiko-types/aggregate-types";
|
|
2
3
|
import type { Temporal } from "@cosmicdrift/kumiko-types/temporal";
|
|
3
4
|
import type { TenantDb } from "@cosmicdrift/kumiko-types/tenant-db-types";
|
|
4
5
|
import type { MetricDefinition, MetricResult } from "./types.ts";
|
|
@@ -11,5 +12,7 @@ export type MetricRunParams = {
|
|
|
11
12
|
readonly filterWhere: WhereObject;
|
|
12
13
|
/** Extra filter that narrows the source to the caller's scope. */
|
|
13
14
|
readonly scopeWhere: WhereObject;
|
|
15
|
+
/** Names for referenced-row group keys; absent where the caller cannot resolve them (system scope). */
|
|
16
|
+
readonly referenceLabels?: (keys: readonly AggregateKey[]) => Promise<ReadonlyMap<string, string>>;
|
|
14
17
|
};
|
|
15
18
|
export declare function runMetric(db: TenantDb, metric: MetricDefinition, params: MetricRunParams): Promise<MetricResult>;
|
package/dist/metrics/compute.js
CHANGED
|
@@ -75,7 +75,7 @@ function groupSegments(stackRows, labelOf) {
|
|
|
75
75
|
}
|
|
76
76
|
return segmentsByGroup;
|
|
77
77
|
}
|
|
78
|
-
function buildRows(metric, aggregates, total, labelOf) {
|
|
78
|
+
function buildRows(metric, aggregates, total, labelOf, groupLabelOf) {
|
|
79
79
|
const segmentsByGroup = groupSegments(aggregates.stacks, labelOf);
|
|
80
80
|
return aggregates.groups.map((row) => {
|
|
81
81
|
const key = keyText(row.keys[0]);
|
|
@@ -83,7 +83,7 @@ function buildRows(metric, aggregates, total, labelOf) {
|
|
|
83
83
|
return {
|
|
84
84
|
id: key,
|
|
85
85
|
key,
|
|
86
|
-
label:
|
|
86
|
+
label: groupLabelOf(key),
|
|
87
87
|
value: rowValue,
|
|
88
88
|
fraction: fractionOf(rowValue, total),
|
|
89
89
|
...(metric.stackBy !== undefined && { segments: segmentsByGroup.get(key) ?? [] }),
|
|
@@ -104,6 +104,11 @@ function buildSeries(rows, seriesRows, fillBuckets) {
|
|
|
104
104
|
points: fillBuckets(bucketsByGroup.get(row.key) ?? new Map()),
|
|
105
105
|
}));
|
|
106
106
|
}
|
|
107
|
+
async function resolveReferencedGroupLabels(metric, params, groups) {
|
|
108
|
+
if (params.referenceLabels === undefined || metric.groupBy === undefined)
|
|
109
|
+
return new Map();
|
|
110
|
+
return params.referenceLabels(groups.map((row) => row.keys[0] ?? null));
|
|
111
|
+
}
|
|
107
112
|
export async function runMetric(db, metric, params) {
|
|
108
113
|
const range = metric.window ?? params.range;
|
|
109
114
|
const bucket = resolveBucket(metric, range);
|
|
@@ -129,7 +134,9 @@ export async function runMetric(db, metric, params) {
|
|
|
129
134
|
row.value,
|
|
130
135
|
])))
|
|
131
136
|
: [];
|
|
132
|
-
const
|
|
137
|
+
const referencedLabels = await resolveReferencedGroupLabels(metric, params, aggregates.groups);
|
|
138
|
+
const groupLabelOf = (key) => metric.groupLabels?.[key] ?? referencedLabels.get(key) ?? key;
|
|
139
|
+
const rows = buildRows(metric, aggregates, value, labelOf, groupLabelOf);
|
|
133
140
|
return {
|
|
134
141
|
value,
|
|
135
142
|
previousValue,
|
package/dist/metrics/feature.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { extractTableInfo } from "@cosmicdrift/kumiko-framework/db";
|
|
2
|
+
import { access, defineFeature, defineQueryHandler, referenceGroupLabels, } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
3
|
import { InternalError, ValidationError } from "@cosmicdrift/kumiko-framework/errors";
|
|
3
4
|
import { Temporal } from "@cosmicdrift/kumiko-types/temporal";
|
|
4
5
|
import * as z from "zod";
|
|
@@ -45,7 +46,7 @@ function createTenantMetricQuery(metric, now) {
|
|
|
45
46
|
name: metric.id,
|
|
46
47
|
description: metric.description,
|
|
47
48
|
schema: tenantPayloadSchema(metric),
|
|
48
|
-
access: { roles: access.admin },
|
|
49
|
+
access: { roles: metric.access?.roles ?? access.admin },
|
|
49
50
|
handler: async (query, ctx) => runMetric(ctx.db, metric, {
|
|
50
51
|
range: query.payload.range,
|
|
51
52
|
timeZone: query.payload.timeZone,
|
|
@@ -53,6 +54,9 @@ function createTenantMetricQuery(metric, now) {
|
|
|
53
54
|
filterWhere: await resolveMetricFilterWhere(metric, query.payload, ctx),
|
|
54
55
|
// ctx.db already reads own-tenant + SYSTEM reference rows; this narrows to own-tenant only.
|
|
55
56
|
scopeWhere: { tenantId: query.user.tenantId },
|
|
57
|
+
referenceLabels: (keys) => metric.groupBy === undefined
|
|
58
|
+
? Promise.resolve(new Map())
|
|
59
|
+
: referenceGroupLabels(ctx, query.user, extractTableInfo(metric.source).name, metric.groupBy, keys, ctx.db),
|
|
56
60
|
}),
|
|
57
61
|
});
|
|
58
62
|
}
|
package/dist/metrics/types.d.ts
CHANGED
|
@@ -33,8 +33,12 @@ export type MetricDefinition = {
|
|
|
33
33
|
readonly groupBy?: string;
|
|
34
34
|
/** Second dimension, becomes `rows[].segments`; only without bucket. */
|
|
35
35
|
readonly stackBy?: string;
|
|
36
|
-
/** Key value → i18n key, applied to groupBy and stackBy keys. */
|
|
36
|
+
/** Key value → i18n key, applied to groupBy and stackBy keys. Without an entry, a groupBy that is a single reference of an entity-table source is named after the referenced row (tenant scope, through the caller's read access); otherwise the key stays. */
|
|
37
37
|
readonly groupLabels?: Readonly<Record<string, string>>;
|
|
38
|
+
/** Roles that may read the tenant query; default is the admin roles. Ignored for scope "system", which stays SystemAdmin only. */
|
|
39
|
+
readonly access?: {
|
|
40
|
+
readonly roles: readonly string[];
|
|
41
|
+
};
|
|
38
42
|
readonly scopes: readonly MetricScope[];
|
|
39
43
|
};
|
|
40
44
|
export declare function defineMetric(definition: MetricDefinition): MetricDefinition;
|
package/dist/metrics/validate.js
CHANGED
|
@@ -25,6 +25,9 @@ function validateMetric(metric) {
|
|
|
25
25
|
fail("has an id that is not kebab-case");
|
|
26
26
|
if (metric.scopes.length === 0)
|
|
27
27
|
fail("declares no scopes");
|
|
28
|
+
if (metric.access !== undefined && metric.access.roles.length === 0) {
|
|
29
|
+
fail("declares access with an empty roles list");
|
|
30
|
+
}
|
|
28
31
|
const info = extractTableInfo(metric.source);
|
|
29
32
|
validateColumns(metric, info, fail);
|
|
30
33
|
validateFilters(metric, info, fail);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-bundled-features",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.399.0",
|
|
4
4
|
"description": "Built-in features — tenant, user, auth, delivery. The stuff you'd rewrite anyway, already typed.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -566,9 +566,9 @@
|
|
|
566
566
|
}
|
|
567
567
|
},
|
|
568
568
|
"dependencies": {
|
|
569
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
570
|
-
"@cosmicdrift/kumiko-renderer": "0.
|
|
571
|
-
"@cosmicdrift/kumiko-types": "0.
|
|
569
|
+
"@cosmicdrift/kumiko-framework": "0.399.0",
|
|
570
|
+
"@cosmicdrift/kumiko-renderer": "0.399.0",
|
|
571
|
+
"@cosmicdrift/kumiko-types": "0.399.0",
|
|
572
572
|
"@mollie/api-client": "^4.5.0",
|
|
573
573
|
"@node-rs/argon2": "^2.0.2",
|
|
574
574
|
"@tiptap/core": "^3.31.3",
|
|
@@ -1158,17 +1158,17 @@
|
|
|
1158
1158
|
],
|
|
1159
1159
|
"devDependencies": {
|
|
1160
1160
|
"@testing-library/user-event": "^14.6.8",
|
|
1161
|
-
"@cosmicdrift/kumiko-locale-de": "0.
|
|
1162
|
-
"@cosmicdrift/kumiko-locale-es": "0.
|
|
1163
|
-
"@cosmicdrift/kumiko-locale-fr": "0.
|
|
1164
|
-
"@cosmicdrift/kumiko-locale-it": "0.
|
|
1165
|
-
"@cosmicdrift/kumiko-renderer-mail-html": "0.
|
|
1161
|
+
"@cosmicdrift/kumiko-locale-de": "0.399.0",
|
|
1162
|
+
"@cosmicdrift/kumiko-locale-es": "0.399.0",
|
|
1163
|
+
"@cosmicdrift/kumiko-locale-fr": "0.399.0",
|
|
1164
|
+
"@cosmicdrift/kumiko-locale-it": "0.399.0",
|
|
1165
|
+
"@cosmicdrift/kumiko-renderer-mail-html": "0.399.0",
|
|
1166
1166
|
"jsqr": "^1.4.0",
|
|
1167
1167
|
"unpdf": "^1.8.1",
|
|
1168
|
-
"@cosmicdrift/kumiko-testing": "0.
|
|
1168
|
+
"@cosmicdrift/kumiko-testing": "0.399.0"
|
|
1169
1169
|
},
|
|
1170
1170
|
"peerDependencies": {
|
|
1171
|
-
"@cosmicdrift/kumiko-testing": "0.
|
|
1171
|
+
"@cosmicdrift/kumiko-testing": "0.399.0"
|
|
1172
1172
|
},
|
|
1173
1173
|
"peerDependenciesMeta": {
|
|
1174
1174
|
"@cosmicdrift/kumiko-testing": {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.399.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "Shorter documents checkbox text in the consent box",
|
|
6
|
+
"detail": "With `consumerProtection.documentsAcknowledgement: true` the checkbox now reads \"I have read and agree to the Terms and the Refund Policy.\" (de: \"Ich habe die AGB und die Erstattungsrichtlinie gelesen und bin mit ihnen einverstanden.\"), or without a refund link only the terms. The privacy policy stays a link. The text is part of `consentTextVersion`, so apps with the option on get a new version hash; consents recorded earlier keep their stored version."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.398.0",
|
|
4
10
|
"type": "improvement",
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.399.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "Inbox cursor, total and navigation target for the shell bell",
|
|
6
|
+
"detail": "`channel-in-app:query:inbox` accepts a `cursor` and answers `{ rows, nextCursor, total }`; each row carries `target` (`{ screenId, entityId? }` or null) parsed from `data.target`. Build the target with `inAppTarget(screenId, entityId?)`; a malformed target is dropped and the notification is still delivered. The SSE frame `channel-in-app:event:delivered` now carries only `{ id, userId, notificationType }`, and a failing push no longer fails the delivery because the row is already stored. The shared contract lives in `@cosmicdrift/kumiko-types/in-app-notification-types`."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.354.0",
|
|
4
10
|
"type": "fix",
|
package/src/metrics/changes.json
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.399.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "Metric access roles and group names from a source table",
|
|
6
|
+
"detail": "A metric declares `access: { roles }` to open its tenant query to roles other than the admin roles; an empty list fails boot validation and no `access` keeps the admin-only default. A `groupBy` metric on an entity-table source whose column is a single reference names the rows after the referenced row's label field; the lookup runs through the caller's read access on the target entity, so unreadable or foreign-tenant rows keep their key, and static `groupLabels` still win."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.365.0",
|
|
4
10
|
"type": "fix",
|