@cosmicdrift/kumiko-document-designer 0.422.0 → 0.424.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/feature.js +40 -1
- package/dist/list-definition.js +15 -2
- package/dist/web/cells.js +1 -1
- package/dist/web/company-data-rail.js +3 -3
- package/dist/web/constants.d.ts +1 -0
- package/dist/web/constants.js +1 -0
- package/dist/web/i18n.js +11 -19
- package/dist/web/layout-rails.js +2 -1
- package/dist/web/mail-draft.d.ts +0 -2
- package/dist/web/mail-draft.js +1 -9
- package/dist/web/mail-left-rail.js +2 -1
- package/dist/web/overview-row.d.ts +2 -0
- package/dist/web/overview-row.js +3 -1
- package/package.json +6 -6
- package/src/changes.json +7 -0
package/dist/feature.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { TemplateResolverHandlers } from "@cosmicdrift/kumiko-bundled-features/template-resolver";
|
|
1
2
|
import { access, defineFeature, i18nKey, } from "@cosmicdrift/kumiko-framework/engine";
|
|
2
3
|
import { TEMPLATE_FACETS, templateColumns, templateRowActions } from "./list-definition.js";
|
|
3
|
-
import { DOCUMENT_DESIGNER_FEATURE, LAYOUT_EDITOR_SCREEN_ID, MAIL_EDITOR_SCREEN_ID, PDF_TEMPLATE_EDITOR_SCREEN_ID, PLATFORM_LAYOUT_EDITOR_SCREEN_ID, PLATFORM_TEMPLATES_NAV_ID, PLATFORM_TEMPLATES_SCREEN_ID, TEMPLATES_NAV_ID, TEMPLATES_SCREEN_ID, } from "./web/constants.js";
|
|
4
|
+
import { CREATE_VARIANT_SCREEN_ID, DOCUMENT_DESIGNER_FEATURE, LAYOUT_EDITOR_SCREEN_ID, MAIL_EDITOR_SCREEN_ID, PDF_TEMPLATE_EDITOR_SCREEN_ID, PLATFORM_LAYOUT_EDITOR_SCREEN_ID, PLATFORM_TEMPLATES_NAV_ID, PLATFORM_TEMPLATES_SCREEN_ID, TEMPLATES_NAV_ID, TEMPLATES_SCREEN_ID, } from "./web/constants.js";
|
|
4
5
|
import { DOCUMENT_DESIGNER_I18N } from "./web/i18n.js";
|
|
5
6
|
const OVERVIEW_QUERY = "template-resolver:query:overview";
|
|
6
7
|
export function createDocumentDesignerFeature(options = {}) {
|
|
@@ -56,6 +57,44 @@ export function createDocumentDesignerFeature(options = {}) {
|
|
|
56
57
|
access: { roles: access.systemAdmin },
|
|
57
58
|
order: 15,
|
|
58
59
|
});
|
|
60
|
+
r.screen({
|
|
61
|
+
id: CREATE_VARIANT_SCREEN_ID,
|
|
62
|
+
type: "actionForm",
|
|
63
|
+
handler: TemplateResolverHandlers.createVariant,
|
|
64
|
+
fields: {
|
|
65
|
+
baseSlug: { type: "text", required: true },
|
|
66
|
+
locale: { type: "text", required: true },
|
|
67
|
+
title: { type: "text", required: true, maxLength: 200 },
|
|
68
|
+
name: { type: "text", maxLength: 40 },
|
|
69
|
+
},
|
|
70
|
+
layout: {
|
|
71
|
+
sections: [
|
|
72
|
+
{
|
|
73
|
+
fields: [
|
|
74
|
+
{ field: "baseSlug", readOnly: true },
|
|
75
|
+
{ field: "locale", readOnly: true },
|
|
76
|
+
"title",
|
|
77
|
+
"name",
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
fieldLabels: {
|
|
83
|
+
baseSlug: i18nKey("documentDesigner.variant.field.baseSlug"),
|
|
84
|
+
locale: i18nKey("documentDesigner.variant.field.locale"),
|
|
85
|
+
title: i18nKey("documentDesigner.variant.field.title"),
|
|
86
|
+
name: i18nKey("documentDesigner.variant.field.name"),
|
|
87
|
+
},
|
|
88
|
+
fieldDescriptions: { name: i18nKey("documentDesigner.variant.field.name.hint") },
|
|
89
|
+
submitLabel: i18nKey("documentDesigner.action.createVariant"),
|
|
90
|
+
redirect: {
|
|
91
|
+
screen: PDF_TEMPLATE_EDITOR_SCREEN_ID,
|
|
92
|
+
searchParams: { slug: "slug", kind: "kind" },
|
|
93
|
+
},
|
|
94
|
+
cancelTarget: TEMPLATES_SCREEN_ID,
|
|
95
|
+
dormant: true,
|
|
96
|
+
access: { roles: access.roles(...editorRoles) },
|
|
97
|
+
});
|
|
59
98
|
r.screen({
|
|
60
99
|
id: LAYOUT_EDITOR_SCREEN_ID,
|
|
61
100
|
type: "custom",
|
package/dist/list-definition.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplateResolverHandlers } from "@cosmicdrift/kumiko-bundled-features/template-resolver";
|
|
2
2
|
import { i18nKey, } from "@cosmicdrift/kumiko-framework/engine";
|
|
3
|
-
import { DocumentDesignerCells, PLATFORM_LAYOUT_EDITOR_SCREEN_ID, TEMPLATE_EDITOR_SCREENS, } from "./web/constants.js";
|
|
3
|
+
import { CREATE_VARIANT_SCREEN_ID, DocumentDesignerCells, PLATFORM_LAYOUT_EDITOR_SCREEN_ID, TEMPLATE_EDITOR_SCREENS, } from "./web/constants.js";
|
|
4
4
|
function cell(component) {
|
|
5
5
|
return { react: { __component: component } };
|
|
6
6
|
}
|
|
@@ -124,5 +124,18 @@ export function templateRowActions(options) {
|
|
|
124
124
|
},
|
|
125
125
|
];
|
|
126
126
|
});
|
|
127
|
-
|
|
127
|
+
// The handler creates a tenant row, which the system tenant may not own.
|
|
128
|
+
const variantActions = options.platform
|
|
129
|
+
? []
|
|
130
|
+
: [
|
|
131
|
+
{
|
|
132
|
+
kind: "drawer",
|
|
133
|
+
id: "create-variant",
|
|
134
|
+
label: i18nKey("documentDesigner.action.createVariant"),
|
|
135
|
+
screen: CREATE_VARIANT_SCREEN_ID,
|
|
136
|
+
params: { map: { baseSlug: "slug", locale: "locale" } },
|
|
137
|
+
visible: { field: "variantsEnabled", eq: true },
|
|
138
|
+
},
|
|
139
|
+
];
|
|
140
|
+
return [...editActions, ...variantActions, RESET_LOCKED_OVERRIDE_ACTION];
|
|
128
141
|
}
|
package/dist/web/cells.js
CHANGED
|
@@ -11,7 +11,7 @@ function withRow(row, render) {
|
|
|
11
11
|
}
|
|
12
12
|
export function TitleCell({ row }) {
|
|
13
13
|
const t = useTranslation();
|
|
14
|
-
return withRow(row, (r) => (_jsxs("div", { children: [_jsx("div", { className: "max-w-48 whitespace-normal font-medium [overflow-wrap:anywhere]", children: templateTitle(t, r) }), _jsx("span", { className: "block max-w-16 truncate font-mono text-xs text-muted-foreground", title: r.slug, children: r.slug })] })));
|
|
14
|
+
return withRow(row, (r) => (_jsxs("div", { className: r.variantOf === null ? undefined : "border-l-2 pl-3", children: [r.variantOf !== null && (_jsx("span", { className: "block text-xs text-muted-foreground", "data-testid": "document-designer-variant-of", children: t("documentDesigner.variantOf", { base: r.variantOf }) })), _jsx("div", { className: "max-w-48 whitespace-normal font-medium [overflow-wrap:anywhere]", children: templateTitle(t, r) }), _jsx("span", { className: "block max-w-16 truncate font-mono text-xs text-muted-foreground", title: r.slug, children: r.slug })] })));
|
|
15
15
|
}
|
|
16
16
|
const KIND_KEY = {
|
|
17
17
|
mail: "documentDesigner.kind.mail",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { SessionContext } from "@cosmicdrift/kumiko-bundled-features/auth-email-password/web";
|
|
3
|
-
import { COMPANY_PLACEHOLDERS } from "@cosmicdrift/kumiko-bundled-features/template-resolver/web";
|
|
3
|
+
import { COMPANY_PLACEHOLDERS, systemPlaceholderLabel, } from "@cosmicdrift/kumiko-bundled-features/template-resolver/web";
|
|
4
4
|
import { useAppFeatures, useNav, usePrimitives, useQuery, useTranslation, } from "@cosmicdrift/kumiko-renderer";
|
|
5
5
|
import { toKebab } from "@cosmicdrift/kumiko-types/kebab-case";
|
|
6
6
|
import { useContext } from "react";
|
|
@@ -39,13 +39,13 @@ export function CompanyDataRail({ onInsert, used, }) {
|
|
|
39
39
|
const text = name === "tenantName" ? tenantName : textValueOf(values.data ?? undefined, name);
|
|
40
40
|
const onPress = onInsert === undefined ? undefined : () => onInsert(name);
|
|
41
41
|
if (used === undefined && text === "") {
|
|
42
|
-
return (_jsx(MissingValueRow, { name: name, label: t
|
|
42
|
+
return (_jsx(MissingValueRow, { name: name, label: systemPlaceholderLabel(t, name), trailing: t("documentDesigner.company.enter"), onPress: onPress }, name));
|
|
43
43
|
}
|
|
44
44
|
const status = used === undefined
|
|
45
45
|
? { text, tone: "muted" }
|
|
46
46
|
: used.has(name)
|
|
47
47
|
? { text: "✓", tone: "ok" }
|
|
48
48
|
: { text: "–", tone: "muted" };
|
|
49
|
-
return (_jsx(RailRow, { testId: `company-data-${name}`, ...(used === undefined ? {} : { symbol: PLACEHOLDER_SYMBOL.text }), label: t
|
|
49
|
+
return (_jsx(RailRow, { testId: `company-data-${name}`, ...(used === undefined ? {} : { symbol: PLACEHOLDER_SYMBOL.text }), label: systemPlaceholderLabel(t, name), trailing: status.text, trailingTone: status.tone, ...(onPress === undefined ? {} : { onPress }) }, name));
|
|
50
50
|
}), _jsx(RailHint, { children: t("documentDesigner.company.hint") })] }));
|
|
51
51
|
}
|
package/dist/web/constants.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const LAYOUT_EDITOR_SCREEN_ID: "layout-editor";
|
|
|
5
5
|
export declare const PLATFORM_LAYOUT_EDITOR_SCREEN_ID: "platform-layout-editor";
|
|
6
6
|
export declare const PDF_TEMPLATE_EDITOR_SCREEN_ID: "pdf-template-editor";
|
|
7
7
|
export declare const MAIL_EDITOR_SCREEN_ID: "mail-editor";
|
|
8
|
+
export declare const CREATE_VARIANT_SCREEN_ID: "create-variant";
|
|
8
9
|
export declare const TEMPLATES_NAV_ID: "templates";
|
|
9
10
|
export declare const PLATFORM_TEMPLATES_NAV_ID: "platform-templates";
|
|
10
11
|
export declare const MANAGED_PAGES_FEATURE_NAME: "managed-pages";
|
package/dist/web/constants.js
CHANGED
|
@@ -6,6 +6,7 @@ export const LAYOUT_EDITOR_SCREEN_ID = "layout-editor";
|
|
|
6
6
|
export const PLATFORM_LAYOUT_EDITOR_SCREEN_ID = "platform-layout-editor";
|
|
7
7
|
export const PDF_TEMPLATE_EDITOR_SCREEN_ID = "pdf-template-editor";
|
|
8
8
|
export const MAIL_EDITOR_SCREEN_ID = "mail-editor";
|
|
9
|
+
export const CREATE_VARIANT_SCREEN_ID = "create-variant";
|
|
9
10
|
export const TEMPLATES_NAV_ID = "templates";
|
|
10
11
|
export const PLATFORM_TEMPLATES_NAV_ID = "platform-templates";
|
|
11
12
|
export const MANAGED_PAGES_FEATURE_NAME = "managed-pages";
|
package/dist/web/i18n.js
CHANGED
|
@@ -13,6 +13,17 @@ export const DOCUMENT_DESIGNER_I18N = {
|
|
|
13
13
|
},
|
|
14
14
|
"documentDesigner.search": { en: "Search templates", de: "Vorlagen suchen" },
|
|
15
15
|
"documentDesigner.action.edit": { en: "Edit", de: "Bearbeiten" },
|
|
16
|
+
"screen:create-variant.title": { en: "Create variant", de: "Variante anlegen" },
|
|
17
|
+
"documentDesigner.action.createVariant": { en: "Create variant", de: "Variante anlegen" },
|
|
18
|
+
"documentDesigner.variant.field.baseSlug": { en: "Variant of", de: "Variante von" },
|
|
19
|
+
"documentDesigner.variant.field.locale": { en: "Language", de: "Sprache" },
|
|
20
|
+
"documentDesigner.variant.field.title": { en: "Title", de: "Titel" },
|
|
21
|
+
"documentDesigner.variant.field.name": { en: "Short name", de: "Kürzel" },
|
|
22
|
+
"documentDesigner.variant.field.name.hint": {
|
|
23
|
+
en: "Optional: lowercase letters, digits and dashes. Left empty, it is built from the title.",
|
|
24
|
+
de: "Optional: Kleinbuchstaben, Ziffern und Bindestriche. Leer gelassen, wird es aus dem Titel gebildet.",
|
|
25
|
+
},
|
|
26
|
+
"documentDesigner.variantOf": { en: "Variant of {base}", de: "Variante von {base}" },
|
|
16
27
|
"documentDesigner.status.lockedOverride": { en: "Not delivered", de: "Nicht ausgeliefert" },
|
|
17
28
|
"documentDesigner.action.resetLockedOverride": {
|
|
18
29
|
en: "Remove own version",
|
|
@@ -88,25 +99,6 @@ export const DOCUMENT_DESIGNER_I18N = {
|
|
|
88
99
|
de: "Layout-Platzhalter",
|
|
89
100
|
},
|
|
90
101
|
"documentDesigner.placeholders.content": { en: "Template content", de: "Inhalt der Vorlage" },
|
|
91
|
-
"documentDesigner.placeholder.tenantName": { en: "Company name", de: "Firmenname" },
|
|
92
|
-
"documentDesigner.placeholder.signature": { en: "Signature", de: "Signatur" },
|
|
93
|
-
"documentDesigner.placeholder.imprint": { en: "Imprint", de: "Impressum" },
|
|
94
|
-
"documentDesigner.placeholder.unsubscribeUrl": { en: "Unsubscribe link", de: "Abmeldelink" },
|
|
95
|
-
"documentDesigner.placeholder.page": { en: "Page number", de: "Seite" },
|
|
96
|
-
"documentDesigner.placeholder.pages": { en: "Page count", de: "Seiten" },
|
|
97
|
-
"documentDesigner.placeholder.companyAddress": { en: "Address", de: "Anschrift" },
|
|
98
|
-
"documentDesigner.placeholder.companyPhone": { en: "Phone", de: "Telefon" },
|
|
99
|
-
"documentDesigner.placeholder.companyEmail": { en: "Email", de: "E-Mail" },
|
|
100
|
-
"documentDesigner.placeholder.companyWebsite": { en: "Website", de: "Website" },
|
|
101
|
-
"documentDesigner.placeholder.companyRegister": {
|
|
102
|
-
en: "Commercial register",
|
|
103
|
-
de: "Handelsregister",
|
|
104
|
-
},
|
|
105
|
-
"documentDesigner.placeholder.companyVatId": { en: "VAT ID", de: "USt-IdNr." },
|
|
106
|
-
"documentDesigner.placeholder.companyManagement": { en: "Management", de: "Geschäftsführung" },
|
|
107
|
-
"documentDesigner.placeholder.companyBank": { en: "Bank", de: "Bank" },
|
|
108
|
-
"documentDesigner.placeholder.companyIban": { en: "IBAN", de: "IBAN" },
|
|
109
|
-
"documentDesigner.placeholder.companyBic": { en: "BIC", de: "BIC" },
|
|
110
102
|
"documentDesigner.appearance.title": { en: "Appearance", de: "Darstellung" },
|
|
111
103
|
"documentDesigner.appearance.width": { en: "Width", de: "Breite" },
|
|
112
104
|
"documentDesigner.appearance.font": { en: "Font", de: "Schrift" },
|
package/dist/web/layout-rails.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { SYSTEM_PLACEHOLDER_TYPE, systemPlaceholderLabel, } from "@cosmicdrift/kumiko-bundled-features/template-resolver/web";
|
|
2
3
|
import { useAppFeatures, useNav, usePrimitives, useTranslation, } from "@cosmicdrift/kumiko-renderer";
|
|
3
4
|
import { BRANDING_SCREEN_QN, MANAGED_PAGES_FEATURE_NAME } from "./constants.js";
|
|
4
5
|
import { isHexColor, LAYOUT_ACCENT_LINES, LAYOUT_BUTTON_STYLES, LAYOUT_FONTS, LAYOUT_WIDTHS, } from "./layout-meta.js";
|
|
5
6
|
import { layoutUsers } from "./layout-users.js";
|
|
6
|
-
import { PLACEHOLDER_SYMBOL
|
|
7
|
+
import { PLACEHOLDER_SYMBOL } from "./mail-draft.js";
|
|
7
8
|
import { placeholdersUsedIn, railSystemPlaceholders } from "./pdf-left-rail.js";
|
|
8
9
|
import { RailField, RailHint, RailRow, RailSection } from "./rail.js";
|
|
9
10
|
import { statusLabel } from "./status-label.js";
|
package/dist/web/mail-draft.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ import type { LinkedResourceView, MailDraft, MailVariable, PickedValues, Placeho
|
|
|
3
3
|
export declare const EMPTY_DRAFT: MailDraft;
|
|
4
4
|
export declare const PLACEHOLDER_SYMBOL: Readonly<Record<PlaceholderType, string>>;
|
|
5
5
|
export declare const LAYOUT_OWNED_PLACEHOLDERS: ReadonlySet<string>;
|
|
6
|
-
export declare const SYSTEM_PLACEHOLDER_TYPE: Readonly<Record<string, PlaceholderType>>;
|
|
7
|
-
export declare function systemPlaceholderLabel(t: Translate, name: string): string;
|
|
8
6
|
export declare function labelPlaceholders(line: string, variableLabels: Readonly<Record<string, string>>): string;
|
|
9
7
|
export declare function systemLabelMap(t: Translate, names: readonly string[]): Readonly<Record<string, string>>;
|
|
10
8
|
export declare function parseJsonRecord(value: unknown): Readonly<Record<string, unknown>>;
|
package/dist/web/mail-draft.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { systemPlaceholderLabel } from "@cosmicdrift/kumiko-bundled-features/template-resolver/web";
|
|
1
2
|
import { DOCUMENT_FALLBACK_CURRENCY, formatDocumentDate, formatDocumentMoney, formatDocumentPercent, pluralKey, } from "@cosmicdrift/kumiko-renderer/headless";
|
|
2
3
|
import { variableLabelText } from "./used-by-label.js";
|
|
3
4
|
export const EMPTY_DRAFT = {
|
|
@@ -25,15 +26,6 @@ export const LAYOUT_OWNED_PLACEHOLDERS = new Set([
|
|
|
25
26
|
"imprint",
|
|
26
27
|
"unsubscribeUrl",
|
|
27
28
|
]);
|
|
28
|
-
export const SYSTEM_PLACEHOLDER_TYPE = {
|
|
29
|
-
imprint: "link",
|
|
30
|
-
unsubscribeUrl: "link",
|
|
31
|
-
};
|
|
32
|
-
export function systemPlaceholderLabel(t, name) {
|
|
33
|
-
const key = `documentDesigner.placeholder.${name}`;
|
|
34
|
-
const translated = t(key);
|
|
35
|
-
return translated === key ? name : translated;
|
|
36
|
-
}
|
|
37
29
|
// For places that show a stored {{name}} line as plain text instead of chips.
|
|
38
30
|
export function labelPlaceholders(line, variableLabels) {
|
|
39
31
|
return line.replace(/\{\{([^{}]*)\}\}/g, (_token, rawName) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { SYSTEM_PLACEHOLDER_TYPE, systemPlaceholderLabel, } from "@cosmicdrift/kumiko-bundled-features/template-resolver/web";
|
|
2
3
|
import { usePrimitives, useTranslation } from "@cosmicdrift/kumiko-renderer";
|
|
3
|
-
import { LAYOUT_OWNED_PLACEHOLDERS, PLACEHOLDER_SYMBOL
|
|
4
|
+
import { LAYOUT_OWNED_PLACEHOLDERS, PLACEHOLDER_SYMBOL } from "./mail-draft.js";
|
|
4
5
|
import { RailHint, RailRow, RailSection } from "./rail.js";
|
|
5
6
|
import { variableLabelText } from "./used-by-label.js";
|
|
6
7
|
function placeholderStatus(t, validation, name) {
|
|
@@ -22,6 +22,8 @@ export type OverviewRowView = {
|
|
|
22
22
|
readonly modifiedAt: string;
|
|
23
23
|
readonly usedBy: readonly OverviewUsageView[];
|
|
24
24
|
readonly usedByCount: number;
|
|
25
|
+
readonly variantOf: string | null;
|
|
26
|
+
readonly variantsEnabled: boolean;
|
|
25
27
|
/** SystemAdmin only, system-origin rows; total is null without the tenant feature. */
|
|
26
28
|
readonly overriddenBy: {
|
|
27
29
|
readonly active: number;
|
package/dist/web/overview-row.js
CHANGED
|
@@ -26,7 +26,7 @@ function overriddenByOf(value) {
|
|
|
26
26
|
return { active: value["active"], total: numberOr(value["total"], null) };
|
|
27
27
|
}
|
|
28
28
|
export function parseOverviewRow(row) {
|
|
29
|
-
const { id, title, layoutSlug, slug, kind, origin, locales, status, version, draftVersion, systemVersion, lockedOverride, lockedOverrideI18nKey, modifiedAt, usedBy, usedByCount, overriddenBy, } = row;
|
|
29
|
+
const { id, title, layoutSlug, slug, kind, origin, locales, status, version, draftVersion, systemVersion, lockedOverride, lockedOverrideI18nKey, modifiedAt, usedBy, usedByCount, variantOf, variantsEnabled, overriddenBy, } = row;
|
|
30
30
|
if (typeof slug !== "string" || !isTemplateKind(kind) || !isStatus(status))
|
|
31
31
|
return null;
|
|
32
32
|
if (origin !== "tenant" && origin !== "system")
|
|
@@ -51,6 +51,8 @@ export function parseOverviewRow(row) {
|
|
|
51
51
|
modifiedAt: stringOr(modifiedAt, ""),
|
|
52
52
|
usedBy: usages,
|
|
53
53
|
usedByCount: numberOr(usedByCount, usages.length),
|
|
54
|
+
variantOf: typeof variantOf === "string" ? variantOf : null,
|
|
55
|
+
variantsEnabled: variantsEnabled === true,
|
|
54
56
|
overriddenBy: overriddenByOf(overriddenBy),
|
|
55
57
|
};
|
|
56
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-document-designer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.424.0",
|
|
4
4
|
"description": "Document designer for Kumiko: template overview, layout editor (mail layout, PDF letterhead) and the PDF template editor.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"./web/styles.css": "./src/web/styles.css"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@cosmicdrift/kumiko-bundled-features": "0.
|
|
24
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
25
|
-
"@cosmicdrift/kumiko-renderer": "0.
|
|
26
|
-
"@cosmicdrift/kumiko-renderer-puppeteer-client": "0.
|
|
27
|
-
"@cosmicdrift/kumiko-types": "0.
|
|
23
|
+
"@cosmicdrift/kumiko-bundled-features": "0.424.0",
|
|
24
|
+
"@cosmicdrift/kumiko-framework": "0.424.0",
|
|
25
|
+
"@cosmicdrift/kumiko-renderer": "0.424.0",
|
|
26
|
+
"@cosmicdrift/kumiko-renderer-puppeteer-client": "0.424.0",
|
|
27
|
+
"@cosmicdrift/kumiko-types": "0.424.0",
|
|
28
28
|
"react": "^19.3.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
package/src/changes.json
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.424.0",
|
|
4
|
+
"type": "breaking",
|
|
5
|
+
"title": "system placeholder labels moved to the template-resolver namespace",
|
|
6
|
+
"detail": "The labels of the system placeholders (tenantName, company data, page, imprint and so on) are now `template-resolver.systemPlaceholder.<name>` instead of `documentDesigner.placeholder.<name>`. The locale packages are already updated.",
|
|
7
|
+
"migration": "An app that overrides a `documentDesigner.placeholder.<name>` translation renames the key to `template-resolver.systemPlaceholder.<name>`."
|
|
8
|
+
},
|
|
2
9
|
{
|
|
3
10
|
"version": "0.420.0",
|
|
4
11
|
"type": "improvement",
|