@vonaffenfels/slate-editor 1.1.6 → 1.1.9

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/slate-editor",
3
- "version": "1.1.6",
3
+ "version": "1.1.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -72,7 +72,7 @@
72
72
  "cssnano": "^5.0.1",
73
73
  "escape-html": "^1.0.3"
74
74
  },
75
- "gitHead": "c68ecbde3a3285867c999004130e18b5f2949a58",
75
+ "gitHead": "3f604c759dda4f73309122e7e7213ad7f776d26e",
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  }
@@ -27,6 +27,7 @@
27
27
  }
28
28
 
29
29
  input[type="text"],
30
+ input[type="time"],
30
31
  input[type="number"],
31
32
  input[type="color"],
32
33
  input[type="datetime-local"],
@@ -122,7 +122,7 @@ export const SidebarEditorField = ({
122
122
  onChange={e => onChange(fieldKey, e.target.value)}>
123
123
  <option value="">Auswählen</option>
124
124
  {(field?.control?.streams || []).map(stream => (
125
- <option key={`select-option-${stream.value}`} value={stream.value}>{stream.label}</option>
125
+ <option key={`select-option-${stream.value}`} value={`$$_STREAM__${stream.value}__`}>{stream.label}</option>
126
126
  ))}
127
127
  </select>
128
128
  );
@@ -248,6 +248,13 @@ export const SidebarEditorField = ({
248
248
  value={value || ""}
249
249
  onChange={e => onChange(fieldKey, e.target.value)}/>
250
250
  );
251
+ case "time":
252
+ return (
253
+ <input
254
+ type="time"
255
+ value={value || ""}
256
+ onChange={e => onChange(fieldKey, e.target.value)}/>
257
+ );
251
258
  case "multi-select":
252
259
  return (
253
260
  <select