@livepreso/content-react 0.7.0 → 0.7.2

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/CHANGELOG.json CHANGED
@@ -1,392 +1,416 @@
1
1
  {
2
- "name": "@livepreso/content-react",
3
- "entries": [
4
- {
5
- "version": "0.7.0",
6
- "tag": "@livepreso/content-react_v0.7.0",
7
- "date": "Thu, 06 Mar 2025 00:08:07 GMT",
8
- "comments": {
9
- "minor": [
10
- {
11
- "comment": "Add isEmptyPreview to useModes hook, move CWE JSON field to underneath slide"
12
- }
13
- ]
14
- }
15
- },
16
- {
17
- "version": "0.6.2",
18
- "tag": "@livepreso/content-react_v0.6.2",
19
- "date": "Tue, 25 Feb 2025 03:34:02 GMT",
20
- "comments": {
21
- "patch": [
22
- {
23
- "comment": "setContext(key, value) allows setting of falsy values"
24
- }
25
- ]
26
- }
27
- },
28
- {
29
- "version": "0.6.1",
30
- "tag": "@livepreso/content-react_v0.6.1",
31
- "date": "Thu, 20 Feb 2025 01:26:11 GMT",
32
- "comments": {
33
- "patch": [
34
- {
35
- "comment": "Update dependencies"
36
- }
37
- ]
38
- }
39
- },
40
- {
41
- "version": "0.6.0",
42
- "tag": "@livepreso/content-react_v0.6.0",
43
- "date": "Sun, 09 Feb 2025 23:36:42 GMT",
44
- "comments": {
45
- "minor": [
46
- {
47
- "comment": "added explicit exports to improve IDE hinting"
48
- }
49
- ]
50
- }
51
- },
52
- {
53
- "version": "0.5.2",
54
- "tag": "@livepreso/content-react_v0.5.2",
55
- "date": "Fri, 17 Jan 2025 04:54:14 GMT",
56
- "comments": {
57
- "patch": [
58
- {
59
- "comment": "resolved race condition in useCompanywide setter"
60
- }
61
- ]
62
- }
63
- },
64
- {
65
- "version": "0.5.1",
66
- "tag": "@livepreso/content-react_v0.5.1",
67
- "date": "Fri, 17 Jan 2025 03:37:56 GMT",
68
- "comments": {
69
- "patch": [
70
- {
71
- "comment": "Properly call slideready on hot module reload"
72
- }
73
- ],
74
- "dependency": [
75
- {
76
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.6` to `1.1.7`"
77
- }
78
- ]
79
- }
80
- },
81
- {
82
- "version": "0.5.0",
83
- "tag": "@livepreso/content-react_v0.5.0",
84
- "date": "Tue, 26 Nov 2024 03:54:55 GMT",
85
- "comments": {
86
- "minor": [
87
- {
88
- "comment": "Add internal presentation slide key to useSlide()"
89
- }
90
- ]
91
- }
92
- },
93
- {
94
- "version": "0.4.3",
95
- "tag": "@livepreso/content-react_v0.4.3",
96
- "date": "Thu, 21 Nov 2024 01:14:47 GMT",
97
- "comments": {
98
- "patch": [
99
- {
100
- "comment": "Move CWE Editables far below content"
101
- }
102
- ]
103
- }
104
- },
105
- {
106
- "version": "0.4.2",
107
- "tag": "@livepreso/content-react_v0.4.2",
108
- "date": "Thu, 21 Nov 2024 00:05:45 GMT",
109
- "comments": {
110
- "patch": [
111
- {
112
- "comment": "Always add global"
113
- }
114
- ]
115
- }
116
- },
117
- {
118
- "version": "0.4.1",
119
- "tag": "@livepreso/content-react_v0.4.1",
120
- "date": "Wed, 20 Nov 2024 23:28:52 GMT",
121
- "comments": {
122
- "patch": [
123
- {
124
- "comment": "Components were not correctly unmounting"
125
- }
126
- ]
127
- }
128
- },
129
- {
130
- "version": "0.4.0",
131
- "tag": "@livepreso/content-react_v0.4.0",
132
- "date": "Tue, 24 Sep 2024 03:37:23 GMT",
133
- "comments": {
134
- "minor": [
135
- {
136
- "comment": "Allow overriding react errors"
137
- }
138
- ]
139
- }
140
- },
141
- {
142
- "version": "0.3.9",
143
- "tag": "@livepreso/content-react_v0.3.9",
144
- "date": "Fri, 23 Aug 2024 05:02:46 GMT",
145
- "comments": {
146
- "patch": [
147
- {
148
- "comment": "Company wide editables fixes"
149
- }
150
- ]
151
- }
152
- },
153
- {
154
- "version": "0.3.8",
155
- "tag": "@livepreso/content-react_v0.3.8",
156
- "date": "Wed, 24 Jul 2024 06:53:26 GMT",
157
- "comments": {
158
- "patch": [
159
- {
160
- "comment": "Update latest"
161
- }
162
- ],
163
- "dependency": [
164
- {
165
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.4` to `~1.1.5`"
166
- }
167
- ]
168
- }
169
- },
170
- {
171
- "version": "0.3.7",
172
- "tag": "@livepreso/content-react_v0.3.7",
173
- "date": "Fri, 03 May 2024 00:56:03 GMT",
174
- "comments": {
175
- "patch": [
176
- {
177
- "comment": "New version of content-base"
178
- }
179
- ],
180
- "dependency": [
181
- {
182
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.3` to `~1.1.4`"
183
- }
184
- ]
185
- }
186
- },
187
- {
188
- "version": "0.3.6",
189
- "tag": "@livepreso/content-react_v0.3.6",
190
- "date": "Wed, 20 Mar 2024 01:31:57 GMT",
191
- "comments": {
192
- "patch": [
193
- {
194
- "comment": "Subslide functionaly accessible throughout slides"
195
- }
196
- ]
197
- }
198
- },
199
- {
200
- "version": "0.3.5",
201
- "tag": "@livepreso/content-react_v0.3.5",
202
- "date": "Sun, 03 Mar 2024 23:59:09 GMT",
203
- "comments": {
204
- "patch": [
205
- {
206
- "comment": "Hot reload improvements"
207
- }
208
- ],
209
- "dependency": [
210
- {
211
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.2` to `~1.1.3`"
212
- }
213
- ]
214
- }
215
- },
216
- {
217
- "version": "0.3.4",
218
- "tag": "@livepreso/content-react_v0.3.4",
219
- "date": "Sun, 14 Jan 2024 21:06:16 GMT",
220
- "comments": {
221
- "patch": [
222
- {
223
- "comment": "Remove observer in use-modes due to render loops"
224
- }
225
- ]
226
- }
227
- },
228
- {
229
- "version": "0.3.3",
230
- "tag": "@livepreso/content-react_v0.3.3",
231
- "date": "Thu, 21 Dec 2023 00:50:30 GMT",
232
- "comments": {
233
- "patch": [
234
- {
235
- "comment": "Use useState over useSharedState for now"
236
- }
237
- ]
238
- }
239
- },
240
- {
241
- "version": "0.3.2",
242
- "tag": "@livepreso/content-react_v0.3.2",
243
- "date": "Sun, 17 Dec 2023 21:02:31 GMT",
244
- "comments": {
245
- "patch": [
246
- {
247
- "comment": "Add isShareOnline to useMode"
248
- }
249
- ]
250
- }
251
- },
252
- {
253
- "version": "0.3.1",
254
- "tag": "@livepreso/content-react_v0.3.1",
255
- "date": "Fri, 15 Dec 2023 00:19:06 GMT",
256
- "comments": {
257
- "patch": [
258
- {
259
- "comment": "Add modes and fix use-prep-editables import"
260
- }
261
- ]
262
- }
263
- },
264
- {
265
- "version": "0.3.0",
266
- "tag": "@livepreso/content-react_v0.3.0",
267
- "date": "Thu, 14 Dec 2023 03:11:26 GMT",
268
- "comments": {
269
- "minor": [
270
- {
271
- "comment": "Add use-prep-editable hook and new pdf modes"
272
- }
273
- ]
274
- }
275
- },
276
- {
277
- "version": "0.2.2",
278
- "tag": "@livepreso/content-react_v0.2.2",
279
- "date": "Tue, 14 Nov 2023 01:02:01 GMT",
280
- "comments": {
281
- "patch": [
282
- {
283
- "comment": "Always use correct article element"
284
- }
285
- ],
286
- "dependency": [
287
- {
288
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.1` to `~1.1.2`"
289
- }
290
- ]
291
- }
292
- },
293
- {
294
- "version": "0.2.1",
295
- "tag": "@livepreso/content-react_v0.2.1",
296
- "date": "Wed, 18 Oct 2023 05:58:34 GMT",
297
- "comments": {
298
- "patch": [
299
- {
300
- "comment": "Update content base"
301
- }
302
- ],
303
- "dependency": [
304
- {
305
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.0` to `~1.1.1`"
306
- }
307
- ]
308
- }
309
- },
310
- {
311
- "version": "0.2.0",
312
- "tag": "@livepreso/content-react_v0.2.0",
313
- "date": "Tue, 03 Oct 2023 23:32:09 GMT",
314
- "comments": {
315
- "minor": [
316
- {
317
- "comment": "Allow error page to be overriden"
318
- }
319
- ],
320
- "dependency": [
321
- {
322
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.0.1` to `~1.1.0`"
323
- }
324
- ]
325
- }
326
- },
327
- {
328
- "version": "0.1.2",
329
- "tag": "@livepreso/content-react_v0.1.2",
330
- "date": "Mon, 04 Sep 2023 04:10:06 GMT",
331
- "comments": {
332
- "patch": [
333
- {
334
- "comment": "Don't attempt to render image slides"
335
- }
336
- ],
337
- "dependency": [
338
- {
339
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.0.0` to `~1.0.1`"
340
- }
341
- ]
342
- }
343
- },
344
- {
345
- "version": "0.1.1",
346
- "tag": "@livepreso/content-react_v0.1.1",
347
- "date": "Tue, 11 Jul 2023 22:54:01 GMT",
348
- "comments": {
349
- "dependency": [
350
- {
351
- "comment": "Updating dependency \"@livepreso/content-base\" from `~0.0.4` to `~1.0.0`"
352
- }
353
- ]
354
- }
355
- },
356
- {
357
- "version": "0.1.0",
358
- "tag": "@livepreso/content-react_v0.1.0",
359
- "date": "Tue, 28 Jun 2022 23:37:28 GMT",
360
- "comments": {
361
- "minor": [
362
- {
363
- "comment": "Add support for companywide json"
364
- }
365
- ]
366
- }
367
- },
368
- {
369
- "version": "0.0.2",
370
- "tag": "@livepreso/content-react_v0.0.2",
371
- "date": "Wed, 01 Jun 2022 00:55:51 GMT",
372
- "comments": {
373
- "patch": [
374
- {
375
- "comment": "General fixes"
376
- }
377
- ],
378
- "dependency": [
379
- {
380
- "comment": "Updating dependency \"@livepreso/content-base\" from `~0.0.1` to `~0.0.2`"
381
- }
382
- ]
383
- }
384
- },
385
- {
386
- "version": "0.0.1",
387
- "tag": "@livepreso/content-react_v0.0.1",
388
- "date": "Thu, 05 Aug 2021 06:38:32 GMT",
389
- "comments": {}
390
- }
391
- ]
2
+ "name": "@livepreso/content-react",
3
+ "entries": [
4
+ {
5
+ "version": "0.7.2",
6
+ "tag": "@livepreso/content-react_v0.7.2",
7
+ "date": "Wed, 23 Apr 2025 06:25:28 GMT",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "When using useEditableInitialState for user templates, only prefix returned key with slideID-- when it's going to be used to traverse userCMSVals context data. If slideID-- prefix is already included in the provided key, do not add it again."
12
+ }
13
+ ]
14
+ }
15
+ },
16
+ {
17
+ "version": "0.7.1",
18
+ "tag": "@livepreso/content-react_v0.7.1",
19
+ "date": "Thu, 03 Apr 2025 22:38:00 GMT",
20
+ "comments": {
21
+ "patch": [
22
+ {
23
+ "comment": "fix useEditableInitialState user template value retrieval"
24
+ }
25
+ ]
26
+ }
27
+ },
28
+ {
29
+ "version": "0.7.0",
30
+ "tag": "@livepreso/content-react_v0.7.0",
31
+ "date": "Thu, 06 Mar 2025 00:08:07 GMT",
32
+ "comments": {
33
+ "minor": [
34
+ {
35
+ "comment": "Add isEmptyPreview to useModes hook, move CWE JSON field to underneath slide"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "version": "0.6.2",
42
+ "tag": "@livepreso/content-react_v0.6.2",
43
+ "date": "Tue, 25 Feb 2025 03:34:02 GMT",
44
+ "comments": {
45
+ "patch": [
46
+ {
47
+ "comment": "setContext(key, value) allows setting of falsy values"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ {
53
+ "version": "0.6.1",
54
+ "tag": "@livepreso/content-react_v0.6.1",
55
+ "date": "Thu, 20 Feb 2025 01:26:11 GMT",
56
+ "comments": {
57
+ "patch": [
58
+ {
59
+ "comment": "Update dependencies"
60
+ }
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "version": "0.6.0",
66
+ "tag": "@livepreso/content-react_v0.6.0",
67
+ "date": "Sun, 09 Feb 2025 23:36:42 GMT",
68
+ "comments": {
69
+ "minor": [
70
+ {
71
+ "comment": "added explicit exports to improve IDE hinting"
72
+ }
73
+ ]
74
+ }
75
+ },
76
+ {
77
+ "version": "0.5.2",
78
+ "tag": "@livepreso/content-react_v0.5.2",
79
+ "date": "Fri, 17 Jan 2025 04:54:14 GMT",
80
+ "comments": {
81
+ "patch": [
82
+ {
83
+ "comment": "resolved race condition in useCompanywide setter"
84
+ }
85
+ ]
86
+ }
87
+ },
88
+ {
89
+ "version": "0.5.1",
90
+ "tag": "@livepreso/content-react_v0.5.1",
91
+ "date": "Fri, 17 Jan 2025 03:37:56 GMT",
92
+ "comments": {
93
+ "patch": [
94
+ {
95
+ "comment": "Properly call slideready on hot module reload"
96
+ }
97
+ ],
98
+ "dependency": [
99
+ {
100
+ "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.6` to `1.1.7`"
101
+ }
102
+ ]
103
+ }
104
+ },
105
+ {
106
+ "version": "0.5.0",
107
+ "tag": "@livepreso/content-react_v0.5.0",
108
+ "date": "Tue, 26 Nov 2024 03:54:55 GMT",
109
+ "comments": {
110
+ "minor": [
111
+ {
112
+ "comment": "Add internal presentation slide key to useSlide()"
113
+ }
114
+ ]
115
+ }
116
+ },
117
+ {
118
+ "version": "0.4.3",
119
+ "tag": "@livepreso/content-react_v0.4.3",
120
+ "date": "Thu, 21 Nov 2024 01:14:47 GMT",
121
+ "comments": {
122
+ "patch": [
123
+ {
124
+ "comment": "Move CWE Editables far below content"
125
+ }
126
+ ]
127
+ }
128
+ },
129
+ {
130
+ "version": "0.4.2",
131
+ "tag": "@livepreso/content-react_v0.4.2",
132
+ "date": "Thu, 21 Nov 2024 00:05:45 GMT",
133
+ "comments": {
134
+ "patch": [
135
+ {
136
+ "comment": "Always add global"
137
+ }
138
+ ]
139
+ }
140
+ },
141
+ {
142
+ "version": "0.4.1",
143
+ "tag": "@livepreso/content-react_v0.4.1",
144
+ "date": "Wed, 20 Nov 2024 23:28:52 GMT",
145
+ "comments": {
146
+ "patch": [
147
+ {
148
+ "comment": "Components were not correctly unmounting"
149
+ }
150
+ ]
151
+ }
152
+ },
153
+ {
154
+ "version": "0.4.0",
155
+ "tag": "@livepreso/content-react_v0.4.0",
156
+ "date": "Tue, 24 Sep 2024 03:37:23 GMT",
157
+ "comments": {
158
+ "minor": [
159
+ {
160
+ "comment": "Allow overriding react errors"
161
+ }
162
+ ]
163
+ }
164
+ },
165
+ {
166
+ "version": "0.3.9",
167
+ "tag": "@livepreso/content-react_v0.3.9",
168
+ "date": "Fri, 23 Aug 2024 05:02:46 GMT",
169
+ "comments": {
170
+ "patch": [
171
+ {
172
+ "comment": "Company wide editables fixes"
173
+ }
174
+ ]
175
+ }
176
+ },
177
+ {
178
+ "version": "0.3.8",
179
+ "tag": "@livepreso/content-react_v0.3.8",
180
+ "date": "Wed, 24 Jul 2024 06:53:26 GMT",
181
+ "comments": {
182
+ "patch": [
183
+ {
184
+ "comment": "Update latest"
185
+ }
186
+ ],
187
+ "dependency": [
188
+ {
189
+ "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.4` to `~1.1.5`"
190
+ }
191
+ ]
192
+ }
193
+ },
194
+ {
195
+ "version": "0.3.7",
196
+ "tag": "@livepreso/content-react_v0.3.7",
197
+ "date": "Fri, 03 May 2024 00:56:03 GMT",
198
+ "comments": {
199
+ "patch": [
200
+ {
201
+ "comment": "New version of content-base"
202
+ }
203
+ ],
204
+ "dependency": [
205
+ {
206
+ "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.3` to `~1.1.4`"
207
+ }
208
+ ]
209
+ }
210
+ },
211
+ {
212
+ "version": "0.3.6",
213
+ "tag": "@livepreso/content-react_v0.3.6",
214
+ "date": "Wed, 20 Mar 2024 01:31:57 GMT",
215
+ "comments": {
216
+ "patch": [
217
+ {
218
+ "comment": "Subslide functionaly accessible throughout slides"
219
+ }
220
+ ]
221
+ }
222
+ },
223
+ {
224
+ "version": "0.3.5",
225
+ "tag": "@livepreso/content-react_v0.3.5",
226
+ "date": "Sun, 03 Mar 2024 23:59:09 GMT",
227
+ "comments": {
228
+ "patch": [
229
+ {
230
+ "comment": "Hot reload improvements"
231
+ }
232
+ ],
233
+ "dependency": [
234
+ {
235
+ "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.2` to `~1.1.3`"
236
+ }
237
+ ]
238
+ }
239
+ },
240
+ {
241
+ "version": "0.3.4",
242
+ "tag": "@livepreso/content-react_v0.3.4",
243
+ "date": "Sun, 14 Jan 2024 21:06:16 GMT",
244
+ "comments": {
245
+ "patch": [
246
+ {
247
+ "comment": "Remove observer in use-modes due to render loops"
248
+ }
249
+ ]
250
+ }
251
+ },
252
+ {
253
+ "version": "0.3.3",
254
+ "tag": "@livepreso/content-react_v0.3.3",
255
+ "date": "Thu, 21 Dec 2023 00:50:30 GMT",
256
+ "comments": {
257
+ "patch": [
258
+ {
259
+ "comment": "Use useState over useSharedState for now"
260
+ }
261
+ ]
262
+ }
263
+ },
264
+ {
265
+ "version": "0.3.2",
266
+ "tag": "@livepreso/content-react_v0.3.2",
267
+ "date": "Sun, 17 Dec 2023 21:02:31 GMT",
268
+ "comments": {
269
+ "patch": [
270
+ {
271
+ "comment": "Add isShareOnline to useMode"
272
+ }
273
+ ]
274
+ }
275
+ },
276
+ {
277
+ "version": "0.3.1",
278
+ "tag": "@livepreso/content-react_v0.3.1",
279
+ "date": "Fri, 15 Dec 2023 00:19:06 GMT",
280
+ "comments": {
281
+ "patch": [
282
+ {
283
+ "comment": "Add modes and fix use-prep-editables import"
284
+ }
285
+ ]
286
+ }
287
+ },
288
+ {
289
+ "version": "0.3.0",
290
+ "tag": "@livepreso/content-react_v0.3.0",
291
+ "date": "Thu, 14 Dec 2023 03:11:26 GMT",
292
+ "comments": {
293
+ "minor": [
294
+ {
295
+ "comment": "Add use-prep-editable hook and new pdf modes"
296
+ }
297
+ ]
298
+ }
299
+ },
300
+ {
301
+ "version": "0.2.2",
302
+ "tag": "@livepreso/content-react_v0.2.2",
303
+ "date": "Tue, 14 Nov 2023 01:02:01 GMT",
304
+ "comments": {
305
+ "patch": [
306
+ {
307
+ "comment": "Always use correct article element"
308
+ }
309
+ ],
310
+ "dependency": [
311
+ {
312
+ "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.1` to `~1.1.2`"
313
+ }
314
+ ]
315
+ }
316
+ },
317
+ {
318
+ "version": "0.2.1",
319
+ "tag": "@livepreso/content-react_v0.2.1",
320
+ "date": "Wed, 18 Oct 2023 05:58:34 GMT",
321
+ "comments": {
322
+ "patch": [
323
+ {
324
+ "comment": "Update content base"
325
+ }
326
+ ],
327
+ "dependency": [
328
+ {
329
+ "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.0` to `~1.1.1`"
330
+ }
331
+ ]
332
+ }
333
+ },
334
+ {
335
+ "version": "0.2.0",
336
+ "tag": "@livepreso/content-react_v0.2.0",
337
+ "date": "Tue, 03 Oct 2023 23:32:09 GMT",
338
+ "comments": {
339
+ "minor": [
340
+ {
341
+ "comment": "Allow error page to be overriden"
342
+ }
343
+ ],
344
+ "dependency": [
345
+ {
346
+ "comment": "Updating dependency \"@livepreso/content-base\" from `~1.0.1` to `~1.1.0`"
347
+ }
348
+ ]
349
+ }
350
+ },
351
+ {
352
+ "version": "0.1.2",
353
+ "tag": "@livepreso/content-react_v0.1.2",
354
+ "date": "Mon, 04 Sep 2023 04:10:06 GMT",
355
+ "comments": {
356
+ "patch": [
357
+ {
358
+ "comment": "Don't attempt to render image slides"
359
+ }
360
+ ],
361
+ "dependency": [
362
+ {
363
+ "comment": "Updating dependency \"@livepreso/content-base\" from `~1.0.0` to `~1.0.1`"
364
+ }
365
+ ]
366
+ }
367
+ },
368
+ {
369
+ "version": "0.1.1",
370
+ "tag": "@livepreso/content-react_v0.1.1",
371
+ "date": "Tue, 11 Jul 2023 22:54:01 GMT",
372
+ "comments": {
373
+ "dependency": [
374
+ {
375
+ "comment": "Updating dependency \"@livepreso/content-base\" from `~0.0.4` to `~1.0.0`"
376
+ }
377
+ ]
378
+ }
379
+ },
380
+ {
381
+ "version": "0.1.0",
382
+ "tag": "@livepreso/content-react_v0.1.0",
383
+ "date": "Tue, 28 Jun 2022 23:37:28 GMT",
384
+ "comments": {
385
+ "minor": [
386
+ {
387
+ "comment": "Add support for companywide json"
388
+ }
389
+ ]
390
+ }
391
+ },
392
+ {
393
+ "version": "0.0.2",
394
+ "tag": "@livepreso/content-react_v0.0.2",
395
+ "date": "Wed, 01 Jun 2022 00:55:51 GMT",
396
+ "comments": {
397
+ "patch": [
398
+ {
399
+ "comment": "General fixes"
400
+ }
401
+ ],
402
+ "dependency": [
403
+ {
404
+ "comment": "Updating dependency \"@livepreso/content-base\" from `~0.0.1` to `~0.0.2`"
405
+ }
406
+ ]
407
+ }
408
+ },
409
+ {
410
+ "version": "0.0.1",
411
+ "tag": "@livepreso/content-react_v0.0.1",
412
+ "date": "Thu, 05 Aug 2021 06:38:32 GMT",
413
+ "comments": {}
414
+ }
415
+ ]
392
416
  }
package/CHANGELOG.md CHANGED
@@ -1,8 +1,25 @@
1
1
  # Change Log - @livepreso/content-react
2
2
 
3
- This log was last generated on Thu, 06 Mar 2025 00:08:07 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 23 Apr 2025 06:25:28 GMT and should not be manually modified.
4
+
5
+ ## 0.7.2
6
+
7
+ Wed, 23 Apr 2025 06:25:28 GMT
8
+
9
+ ### Patches
10
+
11
+ - When using useEditableInitialState for user templates, only prefix returned key with slideID-- when it's going to be used to traverse userCMSVals context data. If slideID-- prefix is already included in the provided key, do not add it again.
12
+
13
+ ## 0.7.1
14
+
15
+ Thu, 03 Apr 2025 22:38:00 GMT
16
+
17
+ ### Patches
18
+
19
+ - fix useEditableInitialState user template value retrieval
4
20
 
5
21
  ## 0.7.0
22
+
6
23
  Thu, 06 Mar 2025 00:08:07 GMT
7
24
 
8
25
  ### Minor changes
@@ -10,6 +27,7 @@ Thu, 06 Mar 2025 00:08:07 GMT
10
27
  - Add isEmptyPreview to useModes hook, move CWE JSON field to underneath slide
11
28
 
12
29
  ## 0.6.2
30
+
13
31
  Tue, 25 Feb 2025 03:34:02 GMT
14
32
 
15
33
  ### Patches
@@ -17,6 +35,7 @@ Tue, 25 Feb 2025 03:34:02 GMT
17
35
  - setContext(key, value) allows setting of falsy values
18
36
 
19
37
  ## 0.6.1
38
+
20
39
  Thu, 20 Feb 2025 01:26:11 GMT
21
40
 
22
41
  ### Patches
@@ -24,6 +43,7 @@ Thu, 20 Feb 2025 01:26:11 GMT
24
43
  - Update dependencies
25
44
 
26
45
  ## 0.6.0
46
+
27
47
  Sun, 09 Feb 2025 23:36:42 GMT
28
48
 
29
49
  ### Minor changes
@@ -31,6 +51,7 @@ Sun, 09 Feb 2025 23:36:42 GMT
31
51
  - added explicit exports to improve IDE hinting
32
52
 
33
53
  ## 0.5.2
54
+
34
55
  Fri, 17 Jan 2025 04:54:14 GMT
35
56
 
36
57
  ### Patches
@@ -38,6 +59,7 @@ Fri, 17 Jan 2025 04:54:14 GMT
38
59
  - resolved race condition in useCompanywide setter
39
60
 
40
61
  ## 0.5.1
62
+
41
63
  Fri, 17 Jan 2025 03:37:56 GMT
42
64
 
43
65
  ### Patches
@@ -45,6 +67,7 @@ Fri, 17 Jan 2025 03:37:56 GMT
45
67
  - Properly call slideready on hot module reload
46
68
 
47
69
  ## 0.5.0
70
+
48
71
  Tue, 26 Nov 2024 03:54:55 GMT
49
72
 
50
73
  ### Minor changes
@@ -52,6 +75,7 @@ Tue, 26 Nov 2024 03:54:55 GMT
52
75
  - Add internal presentation slide key to useSlide()
53
76
 
54
77
  ## 0.4.3
78
+
55
79
  Thu, 21 Nov 2024 01:14:47 GMT
56
80
 
57
81
  ### Patches
@@ -59,6 +83,7 @@ Thu, 21 Nov 2024 01:14:47 GMT
59
83
  - Move CWE Editables far below content
60
84
 
61
85
  ## 0.4.2
86
+
62
87
  Thu, 21 Nov 2024 00:05:45 GMT
63
88
 
64
89
  ### Patches
@@ -66,6 +91,7 @@ Thu, 21 Nov 2024 00:05:45 GMT
66
91
  - Always add global
67
92
 
68
93
  ## 0.4.1
94
+
69
95
  Wed, 20 Nov 2024 23:28:52 GMT
70
96
 
71
97
  ### Patches
@@ -73,6 +99,7 @@ Wed, 20 Nov 2024 23:28:52 GMT
73
99
  - Components were not correctly unmounting
74
100
 
75
101
  ## 0.4.0
102
+
76
103
  Tue, 24 Sep 2024 03:37:23 GMT
77
104
 
78
105
  ### Minor changes
@@ -80,6 +107,7 @@ Tue, 24 Sep 2024 03:37:23 GMT
80
107
  - Allow overriding react errors
81
108
 
82
109
  ## 0.3.9
110
+
83
111
  Fri, 23 Aug 2024 05:02:46 GMT
84
112
 
85
113
  ### Patches
@@ -87,6 +115,7 @@ Fri, 23 Aug 2024 05:02:46 GMT
87
115
  - Company wide editables fixes
88
116
 
89
117
  ## 0.3.8
118
+
90
119
  Wed, 24 Jul 2024 06:53:26 GMT
91
120
 
92
121
  ### Patches
@@ -94,6 +123,7 @@ Wed, 24 Jul 2024 06:53:26 GMT
94
123
  - Update latest
95
124
 
96
125
  ## 0.3.7
126
+
97
127
  Fri, 03 May 2024 00:56:03 GMT
98
128
 
99
129
  ### Patches
@@ -101,6 +131,7 @@ Fri, 03 May 2024 00:56:03 GMT
101
131
  - New version of content-base
102
132
 
103
133
  ## 0.3.6
134
+
104
135
  Wed, 20 Mar 2024 01:31:57 GMT
105
136
 
106
137
  ### Patches
@@ -108,6 +139,7 @@ Wed, 20 Mar 2024 01:31:57 GMT
108
139
  - Subslide functionaly accessible throughout slides
109
140
 
110
141
  ## 0.3.5
142
+
111
143
  Sun, 03 Mar 2024 23:59:09 GMT
112
144
 
113
145
  ### Patches
@@ -115,6 +147,7 @@ Sun, 03 Mar 2024 23:59:09 GMT
115
147
  - Hot reload improvements
116
148
 
117
149
  ## 0.3.4
150
+
118
151
  Sun, 14 Jan 2024 21:06:16 GMT
119
152
 
120
153
  ### Patches
@@ -122,6 +155,7 @@ Sun, 14 Jan 2024 21:06:16 GMT
122
155
  - Remove observer in use-modes due to render loops
123
156
 
124
157
  ## 0.3.3
158
+
125
159
  Thu, 21 Dec 2023 00:50:30 GMT
126
160
 
127
161
  ### Patches
@@ -129,6 +163,7 @@ Thu, 21 Dec 2023 00:50:30 GMT
129
163
  - Use useState over useSharedState for now
130
164
 
131
165
  ## 0.3.2
166
+
132
167
  Sun, 17 Dec 2023 21:02:31 GMT
133
168
 
134
169
  ### Patches
@@ -136,6 +171,7 @@ Sun, 17 Dec 2023 21:02:31 GMT
136
171
  - Add isShareOnline to useMode
137
172
 
138
173
  ## 0.3.1
174
+
139
175
  Fri, 15 Dec 2023 00:19:06 GMT
140
176
 
141
177
  ### Patches
@@ -143,6 +179,7 @@ Fri, 15 Dec 2023 00:19:06 GMT
143
179
  - Add modes and fix use-prep-editables import
144
180
 
145
181
  ## 0.3.0
182
+
146
183
  Thu, 14 Dec 2023 03:11:26 GMT
147
184
 
148
185
  ### Minor changes
@@ -150,6 +187,7 @@ Thu, 14 Dec 2023 03:11:26 GMT
150
187
  - Add use-prep-editable hook and new pdf modes
151
188
 
152
189
  ## 0.2.2
190
+
153
191
  Tue, 14 Nov 2023 01:02:01 GMT
154
192
 
155
193
  ### Patches
@@ -157,6 +195,7 @@ Tue, 14 Nov 2023 01:02:01 GMT
157
195
  - Always use correct article element
158
196
 
159
197
  ## 0.2.1
198
+
160
199
  Wed, 18 Oct 2023 05:58:34 GMT
161
200
 
162
201
  ### Patches
@@ -164,6 +203,7 @@ Wed, 18 Oct 2023 05:58:34 GMT
164
203
  - Update content base
165
204
 
166
205
  ## 0.2.0
206
+
167
207
  Tue, 03 Oct 2023 23:32:09 GMT
168
208
 
169
209
  ### Minor changes
@@ -171,6 +211,7 @@ Tue, 03 Oct 2023 23:32:09 GMT
171
211
  - Allow error page to be overriden
172
212
 
173
213
  ## 0.1.2
214
+
174
215
  Mon, 04 Sep 2023 04:10:06 GMT
175
216
 
176
217
  ### Patches
@@ -178,11 +219,13 @@ Mon, 04 Sep 2023 04:10:06 GMT
178
219
  - Don't attempt to render image slides
179
220
 
180
221
  ## 0.1.1
222
+
181
223
  Tue, 11 Jul 2023 22:54:01 GMT
182
224
 
183
225
  _Version update only_
184
226
 
185
227
  ## 0.1.0
228
+
186
229
  Tue, 28 Jun 2022 23:37:28 GMT
187
230
 
188
231
  ### Minor changes
@@ -190,6 +233,7 @@ Tue, 28 Jun 2022 23:37:28 GMT
190
233
  - Add support for companywide json
191
234
 
192
235
  ## 0.0.2
236
+
193
237
  Wed, 01 Jun 2022 00:55:51 GMT
194
238
 
195
239
  ### Patches
@@ -197,7 +241,7 @@ Wed, 01 Jun 2022 00:55:51 GMT
197
241
  - General fixes
198
242
 
199
243
  ## 0.0.1
244
+
200
245
  Thu, 05 Aug 2021 06:38:32 GMT
201
246
 
202
247
  _Initial release_
203
-
@@ -10,7 +10,7 @@ import { useSlide } from "../hooks/use-slide.js";
10
10
  export function CompanywideJSON({ children }) {
11
11
  const { slideKey } = useSlide();
12
12
  const editableRef = useRef();
13
- const [editableValue, editableName] = useEditableInitialState(
13
+ const [editableValue, editableKey] = useEditableInitialState(
14
14
  `${slideKey}-${CWE_JSON_KEY}`,
15
15
  "{}",
16
16
  );
@@ -44,16 +44,16 @@ export function CompanywideJSON({ children }) {
44
44
  () => ({
45
45
  companyWide: state,
46
46
  // If not editable, we just pass a no-op function
47
- updateCompanywide: editableName ? updateField : () => {},
47
+ updateCompanywide: editableKey ? updateField : () => {},
48
48
  }),
49
49
  [state],
50
50
  );
51
51
 
52
52
  return (
53
53
  <CompanywideJSONContext.Provider value={providerValues}>
54
- {editableName && (
54
+ {editableKey && (
55
55
  <div
56
- data-companywide-editable={editableName}
56
+ data-companywide-editable={editableKey}
57
57
  ref={editableRef}
58
58
  tabIndex={-1}
59
59
  style={{
@@ -11,6 +11,9 @@ function getSlideNumericID() {
11
11
  /**
12
12
  * Constructs a user template field key based on the provided key and slide details.
13
13
  *
14
+ * Note: field keys are prefixed with the slide ID when saved to the Context (_userTemplateCMSvals)
15
+ * however they are not prefixed when used for the data-companywide-editable attribute.
16
+ *
14
17
  * Slide ID variations:
15
18
  * saved user template: adjunct-template-slide-415
16
19
  * unsaved user template: adjunct-template-slide-tempkey-1168
@@ -20,25 +23,34 @@ function getSlideNumericID() {
20
23
  * unsaved user template: slideID--key-adjunct-1168
21
24
  *
22
25
  * @param {string} key - The base key of the target field.
26
+ * @param {boolean} options.isUserCMSVals - If true, prefix the returned key with the slide ID.
23
27
  * @returns {string} - The constructed field key for the user template.
24
28
  */
25
- function getUserTemplateFieldKey(key) {
29
+ function getUserTemplateFieldKey(key, { isUserCMSVals = false } = {}) {
26
30
  const { slideID } = useSlide();
27
31
  const slideNumericID = getSlideNumericID();
28
32
  const isUnsavedTemplate = slideID.indexOf("-tempkey") > -1;
29
- const keyPrefix = `${slideID}--${key}`;
33
+ let fieldKey = key;
34
+
35
+ // Add slideID prefix if requested and not included in key
36
+ if (isUserCMSVals && !key.startsWith(`${slideID}--`)) {
37
+ fieldKey = `${slideID}--${key}`;
38
+ }
30
39
 
31
40
  // unsaved user template adds all this on the end
32
41
  if (isUnsavedTemplate) {
33
- return `${keyPrefix}-tempkey-${slideNumericID}`;
42
+ return `${fieldKey}-tempkey-${slideNumericID}`;
34
43
  }
35
44
 
36
- return `${keyPrefix}-adjunct-${slideNumericID}`;
45
+ return `${fieldKey}-adjunct-${slideNumericID}`;
37
46
  }
38
47
 
39
48
  function getUserTemplateData(fieldKey) {
40
49
  const userValues = Bridge.Context.getDict()._userTemplateCMSvals;
41
- return userValues?.find?.((vals) => vals.key === fieldKey) || {};
50
+ return (
51
+ Object.values(userValues || {})?.find?.((vals) => vals.key === fieldKey) ||
52
+ {}
53
+ );
42
54
  }
43
55
 
44
56
  /**
@@ -98,7 +110,10 @@ export function useEditableInitialState(key, defaultValue = "") {
98
110
 
99
111
  if (isUserTemplate) {
100
112
  fieldKey = getUserTemplateFieldKey(key);
101
- data = getUserTemplateData(fieldKey);
113
+ const dataKey = getUserTemplateFieldKey(key, {
114
+ isUserCMSVals: true,
115
+ });
116
+ data = getUserTemplateData(dataKey);
102
117
  } else if (isPMTemplate) {
103
118
  fieldKey = getPMTemplateFieldKey(key);
104
119
  data = getCWEData(fieldKey);
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
1
  {
2
- "name": "@livepreso/content-react",
3
- "version": "0.7.0",
4
- "description": "",
5
- "main": "index.js",
6
- "publishConfig": {
7
- "access": "public"
8
- },
9
- "keywords": [],
10
- "author": "",
11
- "license": "ISC",
12
- "devDependencies": {
13
- "eslint": "~9.15.0",
14
- "@babel/preset-react": "~7.25.9",
15
- "@livepreso/eslint-config": "1.0.0"
16
- },
17
- "dependencies": {
18
- "react": "~18.2.0",
19
- "react-dom": "~18.2.0",
20
- "@livepreso/content-base": "~1.1.8",
21
- "ulog": "~2.0.0-beta.18",
22
- "lodash.get": "~4.4.2",
23
- "lodash.isplainobject": "~4.0.6",
24
- "lodash.set": "~4.3.2",
25
- "lodash.unescape": "~4.0.1"
26
- },
27
- "scripts": {
28
- "build": ""
29
- }
30
- }
2
+ "name": "@livepreso/content-react",
3
+ "version": "0.7.2",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "build": ""
8
+ },
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "keywords": [],
13
+ "author": "",
14
+ "license": "ISC",
15
+ "devDependencies": {
16
+ "@livepreso/eslint-config": "workspace:*",
17
+ "eslint": "~9.15.0",
18
+ "@babel/preset-react": "~7.25.9"
19
+ },
20
+ "dependencies": {
21
+ "react": "~18.2.0",
22
+ "react-dom": "~18.2.0",
23
+ "@livepreso/content-base": "workspace:~1.1.8",
24
+ "ulog": "~2.0.0-beta.18",
25
+ "lodash.get": "~4.4.2",
26
+ "lodash.isplainobject": "~4.0.6",
27
+ "lodash.set": "~4.3.2",
28
+ "lodash.unescape": "~4.0.1"
29
+ }
30
+ }
@@ -1,26 +0,0 @@
1
- {
2
- "files": {
3
- "content/content-react/.eslintrc.js": "6245fc28bbe1102d1b4c2a1db96a508e6221f6bd",
4
- "content/content-react/.stylelintrc": "5c129c044fdf8b0dfd92da7860ea25f60bcde085",
5
- "content/content-react/CHANGELOG.json": "001e63a228a710a99d8534c5bc38ddf662946eed",
6
- "content/content-react/CHANGELOG.md": "b5932d45a8c6fcebf4267435c93a9d98a153242e",
7
- "content/content-react/index.js": "826cec91ed8d4b018b33a847b4df6a3e8631d220",
8
- "content/content-react/lib/components/ScrollableArea.js": "ee97a6ce605c2071f879382d1f347fe4fed83ee4",
9
- "content/content-react/lib/components/ScrollableArea.module.scss": "74543f283eb2db0b67d70ffe0d068e03a1131573",
10
- "content/content-react/lib/components/Subslide.js": "ddec8751b9a86d0cc5f587ec31d7d426f42648c5",
11
- "content/content-react/lib/components/Subslides.js": "764d5901525bab61b8f72dc4fe399a356b185e12",
12
- "content/content-react/lib/components/index.js": "f233f0e270fc648dc9c8ae2abfa93bd9e8ccdc01",
13
- "content/content-react/lib/contexts.js": "59a0173397a32c788c0d61ee317741fe0a9c9bee",
14
- "content/content-react/lib/hooks/index.js": "6fcf567354b94f0ab3fb0e2c4bf502cd5a81429e",
15
- "content/content-react/lib/hooks/use-async-reference.js": "23e3eeff2b87b530d40129a049996a5fe76e34c6",
16
- "content/content-react/lib/hooks/use-context.js": "3f697379e6ee9790ba6b4ae96ad6d6c2ba20a669",
17
- "content/content-react/lib/hooks/use-modes.js": "ad8e27b3659b0fcf6fbe79333ccec86d690ed983",
18
- "content/content-react/lib/hooks/use-root-slide.js": "98ce55032605df9507467b32f7969355318330f4",
19
- "content/content-react/lib/hooks/use-shared-state.js": "0d160ddf3e5dec37849f72f4ec2a1d7aac680159",
20
- "content/content-react/lib/hooks/use-subslides.js": "508ac21b01a4ece811ebc2db9c6a41ef6071e326",
21
- "content/content-react/lib/hooks/use-transitions.js": "c9cdf3e8af82b8f8a51e99ee670334cc5c7c42c1",
22
- "content/content-react/package.json": "1bed2af8c66bfa4ad2540e0e001cea26109435eb",
23
- "content/content-react/.rush/temp/shrinkwrap-deps.json": "b1ad1f22903e0092d2fa7647b96a86692d3accaf"
24
- },
25
- "arguments": ""
26
- }
@@ -1,26 +0,0 @@
1
- {
2
- "files": {
3
- "content/content-react/.rush/temp/shrinkwrap-deps.json": "4645c4e5204fbf6e4b13573ceeacb3c093ff7a90",
4
- "content/content-react/.eslintrc.js": "6245fc28bbe1102d1b4c2a1db96a508e6221f6bd",
5
- "content/content-react/.stylelintrc": "5c129c044fdf8b0dfd92da7860ea25f60bcde085",
6
- "content/content-react/CHANGELOG.json": "001e63a228a710a99d8534c5bc38ddf662946eed",
7
- "content/content-react/CHANGELOG.md": "b5932d45a8c6fcebf4267435c93a9d98a153242e",
8
- "content/content-react/index.js": "826cec91ed8d4b018b33a847b4df6a3e8631d220",
9
- "content/content-react/lib/components/ScrollableArea.js": "ee97a6ce605c2071f879382d1f347fe4fed83ee4",
10
- "content/content-react/lib/components/ScrollableArea.module.scss": "74543f283eb2db0b67d70ffe0d068e03a1131573",
11
- "content/content-react/lib/components/Subslide.js": "ddec8751b9a86d0cc5f587ec31d7d426f42648c5",
12
- "content/content-react/lib/components/Subslides.js": "764d5901525bab61b8f72dc4fe399a356b185e12",
13
- "content/content-react/lib/components/index.js": "f233f0e270fc648dc9c8ae2abfa93bd9e8ccdc01",
14
- "content/content-react/lib/contexts.js": "59a0173397a32c788c0d61ee317741fe0a9c9bee",
15
- "content/content-react/lib/hooks/index.js": "6fcf567354b94f0ab3fb0e2c4bf502cd5a81429e",
16
- "content/content-react/lib/hooks/use-async-reference.js": "23e3eeff2b87b530d40129a049996a5fe76e34c6",
17
- "content/content-react/lib/hooks/use-context.js": "3f697379e6ee9790ba6b4ae96ad6d6c2ba20a669",
18
- "content/content-react/lib/hooks/use-modes.js": "ad8e27b3659b0fcf6fbe79333ccec86d690ed983",
19
- "content/content-react/lib/hooks/use-root-slide.js": "98ce55032605df9507467b32f7969355318330f4",
20
- "content/content-react/lib/hooks/use-shared-state.js": "0d160ddf3e5dec37849f72f4ec2a1d7aac680159",
21
- "content/content-react/lib/hooks/use-subslides.js": "508ac21b01a4ece811ebc2db9c6a41ef6071e326",
22
- "content/content-react/lib/hooks/use-transitions.js": "c9cdf3e8af82b8f8a51e99ee670334cc5c7c42c1",
23
- "content/content-react/package.json": "1bed2af8c66bfa4ad2540e0e001cea26109435eb"
24
- },
25
- "arguments": ""
26
- }
@@ -1,2 +0,0 @@
1
- Project does not have a rush-project.json configuration file, or one provided by a rig, so it does not support caching.
2
-