@livepreso/api 6.57.0 → 6.57.1
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/.rush/temp/chunked-rush-logs/api.build.chunks.jsonl +5 -15
- package/.rush/temp/operation/build/all.log +5 -15
- package/.rush/temp/operation/build/error.log +3 -13
- package/.rush/temp/operation/build/log-chunks.jsonl +5 -15
- package/.rush/temp/operation/build/state.json +1 -1
- package/.rush/temp/shrinkwrap-deps.json +11 -11
- package/CHANGELOG.json +23 -0
- package/CHANGELOG.md +10 -1
- package/cjs/collections/adjunct-sub-slides.js +13 -1
- package/cjs/collections/adjunct-sub-slides.js.map +1 -1
- package/cjs/fixtures.js +13 -2
- package/cjs/fixtures.js.map +1 -1
- package/cjs/models/base.js +12 -3
- package/cjs/models/base.js.map +1 -1
- package/cjs/models/deck-version.js +2 -0
- package/cjs/models/deck-version.js.map +1 -1
- package/cjs/models/dispatch.js +1 -1
- package/cjs/models/dispatch.js.map +1 -1
- package/cjs/models/room.js +4 -0
- package/cjs/models/room.js.map +1 -1
- package/cjs/models/user.js +1 -1
- package/cjs/models/user.js.map +1 -1
- package/cjs/presentation/base-presentation-model.js +6 -6
- package/cjs/presentation/base-presentation-model.js.map +1 -1
- package/cjs/presentation/presentation-deck.js +82 -27
- package/cjs/presentation/presentation-deck.js.map +1 -1
- package/cjs/presentation/presentation-section.js +42 -47
- package/cjs/presentation/presentation-section.js.map +1 -1
- package/cjs/presentation/presentation-slide.js +35 -39
- package/cjs/presentation/presentation-slide.js.map +1 -1
- package/cjs/utils.js +9 -6
- package/cjs/utils.js.map +1 -1
- package/package.json +3 -3
- package/rush-logs/api.build.error.log +3 -13
- package/rush-logs/api.build.log +5 -15
- package/src/collections/adjunct-sub-slides.js +13 -0
- package/src/fixtures.js +16 -2
- package/src/models/base.js +16 -3
- package/src/models/deck-version.js +2 -0
- package/src/models/dispatch.js +1 -1
- package/src/models/room.js +5 -0
- package/src/models/user.js +4 -4
- package/src/presentation/base-presentation-model.js +14 -6
- package/src/presentation/presentation-deck.js +63 -24
- package/src/presentation/presentation-section.js +31 -50
- package/src/presentation/presentation-slide.js +36 -43
- package/src/utils.js +9 -6
- package/.rush/temp/1aebf46f78ad5c45f82f8147751890adb37bef9d.log +0 -10
- package/.rush/temp/256021b5963b4c0221d3dec247b697b9691a9b2c.log +0 -10
- package/.rush/temp/2a322f00f12cf9d1e64afe81275cc78d01c49050.log +0 -10
- package/.rush/temp/30061f1865447dcbb3f20a305061205f3dbe6091.log +0 -10
- package/.rush/temp/3cdc82c352e8ed90607952873f3aa4c200490874.log +0 -10
- package/.rush/temp/45522aea0dee8cb2be1a53248ba45bd235743b43.log +0 -10
- package/.rush/temp/5489ab737e406518983c16c57fc3e1edc07c0341.log +0 -10
- package/.rush/temp/58fcbb7f15a76326d40e0839ab179755da82a891.log +0 -10
- package/.rush/temp/5bc0bba70b733baa4dd976667ba0a1386e516186.log +0 -10
- package/.rush/temp/64f1bb696f8d7d7e72907b80df316b127f72e23e.log +0 -10
- package/.rush/temp/6f640f951414ea68adb65c17e4ed7527cde54faf.log +0 -10
- package/.rush/temp/7c7b958682d4ab5697530be47d0aac62efe1adf1.log +0 -10
- package/.rush/temp/82bfb987463fbcfebf04022e6ed00015c73879c8.log +0 -10
- package/.rush/temp/844034aa6e542115075e8f3dc5ffc640973e0064.log +0 -10
- package/.rush/temp/8b42957a7c15da1f29cb57bee125f13affa70dca.log +0 -10
- package/.rush/temp/924652444ab5a6063f328a2217123a2227058896.log +0 -10
- package/.rush/temp/9f2030f96d62f3e38052e35201819a216566f14f.log +0 -10
- package/.rush/temp/a769db9d81a23000c0e9b1bf4f1a9a9e721d0d7c.log +0 -10
- package/.rush/temp/a87d3a8b4ece87ec66f27c86226a9f205617681f.log +0 -10
- package/.rush/temp/bb7a5bdcc4af4ad1507f81f33774b31f5b4e4fb7.log +0 -10
- package/.rush/temp/build-cache-tar.log +0 -7
- package/.rush/temp/c20e29ccaaa9231b38a28bb24451b4ce7562cdc0.log +0 -10
- package/.rush/temp/chunked-rush-logs/api.test.chunks.jsonl +0 -1
- package/.rush/temp/e21303db8f59b4625fd184c9114377d781fd24f8.log +0 -10
- package/.rush/temp/e6d303862765b6a5f41dd483d0f9ae083a1fae10.log +0 -10
- package/.rush/temp/eaf69fbc059d2f1258d7569136180d4a1d3c7072.log +0 -10
- package/.rush/temp/f85d279e2674966daaec83e1c3986a96f86ef304.log +0 -10
- package/.rush/temp/fc0a332c5b34c6b90006850cf2d93a48fb4b9a6e.log +0 -10
- package/.rush/temp/operation/test/all.log +0 -21
- package/.rush/temp/operation/test/log-chunks.jsonl +0 -21
- package/.rush/temp/operation/test/state.json +0 -3
- package/.rush/temp/package-deps_build.json +0 -185
- package/api.build.log +0 -9
- package/api.test.cache.log +0 -1
- package/api.test.log +0 -19
- package/rush-logs/api.test.cache.log +0 -1
- package/rush-logs/api.test.log +0 -1
|
@@ -120,21 +120,19 @@ PresentationDeck.createFromDeckVersion = function (
|
|
|
120
120
|
deckVersionModel,
|
|
121
121
|
options = {},
|
|
122
122
|
) {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
options.screenshots = PresentationDeck.screenshotsToMap(options.screenshots);
|
|
123
|
+
options.index ??= 0;
|
|
124
|
+
options.autoAdjuncts ??= new collections.AutoAdjunctCollection();
|
|
125
|
+
options.adjunctSections ??= new collections.AdjunctSectionCollection();
|
|
126
|
+
options.adjunctSlides ??= new collections.AdjunctSlideCollection();
|
|
127
|
+
options.adjunctSubSlides ??= new collections.AdjunctSubSlideCollection();
|
|
128
|
+
options.sectionSelections ??= new collections.SectionSelectionCollection();
|
|
129
|
+
options.slideSelections ??= new collections.SlideSelectionCollection();
|
|
130
|
+
options.rootAssetPath ??= null;
|
|
131
|
+
options.templates ??= null;
|
|
132
|
+
options.choicelist ??= null;
|
|
133
|
+
options.screenshots = PresentationDeck.screenshotsToMap(
|
|
134
|
+
options.screenshots ?? new collections.DeckVersionScreenshotCollection(),
|
|
135
|
+
);
|
|
138
136
|
|
|
139
137
|
const assetRoot = getAssetRoot(deckVersionModel.index_asset.url());
|
|
140
138
|
let html;
|
|
@@ -210,6 +208,38 @@ PresentationDeck.createFromDeckVersion = function (
|
|
|
210
208
|
}),
|
|
211
209
|
);
|
|
212
210
|
|
|
211
|
+
options.selectionsMap = new Map(options.selections.map((s) => [s.url, s]));
|
|
212
|
+
|
|
213
|
+
if (options.appointmentTags) {
|
|
214
|
+
options.appointmentTagsMap = new Map(
|
|
215
|
+
options.appointmentTags.map((t) => [t.content_url, t]),
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if (options.rootAssetPath) {
|
|
220
|
+
options.baseRoot = getAssetRoot(deckVersionModel.index_asset.url());
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
options.adjunctSlidesBySection = new Map();
|
|
224
|
+
for (const slide of options.adjunctSlides.models) {
|
|
225
|
+
if (slide.section) {
|
|
226
|
+
const key = slide.section.id;
|
|
227
|
+
if (!options.adjunctSlidesBySection.has(key)) {
|
|
228
|
+
options.adjunctSlidesBySection.set(key, []);
|
|
229
|
+
}
|
|
230
|
+
options.adjunctSlidesBySection.get(key).push(slide);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
options.adjunctSubSlidesBySlide = new Map();
|
|
235
|
+
for (const subslide of options.adjunctSubSlides.models) {
|
|
236
|
+
const key = subslide.slide.id;
|
|
237
|
+
if (!options.adjunctSubSlidesBySlide.has(key)) {
|
|
238
|
+
options.adjunctSubSlidesBySlide.set(key, []);
|
|
239
|
+
}
|
|
240
|
+
options.adjunctSubSlidesBySlide.get(key).push(subslide);
|
|
241
|
+
}
|
|
242
|
+
|
|
213
243
|
// We want all adjuncts to have fake ids that can't possibly overlap with the ids of
|
|
214
244
|
// normal sections, slides and subslides, so we make a base ID that is larger than
|
|
215
245
|
// all existing IDs then use the getUniqueAdjunctID function to retrieve an incremented ID
|
|
@@ -239,11 +269,11 @@ PresentationDeck.createFromDeckVersion = function (
|
|
|
239
269
|
);
|
|
240
270
|
|
|
241
271
|
section.addSlides(sectionModel.slide_set, options);
|
|
272
|
+
|
|
242
273
|
deck.sections.add(section);
|
|
243
274
|
|
|
244
|
-
const adjunctSlides =
|
|
245
|
-
|
|
246
|
-
});
|
|
275
|
+
const adjunctSlides =
|
|
276
|
+
options.adjunctSlidesBySection.get(section.id) ?? [];
|
|
247
277
|
|
|
248
278
|
section.addSlides(adjunctSlides, options);
|
|
249
279
|
});
|
|
@@ -315,10 +345,18 @@ PresentationDeck.createFromDeckVersion = function (
|
|
|
315
345
|
// slides with the sequence > 110 then I know that all slides with a sequence > 110
|
|
316
346
|
// are valid. I then remove those slides from the slides array and move down to the
|
|
317
347
|
// next section.
|
|
348
|
+
slides.sort((a, b) => b.sequence - a.sequence);
|
|
349
|
+
|
|
350
|
+
let slideIdx = 0;
|
|
318
351
|
deck.sections.models.reverse().forEach((section) => {
|
|
319
|
-
const sectionSlides =
|
|
320
|
-
|
|
321
|
-
|
|
352
|
+
const sectionSlides = [];
|
|
353
|
+
while (
|
|
354
|
+
slideIdx < slides.length &&
|
|
355
|
+
slides[slideIdx].sequence > section.sequence
|
|
356
|
+
) {
|
|
357
|
+
sectionSlides.push(slides[slideIdx]);
|
|
358
|
+
slideIdx++;
|
|
359
|
+
}
|
|
322
360
|
|
|
323
361
|
section.slides.add(sectionSlides);
|
|
324
362
|
|
|
@@ -331,8 +369,9 @@ PresentationDeck.createFromDeckVersion = function (
|
|
|
331
369
|
section.slides.forEach((slide) => {
|
|
332
370
|
slide.section = section.id;
|
|
333
371
|
});
|
|
334
|
-
|
|
335
|
-
|
|
372
|
+
sectionSlides.forEach((slide) => {
|
|
373
|
+
slide._values.section = section.id;
|
|
374
|
+
});
|
|
336
375
|
});
|
|
337
376
|
|
|
338
377
|
// Average the adjunct slide limit used across the entire deck over each section
|
|
@@ -509,7 +548,7 @@ PresentationDeck.createFromManifestJSON = function (manifestJSON, project) {
|
|
|
509
548
|
};
|
|
510
549
|
});
|
|
511
550
|
|
|
512
|
-
const minID =
|
|
551
|
+
const minID = Math.max(...deck.sections.map((s) => s.id));
|
|
513
552
|
|
|
514
553
|
deck.sections.add(
|
|
515
554
|
templates.map((template, index) => {
|
|
@@ -124,14 +124,10 @@ export const PresentationSection = BasePresentationModel.extend(
|
|
|
124
124
|
},
|
|
125
125
|
|
|
126
126
|
addSlides(slides, options = {}) {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
getUniqueAdjunctID: () => {
|
|
132
|
-
return parseInt(_.uniqueId(), 10);
|
|
133
|
-
},
|
|
134
|
-
});
|
|
127
|
+
options.rootAssetPath ??= null;
|
|
128
|
+
options.templates ??= null;
|
|
129
|
+
options.choicelist ??= null;
|
|
130
|
+
options.getUniqueAdjunctID ??= () => parseInt(_.uniqueId(), 10);
|
|
135
131
|
|
|
136
132
|
if (this.createdByTemplate) {
|
|
137
133
|
throw new Error("Can not add slides to a template");
|
|
@@ -181,15 +177,11 @@ export const PresentationSection = BasePresentationModel.extend(
|
|
|
181
177
|
* @returns {presentation.PresentationSection}
|
|
182
178
|
*/
|
|
183
179
|
PresentationSection.createFromSection = function (sectionModel, options = {}) {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
choicelist: null,
|
|
188
|
-
screenshots: new collections.DeckVersionScreenshotCollection(),
|
|
189
|
-
});
|
|
190
|
-
|
|
180
|
+
options.rootAssetPath ??= null;
|
|
181
|
+
options.selections ??= null;
|
|
182
|
+
options.choicelist ??= null;
|
|
191
183
|
options.screenshots = PresentationSection.screenshotsToMap(
|
|
192
|
-
options.screenshots,
|
|
184
|
+
options.screenshots ?? new collections.DeckVersionScreenshotCollection(),
|
|
193
185
|
);
|
|
194
186
|
|
|
195
187
|
let html;
|
|
@@ -198,7 +190,9 @@ PresentationSection.createFromSection = function (sectionModel, options = {}) {
|
|
|
198
190
|
const assetRoot = getAssetRoot(sectionModel.index_asset.url());
|
|
199
191
|
|
|
200
192
|
if (options.rootAssetPath) {
|
|
201
|
-
const baseRoot =
|
|
193
|
+
const baseRoot =
|
|
194
|
+
options.baseRoot ??
|
|
195
|
+
getAssetRoot(sectionModel.deckversion.index_asset.url());
|
|
202
196
|
const sectionPath = assetRoot.slice(baseRoot.length);
|
|
203
197
|
|
|
204
198
|
html = `${options.rootAssetPath}${sectionPath}index.html`;
|
|
@@ -261,18 +255,12 @@ PresentationSection.createFromAdjunctSection = function (
|
|
|
261
255
|
deckVersionModel,
|
|
262
256
|
options = {},
|
|
263
257
|
) {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
getUniqueAdjunctID: () => {
|
|
269
|
-
return parseInt(_.uniqueId(), 10);
|
|
270
|
-
},
|
|
271
|
-
screenshots: new collections.DeckVersionScreenshotCollection(),
|
|
272
|
-
});
|
|
273
|
-
|
|
258
|
+
options.rootAssetPath ??= null;
|
|
259
|
+
options.selections ??= null;
|
|
260
|
+
options.choicelist ??= null;
|
|
261
|
+
options.getUniqueAdjunctID ??= () => parseInt(_.uniqueId(), 10);
|
|
274
262
|
options.screenshots = PresentationSection.screenshotsToMap(
|
|
275
|
-
options.screenshots,
|
|
263
|
+
options.screenshots ?? new collections.DeckVersionScreenshotCollection(),
|
|
276
264
|
);
|
|
277
265
|
|
|
278
266
|
const keyID =
|
|
@@ -366,15 +354,11 @@ PresentationSection.createFromImpostorSection = function (
|
|
|
366
354
|
slideModel,
|
|
367
355
|
options = {},
|
|
368
356
|
) {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
choicelist: null,
|
|
373
|
-
screenshots: new collections.DeckVersionScreenshotCollection(),
|
|
374
|
-
});
|
|
375
|
-
|
|
357
|
+
options.rootAssetPath ??= null;
|
|
358
|
+
options.selections ??= null;
|
|
359
|
+
options.choicelist ??= null;
|
|
376
360
|
options.screenshots = PresentationSection.screenshotsToMap(
|
|
377
|
-
options.screenshots,
|
|
361
|
+
options.screenshots ?? new collections.DeckVersionScreenshotCollection(),
|
|
378
362
|
);
|
|
379
363
|
|
|
380
364
|
let html;
|
|
@@ -383,9 +367,9 @@ PresentationSection.createFromImpostorSection = function (
|
|
|
383
367
|
const assetRoot = getAssetRoot(slideModel.index_asset.url());
|
|
384
368
|
|
|
385
369
|
if (options.rootAssetPath) {
|
|
386
|
-
const baseRoot =
|
|
387
|
-
|
|
388
|
-
|
|
370
|
+
const baseRoot =
|
|
371
|
+
options.baseRoot ??
|
|
372
|
+
getAssetRoot(slideModel.section.deckversion.index_asset.url());
|
|
389
373
|
const sectionPath = assetRoot.slice(baseRoot.length);
|
|
390
374
|
|
|
391
375
|
html = `${options.rootAssetPath}${sectionPath}index.html`;
|
|
@@ -522,18 +506,15 @@ PresentationSection.createFromAutoAdjunct = function (model, opts = {}) {
|
|
|
522
506
|
}
|
|
523
507
|
}
|
|
524
508
|
|
|
525
|
-
const options =
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
screenshots: new collections.DeckVersionScreenshotCollection(),
|
|
533
|
-
});
|
|
534
|
-
|
|
509
|
+
const options = opts;
|
|
510
|
+
options.allowConvert ??= true;
|
|
511
|
+
options.visible ??= true;
|
|
512
|
+
options.index ??= -1;
|
|
513
|
+
options.deckversionID ??= -1;
|
|
514
|
+
options.sequence ??= opts.index;
|
|
515
|
+
options.impostor ??= false;
|
|
535
516
|
options.screenshots = PresentationSection.screenshotsToMap(
|
|
536
|
-
options.screenshots,
|
|
517
|
+
options.screenshots ?? new collections.DeckVersionScreenshotCollection(),
|
|
537
518
|
);
|
|
538
519
|
|
|
539
520
|
const tags = PresentationSection.getTags(
|
|
@@ -133,18 +133,14 @@ export const PresentationSlide = BasePresentationModel.extend(
|
|
|
133
133
|
* @returns {presentation.PresentationSlide}
|
|
134
134
|
*/
|
|
135
135
|
PresentationSlide.createFromSlide = function (slideModel, options = {}) {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
},
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
options.screenshots = PresentationSlide.screenshotsToMap(options.screenshots);
|
|
136
|
+
options.adjunctSubSlides ??= new collections.AdjunctSubSlideCollection();
|
|
137
|
+
options.rootAssetPath ??= null;
|
|
138
|
+
options.selections ??= null;
|
|
139
|
+
options.choicelist ??= null;
|
|
140
|
+
options.getUniqueAdjunctID ??= () => parseInt(_.uniqueId(), 10);
|
|
141
|
+
options.screenshots = PresentationSlide.screenshotsToMap(
|
|
142
|
+
options.screenshots ?? new collections.DeckVersionScreenshotCollection(),
|
|
143
|
+
);
|
|
148
144
|
|
|
149
145
|
let html;
|
|
150
146
|
let css;
|
|
@@ -152,9 +148,9 @@ PresentationSlide.createFromSlide = function (slideModel, options = {}) {
|
|
|
152
148
|
const assetRoot = getAssetRoot(slideModel.index_asset.url());
|
|
153
149
|
|
|
154
150
|
if (options.rootAssetPath) {
|
|
155
|
-
const baseRoot =
|
|
156
|
-
|
|
157
|
-
|
|
151
|
+
const baseRoot =
|
|
152
|
+
options.baseRoot ??
|
|
153
|
+
getAssetRoot(slideModel.section.deckversion.index_asset.url());
|
|
158
154
|
const slidePath = assetRoot.slice(baseRoot.length);
|
|
159
155
|
html = `${options.rootAssetPath}${slidePath}index.html`;
|
|
160
156
|
css = `${options.rootAssetPath}${slidePath}slide.css`;
|
|
@@ -202,9 +198,11 @@ PresentationSlide.createFromSlide = function (slideModel, options = {}) {
|
|
|
202
198
|
}),
|
|
203
199
|
);
|
|
204
200
|
|
|
205
|
-
const adjunctSubslides = options.
|
|
206
|
-
|
|
207
|
-
|
|
201
|
+
const adjunctSubslides = options.adjunctSubSlidesBySlide
|
|
202
|
+
? (options.adjunctSubSlidesBySlide.get(slideModel.id) ?? [])
|
|
203
|
+
: options.adjunctSubSlides.filter(
|
|
204
|
+
(model) => model.slide.id === slideModel.id,
|
|
205
|
+
);
|
|
208
206
|
|
|
209
207
|
// If the slide's content is entirely adjunct and does not have a distinct
|
|
210
208
|
// first subslide, we need to create one based on the slide.
|
|
@@ -220,7 +218,7 @@ PresentationSlide.createFromSlide = function (slideModel, options = {}) {
|
|
|
220
218
|
|
|
221
219
|
let maxID = 0;
|
|
222
220
|
if (slide.subslides.length) {
|
|
223
|
-
maxID =
|
|
221
|
+
maxID = Math.max(...slide.subslides.map((s) => s.id));
|
|
224
222
|
}
|
|
225
223
|
|
|
226
224
|
// Add any adjunct subslides to the list
|
|
@@ -251,18 +249,14 @@ PresentationSlide.createFromAdjunctSlide = function (
|
|
|
251
249
|
section = null,
|
|
252
250
|
options = {},
|
|
253
251
|
) {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
screenshots: new collections.DeckVersionScreenshotCollection(),
|
|
263
|
-
});
|
|
264
|
-
|
|
265
|
-
options.screenshots = PresentationSlide.screenshotsToMap(options.screenshots);
|
|
252
|
+
options.id ??= null;
|
|
253
|
+
options.rootAssetPath ??= null;
|
|
254
|
+
options.selections ??= null;
|
|
255
|
+
options.choicelist ??= null;
|
|
256
|
+
options.getUniqueAdjunctID ??= () => parseInt(_.uniqueId(), 10);
|
|
257
|
+
options.screenshots = PresentationSlide.screenshotsToMap(
|
|
258
|
+
options.screenshots ?? new collections.DeckVersionScreenshotCollection(),
|
|
259
|
+
);
|
|
266
260
|
|
|
267
261
|
const keyID =
|
|
268
262
|
adjunctSlideModel.id ||
|
|
@@ -454,18 +448,17 @@ PresentationSlide.createFromAutoAdjunct = function (model, opts = {}) {
|
|
|
454
448
|
}
|
|
455
449
|
}
|
|
456
450
|
|
|
457
|
-
const options =
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
options.screenshots = PresentationSlide.screenshotsToMap(options.screenshots);
|
|
451
|
+
const options = opts;
|
|
452
|
+
options.allowConvert ??= true;
|
|
453
|
+
options.visible ??= true;
|
|
454
|
+
options.index ??= -1;
|
|
455
|
+
options.deckversionID ??= -1;
|
|
456
|
+
options.sectionKey ??= "";
|
|
457
|
+
options.sequence ??= opts.index;
|
|
458
|
+
options.impostor ??= false;
|
|
459
|
+
options.screenshots = PresentationSlide.screenshotsToMap(
|
|
460
|
+
options.screenshots ?? new collections.DeckVersionScreenshotCollection(),
|
|
461
|
+
);
|
|
469
462
|
|
|
470
463
|
const tags = PresentationSlide.getTags(
|
|
471
464
|
{
|
package/src/utils.js
CHANGED
|
@@ -125,17 +125,20 @@ export function getMaxID(deckVersionModel) {
|
|
|
125
125
|
// but the sequence is not necessarily 0-based and sequential (e.g. in the
|
|
126
126
|
// case of impostor decks). We fix that here.
|
|
127
127
|
export function setSequentialSequences(deck) {
|
|
128
|
+
// Write directly to _values to bypass ampersand-state's setter overhead
|
|
129
|
+
// (type casting + change event firing). These are freshly created presentation
|
|
130
|
+
// models with no external listeners, so skipping the events is safe.
|
|
128
131
|
deck.sections.forEach((section, index) => {
|
|
129
|
-
section.sequence = index;
|
|
130
|
-
section.index = index;
|
|
132
|
+
section._values.sequence = index;
|
|
133
|
+
section._values.index = index;
|
|
131
134
|
|
|
132
135
|
section.slides.forEach((slide, index) => {
|
|
133
|
-
slide.sequence = index;
|
|
134
|
-
slide.index = index;
|
|
136
|
+
slide._values.sequence = index;
|
|
137
|
+
slide._values.index = index;
|
|
135
138
|
|
|
136
139
|
slide.subslides.forEach((subslide, index) => {
|
|
137
|
-
subslide.sequence = index;
|
|
138
|
-
subslide.index = index;
|
|
140
|
+
subslide._values.sequence = index;
|
|
141
|
+
subslide._values.index = index;
|
|
139
142
|
});
|
|
140
143
|
});
|
|
141
144
|
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Wed Jul 27 2022 10:27:08 GMT+1000 (Australian Eastern Standard Time)
|
|
2
|
-
Invoking "/usr/bin/tar -x -m -f /home/adam/Programming/work/livepreso/common/temp/build-cache/1aebf46f78ad5c45f82f8147751890adb37bef9d"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Fri May 06 2022 15:04:15 GMT+1000 (Australian Eastern Standard Time)
|
|
2
|
-
Invoking "/usr/bin/tar -x -m -f /home/adam/Programming/work/livepreso/common/temp/build-cache/256021b5963b4c0221d3dec247b697b9691a9b2c"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Thu May 19 2022 15:05:38 GMT+1000 (Australian Eastern Standard Time)
|
|
2
|
-
Invoking "/usr/bin/tar -x -m -f /home/adam/Programming/work/livepreso/common/temp/build-cache/2a322f00f12cf9d1e64afe81275cc78d01c49050"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Wed Mar 02 2022 11:57:30 GMT+1100 (Australian Eastern Daylight Time)
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /home/adam/Programming/work/livepreso/common/temp/build-cache/30061f1865447dcbb3f20a305061205f3dbe6091.temp -z --files-from=-"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Thu Aug 18 2022 10:29:50 GMT+1000 (Australian Eastern Standard Time)
|
|
2
|
-
Invoking "/usr/bin/tar -x -m -f /home/adam/Programming/work/livepreso/common/temp/build-cache/3cdc82c352e8ed90607952873f3aa4c200490874"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Mon May 09 2022 09:14:42 GMT+1000 (Australian Eastern Standard Time)
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /home/adam/Programming/work/livepreso/common/temp/build-cache/45522aea0dee8cb2be1a53248ba45bd235743b43.temp -z --files-from=-"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Wed Jul 20 2022 14:55:42 GMT+1000 (Australian Eastern Standard Time)
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /home/adam/Programming/work/livepreso/common/temp/build-cache/5489ab737e406518983c16c57fc3e1edc07c0341.temp -z --files-from=-"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Wed Mar 02 2022 11:59:28 GMT+1100 (Australian Eastern Daylight Time)
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /home/adam/Programming/work/livepreso/common/temp/build-cache/58fcbb7f15a76326d40e0839ab179755da82a891.temp -z --files-from=-"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Thu May 19 2022 11:32:27 GMT+1000 (Australian Eastern Standard Time)
|
|
2
|
-
Invoking "/usr/bin/tar -x -m -f /home/adam/Programming/work/livepreso/common/temp/build-cache/5bc0bba70b733baa4dd976667ba0a1386e516186"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Wed Mar 02 2022 11:38:17 GMT+1100 (Australian Eastern Daylight Time)
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /home/adam/Programming/work/livepreso/common/temp/build-cache/64f1bb696f8d7d7e72907b80df316b127f72e23e.temp -z --files-from=-"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Thu Apr 14 2022 14:28:50 GMT+1000 (Australian Eastern Standard Time)
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /home/adam/Programming/work/livepreso/common/temp/build-cache/6f640f951414ea68adb65c17e4ed7527cde54faf.temp -z --files-from=-"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Wed Mar 02 2022 12:09:00 GMT+1100 (Australian Eastern Daylight Time)
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /home/adam/Programming/work/livepreso/common/temp/build-cache/7c7b958682d4ab5697530be47d0aac62efe1adf1.temp -z --files-from=-"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Wed Mar 30 2022 17:11:25 GMT+1100 (Australian Eastern Daylight Time)
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /home/adam/Programming/work/livepreso/common/temp/build-cache/82bfb987463fbcfebf04022e6ed00015c73879c8.temp -z --files-from=-"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Thu May 19 2022 15:10:22 GMT+1000 (Australian Eastern Standard Time)
|
|
2
|
-
Invoking "/usr/bin/tar -x -m -f /home/adam/Programming/work/livepreso/common/temp/build-cache/844034aa6e542115075e8f3dc5ffc640973e0064"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Wed Mar 02 2022 11:32:11 GMT+1100 (Australian Eastern Daylight Time)
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /home/adam/Programming/work/livepreso/common/temp/build-cache/8b42957a7c15da1f29cb57bee125f13affa70dca.temp -z --files-from=-"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Fri Sep 02 2022 15:29:16 GMT+1000 (Australian Eastern Standard Time)
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /home/adam/Programming/work/livepreso/common/temp/build-cache/924652444ab5a6063f328a2217123a2227058896.temp -z --files-from=-"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Tue Jun 13 2023 13:40:11 GMT+1000 (Australian Eastern Standard Time)
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /home/adam/Programming/work/livepreso/common/temp/build-cache/9f2030f96d62f3e38052e35201819a216566f14f.temp -z --files-from=-"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Wed Mar 02 2022 11:23:03 GMT+1100 (Australian Eastern Daylight Time)
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /home/adam/Programming/work/livepreso/common/temp/build-cache/a769db9d81a23000c0e9b1bf4f1a9a9e721d0d7c.temp -z --files-from=-"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Wed May 18 2022 10:30:13 GMT+1000 (Australian Eastern Standard Time)
|
|
2
|
-
Invoking "/usr/bin/tar -c -f /home/adam/Programming/work/livepreso/common/temp/build-cache/a87d3a8b4ece87ec66f27c86226a9f205617681f.temp -z --files-from=-"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
Start time: Wed Mar 02 2022 11:24:53 GMT+1100 (Australian Eastern Daylight Time)
|
|
2
|
-
Invoking "/usr/bin/tar -x -m -f /home/adam/Programming/work/livepreso/common/temp/build-cache/bb7a5bdcc4af4ad1507f81f33774b31f5b4e4fb7"
|
|
3
|
-
|
|
4
|
-
======= BEGIN PROCESS INPUT ======
|
|
5
|
-
|
|
6
|
-
======== END PROCESS INPUT =======
|
|
7
|
-
======= BEGIN PROCESS OUTPUT =======
|
|
8
|
-
======== END PROCESS OUTPUT ========
|
|
9
|
-
|
|
10
|
-
Exited with code "0"
|