charon-conversation-editor 0.0.29 → 0.0.32
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/index.js +14 -5
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -34808,14 +34808,14 @@ async function migrateSchema(schema, dataSource) {
|
|
|
34808
34808
|
};
|
|
34809
34809
|
const importQuery = from(
|
|
34810
34810
|
dataSource.import(
|
|
34811
|
-
// type of documents to import = Schema
|
|
34812
|
-
["Schema"],
|
|
34813
|
-
// languages = all
|
|
34814
|
-
[],
|
|
34815
34811
|
// documents
|
|
34816
34812
|
importDocuments,
|
|
34817
34813
|
// import mode
|
|
34818
34814
|
ImportMode.createAndUpdate,
|
|
34815
|
+
// type of documents to import = Schema
|
|
34816
|
+
["Schema"],
|
|
34817
|
+
// languages = all
|
|
34818
|
+
void 0,
|
|
34819
34819
|
// validation options = default for creation/updating
|
|
34820
34820
|
[
|
|
34821
34821
|
ValidationOption.repair,
|
|
@@ -34884,7 +34884,16 @@ function SchemaValidationResult({ documentControl }) {
|
|
|
34884
34884
|
const migrateSchemaHandler = reactExports.useCallback(() => {
|
|
34885
34885
|
setMigrateIsPending(true);
|
|
34886
34886
|
setMigrationError("");
|
|
34887
|
-
migrateSchema(documentControl.schema, dataService).
|
|
34887
|
+
migrateSchema(documentControl.schema, dataService).then(
|
|
34888
|
+
() => {
|
|
34889
|
+
window.location.reload();
|
|
34890
|
+
console.log(`Successfully migrated ${documentControl.schema.displayName} schema.`);
|
|
34891
|
+
},
|
|
34892
|
+
(error) => {
|
|
34893
|
+
setMigrationError(String(error));
|
|
34894
|
+
console.error(error);
|
|
34895
|
+
}
|
|
34896
|
+
).finally(() => setMigrateIsPending(false));
|
|
34888
34897
|
}, [dataService, documentControl]);
|
|
34889
34898
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ext-ce-schema-validation-container", children: [
|
|
34890
34899
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ext-ce-validation-header", children: [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/gamedevware/charon-extensions/refs/heads/main/package.json.schema.json",
|
|
3
3
|
"name": "charon-conversation-editor",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.32",
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"charon",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@xyflow/react": "^12.8.6",
|
|
41
|
-
"charon-extensions": "2.
|
|
41
|
+
"charon-extensions": "2.325.398",
|
|
42
42
|
"dagre": "^0.8.5",
|
|
43
43
|
"react": "^19.2.0",
|
|
44
44
|
"react-dom": "^19.2.0",
|