@livepreso/content-react 0.7.1 → 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,404 +1,416 @@
1
1
  {
2
- "name": "@livepreso/content-react",
3
- "entries": [
4
- {
5
- "version": "0.7.1",
6
- "tag": "@livepreso/content-react_v0.7.1",
7
- "date": "Thu, 03 Apr 2025 22:38:00 GMT",
8
- "comments": {
9
- "patch": [
10
- {
11
- "comment": "fix useEditableInitialState user template value retrieval"
12
- }
13
- ]
14
- }
15
- },
16
- {
17
- "version": "0.7.0",
18
- "tag": "@livepreso/content-react_v0.7.0",
19
- "date": "Thu, 06 Mar 2025 00:08:07 GMT",
20
- "comments": {
21
- "minor": [
22
- {
23
- "comment": "Add isEmptyPreview to useModes hook, move CWE JSON field to underneath slide"
24
- }
25
- ]
26
- }
27
- },
28
- {
29
- "version": "0.6.2",
30
- "tag": "@livepreso/content-react_v0.6.2",
31
- "date": "Tue, 25 Feb 2025 03:34:02 GMT",
32
- "comments": {
33
- "patch": [
34
- {
35
- "comment": "setContext(key, value) allows setting of falsy values"
36
- }
37
- ]
38
- }
39
- },
40
- {
41
- "version": "0.6.1",
42
- "tag": "@livepreso/content-react_v0.6.1",
43
- "date": "Thu, 20 Feb 2025 01:26:11 GMT",
44
- "comments": {
45
- "patch": [
46
- {
47
- "comment": "Update dependencies"
48
- }
49
- ]
50
- }
51
- },
52
- {
53
- "version": "0.6.0",
54
- "tag": "@livepreso/content-react_v0.6.0",
55
- "date": "Sun, 09 Feb 2025 23:36:42 GMT",
56
- "comments": {
57
- "minor": [
58
- {
59
- "comment": "added explicit exports to improve IDE hinting"
60
- }
61
- ]
62
- }
63
- },
64
- {
65
- "version": "0.5.2",
66
- "tag": "@livepreso/content-react_v0.5.2",
67
- "date": "Fri, 17 Jan 2025 04:54:14 GMT",
68
- "comments": {
69
- "patch": [
70
- {
71
- "comment": "resolved race condition in useCompanywide setter"
72
- }
73
- ]
74
- }
75
- },
76
- {
77
- "version": "0.5.1",
78
- "tag": "@livepreso/content-react_v0.5.1",
79
- "date": "Fri, 17 Jan 2025 03:37:56 GMT",
80
- "comments": {
81
- "patch": [
82
- {
83
- "comment": "Properly call slideready on hot module reload"
84
- }
85
- ],
86
- "dependency": [
87
- {
88
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.6` to `1.1.7`"
89
- }
90
- ]
91
- }
92
- },
93
- {
94
- "version": "0.5.0",
95
- "tag": "@livepreso/content-react_v0.5.0",
96
- "date": "Tue, 26 Nov 2024 03:54:55 GMT",
97
- "comments": {
98
- "minor": [
99
- {
100
- "comment": "Add internal presentation slide key to useSlide()"
101
- }
102
- ]
103
- }
104
- },
105
- {
106
- "version": "0.4.3",
107
- "tag": "@livepreso/content-react_v0.4.3",
108
- "date": "Thu, 21 Nov 2024 01:14:47 GMT",
109
- "comments": {
110
- "patch": [
111
- {
112
- "comment": "Move CWE Editables far below content"
113
- }
114
- ]
115
- }
116
- },
117
- {
118
- "version": "0.4.2",
119
- "tag": "@livepreso/content-react_v0.4.2",
120
- "date": "Thu, 21 Nov 2024 00:05:45 GMT",
121
- "comments": {
122
- "patch": [
123
- {
124
- "comment": "Always add global"
125
- }
126
- ]
127
- }
128
- },
129
- {
130
- "version": "0.4.1",
131
- "tag": "@livepreso/content-react_v0.4.1",
132
- "date": "Wed, 20 Nov 2024 23:28:52 GMT",
133
- "comments": {
134
- "patch": [
135
- {
136
- "comment": "Components were not correctly unmounting"
137
- }
138
- ]
139
- }
140
- },
141
- {
142
- "version": "0.4.0",
143
- "tag": "@livepreso/content-react_v0.4.0",
144
- "date": "Tue, 24 Sep 2024 03:37:23 GMT",
145
- "comments": {
146
- "minor": [
147
- {
148
- "comment": "Allow overriding react errors"
149
- }
150
- ]
151
- }
152
- },
153
- {
154
- "version": "0.3.9",
155
- "tag": "@livepreso/content-react_v0.3.9",
156
- "date": "Fri, 23 Aug 2024 05:02:46 GMT",
157
- "comments": {
158
- "patch": [
159
- {
160
- "comment": "Company wide editables fixes"
161
- }
162
- ]
163
- }
164
- },
165
- {
166
- "version": "0.3.8",
167
- "tag": "@livepreso/content-react_v0.3.8",
168
- "date": "Wed, 24 Jul 2024 06:53:26 GMT",
169
- "comments": {
170
- "patch": [
171
- {
172
- "comment": "Update latest"
173
- }
174
- ],
175
- "dependency": [
176
- {
177
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.4` to `~1.1.5`"
178
- }
179
- ]
180
- }
181
- },
182
- {
183
- "version": "0.3.7",
184
- "tag": "@livepreso/content-react_v0.3.7",
185
- "date": "Fri, 03 May 2024 00:56:03 GMT",
186
- "comments": {
187
- "patch": [
188
- {
189
- "comment": "New version of content-base"
190
- }
191
- ],
192
- "dependency": [
193
- {
194
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.3` to `~1.1.4`"
195
- }
196
- ]
197
- }
198
- },
199
- {
200
- "version": "0.3.6",
201
- "tag": "@livepreso/content-react_v0.3.6",
202
- "date": "Wed, 20 Mar 2024 01:31:57 GMT",
203
- "comments": {
204
- "patch": [
205
- {
206
- "comment": "Subslide functionaly accessible throughout slides"
207
- }
208
- ]
209
- }
210
- },
211
- {
212
- "version": "0.3.5",
213
- "tag": "@livepreso/content-react_v0.3.5",
214
- "date": "Sun, 03 Mar 2024 23:59:09 GMT",
215
- "comments": {
216
- "patch": [
217
- {
218
- "comment": "Hot reload improvements"
219
- }
220
- ],
221
- "dependency": [
222
- {
223
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.2` to `~1.1.3`"
224
- }
225
- ]
226
- }
227
- },
228
- {
229
- "version": "0.3.4",
230
- "tag": "@livepreso/content-react_v0.3.4",
231
- "date": "Sun, 14 Jan 2024 21:06:16 GMT",
232
- "comments": {
233
- "patch": [
234
- {
235
- "comment": "Remove observer in use-modes due to render loops"
236
- }
237
- ]
238
- }
239
- },
240
- {
241
- "version": "0.3.3",
242
- "tag": "@livepreso/content-react_v0.3.3",
243
- "date": "Thu, 21 Dec 2023 00:50:30 GMT",
244
- "comments": {
245
- "patch": [
246
- {
247
- "comment": "Use useState over useSharedState for now"
248
- }
249
- ]
250
- }
251
- },
252
- {
253
- "version": "0.3.2",
254
- "tag": "@livepreso/content-react_v0.3.2",
255
- "date": "Sun, 17 Dec 2023 21:02:31 GMT",
256
- "comments": {
257
- "patch": [
258
- {
259
- "comment": "Add isShareOnline to useMode"
260
- }
261
- ]
262
- }
263
- },
264
- {
265
- "version": "0.3.1",
266
- "tag": "@livepreso/content-react_v0.3.1",
267
- "date": "Fri, 15 Dec 2023 00:19:06 GMT",
268
- "comments": {
269
- "patch": [
270
- {
271
- "comment": "Add modes and fix use-prep-editables import"
272
- }
273
- ]
274
- }
275
- },
276
- {
277
- "version": "0.3.0",
278
- "tag": "@livepreso/content-react_v0.3.0",
279
- "date": "Thu, 14 Dec 2023 03:11:26 GMT",
280
- "comments": {
281
- "minor": [
282
- {
283
- "comment": "Add use-prep-editable hook and new pdf modes"
284
- }
285
- ]
286
- }
287
- },
288
- {
289
- "version": "0.2.2",
290
- "tag": "@livepreso/content-react_v0.2.2",
291
- "date": "Tue, 14 Nov 2023 01:02:01 GMT",
292
- "comments": {
293
- "patch": [
294
- {
295
- "comment": "Always use correct article element"
296
- }
297
- ],
298
- "dependency": [
299
- {
300
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.1` to `~1.1.2`"
301
- }
302
- ]
303
- }
304
- },
305
- {
306
- "version": "0.2.1",
307
- "tag": "@livepreso/content-react_v0.2.1",
308
- "date": "Wed, 18 Oct 2023 05:58:34 GMT",
309
- "comments": {
310
- "patch": [
311
- {
312
- "comment": "Update content base"
313
- }
314
- ],
315
- "dependency": [
316
- {
317
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.1.0` to `~1.1.1`"
318
- }
319
- ]
320
- }
321
- },
322
- {
323
- "version": "0.2.0",
324
- "tag": "@livepreso/content-react_v0.2.0",
325
- "date": "Tue, 03 Oct 2023 23:32:09 GMT",
326
- "comments": {
327
- "minor": [
328
- {
329
- "comment": "Allow error page to be overriden"
330
- }
331
- ],
332
- "dependency": [
333
- {
334
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.0.1` to `~1.1.0`"
335
- }
336
- ]
337
- }
338
- },
339
- {
340
- "version": "0.1.2",
341
- "tag": "@livepreso/content-react_v0.1.2",
342
- "date": "Mon, 04 Sep 2023 04:10:06 GMT",
343
- "comments": {
344
- "patch": [
345
- {
346
- "comment": "Don't attempt to render image slides"
347
- }
348
- ],
349
- "dependency": [
350
- {
351
- "comment": "Updating dependency \"@livepreso/content-base\" from `~1.0.0` to `~1.0.1`"
352
- }
353
- ]
354
- }
355
- },
356
- {
357
- "version": "0.1.1",
358
- "tag": "@livepreso/content-react_v0.1.1",
359
- "date": "Tue, 11 Jul 2023 22:54:01 GMT",
360
- "comments": {
361
- "dependency": [
362
- {
363
- "comment": "Updating dependency \"@livepreso/content-base\" from `~0.0.4` to `~1.0.0`"
364
- }
365
- ]
366
- }
367
- },
368
- {
369
- "version": "0.1.0",
370
- "tag": "@livepreso/content-react_v0.1.0",
371
- "date": "Tue, 28 Jun 2022 23:37:28 GMT",
372
- "comments": {
373
- "minor": [
374
- {
375
- "comment": "Add support for companywide json"
376
- }
377
- ]
378
- }
379
- },
380
- {
381
- "version": "0.0.2",
382
- "tag": "@livepreso/content-react_v0.0.2",
383
- "date": "Wed, 01 Jun 2022 00:55:51 GMT",
384
- "comments": {
385
- "patch": [
386
- {
387
- "comment": "General fixes"
388
- }
389
- ],
390
- "dependency": [
391
- {
392
- "comment": "Updating dependency \"@livepreso/content-base\" from `~0.0.1` to `~0.0.2`"
393
- }
394
- ]
395
- }
396
- },
397
- {
398
- "version": "0.0.1",
399
- "tag": "@livepreso/content-react_v0.0.1",
400
- "date": "Thu, 05 Aug 2021 06:38:32 GMT",
401
- "comments": {}
402
- }
403
- ]
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
+ ]
404
416
  }
package/CHANGELOG.md CHANGED
@@ -1,8 +1,17 @@
1
1
  # Change Log - @livepreso/content-react
2
2
 
3
- This log was last generated on Thu, 03 Apr 2025 22:38:00 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.
4
12
 
5
13
  ## 0.7.1
14
+
6
15
  Thu, 03 Apr 2025 22:38:00 GMT
7
16
 
8
17
  ### Patches
@@ -10,6 +19,7 @@ Thu, 03 Apr 2025 22:38:00 GMT
10
19
  - fix useEditableInitialState user template value retrieval
11
20
 
12
21
  ## 0.7.0
22
+
13
23
  Thu, 06 Mar 2025 00:08:07 GMT
14
24
 
15
25
  ### Minor changes
@@ -17,6 +27,7 @@ Thu, 06 Mar 2025 00:08:07 GMT
17
27
  - Add isEmptyPreview to useModes hook, move CWE JSON field to underneath slide
18
28
 
19
29
  ## 0.6.2
30
+
20
31
  Tue, 25 Feb 2025 03:34:02 GMT
21
32
 
22
33
  ### Patches
@@ -24,6 +35,7 @@ Tue, 25 Feb 2025 03:34:02 GMT
24
35
  - setContext(key, value) allows setting of falsy values
25
36
 
26
37
  ## 0.6.1
38
+
27
39
  Thu, 20 Feb 2025 01:26:11 GMT
28
40
 
29
41
  ### Patches
@@ -31,6 +43,7 @@ Thu, 20 Feb 2025 01:26:11 GMT
31
43
  - Update dependencies
32
44
 
33
45
  ## 0.6.0
46
+
34
47
  Sun, 09 Feb 2025 23:36:42 GMT
35
48
 
36
49
  ### Minor changes
@@ -38,6 +51,7 @@ Sun, 09 Feb 2025 23:36:42 GMT
38
51
  - added explicit exports to improve IDE hinting
39
52
 
40
53
  ## 0.5.2
54
+
41
55
  Fri, 17 Jan 2025 04:54:14 GMT
42
56
 
43
57
  ### Patches
@@ -45,6 +59,7 @@ Fri, 17 Jan 2025 04:54:14 GMT
45
59
  - resolved race condition in useCompanywide setter
46
60
 
47
61
  ## 0.5.1
62
+
48
63
  Fri, 17 Jan 2025 03:37:56 GMT
49
64
 
50
65
  ### Patches
@@ -52,6 +67,7 @@ Fri, 17 Jan 2025 03:37:56 GMT
52
67
  - Properly call slideready on hot module reload
53
68
 
54
69
  ## 0.5.0
70
+
55
71
  Tue, 26 Nov 2024 03:54:55 GMT
56
72
 
57
73
  ### Minor changes
@@ -59,6 +75,7 @@ Tue, 26 Nov 2024 03:54:55 GMT
59
75
  - Add internal presentation slide key to useSlide()
60
76
 
61
77
  ## 0.4.3
78
+
62
79
  Thu, 21 Nov 2024 01:14:47 GMT
63
80
 
64
81
  ### Patches
@@ -66,6 +83,7 @@ Thu, 21 Nov 2024 01:14:47 GMT
66
83
  - Move CWE Editables far below content
67
84
 
68
85
  ## 0.4.2
86
+
69
87
  Thu, 21 Nov 2024 00:05:45 GMT
70
88
 
71
89
  ### Patches
@@ -73,6 +91,7 @@ Thu, 21 Nov 2024 00:05:45 GMT
73
91
  - Always add global
74
92
 
75
93
  ## 0.4.1
94
+
76
95
  Wed, 20 Nov 2024 23:28:52 GMT
77
96
 
78
97
  ### Patches
@@ -80,6 +99,7 @@ Wed, 20 Nov 2024 23:28:52 GMT
80
99
  - Components were not correctly unmounting
81
100
 
82
101
  ## 0.4.0
102
+
83
103
  Tue, 24 Sep 2024 03:37:23 GMT
84
104
 
85
105
  ### Minor changes
@@ -87,6 +107,7 @@ Tue, 24 Sep 2024 03:37:23 GMT
87
107
  - Allow overriding react errors
88
108
 
89
109
  ## 0.3.9
110
+
90
111
  Fri, 23 Aug 2024 05:02:46 GMT
91
112
 
92
113
  ### Patches
@@ -94,6 +115,7 @@ Fri, 23 Aug 2024 05:02:46 GMT
94
115
  - Company wide editables fixes
95
116
 
96
117
  ## 0.3.8
118
+
97
119
  Wed, 24 Jul 2024 06:53:26 GMT
98
120
 
99
121
  ### Patches
@@ -101,6 +123,7 @@ Wed, 24 Jul 2024 06:53:26 GMT
101
123
  - Update latest
102
124
 
103
125
  ## 0.3.7
126
+
104
127
  Fri, 03 May 2024 00:56:03 GMT
105
128
 
106
129
  ### Patches
@@ -108,6 +131,7 @@ Fri, 03 May 2024 00:56:03 GMT
108
131
  - New version of content-base
109
132
 
110
133
  ## 0.3.6
134
+
111
135
  Wed, 20 Mar 2024 01:31:57 GMT
112
136
 
113
137
  ### Patches
@@ -115,6 +139,7 @@ Wed, 20 Mar 2024 01:31:57 GMT
115
139
  - Subslide functionaly accessible throughout slides
116
140
 
117
141
  ## 0.3.5
142
+
118
143
  Sun, 03 Mar 2024 23:59:09 GMT
119
144
 
120
145
  ### Patches
@@ -122,6 +147,7 @@ Sun, 03 Mar 2024 23:59:09 GMT
122
147
  - Hot reload improvements
123
148
 
124
149
  ## 0.3.4
150
+
125
151
  Sun, 14 Jan 2024 21:06:16 GMT
126
152
 
127
153
  ### Patches
@@ -129,6 +155,7 @@ Sun, 14 Jan 2024 21:06:16 GMT
129
155
  - Remove observer in use-modes due to render loops
130
156
 
131
157
  ## 0.3.3
158
+
132
159
  Thu, 21 Dec 2023 00:50:30 GMT
133
160
 
134
161
  ### Patches
@@ -136,6 +163,7 @@ Thu, 21 Dec 2023 00:50:30 GMT
136
163
  - Use useState over useSharedState for now
137
164
 
138
165
  ## 0.3.2
166
+
139
167
  Sun, 17 Dec 2023 21:02:31 GMT
140
168
 
141
169
  ### Patches
@@ -143,6 +171,7 @@ Sun, 17 Dec 2023 21:02:31 GMT
143
171
  - Add isShareOnline to useMode
144
172
 
145
173
  ## 0.3.1
174
+
146
175
  Fri, 15 Dec 2023 00:19:06 GMT
147
176
 
148
177
  ### Patches
@@ -150,6 +179,7 @@ Fri, 15 Dec 2023 00:19:06 GMT
150
179
  - Add modes and fix use-prep-editables import
151
180
 
152
181
  ## 0.3.0
182
+
153
183
  Thu, 14 Dec 2023 03:11:26 GMT
154
184
 
155
185
  ### Minor changes
@@ -157,6 +187,7 @@ Thu, 14 Dec 2023 03:11:26 GMT
157
187
  - Add use-prep-editable hook and new pdf modes
158
188
 
159
189
  ## 0.2.2
190
+
160
191
  Tue, 14 Nov 2023 01:02:01 GMT
161
192
 
162
193
  ### Patches
@@ -164,6 +195,7 @@ Tue, 14 Nov 2023 01:02:01 GMT
164
195
  - Always use correct article element
165
196
 
166
197
  ## 0.2.1
198
+
167
199
  Wed, 18 Oct 2023 05:58:34 GMT
168
200
 
169
201
  ### Patches
@@ -171,6 +203,7 @@ Wed, 18 Oct 2023 05:58:34 GMT
171
203
  - Update content base
172
204
 
173
205
  ## 0.2.0
206
+
174
207
  Tue, 03 Oct 2023 23:32:09 GMT
175
208
 
176
209
  ### Minor changes
@@ -178,6 +211,7 @@ Tue, 03 Oct 2023 23:32:09 GMT
178
211
  - Allow error page to be overriden
179
212
 
180
213
  ## 0.1.2
214
+
181
215
  Mon, 04 Sep 2023 04:10:06 GMT
182
216
 
183
217
  ### Patches
@@ -185,11 +219,13 @@ Mon, 04 Sep 2023 04:10:06 GMT
185
219
  - Don't attempt to render image slides
186
220
 
187
221
  ## 0.1.1
222
+
188
223
  Tue, 11 Jul 2023 22:54:01 GMT
189
224
 
190
225
  _Version update only_
191
226
 
192
227
  ## 0.1.0
228
+
193
229
  Tue, 28 Jun 2022 23:37:28 GMT
194
230
 
195
231
  ### Minor changes
@@ -197,6 +233,7 @@ Tue, 28 Jun 2022 23:37:28 GMT
197
233
  - Add support for companywide json
198
234
 
199
235
  ## 0.0.2
236
+
200
237
  Wed, 01 Jun 2022 00:55:51 GMT
201
238
 
202
239
  ### Patches
@@ -204,7 +241,7 @@ Wed, 01 Jun 2022 00:55:51 GMT
204
241
  - General fixes
205
242
 
206
243
  ## 0.0.1
244
+
207
245
  Thu, 05 Aug 2021 06:38:32 GMT
208
246
 
209
247
  _Initial release_
210
-
@@ -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,20 +23,26 @@ 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) {
@@ -101,7 +110,10 @@ export function useEditableInitialState(key, defaultValue = "") {
101
110
 
102
111
  if (isUserTemplate) {
103
112
  fieldKey = getUserTemplateFieldKey(key);
104
- data = getUserTemplateData(fieldKey);
113
+ const dataKey = getUserTemplateFieldKey(key, {
114
+ isUserCMSVals: true,
115
+ });
116
+ data = getUserTemplateData(dataKey);
105
117
  } else if (isPMTemplate) {
106
118
  fieldKey = getPMTemplateFieldKey(key);
107
119
  data = getCWEData(fieldKey);
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
1
  {
2
- "name": "@livepreso/content-react",
3
- "version": "0.7.1",
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
-