@lumiastream/ui 0.2.8-alpha.30 → 0.2.8-alpha.32
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/dist/index.js +7 -4
- package/dist/se-import.d.ts +4 -1
- package/dist/se-import.js +7 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4888,7 +4888,7 @@ function mapTimer(widget, ctx) {
|
|
|
4888
4888
|
{ context: "static" }
|
|
4889
4889
|
),
|
|
4890
4890
|
changeMessageAfter: !!v.changeMessageAfterCountdown,
|
|
4891
|
-
countDate: hasValidAbsoluteDate &&
|
|
4891
|
+
countDate: hasValidAbsoluteDate && v.datePicker === true,
|
|
4892
4892
|
date: hasValidAbsoluteDate ? new Date(target).toISOString() : "",
|
|
4893
4893
|
importMeta: buildImportMeta(widget, {
|
|
4894
4894
|
rawDate: absoluteDate,
|
|
@@ -7819,6 +7819,9 @@ function Row({
|
|
|
7819
7819
|
function SEImportWizard({
|
|
7820
7820
|
bindings,
|
|
7821
7821
|
initialUrl = "",
|
|
7822
|
+
initialStep,
|
|
7823
|
+
confirmActionLabel = "Create overlay",
|
|
7824
|
+
importingActionLabel = "Importing...",
|
|
7822
7825
|
initialJwt = "",
|
|
7823
7826
|
initialOverlayIds,
|
|
7824
7827
|
initialOverlayList
|
|
@@ -7836,10 +7839,10 @@ function SEImportWizard({
|
|
|
7836
7839
|
CustomEmbed
|
|
7837
7840
|
} = bindings;
|
|
7838
7841
|
const [step, setStep] = useState6(
|
|
7839
|
-
initialUrl ? "url" : initialJwt ? "connect" : "mode"
|
|
7842
|
+
initialStep ?? (initialUrl ? "url" : initialJwt ? "connect" : "mode")
|
|
7840
7843
|
);
|
|
7841
7844
|
const [entryMode, setEntryMode] = useState6(
|
|
7842
|
-
initialUrl ? "url" : initialJwt ? "jwt" : null
|
|
7845
|
+
initialStep === "url" ? "url" : initialStep === "connect" ? "jwt" : initialUrl ? "url" : initialJwt ? "jwt" : null
|
|
7843
7846
|
);
|
|
7844
7847
|
const [jwt, setJwt] = useState6(initialJwt);
|
|
7845
7848
|
const [seClient, setSeClient] = useState6(null);
|
|
@@ -8605,7 +8608,7 @@ function SEImportWizard({
|
|
|
8605
8608
|
if (step === "review")
|
|
8606
8609
|
return currentRow?.state === "generated" ? "Use & continue" : "Continue";
|
|
8607
8610
|
if (step === "confirm")
|
|
8608
|
-
return importing ?
|
|
8611
|
+
return importing ? importingActionLabel : confirmActionLabel;
|
|
8609
8612
|
return "Continue";
|
|
8610
8613
|
})();
|
|
8611
8614
|
const nextDisabled = (() => {
|
package/dist/se-import.d.ts
CHANGED
|
@@ -366,11 +366,14 @@ interface SEImportBindings {
|
|
|
366
366
|
interface SEImportWizardProps {
|
|
367
367
|
bindings: SEImportBindings;
|
|
368
368
|
initialUrl?: string;
|
|
369
|
+
initialStep?: "mode" | "url" | "connect";
|
|
370
|
+
confirmActionLabel?: string;
|
|
371
|
+
importingActionLabel?: string;
|
|
369
372
|
initialJwt?: string;
|
|
370
373
|
initialOverlayIds?: string[];
|
|
371
374
|
initialOverlayList?: SEOverlaySummary[];
|
|
372
375
|
}
|
|
373
|
-
declare function SEImportWizard({ bindings, initialUrl, initialJwt, initialOverlayIds, initialOverlayList, }: SEImportWizardProps): react_jsx_runtime.JSX.Element;
|
|
376
|
+
declare function SEImportWizard({ bindings, initialUrl, initialStep, confirmActionLabel, importingActionLabel, initialJwt, initialOverlayIds, initialOverlayList, }: SEImportWizardProps): react_jsx_runtime.JSX.Element;
|
|
374
377
|
|
|
375
378
|
interface MarketplacePickerProps {
|
|
376
379
|
seWidgetType: string;
|
package/dist/se-import.js
CHANGED
|
@@ -1773,7 +1773,7 @@ function mapTimer(widget, ctx) {
|
|
|
1773
1773
|
{ context: "static" }
|
|
1774
1774
|
),
|
|
1775
1775
|
changeMessageAfter: !!v.changeMessageAfterCountdown,
|
|
1776
|
-
countDate: hasValidAbsoluteDate &&
|
|
1776
|
+
countDate: hasValidAbsoluteDate && v.datePicker === true,
|
|
1777
1777
|
date: hasValidAbsoluteDate ? new Date(target).toISOString() : "",
|
|
1778
1778
|
importMeta: buildImportMeta(widget, {
|
|
1779
1779
|
rawDate: absoluteDate,
|
|
@@ -6689,6 +6689,9 @@ function Row({
|
|
|
6689
6689
|
function SEImportWizard({
|
|
6690
6690
|
bindings,
|
|
6691
6691
|
initialUrl = "",
|
|
6692
|
+
initialStep,
|
|
6693
|
+
confirmActionLabel = "Create overlay",
|
|
6694
|
+
importingActionLabel = "Importing...",
|
|
6692
6695
|
initialJwt = "",
|
|
6693
6696
|
initialOverlayIds,
|
|
6694
6697
|
initialOverlayList
|
|
@@ -6706,10 +6709,10 @@ function SEImportWizard({
|
|
|
6706
6709
|
CustomEmbed
|
|
6707
6710
|
} = bindings;
|
|
6708
6711
|
const [step, setStep] = useState6(
|
|
6709
|
-
initialUrl ? "url" : initialJwt ? "connect" : "mode"
|
|
6712
|
+
initialStep ?? (initialUrl ? "url" : initialJwt ? "connect" : "mode")
|
|
6710
6713
|
);
|
|
6711
6714
|
const [entryMode, setEntryMode] = useState6(
|
|
6712
|
-
initialUrl ? "url" : initialJwt ? "jwt" : null
|
|
6715
|
+
initialStep === "url" ? "url" : initialStep === "connect" ? "jwt" : initialUrl ? "url" : initialJwt ? "jwt" : null
|
|
6713
6716
|
);
|
|
6714
6717
|
const [jwt, setJwt] = useState6(initialJwt);
|
|
6715
6718
|
const [seClient, setSeClient] = useState6(null);
|
|
@@ -7475,7 +7478,7 @@ function SEImportWizard({
|
|
|
7475
7478
|
if (step === "review")
|
|
7476
7479
|
return currentRow?.state === "generated" ? "Use & continue" : "Continue";
|
|
7477
7480
|
if (step === "confirm")
|
|
7478
|
-
return importing ?
|
|
7481
|
+
return importing ? importingActionLabel : confirmActionLabel;
|
|
7479
7482
|
return "Continue";
|
|
7480
7483
|
})();
|
|
7481
7484
|
const nextDisabled = (() => {
|