@thestatic-tv/dcl-sdk 2.5.11 → 2.5.13
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 +63 -50
- package/dist/index.mjs +63 -50
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -670,16 +670,16 @@ var UI_DIMENSIONS = {
|
|
|
670
670
|
buttonHeightSmall: 30,
|
|
671
671
|
inputHeight: 36
|
|
672
672
|
},
|
|
673
|
-
// Notification banner -
|
|
673
|
+
// Notification banner - centered, aligned with toggle buttons
|
|
674
674
|
notification: {
|
|
675
675
|
width: 340,
|
|
676
|
-
height:
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
// Right of DCL native chat (chat is ~380px wide)
|
|
676
|
+
height: 36,
|
|
677
|
+
// Same as toggle buttons
|
|
678
|
+
bottom: 10,
|
|
679
|
+
// Same as toggle buttons
|
|
681
680
|
borderWidth: 2,
|
|
682
681
|
fontSize: 14
|
|
682
|
+
// Same as toggle buttons (14)
|
|
683
683
|
},
|
|
684
684
|
// Shared
|
|
685
685
|
closeButton: {
|
|
@@ -2342,60 +2342,73 @@ function initNotificationSystem() {
|
|
|
2342
2342
|
function NotificationBanner() {
|
|
2343
2343
|
initNotificationSystem();
|
|
2344
2344
|
if (!notificationVisible) return null;
|
|
2345
|
-
return
|
|
2346
|
-
|
|
2347
|
-
{
|
|
2348
|
-
uiTransform: {
|
|
2349
|
-
positionType: "absolute",
|
|
2350
|
-
position: { bottom: N.bottom, left: N.left },
|
|
2351
|
-
width: N.width,
|
|
2352
|
-
height: N.height,
|
|
2353
|
-
flexDirection: "row",
|
|
2354
|
-
alignItems: "center"
|
|
2355
|
-
},
|
|
2356
|
-
uiBackground: { color: C.panel }
|
|
2357
|
-
},
|
|
2345
|
+
return (
|
|
2346
|
+
// Full-width container to center the notification
|
|
2358
2347
|
/* @__PURE__ */ import_react_ecs4.default.createElement(
|
|
2359
2348
|
import_react_ecs4.UiEntity,
|
|
2360
2349
|
{
|
|
2361
2350
|
uiTransform: {
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
uiBackground: { color: C.cyan }
|
|
2366
|
-
}
|
|
2367
|
-
),
|
|
2368
|
-
/* @__PURE__ */ import_react_ecs4.default.createElement(
|
|
2369
|
-
import_react_ecs4.UiEntity,
|
|
2370
|
-
{
|
|
2371
|
-
uiTransform: {
|
|
2372
|
-
flexGrow: 1,
|
|
2373
|
-
height: "100%",
|
|
2374
|
-
padding: { left: 12, right: 12 },
|
|
2351
|
+
positionType: "absolute",
|
|
2352
|
+
position: { bottom: N.bottom, left: 0, right: 0 },
|
|
2353
|
+
height: N.height,
|
|
2375
2354
|
justifyContent: "center",
|
|
2376
|
-
alignItems: "
|
|
2355
|
+
alignItems: "center"
|
|
2377
2356
|
}
|
|
2378
2357
|
},
|
|
2379
2358
|
/* @__PURE__ */ import_react_ecs4.default.createElement(
|
|
2380
|
-
import_react_ecs4.
|
|
2359
|
+
import_react_ecs4.UiEntity,
|
|
2381
2360
|
{
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
/* @__PURE__ */ import_react_ecs4.default.createElement(
|
|
2390
|
-
import_react_ecs4.UiEntity,
|
|
2391
|
-
{
|
|
2392
|
-
uiTransform: {
|
|
2393
|
-
width: 6,
|
|
2394
|
-
height: 6,
|
|
2395
|
-
margin: { right: 12 }
|
|
2361
|
+
uiTransform: {
|
|
2362
|
+
width: N.width,
|
|
2363
|
+
height: N.height,
|
|
2364
|
+
flexDirection: "row",
|
|
2365
|
+
alignItems: "center"
|
|
2366
|
+
},
|
|
2367
|
+
uiBackground: { color: C.panel }
|
|
2396
2368
|
},
|
|
2397
|
-
|
|
2398
|
-
|
|
2369
|
+
/* @__PURE__ */ import_react_ecs4.default.createElement(
|
|
2370
|
+
import_react_ecs4.UiEntity,
|
|
2371
|
+
{
|
|
2372
|
+
uiTransform: {
|
|
2373
|
+
width: N.borderWidth,
|
|
2374
|
+
height: "100%"
|
|
2375
|
+
},
|
|
2376
|
+
uiBackground: { color: C.cyan }
|
|
2377
|
+
}
|
|
2378
|
+
),
|
|
2379
|
+
/* @__PURE__ */ import_react_ecs4.default.createElement(
|
|
2380
|
+
import_react_ecs4.UiEntity,
|
|
2381
|
+
{
|
|
2382
|
+
uiTransform: {
|
|
2383
|
+
flexGrow: 1,
|
|
2384
|
+
height: "100%",
|
|
2385
|
+
padding: { left: 10, right: 10 },
|
|
2386
|
+
justifyContent: "center",
|
|
2387
|
+
alignItems: "flex-start"
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
/* @__PURE__ */ import_react_ecs4.default.createElement(
|
|
2391
|
+
import_react_ecs4.Label,
|
|
2392
|
+
{
|
|
2393
|
+
value: notificationText,
|
|
2394
|
+
fontSize: N.fontSize,
|
|
2395
|
+
color: C.white,
|
|
2396
|
+
textAlign: "middle-left"
|
|
2397
|
+
}
|
|
2398
|
+
)
|
|
2399
|
+
),
|
|
2400
|
+
/* @__PURE__ */ import_react_ecs4.default.createElement(
|
|
2401
|
+
import_react_ecs4.UiEntity,
|
|
2402
|
+
{
|
|
2403
|
+
uiTransform: {
|
|
2404
|
+
width: 5,
|
|
2405
|
+
height: 5,
|
|
2406
|
+
margin: { right: 10 }
|
|
2407
|
+
},
|
|
2408
|
+
uiBackground: { color: C.cyan }
|
|
2409
|
+
}
|
|
2410
|
+
)
|
|
2411
|
+
)
|
|
2399
2412
|
)
|
|
2400
2413
|
);
|
|
2401
2414
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -625,16 +625,16 @@ var UI_DIMENSIONS = {
|
|
|
625
625
|
buttonHeightSmall: 30,
|
|
626
626
|
inputHeight: 36
|
|
627
627
|
},
|
|
628
|
-
// Notification banner -
|
|
628
|
+
// Notification banner - centered, aligned with toggle buttons
|
|
629
629
|
notification: {
|
|
630
630
|
width: 340,
|
|
631
|
-
height:
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
// Right of DCL native chat (chat is ~380px wide)
|
|
631
|
+
height: 36,
|
|
632
|
+
// Same as toggle buttons
|
|
633
|
+
bottom: 10,
|
|
634
|
+
// Same as toggle buttons
|
|
636
635
|
borderWidth: 2,
|
|
637
636
|
fontSize: 14
|
|
637
|
+
// Same as toggle buttons (14)
|
|
638
638
|
},
|
|
639
639
|
// Shared
|
|
640
640
|
closeButton: {
|
|
@@ -2297,60 +2297,73 @@ function initNotificationSystem() {
|
|
|
2297
2297
|
function NotificationBanner() {
|
|
2298
2298
|
initNotificationSystem();
|
|
2299
2299
|
if (!notificationVisible) return null;
|
|
2300
|
-
return
|
|
2301
|
-
|
|
2302
|
-
{
|
|
2303
|
-
uiTransform: {
|
|
2304
|
-
positionType: "absolute",
|
|
2305
|
-
position: { bottom: N.bottom, left: N.left },
|
|
2306
|
-
width: N.width,
|
|
2307
|
-
height: N.height,
|
|
2308
|
-
flexDirection: "row",
|
|
2309
|
-
alignItems: "center"
|
|
2310
|
-
},
|
|
2311
|
-
uiBackground: { color: C.panel }
|
|
2312
|
-
},
|
|
2300
|
+
return (
|
|
2301
|
+
// Full-width container to center the notification
|
|
2313
2302
|
/* @__PURE__ */ ReactEcs4.createElement(
|
|
2314
2303
|
UiEntity4,
|
|
2315
2304
|
{
|
|
2316
2305
|
uiTransform: {
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
uiBackground: { color: C.cyan }
|
|
2321
|
-
}
|
|
2322
|
-
),
|
|
2323
|
-
/* @__PURE__ */ ReactEcs4.createElement(
|
|
2324
|
-
UiEntity4,
|
|
2325
|
-
{
|
|
2326
|
-
uiTransform: {
|
|
2327
|
-
flexGrow: 1,
|
|
2328
|
-
height: "100%",
|
|
2329
|
-
padding: { left: 12, right: 12 },
|
|
2306
|
+
positionType: "absolute",
|
|
2307
|
+
position: { bottom: N.bottom, left: 0, right: 0 },
|
|
2308
|
+
height: N.height,
|
|
2330
2309
|
justifyContent: "center",
|
|
2331
|
-
alignItems: "
|
|
2310
|
+
alignItems: "center"
|
|
2332
2311
|
}
|
|
2333
2312
|
},
|
|
2334
2313
|
/* @__PURE__ */ ReactEcs4.createElement(
|
|
2335
|
-
|
|
2314
|
+
UiEntity4,
|
|
2336
2315
|
{
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
/* @__PURE__ */ ReactEcs4.createElement(
|
|
2345
|
-
UiEntity4,
|
|
2346
|
-
{
|
|
2347
|
-
uiTransform: {
|
|
2348
|
-
width: 6,
|
|
2349
|
-
height: 6,
|
|
2350
|
-
margin: { right: 12 }
|
|
2316
|
+
uiTransform: {
|
|
2317
|
+
width: N.width,
|
|
2318
|
+
height: N.height,
|
|
2319
|
+
flexDirection: "row",
|
|
2320
|
+
alignItems: "center"
|
|
2321
|
+
},
|
|
2322
|
+
uiBackground: { color: C.panel }
|
|
2351
2323
|
},
|
|
2352
|
-
|
|
2353
|
-
|
|
2324
|
+
/* @__PURE__ */ ReactEcs4.createElement(
|
|
2325
|
+
UiEntity4,
|
|
2326
|
+
{
|
|
2327
|
+
uiTransform: {
|
|
2328
|
+
width: N.borderWidth,
|
|
2329
|
+
height: "100%"
|
|
2330
|
+
},
|
|
2331
|
+
uiBackground: { color: C.cyan }
|
|
2332
|
+
}
|
|
2333
|
+
),
|
|
2334
|
+
/* @__PURE__ */ ReactEcs4.createElement(
|
|
2335
|
+
UiEntity4,
|
|
2336
|
+
{
|
|
2337
|
+
uiTransform: {
|
|
2338
|
+
flexGrow: 1,
|
|
2339
|
+
height: "100%",
|
|
2340
|
+
padding: { left: 10, right: 10 },
|
|
2341
|
+
justifyContent: "center",
|
|
2342
|
+
alignItems: "flex-start"
|
|
2343
|
+
}
|
|
2344
|
+
},
|
|
2345
|
+
/* @__PURE__ */ ReactEcs4.createElement(
|
|
2346
|
+
Label4,
|
|
2347
|
+
{
|
|
2348
|
+
value: notificationText,
|
|
2349
|
+
fontSize: N.fontSize,
|
|
2350
|
+
color: C.white,
|
|
2351
|
+
textAlign: "middle-left"
|
|
2352
|
+
}
|
|
2353
|
+
)
|
|
2354
|
+
),
|
|
2355
|
+
/* @__PURE__ */ ReactEcs4.createElement(
|
|
2356
|
+
UiEntity4,
|
|
2357
|
+
{
|
|
2358
|
+
uiTransform: {
|
|
2359
|
+
width: 5,
|
|
2360
|
+
height: 5,
|
|
2361
|
+
margin: { right: 10 }
|
|
2362
|
+
},
|
|
2363
|
+
uiBackground: { color: C.cyan }
|
|
2364
|
+
}
|
|
2365
|
+
)
|
|
2366
|
+
)
|
|
2354
2367
|
)
|
|
2355
2368
|
);
|
|
2356
2369
|
}
|
package/package.json
CHANGED