@innspel/react-native 0.6.0 → 0.7.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/dist/index.cjs +17 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -608,6 +608,8 @@ var tekst = {
|
|
|
608
608
|
mineTom: "Du har ikke sendt noe enn\xE5.",
|
|
609
609
|
mineIkkeSendt: "Ikke sendt enn\xE5",
|
|
610
610
|
mineSak: (nr) => `Sak ${nr}`,
|
|
611
|
+
// Leietakeren fjernet vedlegget. Bare AT — aldri hvorfor, av hvem eller når.
|
|
612
|
+
bildeFjernet: "Bildet er fjernet.",
|
|
611
613
|
svarFra: (leietaker) => `Svar fra ${leietaker}`,
|
|
612
614
|
svarFraGenerisk: "Svar",
|
|
613
615
|
sendNytt: "Send nytt innspill",
|
|
@@ -1296,6 +1298,10 @@ function MineInnspill({
|
|
|
1296
1298
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(StatusPill, { ikon: v.ikon, etikett: v.etikett, farge: v.farge }),
|
|
1297
1299
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Hint, { children: v.lofte })
|
|
1298
1300
|
] }),
|
|
1301
|
+
!venter && rad.attachmentRemoved ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_native7.View, { testID: `bilde-fjernet-${rad.id}`, style: { flexDirection: "row", gap: tema.space.xs, alignItems: "center" }, children: [
|
|
1302
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native7.Text, { accessibilityElementsHidden: true, importantForAccessibility: "no", style: { fontSize: tema.font.small }, children: "\u{1F5D1}" }),
|
|
1303
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Hint, { children: tekst.bildeFjernet })
|
|
1304
|
+
] }) : null,
|
|
1299
1305
|
svar ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1300
1306
|
import_react_native7.View,
|
|
1301
1307
|
{
|
|
@@ -1431,7 +1437,7 @@ function Skjermbilde({
|
|
|
1431
1437
|
);
|
|
1432
1438
|
};
|
|
1433
1439
|
const a11y = tekst.skjermbildeA11y(automasker.length, egne.length, allTekst);
|
|
1434
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_native8.View, { style: {
|
|
1440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_native8.View, { testID: "skjermbilde-steg", style: { flexGrow: 1, flexShrink: 1, gap: tema.space.md }, children: [
|
|
1435
1441
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(H, { sub: kilde === "galleri" ? tekst.skjermbildeUnderGalleri : tekst.skjermbildeUnder, children: tekst.skjermbildeTittel }),
|
|
1436
1442
|
notat ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native8.View, { testID: "bilde-notat", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Hint, { children: notat }) }) : null,
|
|
1437
1443
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_native8.View, { accessibilityRole: "toolbar", accessibilityLabel: tekst.maskering, style: { flexDirection: "row", gap: tema.space.sm }, children: [
|
|
@@ -1445,15 +1451,15 @@ function Skjermbilde({
|
|
|
1445
1451
|
testID: "skjermbilde-ramme",
|
|
1446
1452
|
onLayout,
|
|
1447
1453
|
style: {
|
|
1448
|
-
|
|
1454
|
+
flexGrow: 1,
|
|
1455
|
+
flexShrink: 1,
|
|
1456
|
+
flexBasis: 0,
|
|
1449
1457
|
minHeight: tema.touch * 5,
|
|
1450
|
-
alignItems: "center",
|
|
1451
|
-
justifyContent: "center",
|
|
1452
1458
|
backgroundColor: screenRules.previewBackdrop,
|
|
1453
1459
|
borderRadius: tema.radius.md,
|
|
1454
1460
|
overflow: "hidden"
|
|
1455
1461
|
},
|
|
1456
|
-
children: visning ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1462
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_native8.View, { testID: "skjermbilde-flate", pointerEvents: "box-none", style: [import_react_native8.StyleSheet.absoluteFill, { alignItems: "center", justifyContent: "center" }], children: visning ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1457
1463
|
import_react_native8.View,
|
|
1458
1464
|
{
|
|
1459
1465
|
ref: previewRef,
|
|
@@ -1514,7 +1520,7 @@ function Skjermbilde({
|
|
|
1514
1520
|
))
|
|
1515
1521
|
]
|
|
1516
1522
|
}
|
|
1517
|
-
) : null
|
|
1523
|
+
) : null })
|
|
1518
1524
|
}
|
|
1519
1525
|
),
|
|
1520
1526
|
automasker.length ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Hint, { children: [
|
|
@@ -1523,7 +1529,7 @@ function Skjermbilde({
|
|
|
1523
1529
|
] }) : null,
|
|
1524
1530
|
egne.length ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Hint, { children: tekst.dittStrok }) : null,
|
|
1525
1531
|
allTekst ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Hint, { children: tekst.allTekstHint }) : null,
|
|
1526
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_native8.View, { style: { gap: tema.space.sm }, children: [
|
|
1532
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_native8.View, { testID: "skjermbilde-fot", style: { flexShrink: 0, gap: tema.space.sm }, children: [
|
|
1527
1533
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Btn, { variant: "danger", testID: "fjern-bildet", ikon: "\u{1F5D1}", label: tekst.fjernBildet, onPress: onFjern, disabled: komponerer }),
|
|
1528
1534
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Btn, { testID: "legg-ved", label: tekst.leggVedOgFortsett, onPress: onLeggVed, disabled: komponerer || !visning, hint: tekst.leggVedHintDD42 })
|
|
1529
1535
|
] })
|
|
@@ -1779,7 +1785,10 @@ function Widget({
|
|
|
1779
1785
|
paddingRight: tema.screenPadding + insets.right,
|
|
1780
1786
|
gap: tema.space.md,
|
|
1781
1787
|
maxHeight: "92%",
|
|
1782
|
-
minHeight: "60%"
|
|
1788
|
+
minHeight: "60%",
|
|
1789
|
+
// Bildesteget får fast høyde: forhåndsvisningen tilpasses plassen som er igjen, og
|
|
1790
|
+
// uten en kjent høyde har den ingen øvre grense (se Skjermbilde.tsx).
|
|
1791
|
+
...steg === "skjermbilde" ? { height: "92%" } : {}
|
|
1783
1792
|
},
|
|
1784
1793
|
children: [
|
|
1785
1794
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_native9.View, { style: { flexDirection: "row", justifyContent: "space-between", alignItems: "center" }, children: [
|