@fluid-app/portal-sdk 0.1.330 → 0.1.332

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.
Files changed (55) hide show
  1. package/dist/{AddressAutocompleteInput-DFcyiHmr.mjs → AddressAutocompleteInput-D_bu-VYW.mjs} +2 -2
  2. package/dist/{AddressAutocompleteInput-DFcyiHmr.mjs.map → AddressAutocompleteInput-D_bu-VYW.mjs.map} +1 -1
  3. package/dist/{AddressAutocompleteInput-CypfjDDP.cjs → AddressAutocompleteInput-DzUhtj6o.cjs} +2 -2
  4. package/dist/{AddressAutocompleteInput-CypfjDDP.cjs.map → AddressAutocompleteInput-DzUhtj6o.cjs.map} +1 -1
  5. package/dist/{FluidProvider-BeoE50u-.mjs → FluidProvider-Vox9-7PR.mjs} +18 -31
  6. package/dist/{FluidProvider-BeoE50u-.mjs.map → FluidProvider-Vox9-7PR.mjs.map} +1 -1
  7. package/dist/{FluidProvider-Bc-ejPL4.cjs → FluidProvider-d2xkELCP.cjs} +18 -31
  8. package/dist/{FluidProvider-Bc-ejPL4.cjs.map → FluidProvider-d2xkELCP.cjs.map} +1 -1
  9. package/dist/{MessagingScreen-Dpymz-VL.cjs → MessagingScreen-DSiCbDtD.cjs} +4 -4
  10. package/dist/{MessagingScreen-be5URzwt.mjs → MessagingScreen-DbLWE-lO.mjs} +4 -4
  11. package/dist/{MessagingScreen-k9i2ahoH.mjs → MessagingScreen-d4E-pPU2.mjs} +2 -2
  12. package/dist/{MessagingScreen-k9i2ahoH.mjs.map → MessagingScreen-d4E-pPU2.mjs.map} +1 -1
  13. package/dist/{MessagingScreen-D_6wWdwM.cjs → MessagingScreen-zlASVP2j.cjs} +2 -2
  14. package/dist/{MessagingScreen-D_6wWdwM.cjs.map → MessagingScreen-zlASVP2j.cjs.map} +1 -1
  15. package/dist/{OrdersScreen-DAErfb-q.mjs → OrdersScreen-BAaZskOQ.mjs} +4 -4
  16. package/dist/{OrdersScreen-BIZYfWdy.mjs → OrdersScreen-DDjwCYh2.mjs} +2 -2
  17. package/dist/{OrdersScreen-BIZYfWdy.mjs.map → OrdersScreen-DDjwCYh2.mjs.map} +1 -1
  18. package/dist/{OrdersScreen-BVy-qpBo.cjs → OrdersScreen-Dfk7bBrS.cjs} +4 -4
  19. package/dist/{OrdersScreen-D4AZ6yTb.cjs → OrdersScreen-PHt6FiLK.cjs} +2 -2
  20. package/dist/{OrdersScreen-D4AZ6yTb.cjs.map → OrdersScreen-PHt6FiLK.cjs.map} +1 -1
  21. package/dist/{PointsWidget-BTteH_l8.cjs → PointsWidget-Bgq6UN10.cjs} +52 -46
  22. package/dist/PointsWidget-Bgq6UN10.cjs.map +1 -0
  23. package/dist/{PointsWidget-BylUmQaD.mjs → PointsWidget-DapuzCqJ.mjs} +52 -46
  24. package/dist/PointsWidget-DapuzCqJ.mjs.map +1 -0
  25. package/dist/{ProfileScreen-e8VYXIxc.cjs → ProfileScreen-Bws2p2aL.cjs} +5 -5
  26. package/dist/{ProfileScreen-DRyDmZUw.mjs → ProfileScreen-D7Gc9fKL.mjs} +5 -5
  27. package/dist/{ProfileScreen-COPbjxJF.cjs → ProfileScreen-DGgM8BT3.cjs} +3 -3
  28. package/dist/{ProfileScreen-COPbjxJF.cjs.map → ProfileScreen-DGgM8BT3.cjs.map} +1 -1
  29. package/dist/{ProfileScreen-PVlG4QFR.mjs → ProfileScreen-PKdQL4_y.mjs} +3 -3
  30. package/dist/{ProfileScreen-PVlG4QFR.mjs.map → ProfileScreen-PKdQL4_y.mjs.map} +1 -1
  31. package/dist/{ShopScreen-SqPDHV3o.mjs → ShopScreen-99bJJLBt.mjs} +4 -4
  32. package/dist/{ShopScreen-I94xE47A.cjs → ShopScreen-BRsb2VNB.cjs} +2 -2
  33. package/dist/{ShopScreen-I94xE47A.cjs.map → ShopScreen-BRsb2VNB.cjs.map} +1 -1
  34. package/dist/{ShopScreen-DsP_ofvY.mjs → ShopScreen-BlIGdmTq.mjs} +2 -2
  35. package/dist/{ShopScreen-DsP_ofvY.mjs.map → ShopScreen-BlIGdmTq.mjs.map} +1 -1
  36. package/dist/{ShopScreen-we1Kpz7H.cjs → ShopScreen-Pdsn6sDj.cjs} +4 -4
  37. package/dist/{SubscriptionsScreen-C-44sdwh.mjs → SubscriptionsScreen-BnObp1Ca.mjs} +3 -3
  38. package/dist/{SubscriptionsScreen-C-44sdwh.mjs.map → SubscriptionsScreen-BnObp1Ca.mjs.map} +1 -1
  39. package/dist/{SubscriptionsScreen-DXKLbNCC.mjs → SubscriptionsScreen-BrAgJiKL.mjs} +5 -5
  40. package/dist/{SubscriptionsScreen-Ch1oK6Ha.cjs → SubscriptionsScreen-Bsuz7bNO.cjs} +5 -5
  41. package/dist/{SubscriptionsScreen-DwP5maPs.cjs → SubscriptionsScreen-L9ewT1bv.cjs} +3 -3
  42. package/dist/{SubscriptionsScreen-DwP5maPs.cjs.map → SubscriptionsScreen-L9ewT1bv.cjs.map} +1 -1
  43. package/dist/{VideoWidget-0G91idne.cjs → VideoWidget-5oAZXEKw.cjs} +10 -2
  44. package/dist/VideoWidget-5oAZXEKw.cjs.map +1 -0
  45. package/dist/{VideoWidget-Cnx19JYQ.mjs → VideoWidget-CuEeM8ct.mjs} +10 -2
  46. package/dist/VideoWidget-CuEeM8ct.mjs.map +1 -0
  47. package/dist/index.cjs +19 -19
  48. package/dist/index.d.cts.map +1 -1
  49. package/dist/index.d.mts.map +1 -1
  50. package/dist/index.mjs +19 -19
  51. package/package.json +11 -11
  52. package/dist/PointsWidget-BTteH_l8.cjs.map +0 -1
  53. package/dist/PointsWidget-BylUmQaD.mjs.map +0 -1
  54. package/dist/VideoWidget-0G91idne.cjs.map +0 -1
  55. package/dist/VideoWidget-Cnx19JYQ.mjs.map +0 -1
@@ -23,7 +23,7 @@ import { t as LinkWidget } from "./LinkWidget-DW90JZN_.mjs";
23
23
  import { t as ListWidget } from "./ListWidget-Cb6ZVDHZ.mjs";
24
24
  import { t as MySiteWidget } from "./MySiteWidget-BDysvovd.mjs";
25
25
  import { t as NestedWidget } from "./NestedWidget-D7e-UXsd.mjs";
26
- import { t as PointsWidget } from "./PointsWidget-BylUmQaD.mjs";
26
+ import { t as PointsWidget } from "./PointsWidget-DapuzCqJ.mjs";
27
27
  import { t as QuickLinksWidget } from "./QuickLinksWidget-CxMjqbp0.mjs";
28
28
  import { t as QuickShareWidget } from "./QuickShareWidget-CTCRjdrB.mjs";
29
29
  import { t as RecentActivityWidget } from "./RecentActivityWidget-CoAL8wCS.mjs";
@@ -31,7 +31,7 @@ import { t as SeparatorWidget } from "./SeparatorWidget-DVJZu5gP.mjs";
31
31
  import { t as SpacerWidget } from "./SpacerWidget-CCpCGUjM.mjs";
32
32
  import { t as TableWidget } from "./TableWidget-CeaAeGSw.mjs";
33
33
  import { t as ToDoWidget } from "./ToDoWidget-CHsQI_Qk.mjs";
34
- import { t as VideoWidget } from "./VideoWidget-Cnx19JYQ.mjs";
34
+ import { t as VideoWidget } from "./VideoWidget-CuEeM8ct.mjs";
35
35
  import { t as ShopWidget } from "./ShopWidget-CfasYQGp.mjs";
36
36
  import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
37
37
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
@@ -6583,26 +6583,20 @@ function mapBffCatchUp(raw) {
6583
6583
  suggestionTitle: raw.suggestion_title
6584
6584
  };
6585
6585
  }
6586
- function formatBffPointsDescription(ledger) {
6587
- const metadata = ledger.metadata;
6588
- if (metadata?.transaction_type) return metadata.transaction_type.split("_").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ");
6589
- if (metadata?.source?.reason) return metadata.source.reason;
6590
- if (ledger.created_at) return `Transaction ${new Date(ledger.created_at).toLocaleDateString("en-US", {
6591
- month: "long",
6592
- day: "numeric"
6593
- })}`;
6594
- return "Points Transaction";
6595
- }
6596
6586
  function mapBffPointsLedger(ledgers) {
6597
6587
  const sorted = [...ledgers].sort((a, b) => new Date(b.created_at ?? 0).getTime() - new Date(a.created_at ?? 0).getTime());
6598
6588
  return {
6599
6589
  balance: sorted[0]?.total_balance ?? 0,
6600
- entries: sorted.map((ledger) => ({
6601
- id: ledger.id,
6602
- description: formatBffPointsDescription(ledger),
6603
- amount: ledger.amount,
6604
- createdAt: ledger.created_at ?? ""
6605
- }))
6590
+ entries: sorted.map((ledger) => {
6591
+ const metadata = ledger.metadata;
6592
+ return {
6593
+ id: ledger.id,
6594
+ amount: ledger.amount,
6595
+ createdAt: ledger.created_at ?? "",
6596
+ transactionType: metadata?.transaction_type ?? null,
6597
+ hasSource: metadata?.source != null
6598
+ };
6599
+ })
6606
6600
  };
6607
6601
  }
6608
6602
  function mapBffMySiteProfile(profile) {
@@ -6738,23 +6732,16 @@ function transformActivities(rawData) {
6738
6732
  slug: activity.slug
6739
6733
  })).sort((a, b) => new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime());
6740
6734
  }
6741
- function formatLegacyPointsDescription(ledger) {
6742
- if (ledger.metadata?.transaction_type) return ledger.metadata.transaction_type.split("_").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ");
6743
- if (ledger.metadata?.source?.reason) return ledger.metadata.source.reason;
6744
- return `Transaction ${new Date(ledger.created_at).toLocaleDateString("en-US", {
6745
- month: "long",
6746
- day: "numeric"
6747
- })}`;
6748
- }
6749
6735
  function transformLegacyPointsLedger(data) {
6750
6736
  const sorted = [...data.points_ledgers].sort((a, b) => new Date(b.created_at).getTime() - new Date(a.created_at).getTime());
6751
6737
  return {
6752
6738
  balance: sorted[0]?.total_balance ?? 0,
6753
6739
  entries: sorted.map((ledger) => ({
6754
6740
  id: ledger.id,
6755
- description: formatLegacyPointsDescription(ledger),
6756
6741
  amount: ledger.amount,
6757
- createdAt: ledger.created_at
6742
+ createdAt: ledger.created_at,
6743
+ transactionType: ledger.metadata?.transaction_type ?? null,
6744
+ hasSource: ledger.metadata?.source != null
6758
6745
  }))
6759
6746
  };
6760
6747
  }
@@ -7437,7 +7424,7 @@ const widgetPropertySchemas = {
7437
7424
  ListWidget: () => import("./ListWidget-Cb6ZVDHZ.mjs").then((n) => n.n).then((m) => m.listWidgetPropertySchema),
7438
7425
  MySiteWidget: () => import("./MySiteWidget-BDysvovd.mjs").then((n) => n.n).then((m) => m.mySiteWidgetPropertySchema),
7439
7426
  NestedWidget: () => import("./NestedWidget-D7e-UXsd.mjs").then((n) => n.n).then((m) => m.nestedWidgetPropertySchema),
7440
- PointsWidget: () => import("./PointsWidget-BylUmQaD.mjs").then((n) => n.n).then((m) => m.pointsWidgetPropertySchema),
7427
+ PointsWidget: () => import("./PointsWidget-DapuzCqJ.mjs").then((n) => n.n).then((m) => m.pointsWidgetPropertySchema),
7441
7428
  QuickLinksWidget: () => import("./QuickLinksWidget-CxMjqbp0.mjs").then((n) => n.n).then((m) => m.quickLinksWidgetPropertySchema),
7442
7429
  QuickShareWidget: () => import("./QuickShareWidget-CTCRjdrB.mjs").then((n) => n.n).then((m) => m.quickShareWidgetPropertySchema),
7443
7430
  RecentActivityWidget: () => import("./RecentActivityWidget-CoAL8wCS.mjs").then((n) => n.n).then((m) => m.recentActivityWidgetPropertySchema),
@@ -7447,7 +7434,7 @@ const widgetPropertySchemas = {
7447
7434
  TableWidget: () => import("./TableWidget-CeaAeGSw.mjs").then((n) => n.n).then((m) => m.tableWidgetPropertySchema),
7448
7435
  TextWidget: () => import("./TextWidget-APrOBo5U.mjs").then((n) => n.n).then((m) => m.textWidgetPropertySchema),
7449
7436
  ToDoWidget: () => import("./ToDoWidget-CHsQI_Qk.mjs").then((n) => n.n).then((m) => m.toDoWidgetPropertySchema),
7450
- VideoWidget: () => import("./VideoWidget-Cnx19JYQ.mjs").then((n) => n.n).then((m) => m.videoWidgetPropertySchema)
7437
+ VideoWidget: () => import("./VideoWidget-CuEeM8ct.mjs").then((n) => n.n).then((m) => m.videoWidgetPropertySchema)
7451
7438
  };
7452
7439
  //#endregion
7453
7440
  //#region src/core/default-widget-registry.ts
@@ -7779,4 +7766,4 @@ function useFluidContext() {
7779
7766
  //#endregion
7780
7767
  export { mergeDarkOverrides as A, useLanguagesApi as B, DEFAULT_SPACING as C, generateThemeCSS as D, getDefaultThemeDefinition as E, RADIUS_KEYS as F, useAppDefinitionApi as H, SEMANTIC_COLOR_NAMES as I, ApiError as L, resolveTheme as M, FONT_FAMILY_KEYS as N, deriveDarkVariant as O, FONT_SIZE_KEYS as P, isApiError as R, DEFAULT_RADII as S, DEFAULT_THEME_NAME as T, createPersister as U, usePayApi as V, deleteDatabase as W, deserialiseTheme as _, widgetPropertySchemas as a, DEFAULT_FONT_FAMILIES as b, createWidgetRegistry as c, applyTheme as d, removeAllThemes as f, transformThemes as g, getActiveThemeId as h, DEFAULT_SDK_WIDGET_REGISTRY as i, parseColor as j, getForegroundColor as k, FluidThemeProvider as l, buildThemeDefinition as m, useFluidContext as n, createScreen as o, removeTheme as p, SUPPORTED_LANGUAGES as r, createWidgetFromShareable as s, FluidProvider as t, useThemeContext as u, serialiseTheme as v, DEFAULT_THEME_ID as w, DEFAULT_FONT_SIZES as x, DEFAULT_COLORS as y, useAddressAutocompleteApi as z };
7781
7768
 
7782
- //# sourceMappingURL=FluidProvider-BeoE50u-.mjs.map
7769
+ //# sourceMappingURL=FluidProvider-Vox9-7PR.mjs.map