@vonaffenfels/contentful-teasermanager 1.0.29 → 1.0.31
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-teasermanager",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepublish": "yarn run build",
|
|
6
6
|
"dev": "yarn run start",
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
"webpack-dev-server": "^4.0.0-beta.2"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@vonaffenfels/slate-editor": "^1.0.
|
|
99
|
+
"@vonaffenfels/slate-editor": "^1.0.31",
|
|
100
100
|
"webpack": "5.88.2"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "007715e3b949cf0368e7b4d70626d2931c7b7829",
|
|
103
103
|
"publishConfig": {
|
|
104
104
|
"access": "public"
|
|
105
105
|
}
|
|
@@ -93,9 +93,9 @@ export const Timeline = ({
|
|
|
93
93
|
<div className="w-full h-auto text-center py-2">
|
|
94
94
|
{!!currentDate && (
|
|
95
95
|
<>
|
|
96
|
-
<input
|
|
97
|
-
type="date"
|
|
98
|
-
value={format(currentDate, "yyyy-MM-dd")}
|
|
96
|
+
<input
|
|
97
|
+
type="date"
|
|
98
|
+
value={format(currentDate, "yyyy-MM-dd")}
|
|
99
99
|
onChange={handleDateChange}
|
|
100
100
|
className="mr-2 w-auto"/>
|
|
101
101
|
<TimeSelect className="inline w-auto" currentDate={currentDate} onChange={handleTimeChange}/>
|
|
@@ -140,8 +140,8 @@ const TimeSelect = ({
|
|
|
140
140
|
let options = [];
|
|
141
141
|
|
|
142
142
|
for (let i = 1; i <= 24; i++) {
|
|
143
|
-
options.push(<option
|
|
144
|
-
key={`hour-option-${i}`}
|
|
143
|
+
options.push(<option
|
|
144
|
+
key={`hour-option-${i}`}
|
|
145
145
|
value={i}
|
|
146
146
|
style={{padding: "8px"}}>{i < 10 ? `0${i}` : i}</option>);
|
|
147
147
|
}
|
|
@@ -153,8 +153,8 @@ const TimeSelect = ({
|
|
|
153
153
|
let options = [];
|
|
154
154
|
|
|
155
155
|
for (let i = 0; i <= 60; i += 15) {
|
|
156
|
-
options.push(<option
|
|
157
|
-
key={`minute-option-${i}`}
|
|
156
|
+
options.push(<option
|
|
157
|
+
key={`minute-option-${i}`}
|
|
158
158
|
value={i}
|
|
159
159
|
style={{padding: "8px"}}>{i < 10 ? `0${i}` : i}</option>);
|
|
160
160
|
}
|
|
@@ -196,8 +196,8 @@ export const Teasermanager = ({
|
|
|
196
196
|
|
|
197
197
|
return <div className="flex w-full flex-col">
|
|
198
198
|
<div className="w-full">
|
|
199
|
-
<Timeline
|
|
200
|
-
currentDate={currentDate}
|
|
199
|
+
<Timeline
|
|
200
|
+
currentDate={currentDate}
|
|
201
201
|
setCurrentDate={setCurrentDate}
|
|
202
202
|
loadTimelineStateForPage={loadTimelineStateForPage}/>
|
|
203
203
|
</div>
|