@cosmicdrift/kumiko-bundled-features 0.194.0 → 0.195.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-bundled-features",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.195.0",
|
|
4
4
|
"description": "Built-in features — tenant, user, auth, delivery. The stuff you'd rewrite anyway, already typed.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -125,12 +125,12 @@
|
|
|
125
125
|
"./step-dispatcher": "./src/step-dispatcher/index.ts"
|
|
126
126
|
},
|
|
127
127
|
"dependencies": {
|
|
128
|
-
"@cosmicdrift/kumiko-dispatcher-live": "0.
|
|
129
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
130
|
-
"@cosmicdrift/kumiko-headless": "0.
|
|
131
|
-
"@cosmicdrift/kumiko-renderer": "0.
|
|
132
|
-
"@cosmicdrift/kumiko-renderer-web": "0.
|
|
133
|
-
"@cosmicdrift/kumiko-types": "0.
|
|
128
|
+
"@cosmicdrift/kumiko-dispatcher-live": "0.195.0",
|
|
129
|
+
"@cosmicdrift/kumiko-framework": "0.195.0",
|
|
130
|
+
"@cosmicdrift/kumiko-headless": "0.195.0",
|
|
131
|
+
"@cosmicdrift/kumiko-renderer": "0.195.0",
|
|
132
|
+
"@cosmicdrift/kumiko-renderer-web": "0.195.0",
|
|
133
|
+
"@cosmicdrift/kumiko-types": "0.195.0",
|
|
134
134
|
"@mollie/api-client": "^4.5.0",
|
|
135
135
|
"@node-rs/argon2": "^2.0.2",
|
|
136
136
|
"@types/mailparser": "^3.4.6",
|
|
@@ -18,7 +18,6 @@ import type {
|
|
|
18
18
|
TreeNode,
|
|
19
19
|
} from "@cosmicdrift/kumiko-framework/engine";
|
|
20
20
|
import {
|
|
21
|
-
CONTENT_EDITOR_ELEMENT_ID,
|
|
22
21
|
ContentPreview,
|
|
23
22
|
type FeatureSchema,
|
|
24
23
|
useAppFeatures,
|
|
@@ -33,7 +32,7 @@ import {
|
|
|
33
32
|
PlainContentEditor,
|
|
34
33
|
RichContentEditor,
|
|
35
34
|
} from "@cosmicdrift/kumiko-renderer-web";
|
|
36
|
-
import { type FormEvent, type ReactNode, useEffect, useState } from "react";
|
|
35
|
+
import { type FormEvent, type ReactNode, useEffect, useId, useState } from "react";
|
|
37
36
|
import {
|
|
38
37
|
collectionHandlerName,
|
|
39
38
|
collectionQueryName,
|
|
@@ -303,6 +302,7 @@ function TextBlockEditor({
|
|
|
303
302
|
const dispatcher = useDispatcher();
|
|
304
303
|
const user = useShellUser();
|
|
305
304
|
const t = useTranslation();
|
|
305
|
+
const contentEditorId = useId();
|
|
306
306
|
const features = useAppFeatures();
|
|
307
307
|
const contentFormat = findContentFormat(features, collectionId);
|
|
308
308
|
const variableExamples = findVariableExamples(features, collectionId);
|
|
@@ -423,7 +423,7 @@ function TextBlockEditor({
|
|
|
423
423
|
/>
|
|
424
424
|
</Field>
|
|
425
425
|
<Field
|
|
426
|
-
id={
|
|
426
|
+
id={contentEditorId}
|
|
427
427
|
label={t("template-resolver.editor.contentLabel")}
|
|
428
428
|
labelAppendix={
|
|
429
429
|
<Button
|
|
@@ -444,6 +444,7 @@ function TextBlockEditor({
|
|
|
444
444
|
/>
|
|
445
445
|
) : (
|
|
446
446
|
<ContentEditor
|
|
447
|
+
id={contentEditorId}
|
|
447
448
|
value={content}
|
|
448
449
|
onChange={setContent}
|
|
449
450
|
variables={variables}
|