@redacto.io/consent-sdk-react-native 5.0.0-beta.10 → 5.0.0-beta.11

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.
@@ -18529,6 +18529,22 @@ import { useMemo as useMemo18, useState as useState21 } from "react";
18529
18529
  import { StyleSheet as StyleSheet39, Text as Text29, TouchableOpacity as TouchableOpacity14, View as View37 } from "react-native";
18530
18530
  import { useTranslation as useTranslation18 } from "react-i18next";
18531
18531
 
18532
+ // src/RedactoPrivacyCenter/context/ProfileSwitchContext.tsx
18533
+ import { createContext as createContext7, useContext as useContext7 } from "react";
18534
+ import { jsx as jsx46 } from "react/jsx-runtime";
18535
+ var ProfileSwitchContext = createContext7({
18536
+ switchProfile: null
18537
+ });
18538
+ function ProfileSwitchProvider({
18539
+ switchProfile,
18540
+ children
18541
+ }) {
18542
+ return /* @__PURE__ */ jsx46(ProfileSwitchContext.Provider, { value: { switchProfile }, children });
18543
+ }
18544
+ function useProfileSwitch() {
18545
+ return useContext7(ProfileSwitchContext);
18546
+ }
18547
+
18532
18548
  // src/RedactoPrivacyCenter/lib/navigation.ts
18533
18549
  function navigateBack(onBack) {
18534
18550
  var _a3, _b;
@@ -18552,7 +18568,7 @@ function navigateBack(onBack) {
18552
18568
 
18553
18569
  // src/RedactoPrivacyCenter/components/NotificationHub/NotificationBell.tsx
18554
18570
  import { StyleSheet as StyleSheet37, Text as Text27, TouchableOpacity as TouchableOpacity12, View as View35 } from "react-native";
18555
- import { jsx as jsx46, jsxs as jsxs29 } from "react/jsx-runtime";
18571
+ import { jsx as jsx47, jsxs as jsxs29 } from "react/jsx-runtime";
18556
18572
  var NotificationBell = ({ count, onPress }) => {
18557
18573
  const { colors } = useTheme();
18558
18574
  const showBadge = count > 0;
@@ -18567,8 +18583,8 @@ var NotificationBell = ({ count, onPress }) => {
18567
18583
  accessibilityRole: "button",
18568
18584
  accessibilityLabel: showBadge ? `Notifications, ${count} unread` : "Notifications",
18569
18585
  children: [
18570
- /* @__PURE__ */ jsx46(Icon, { name: "bell", size: 22, color: colors.text }),
18571
- showBadge ? /* @__PURE__ */ jsx46(View35, { style: [styles36.badge, { backgroundColor: colors.error, borderColor: colors.canvasSubtle }], children: /* @__PURE__ */ jsx46(Text27, { style: styles36.badgeText, numberOfLines: 1, children: badgeLabel }) }) : null
18586
+ /* @__PURE__ */ jsx47(Icon, { name: "bell", size: 22, color: colors.text }),
18587
+ showBadge ? /* @__PURE__ */ jsx47(View35, { style: [styles36.badge, { backgroundColor: colors.error, borderColor: colors.canvasSubtle }], children: /* @__PURE__ */ jsx47(Text27, { style: styles36.badgeText, numberOfLines: 1, children: badgeLabel }) }) : null
18572
18588
  ]
18573
18589
  }
18574
18590
  );
@@ -18634,7 +18650,7 @@ function useUnreadCount() {
18634
18650
  import { useMemo as useMemo17, useState as useState20 } from "react";
18635
18651
  import { StyleSheet as StyleSheet38, Text as Text28, TouchableOpacity as TouchableOpacity13, View as View36 } from "react-native";
18636
18652
  import { useTranslation as useTranslation17 } from "react-i18next";
18637
- import { jsx as jsx47, jsxs as jsxs30 } from "react/jsx-runtime";
18653
+ import { jsx as jsx48, jsxs as jsxs30 } from "react/jsx-runtime";
18638
18654
  var NavDrawer = ({ visible, onClose, onBack }) => {
18639
18655
  const { t } = useTranslation17();
18640
18656
  const { colors, branding } = useTheme();
@@ -18656,15 +18672,15 @@ var NavDrawer = ({ visible, onClose, onBack }) => {
18656
18672
  i18n_default.changeLanguage(value);
18657
18673
  };
18658
18674
  const brandName = (branding == null ? void 0 : branding.brand_name) || organizationName || t("privacyCenter") || "Privacy Center";
18659
- return /* @__PURE__ */ jsx47(BottomSheet, { visible, onClose, title: t("menu") || "Menu", children: /* @__PURE__ */ jsxs30(View36, { style: styles37.body, children: [
18675
+ return /* @__PURE__ */ jsx48(BottomSheet, { visible, onClose, title: t("menu") || "Menu", children: /* @__PURE__ */ jsxs30(View36, { style: styles37.body, children: [
18660
18676
  /* @__PURE__ */ jsxs30(View36, { style: [styles37.identity, { backgroundColor: colors.surfaceAlt }], children: [
18661
- /* @__PURE__ */ jsx47(PCAvatar, { name: brandName, imageUrl: branding == null ? void 0 : branding.icon_url, size: 40 }),
18677
+ /* @__PURE__ */ jsx48(PCAvatar, { name: brandName, imageUrl: branding == null ? void 0 : branding.icon_url, size: 40 }),
18662
18678
  /* @__PURE__ */ jsxs30(View36, { style: styles37.identityText, children: [
18663
- /* @__PURE__ */ jsx47(Text28, { style: [styles37.brandName, { color: colors.text }], numberOfLines: 1, children: brandName }),
18664
- email ? /* @__PURE__ */ jsx47(Text28, { style: [styles37.email, { color: colors.textSecondary }], numberOfLines: 1, children: email }) : null
18679
+ /* @__PURE__ */ jsx48(Text28, { style: [styles37.brandName, { color: colors.text }], numberOfLines: 1, children: brandName }),
18680
+ email ? /* @__PURE__ */ jsx48(Text28, { style: [styles37.email, { color: colors.textSecondary }], numberOfLines: 1, children: email }) : null
18665
18681
  ] })
18666
18682
  ] }),
18667
- /* @__PURE__ */ jsx47(View36, { style: [styles37.menuGroup, { borderColor: colors.border, backgroundColor: colors.surface }], children: items.map((item, index) => {
18683
+ /* @__PURE__ */ jsx48(View36, { style: [styles37.menuGroup, { borderColor: colors.border, backgroundColor: colors.surface }], children: items.map((item, index) => {
18668
18684
  const isActive = currentPage === item.page;
18669
18685
  return /* @__PURE__ */ jsxs30(View36, { children: [
18670
18686
  /* @__PURE__ */ jsxs30(
@@ -18680,8 +18696,8 @@ var NavDrawer = ({ visible, onClose, onBack }) => {
18680
18696
  accessibilityState: { selected: isActive },
18681
18697
  accessibilityLabel: item.label,
18682
18698
  children: [
18683
- /* @__PURE__ */ jsx47(IconTile, { name: item.icon, tone: item.tone, size: "sm" }),
18684
- /* @__PURE__ */ jsx47(
18699
+ /* @__PURE__ */ jsx48(IconTile, { name: item.icon, tone: item.tone, size: "sm" }),
18700
+ /* @__PURE__ */ jsx48(
18685
18701
  Text28,
18686
18702
  {
18687
18703
  style: [styles37.menuLabel, { color: isActive ? colors.primary : colors.text }],
@@ -18689,14 +18705,14 @@ var NavDrawer = ({ visible, onClose, onBack }) => {
18689
18705
  children: item.label
18690
18706
  }
18691
18707
  ),
18692
- /* @__PURE__ */ jsx47(Icon, { name: "chevron-right", size: 18, color: colors.textSecondary })
18708
+ /* @__PURE__ */ jsx48(Icon, { name: "chevron-right", size: 18, color: colors.textSecondary })
18693
18709
  ]
18694
18710
  }
18695
18711
  ),
18696
- index < items.length - 1 ? /* @__PURE__ */ jsx47(View36, { style: [styles37.separator, { backgroundColor: colors.hairline }] }) : null
18712
+ index < items.length - 1 ? /* @__PURE__ */ jsx48(View36, { style: [styles37.separator, { backgroundColor: colors.hairline }] }) : null
18697
18713
  ] }, item.page);
18698
18714
  }) }),
18699
- /* @__PURE__ */ jsx47(
18715
+ /* @__PURE__ */ jsx48(
18700
18716
  PCSelect,
18701
18717
  {
18702
18718
  label: t("language"),
@@ -18717,7 +18733,7 @@ var NavDrawer = ({ visible, onClose, onBack }) => {
18717
18733
  activeOpacity: 0.7,
18718
18734
  accessibilityRole: "button",
18719
18735
  children: [
18720
- /* @__PURE__ */ jsx47(
18736
+ /* @__PURE__ */ jsx48(
18721
18737
  Icon,
18722
18738
  {
18723
18739
  name: onBack === "signout" ? "log-out" : "arrow-left",
@@ -18725,11 +18741,11 @@ var NavDrawer = ({ visible, onClose, onBack }) => {
18725
18741
  color: onBack === "signout" ? colors.error : colors.text
18726
18742
  }
18727
18743
  ),
18728
- /* @__PURE__ */ jsx47(Text28, { style: [styles37.actionLabel, { color: onBack === "signout" ? colors.error : colors.text }], children: onBack === "signout" ? t("signOut") || "Sign Out" : t("back") || "Back" })
18744
+ /* @__PURE__ */ jsx48(Text28, { style: [styles37.actionLabel, { color: onBack === "signout" ? colors.error : colors.text }], children: onBack === "signout" ? t("signOut") || "Sign Out" : t("back") || "Back" })
18729
18745
  ]
18730
18746
  }
18731
18747
  ) : null,
18732
- /* @__PURE__ */ jsx47(Footer, { inline: true })
18748
+ /* @__PURE__ */ jsx48(Footer, { inline: true })
18733
18749
  ] }) });
18734
18750
  };
18735
18751
  var styles37 = StyleSheet38.create({
@@ -18791,7 +18807,7 @@ var styles37 = StyleSheet38.create({
18791
18807
  });
18792
18808
 
18793
18809
  // src/RedactoPrivacyCenter/components/SlimTopBar.tsx
18794
- import { Fragment as Fragment11, jsx as jsx48, jsxs as jsxs31 } from "react/jsx-runtime";
18810
+ import { Fragment as Fragment11, jsx as jsx49, jsxs as jsxs31 } from "react/jsx-runtime";
18795
18811
  var SlimTopBar = ({ mode = "primary", onBack }) => {
18796
18812
  const { t } = useTranslation18();
18797
18813
  const { currentPage, navigateTo } = useInternalNavigation();
@@ -18800,6 +18816,7 @@ var SlimTopBar = ({ mode = "primary", onBack }) => {
18800
18816
  const unreadCount = useUnreadCount();
18801
18817
  const insets = useSafeInsets();
18802
18818
  const [menuOpen, setMenuOpen] = useState21(false);
18819
+ const { switchProfile } = useProfileSwitch();
18803
18820
  const pageChrome = PAGE_CHROME_BY_PAGE[currentPage];
18804
18821
  const isDetail = mode === "detail";
18805
18822
  const brandLabel = useMemo18(
@@ -18818,7 +18835,7 @@ var SlimTopBar = ({ mode = "primary", onBack }) => {
18818
18835
  navigateBack(onBack);
18819
18836
  };
18820
18837
  return /* @__PURE__ */ jsxs31(Fragment11, { children: [
18821
- /* @__PURE__ */ jsx48(
18838
+ /* @__PURE__ */ jsx49(
18822
18839
  View37,
18823
18840
  {
18824
18841
  style: [
@@ -18826,7 +18843,7 @@ var SlimTopBar = ({ mode = "primary", onBack }) => {
18826
18843
  { backgroundColor: colors.canvasSubtle, borderBottomColor: colors.hairline, paddingTop: insets.top + spacing.xs }
18827
18844
  ],
18828
18845
  children: isDetail ? /* @__PURE__ */ jsxs31(View37, { style: styles38.detailRow, children: [
18829
- /* @__PURE__ */ jsx48(
18846
+ /* @__PURE__ */ jsx49(
18830
18847
  TouchableOpacity14,
18831
18848
  {
18832
18849
  style: styles38.iconButton,
@@ -18835,27 +18852,39 @@ var SlimTopBar = ({ mode = "primary", onBack }) => {
18835
18852
  hitSlop: DEFAULT_HIT_SLOP,
18836
18853
  accessibilityRole: "button",
18837
18854
  accessibilityLabel: t("back") || "Back",
18838
- children: /* @__PURE__ */ jsx48(Icon, { name: "arrow-left", size: 22, color: colors.text })
18855
+ children: /* @__PURE__ */ jsx49(Icon, { name: "arrow-left", size: 22, color: colors.text })
18839
18856
  }
18840
18857
  ),
18841
- /* @__PURE__ */ jsx48(Text29, { style: [styles38.detailTitle, { color: colors.text }], numberOfLines: 1, children: t((pageChrome == null ? void 0 : pageChrome.titleKey) || "privacyCenter") }),
18842
- /* @__PURE__ */ jsx48(View37, { style: styles38.placeholder })
18858
+ /* @__PURE__ */ jsx49(Text29, { style: [styles38.detailTitle, { color: colors.text }], numberOfLines: 1, children: t((pageChrome == null ? void 0 : pageChrome.titleKey) || "privacyCenter") }),
18859
+ /* @__PURE__ */ jsx49(View37, { style: styles38.placeholder })
18843
18860
  ] }) : /* @__PURE__ */ jsxs31(View37, { style: styles38.row, children: [
18844
- /* @__PURE__ */ jsx48(View37, { style: styles38.brandWrap, children: (branding == null ? void 0 : branding.logo_url) ? /* @__PURE__ */ jsx48(
18861
+ /* @__PURE__ */ jsx49(View37, { style: styles38.brandWrap, children: (branding == null ? void 0 : branding.logo_url) ? /* @__PURE__ */ jsx49(
18845
18862
  BrandImage,
18846
18863
  {
18847
18864
  uri: branding.logo_url,
18848
18865
  height: 24,
18849
18866
  maxWidth: 124,
18850
- fallback: /* @__PURE__ */ jsx48(PCAvatar, { name: brandLabel, imageUrl: branding == null ? void 0 : branding.icon_url, size: 24 })
18867
+ fallback: /* @__PURE__ */ jsx49(PCAvatar, { name: brandLabel, imageUrl: branding == null ? void 0 : branding.icon_url, size: 24 })
18851
18868
  }
18852
18869
  ) : /* @__PURE__ */ jsxs31(View37, { style: styles38.brandLockup, children: [
18853
- /* @__PURE__ */ jsx48(PCAvatar, { name: brandLabel, imageUrl: branding == null ? void 0 : branding.icon_url, size: 24 }),
18854
- /* @__PURE__ */ jsx48(Text29, { style: [styles38.brandText, { color: colors.text }], numberOfLines: 1, children: brandLabel })
18870
+ /* @__PURE__ */ jsx49(PCAvatar, { name: brandLabel, imageUrl: branding == null ? void 0 : branding.icon_url, size: 24 }),
18871
+ /* @__PURE__ */ jsx49(Text29, { style: [styles38.brandText, { color: colors.text }], numberOfLines: 1, children: brandLabel })
18855
18872
  ] }) }),
18856
18873
  /* @__PURE__ */ jsxs31(View37, { style: styles38.actions, children: [
18857
- /* @__PURE__ */ jsx48(NotificationBell, { count: unreadCount, onPress: () => navigateTo("notifications") }),
18858
- /* @__PURE__ */ jsx48(
18874
+ switchProfile ? /* @__PURE__ */ jsx49(
18875
+ TouchableOpacity14,
18876
+ {
18877
+ style: styles38.iconButton,
18878
+ onPress: switchProfile,
18879
+ activeOpacity: 0.7,
18880
+ hitSlop: DEFAULT_HIT_SLOP,
18881
+ accessibilityRole: "button",
18882
+ accessibilityLabel: t("switchProfile"),
18883
+ children: /* @__PURE__ */ jsx49(Icon, { name: "users", size: 22, color: colors.text })
18884
+ }
18885
+ ) : null,
18886
+ /* @__PURE__ */ jsx49(NotificationBell, { count: unreadCount, onPress: () => navigateTo("notifications") }),
18887
+ /* @__PURE__ */ jsx49(
18859
18888
  TouchableOpacity14,
18860
18889
  {
18861
18890
  style: styles38.iconButton,
@@ -18864,14 +18893,14 @@ var SlimTopBar = ({ mode = "primary", onBack }) => {
18864
18893
  hitSlop: DEFAULT_HIT_SLOP,
18865
18894
  accessibilityRole: "button",
18866
18895
  accessibilityLabel: t("menu") || "Menu",
18867
- children: /* @__PURE__ */ jsx48(Icon, { name: "menu", size: 22, color: colors.text })
18896
+ children: /* @__PURE__ */ jsx49(Icon, { name: "menu", size: 22, color: colors.text })
18868
18897
  }
18869
18898
  )
18870
18899
  ] })
18871
18900
  ] })
18872
18901
  }
18873
18902
  ),
18874
- /* @__PURE__ */ jsx48(NavDrawer, { visible: menuOpen, onClose: () => setMenuOpen(false), onBack })
18903
+ /* @__PURE__ */ jsx49(NavDrawer, { visible: menuOpen, onClose: () => setMenuOpen(false), onBack })
18875
18904
  ] });
18876
18905
  };
18877
18906
  var styles38 = StyleSheet39.create({
@@ -18932,18 +18961,18 @@ var styles38 = StyleSheet39.create({
18932
18961
 
18933
18962
  // src/RedactoPrivacyCenter/components/PrivacyCenterEmptyState.tsx
18934
18963
  import { useTranslation as useTranslation19 } from "react-i18next";
18935
- import { jsx as jsx49 } from "react/jsx-runtime";
18964
+ import { jsx as jsx50 } from "react/jsx-runtime";
18936
18965
  function PrivacyCenterEmptyState() {
18937
18966
  const { t } = useTranslation19();
18938
- return /* @__PURE__ */ jsx49(PCEmpty, { iconName: "shield", title: t("noDataTitle"), description: t("noDataDescription") });
18967
+ return /* @__PURE__ */ jsx50(PCEmpty, { iconName: "shield", title: t("noDataTitle"), description: t("noDataDescription") });
18939
18968
  }
18940
18969
 
18941
18970
  // src/RedactoPrivacyCenter/components/PrivacyCenterSessionExpired.tsx
18942
18971
  import { useTranslation as useTranslation20 } from "react-i18next";
18943
- import { jsx as jsx50 } from "react/jsx-runtime";
18972
+ import { jsx as jsx51 } from "react/jsx-runtime";
18944
18973
  function PrivacyCenterSessionExpired() {
18945
18974
  const { t } = useTranslation20();
18946
- return /* @__PURE__ */ jsx50(
18975
+ return /* @__PURE__ */ jsx51(
18947
18976
  PCEmpty,
18948
18977
  {
18949
18978
  iconName: "shield",
@@ -18957,22 +18986,6 @@ function PrivacyCenterSessionExpired() {
18957
18986
  import { useCallback as useCallback11, useEffect as useEffect16, useState as useState22 } from "react";
18958
18987
  import { StyleSheet as StyleSheet41, View as View39 } from "react-native";
18959
18988
 
18960
- // src/RedactoPrivacyCenter/context/ProfileSwitchContext.tsx
18961
- import { createContext as createContext7, useContext as useContext7 } from "react";
18962
- import { jsx as jsx51 } from "react/jsx-runtime";
18963
- var ProfileSwitchContext = createContext7({
18964
- switchProfile: null
18965
- });
18966
- function ProfileSwitchProvider({
18967
- switchProfile,
18968
- children
18969
- }) {
18970
- return /* @__PURE__ */ jsx51(ProfileSwitchContext.Provider, { value: { switchProfile }, children });
18971
- }
18972
- function useProfileSwitch() {
18973
- return useContext7(ProfileSwitchContext);
18974
- }
18975
-
18976
18989
  // src/RedactoPrivacyCenter/components/SelectUser.tsx
18977
18990
  import { ScrollView as ScrollView8, StyleSheet as StyleSheet40, Text as Text30, TouchableOpacity as TouchableOpacity15, View as View38 } from "react-native";
18978
18991
  import { useTranslation as useTranslation21 } from "react-i18next";
@@ -21748,6 +21761,7 @@ function Navbar({ mode = "primary", onBack }) {
21748
21761
  const [menuOpen, setMenuOpen] = useState26(false);
21749
21762
  const unreadCount = useUnreadCount();
21750
21763
  const { status: pageStatus } = usePageStatus();
21764
+ const { switchProfile } = useProfileSwitch();
21751
21765
  const pageChrome = PAGE_CHROME_BY_PAGE[currentPage] || PAGE_CHROME_BY_PAGE["consent-manager"];
21752
21766
  const isDetail = mode === "detail";
21753
21767
  useEffect22(() => {
@@ -21850,6 +21864,36 @@ function Navbar({ mode = "primary", onBack }) {
21850
21864
  ) : null,
21851
21865
  /* @__PURE__ */ jsx71(View55, { style: styles57.brandWrap, children: (branding == null ? void 0 : branding.logo_url) ? /* @__PURE__ */ jsx71(BrandImage, { uri: branding.logo_url, height: 34, maxWidth: 170, fallback: brandLockup }) : brandLockup }),
21852
21866
  /* @__PURE__ */ jsxs48(View55, { style: styles57.actions, children: [
21867
+ switchProfile ? /* @__PURE__ */ jsx71(
21868
+ TouchableOpacity25,
21869
+ {
21870
+ style: styles57.iconButton,
21871
+ onPress: switchProfile,
21872
+ activeOpacity: 0.7,
21873
+ hitSlop: DEFAULT_HIT_SLOP,
21874
+ accessibilityRole: "button",
21875
+ accessibilityLabel: t("switchProfile"),
21876
+ children: /* @__PURE__ */ jsx71(
21877
+ View55,
21878
+ {
21879
+ style: [
21880
+ styles57.iconCircle,
21881
+ { backgroundColor: colors.surface, borderColor: colors.border }
21882
+ ],
21883
+ children: /* @__PURE__ */ jsx71(Svg4, { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsx71(
21884
+ Path4,
21885
+ {
21886
+ d: "M16 3h5v5 M21 3l-7 7 M8 21H3v-5 M3 21l7-7",
21887
+ stroke: colors.text,
21888
+ strokeWidth: 2,
21889
+ strokeLinecap: "round",
21890
+ strokeLinejoin: "round"
21891
+ }
21892
+ ) })
21893
+ }
21894
+ )
21895
+ }
21896
+ ) : null,
21853
21897
  /* @__PURE__ */ jsx71(NotificationBell, { count: unreadCount, onPress: () => navigateTo("notifications") }),
21854
21898
  /* @__PURE__ */ jsx71(PCSelect, { value: locale, options: languageOptions, onChange: handleLanguageChange, placeholder: t("language"), compact: true }),
21855
21899
  /* @__PURE__ */ jsx71(
@@ -21926,6 +21970,21 @@ var styles57 = StyleSheet58.create({
21926
21970
  alignItems: "center",
21927
21971
  justifyContent: "center"
21928
21972
  },
21973
+ iconButton: {
21974
+ width: MIN_TAP_TARGET,
21975
+ height: MIN_TAP_TARGET,
21976
+ alignItems: "center",
21977
+ justifyContent: "center"
21978
+ },
21979
+ // Matches the Flutter navbar's 34pt bordered circle.
21980
+ iconCircle: {
21981
+ width: 34,
21982
+ height: 34,
21983
+ borderRadius: 17,
21984
+ borderWidth: 1,
21985
+ alignItems: "center",
21986
+ justifyContent: "center"
21987
+ },
21929
21988
  pageHeader: {
21930
21989
  marginTop: spacing.sm
21931
21990
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redacto.io/consent-sdk-react-native",
3
- "version": "5.0.0-beta.10",
3
+ "version": "5.0.0-beta.11",
4
4
  "description": "React Native SDK for integrating Redacto consent notices and privacy center in mobile apps.",
5
5
  "keywords": [
6
6
  "consent",
@@ -36,6 +36,14 @@
36
36
  "default": "./dist/privacy-center.mjs"
37
37
  }
38
38
  },
39
+ "scripts": {
40
+ "build": "tsup",
41
+ "dev": "tsup --watch",
42
+ "check:locales": "node scripts/check-locales.js",
43
+ "prepare": "npm run build",
44
+ "release": "pnpm run build",
45
+ "test": "vitest"
46
+ },
39
47
  "dependencies": {
40
48
  "jwt-decode": "^4.0.0",
41
49
  "lucide-react-native": "^1.21.0"
@@ -103,12 +111,5 @@
103
111
  "tsup": "^8.4.0",
104
112
  "typescript": "5.8.2",
105
113
  "vitest": "^4.1.8"
106
- },
107
- "scripts": {
108
- "build": "tsup",
109
- "dev": "tsup --watch",
110
- "check:locales": "node scripts/check-locales.js",
111
- "release": "pnpm run build",
112
- "test": "vitest"
113
114
  }
114
- }
115
+ }
package/LICENSE DELETED
@@ -1,176 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS