@vonaffenfels/contentful-slate-editor 1.0.4 → 1.0.10
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 +3 -3
- package/src/components/Field.js +0 -3
- package/webpack.config.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonaffenfels/contentful-slate-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepublish": "yarn run build",
|
|
6
6
|
"dev": "yarn run start",
|
|
@@ -89,10 +89,10 @@
|
|
|
89
89
|
"webpack-dev-server": "^4.0.0-beta.2"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@vonaffenfels/slate-editor": "^1.0.
|
|
92
|
+
"@vonaffenfels/slate-editor": "^1.0.10",
|
|
93
93
|
"webpack": "5.73.0"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "bd271f5265184e34c8ebef5f49936ab95fe29dcf",
|
|
96
96
|
"publishConfig": {
|
|
97
97
|
"access": "public"
|
|
98
98
|
}
|
package/src/components/Field.js
CHANGED
|
@@ -11,8 +11,6 @@ const Field = ({sdk}) => {
|
|
|
11
11
|
const wrapperRef = useRef();
|
|
12
12
|
|
|
13
13
|
const openDialog = () => {
|
|
14
|
-
console.log("KIENZ_DEBUG: :14 / openDialog", sdk.field.getValue());
|
|
15
|
-
|
|
16
14
|
sdk.dialogs.openCurrentApp({
|
|
17
15
|
title: 'Inhalt bearbeiten',
|
|
18
16
|
width: 'fullWidth',
|
|
@@ -23,7 +21,6 @@ const Field = ({sdk}) => {
|
|
|
23
21
|
minHeight: 500,
|
|
24
22
|
parameters: {value: sdk.field.getValue()},
|
|
25
23
|
}).then((data) => {
|
|
26
|
-
console.log("KIENZ_DEBUG: :26 / ANON", data);
|
|
27
24
|
if (data) {
|
|
28
25
|
sdk.field.setValue(data);
|
|
29
26
|
}
|
package/webpack.config.js
CHANGED
|
@@ -6,6 +6,7 @@ const {readFileSync} = require("fs");
|
|
|
6
6
|
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
|
|
7
7
|
|
|
8
8
|
module.exports = ({
|
|
9
|
+
outPath = path.resolve(__dirname, 'dist'),
|
|
9
10
|
babelConfig = JSON.parse(readFileSync("../../.babelrc").toString()),
|
|
10
11
|
componentImportRoot = "@vonaffenfels/slate-editor/src/dev/testComponents",
|
|
11
12
|
relativePathToComponents = path.resolve(__dirname + "../../../@base/slate-editor/src/dev/testComponents"),
|
|
@@ -159,7 +160,7 @@ module.exports = ({
|
|
|
159
160
|
libraryTarget: "umd",
|
|
160
161
|
publicPath: "/",
|
|
161
162
|
globalObject: "this",
|
|
162
|
-
path:
|
|
163
|
+
path: outPath,
|
|
163
164
|
},
|
|
164
165
|
};
|
|
165
166
|
};
|