@vonaffenfels/contentful-slate-editor 1.1.21 → 1.1.25

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": "@vonaffenfels/contentful-slate-editor",
3
- "version": "1.1.21",
3
+ "version": "1.1.25",
4
4
  "scripts": {
5
5
  "prepublish": "yarn run build",
6
6
  "dev": "yarn run start",
@@ -91,10 +91,10 @@
91
91
  "webpack-watch-files-plugin": "^1.2.1"
92
92
  },
93
93
  "dependencies": {
94
- "@vonaffenfels/slate-editor": "^1.1.21",
94
+ "@vonaffenfels/slate-editor": "^1.1.25",
95
95
  "webpack": "5.88.2"
96
96
  },
97
- "gitHead": "ea7b5eec618b6dad81ecd09ec76ea6cd8b4cfbe3",
97
+ "gitHead": "d6ebcec654136ac0aca31063f09af188ca9bed8e",
98
98
  "publishConfig": {
99
99
  "access": "public"
100
100
  }
@@ -106,7 +106,6 @@ const EditorField = ({
106
106
  ...({
107
107
  ...attributes,
108
108
  entries: null,
109
- items: null,
110
109
  } || {}),
111
110
  },
112
111
  context: {activeContent: {sys: {id: sdk?.entry?.sys?.id}}},
package/webpack.config.js CHANGED
@@ -20,14 +20,12 @@ module.exports = ({
20
20
  },
21
21
  transpilePaths = [],
22
22
  }) => {
23
-
24
-
25
23
  let fullTranspilePaths = [
26
24
  path.resolve(__dirname, 'src'),
27
25
  relativePathToComponents,
28
26
  ...transpilePaths,
29
27
  slateEditorBase,
30
- ]
28
+ ];
31
29
 
32
30
  return {
33
31
  mode: 'production',
@@ -138,6 +136,19 @@ module.exports = ({
138
136
  'url-loader',
139
137
  ],
140
138
  },
139
+ {
140
+ test: /\.svg$/,
141
+ resourceQuery: /url/, // include if *.svg?url
142
+ use: [
143
+ {
144
+ loader: 'file-loader',
145
+ options: {
146
+ name: '[name].[ext]',
147
+ outputPath: 'svgs/',
148
+ },
149
+ },
150
+ ],
151
+ },
141
152
  {
142
153
  test: /\.(woff(2)?|ttf|eot|png)(\?v=\d+\.\d+\.\d+)?$/,
143
154
  use: [
@@ -160,9 +171,7 @@ module.exports = ({
160
171
  new CleanWebpackPlugin(),
161
172
  new HtmlWebpackPlugin({template: path.join(__dirname, 'src', 'index.html')}),
162
173
  new MiniCssExtractPlugin({}),
163
- new webpack.ProvidePlugin({
164
- process: 'process/browser.js',
165
- }),
174
+ new webpack.ProvidePlugin({process: 'process/browser.js'}),
166
175
  ],
167
176
  resolve: {
168
177
  extensions: ['.json', '.js', '.jsx'],
@@ -181,8 +190,6 @@ module.exports = ({
181
190
  globalObject: "this",
182
191
  path: outPath,
183
192
  },
184
- snapshot: {
185
- managedPaths: [],
186
- },
193
+ snapshot: {managedPaths: []},
187
194
  };
188
195
  };