@flamingo-stack/openframe-frontend-core 0.0.852 → 0.0.853

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 (52) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{chunk-MXY2OGEV.cjs → chunk-53QPG7SJ.cjs} +3 -3
  3. package/dist/{chunk-X3WIOMEE.cjs → chunk-67CZ2Q5K.cjs} +7 -7
  4. package/dist/{chunk-477P6AQH.cjs → chunk-6V2M2X3M.cjs} +2 -2
  5. package/dist/{chunk-VUHHLRAY.cjs → chunk-7RZHSBNX.cjs} +24 -24
  6. package/dist/{chunk-GEZ3UXCA.cjs → chunk-BNG6JOGZ.cjs} +4 -4
  7. package/dist/{chunk-CHGIACIP.cjs → chunk-E4MFQKPC.cjs} +31 -31
  8. package/dist/{chunk-MFDRCTM3.cjs → chunk-EF2FZ7GT.cjs} +9 -9
  9. package/dist/{chunk-D3H6AI7O.cjs → chunk-GI6ECCWB.cjs} +28 -8
  10. package/dist/{chunk-WFAZMASF.cjs → chunk-HF3V6WBJ.cjs} +3 -3
  11. package/dist/{chunk-3ZQESOPJ.cjs → chunk-KEV6F3QN.cjs} +21 -21
  12. package/dist/{chunk-3SJVF3HW.cjs → chunk-TBGQMHCG.cjs} +3 -3
  13. package/dist/{cloud-tenants-O33HCUYB.cjs → cloud-tenants-QUL2XPAS.cjs} +2 -2
  14. package/dist/components/case-studies/index.cjs +11 -11
  15. package/dist/components/contact/index.cjs +3 -3
  16. package/dist/components/docs/index.cjs +4 -4
  17. package/dist/components/embeds/index.cjs +3 -3
  18. package/dist/components/faq/index.cjs +3 -3
  19. package/dist/components/features/index.cjs +2 -2
  20. package/dist/components/help-center-pages/index.cjs +46 -46
  21. package/dist/components/help-center-pages/trust-center-page.d.ts +1 -1
  22. package/dist/components/index.cjs +23 -17
  23. package/dist/components/meeting-scheduler/index.cjs +17 -17
  24. package/dist/components/navigation/index.cjs +3 -3
  25. package/dist/components/onboarding-guides/index.cjs +3 -3
  26. package/dist/components/platform/tool-badge-mark.d.ts +1 -1
  27. package/dist/components/product-demo/index.cjs +11 -11
  28. package/dist/components/tickets/index.cjs +5 -5
  29. package/dist/components/ui/data-attribution.d.ts +8 -3
  30. package/dist/components/ui/data-attribution.d.ts.map +1 -1
  31. package/dist/components/ui/data-attribution.js +17 -6
  32. package/dist/components/ui/index.cjs +8 -2
  33. package/dist/components/ui/index.d.ts +1 -0
  34. package/dist/components/ui/index.d.ts.map +1 -1
  35. package/dist/components/ui/index.js +1 -0
  36. package/dist/{devices-2RGGMC2B.cjs → devices-LNB4CYPP.cjs} +3 -3
  37. package/dist/index.cjs +5 -3
  38. package/dist/{knowledge-5TJIXVMD.cjs → knowledge-UTWKB6XG.cjs} +2 -2
  39. package/dist/{logs-HGQOTRKZ.cjs → logs-PMXIWMBQ.cjs} +9 -9
  40. package/dist/{policies-GWFSLVSM.cjs → policies-6DCMFDL7.cjs} +6 -6
  41. package/dist/{scripts-PGJNAZF4.cjs → scripts-2G7LXW7Z.cjs} +7 -7
  42. package/dist/{software-update-KKLSYHDI.cjs → software-update-MYLKHDHC.cjs} +5 -5
  43. package/dist/types/data-sync.d.ts +4 -1
  44. package/dist/types/data-sync.d.ts.map +1 -1
  45. package/dist/types/data-sync.js +4 -1
  46. package/dist/types/index.cjs +4 -1
  47. package/package.json +1 -1
  48. package/src/components/help-center-pages/trust-center-page.tsx +1 -1
  49. package/src/components/platform/tool-badge-mark.ts +1 -1
  50. package/src/components/ui/data-attribution.tsx +20 -8
  51. package/src/components/ui/index.ts +2 -0
  52. package/src/types/data-sync.ts +4 -1
@@ -8,7 +8,7 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
8
8
  var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
9
9
 
10
10
 
11
- var _chunkD3H6AI7Ocjs = require('./chunk-D3H6AI7O.cjs');
11
+ var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
12
12
  require('./chunk-USPUZO53.cjs');
13
13
  require('./chunk-COJG2ATY.cjs');
14
14
  require('./chunk-P63CRPWI.cjs');
@@ -1908,7 +1908,7 @@ function KnowledgeScreen(_props) {
1908
1908
  const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
1909
1909
  const fixture = _react.useMemo.call(void 0, () => buildKnowledgeFixture(cast), [cast]);
1910
1910
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1911
- _chunkD3H6AI7Ocjs.KnowledgeBaseArticleView,
1911
+ _chunkGI6ECCWBcjs.KnowledgeBaseArticleView,
1912
1912
  {
1913
1913
  ...fixture.article,
1914
1914
  content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLFEURIZNcjs.SimpleMarkdownRenderer, { content: fixture.content, textSize: "compact" })
@@ -15,7 +15,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
15
15
 
16
16
 
17
17
 
18
- var _chunkD3H6AI7Ocjs = require('./chunk-D3H6AI7O.cjs');
18
+ var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
19
19
  require('./chunk-USPUZO53.cjs');
20
20
  require('./chunk-COJG2ATY.cjs');
21
21
  require('./chunk-P63CRPWI.cjs');
@@ -1890,7 +1890,7 @@ function entry(logId, minutesAgo, severity, toolType, device2, summary) {
1890
1890
  id: logId,
1891
1891
  logId,
1892
1892
  timestamp: displayTime(_chunkFDZOE5TLcjs.demoMinutesAgo.call(void 0, minutesAgo)),
1893
- status: { label: severity, variant: _chunkD3H6AI7Ocjs.logSeverityVariant.call(void 0, severity) },
1893
+ status: { label: severity, variant: _chunkGI6ECCWBcjs.logSeverityVariant.call(void 0, severity) },
1894
1894
  source: { name: toolType, toolType },
1895
1895
  device: device2,
1896
1896
  description: { title: summary }
@@ -1962,13 +1962,13 @@ var NO_FILTERS = {};
1962
1962
  var ACTION_COLUMNS = ["copy", "quickView", "open"];
1963
1963
  var BESIDE_DRAWER_HIDDEN = [...ACTION_COLUMNS, "tool", "source"];
1964
1964
  var logHref = () => "#";
1965
- var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD3H6AI7Ocjs.LogCopyIconButton, {});
1965
+ var copyAction = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.LogCopyIconButton, {});
1966
1966
  function LogsScreen({ compact = false }) {
1967
1967
  const [dock, setDock] = _react.useState.call(void 0, null);
1968
1968
  const selected = LOGS_FIXTURE_SELECTED;
1969
1969
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full bg-ods-bg", children: [
1970
1970
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-clip", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1971
- _chunkD3H6AI7Ocjs.LogsPageView,
1971
+ _chunkGI6ECCWBcjs.LogsPageView,
1972
1972
  {
1973
1973
  showHeader: false,
1974
1974
  className: "p-[var(--spacing-system-l)]",
@@ -1976,7 +1976,7 @@ function LogsScreen({ compact = false }) {
1976
1976
  onSearchChange: noop,
1977
1977
  onOpenFilters: noop,
1978
1978
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1979
- _chunkD3H6AI7Ocjs.LogsTableView,
1979
+ _chunkGI6ECCWBcjs.LogsTableView,
1980
1980
  {
1981
1981
  logs: LOGS_FIXTURE_ENTRIES,
1982
1982
  facets: LOGS_FIXTURE_FACETS,
@@ -1991,7 +1991,7 @@ function LogsScreen({ compact = false }) {
1991
1991
  }
1992
1992
  ) }),
1993
1993
  !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setDock, className: "relative w-[calc(400px+var(--spacing-system-m))] shrink-0", children: dock && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOT6P57ZScjs.AppLayoutDrawerContainerContext.Provider, { value: dock, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1994
- _chunkD3H6AI7Ocjs.LogDrawer,
1994
+ _chunkGI6ECCWBcjs.LogDrawer,
1995
1995
  {
1996
1996
  docked: true,
1997
1997
  isOpen: true,
@@ -2003,12 +2003,12 @@ function LogsScreen({ compact = false }) {
2003
2003
  { label: "Log ID", value: selected.logId },
2004
2004
  {
2005
2005
  label: "Source",
2006
- value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD3H6AI7Ocjs.ToolBadge, { toolType: _chunkIC4IJJB2cjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
2006
+ value: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.ToolBadge, { toolType: _chunkIC4IJJB2cjs.normalizeToolTypeWithFallback.call(void 0, selected.source.toolType) })
2007
2007
  },
2008
- { label: "Device", value: _chunkD3H6AI7Ocjs.logSourceLabels.call(void 0, selected.device).deviceName }
2008
+ { label: "Device", value: _chunkGI6ECCWBcjs.logSourceLabels.call(void 0, selected.device).deviceName }
2009
2009
  ],
2010
2010
  deviceCard: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2011
- _chunkD3H6AI7Ocjs.DeviceCard,
2011
+ _chunkGI6ECCWBcjs.DeviceCard,
2012
2012
  {
2013
2013
  ...LOGS_FIXTURE_DEVICE,
2014
2014
  actions: {
@@ -10,7 +10,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunkD3H6AI7Ocjs = require('./chunk-D3H6AI7O.cjs');
13
+ var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
14
14
  require('./chunk-USPUZO53.cjs');
15
15
  require('./chunk-COJG2ATY.cjs');
16
16
  require('./chunk-P63CRPWI.cjs');
@@ -1894,14 +1894,14 @@ var POLICIES = [
1894
1894
  policy("policy-local-admins", "No local admins", "No everyday account is a local administrator.", false, 0)
1895
1895
  ];
1896
1896
  var POLICIES_FIXTURE = {
1897
- summary: _chunkD3H6AI7Ocjs.computePolicySummary.call(void 0, POLICIES),
1897
+ summary: _chunkGI6ECCWBcjs.computePolicySummary.call(void 0, POLICIES),
1898
1898
  rows: POLICIES.map((item) => ({
1899
1899
  id: item.id,
1900
1900
  name: item.name,
1901
1901
  description: item.description,
1902
1902
  critical: item.critical,
1903
1903
  severityLabel: item.critical ? "Critical" : "Low",
1904
- status: _chunkD3H6AI7Ocjs.getPolicyTableStatus.call(void 0, item),
1904
+ status: _chunkGI6ECCWBcjs.getPolicyTableStatus.call(void 0, item),
1905
1905
  actions: [
1906
1906
  { label: "Policy Details", onClick: noop },
1907
1907
  { label: "Delete Policy", onClick: noop }
@@ -1915,16 +1915,16 @@ var POLICIES_FIXTURE = {
1915
1915
  var _jsxruntime = require('react/jsx-runtime');
1916
1916
  function PoliciesScreen({ compact = false }) {
1917
1917
  const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1918
- _chunkD3H6AI7Ocjs.PoliciesTable,
1918
+ _chunkGI6ECCWBcjs.PoliciesTable,
1919
1919
  {
1920
1920
  rows: POLICIES_FIXTURE.rows,
1921
1921
  rowAsLink: true,
1922
- rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD3H6AI7Ocjs.DataTable.RowCount, {}),
1922
+ rightSlot: compact ? void 0 : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.DataTable.RowCount, {}),
1923
1923
  emptyMessage: "No policies found."
1924
1924
  }
1925
1925
  );
1926
1926
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col gap-[var(--spacing-system-l)] bg-ods-bg p-[var(--spacing-system-l)]", children: [
1927
- !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD3H6AI7Ocjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
1927
+ !compact && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.PolicySummaryCards, { summary: POLICIES_FIXTURE.summary, now: POLICIES_FIXTURE.now }),
1928
1928
  table
1929
1929
  ] });
1930
1930
  }
@@ -13,7 +13,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkD3H6AI7Ocjs = require('./chunk-D3H6AI7O.cjs');
16
+ var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
17
17
  require('./chunk-USPUZO53.cjs');
18
18
 
19
19
 
@@ -1998,8 +1998,8 @@ function buildScriptsFixture(cast) {
1998
1998
  var _jsxruntime = require('react/jsx-runtime');
1999
1999
  var WIDE_HIDDEN_COLUMNS = ["result", "open"];
2000
2000
  var COMPACT_COLUMNS = [
2001
- { ..._chunkD3H6AI7Ocjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
2002
- _chunkD3H6AI7Ocjs.EXECUTION_COLUMNS.status
2001
+ { ..._chunkGI6ECCWBcjs.EXECUTION_COLUMNS.machineId, width: "flex-1 min-w-0", hideAt: void 0 },
2002
+ _chunkGI6ECCWBcjs.EXECUTION_COLUMNS.status
2003
2003
  ];
2004
2004
  var COMPACT_ROWS = 4;
2005
2005
  var TOKEN_CLASS = {
@@ -2058,7 +2058,7 @@ function ScriptCodePicture({ script }) {
2058
2058
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center justify-between gap-[var(--spacing-system-m)]", children: [
2059
2059
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCOJG2ATYcjs.TruncateText, { variant: "h6", tone: "secondary", children: `Written by ${provenance.author} \xB7 approved by ${provenance.approver}` }),
2060
2060
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2061
- _chunkD3H6AI7Ocjs.ScriptShellBadge,
2061
+ _chunkGI6ECCWBcjs.ScriptShellBadge,
2062
2062
  {
2063
2063
  value: script.shellType,
2064
2064
  className: "shrink-0 text-ods-text-secondary text-h6",
@@ -2082,7 +2082,7 @@ function ScriptsScreen({ compact = false }) {
2082
2082
  return (
2083
2083
  // Four runs of the card's row height fill the frame; the padding is what is left round them.
2084
2084
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full overflow-hidden bg-ods-bg p-[var(--spacing-system-xsf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2085
- _chunkD3H6AI7Ocjs.ScriptExecutionsTable,
2085
+ _chunkGI6ECCWBcjs.ScriptExecutionsTable,
2086
2086
  {
2087
2087
  rows: fixture.executions.slice(0, COMPACT_ROWS),
2088
2088
  columns: COMPACT_COLUMNS,
@@ -2092,13 +2092,13 @@ function ScriptsScreen({ compact = false }) {
2092
2092
  ) })
2093
2093
  );
2094
2094
  }
2095
- const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkD3H6AI7Ocjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
2095
+ const renderOutput = (row) => row.id === fixture.openExecutionId ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGI6ECCWBcjs.ScriptExecutionResult, { result: row.result, empty: "\u2014" }) : null;
2096
2096
  return (
2097
2097
  // The frame's tighter padding and no header row: the output opened under a run needs the height.
2098
2098
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full gap-[var(--spacing-system-m)] overflow-hidden bg-ods-bg p-[var(--spacing-system-m)]", children: [
2099
2099
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-[39%] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptCodePicture, { script: fixture.script }) }),
2100
2100
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2101
- _chunkD3H6AI7Ocjs.ScriptExecutionsTable,
2101
+ _chunkGI6ECCWBcjs.ScriptExecutionsTable,
2102
2102
  {
2103
2103
  rows: fixture.executions,
2104
2104
  hideColumns: WIDE_HIDDEN_COLUMNS,
@@ -15,7 +15,7 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
15
15
 
16
16
 
17
17
 
18
- var _chunkD3H6AI7Ocjs = require('./chunk-D3H6AI7O.cjs');
18
+ var _chunkGI6ECCWBcjs = require('./chunk-GI6ECCWB.cjs');
19
19
  require('./chunk-USPUZO53.cjs');
20
20
 
21
21
 
@@ -1925,12 +1925,12 @@ function StaticPackageField({ value }) {
1925
1925
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1926
1926
  _chunkCOJG2ATYcjs.Autocomplete,
1927
1927
  {
1928
- label: _chunkD3H6AI7Ocjs.PACKAGE_SEARCH_LABEL,
1928
+ label: _chunkGI6ECCWBcjs.PACKAGE_SEARCH_LABEL,
1929
1929
  labelVariant: "large",
1930
1930
  options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
1931
1931
  value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
1932
1932
  onChange: noop,
1933
- placeholder: _chunkD3H6AI7Ocjs.PACKAGE_SEARCH_PLACEHOLDER
1933
+ placeholder: _chunkGI6ECCWBcjs.PACKAGE_SEARCH_PLACEHOLDER
1934
1934
  }
1935
1935
  );
1936
1936
  }
@@ -1944,7 +1944,7 @@ function SoftwareUpdateScreen({ compact = false }) {
1944
1944
  [fixture.devices, fixture.selectedIds]
1945
1945
  );
1946
1946
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1947
- _chunkD3H6AI7Ocjs.SoftwareActionForm,
1947
+ _chunkGI6ECCWBcjs.SoftwareActionForm,
1948
1948
  {
1949
1949
  action: fixture.action,
1950
1950
  showHeader: false,
@@ -1956,7 +1956,7 @@ function SoftwareUpdateScreen({ compact = false }) {
1956
1956
  initialValues: fixture.initialValues,
1957
1957
  renderPackageSearch,
1958
1958
  renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1959
- _chunkD3H6AI7Ocjs.DeviceSelector,
1959
+ _chunkGI6ECCWBcjs.DeviceSelector,
1960
1960
  {
1961
1961
  devices: selected,
1962
1962
  loading: false,
@@ -1,11 +1,14 @@
1
1
  /**
2
2
  * Every system a shared page's records are mirrored from, with the name a page shows for it. THE list: `DataSync`,
3
- * `DataSyncLine`'s marks, the docs hook and every host that answers a `sync` read it.
3
+ * `DataSyncLine`'s and `DataSyncIcon`'s marks, the docs hook and every host that answers a `sync` read it.
4
4
  */
5
5
  export declare const DATA_SYNC_SOURCES: {
6
6
  readonly clickup: "ClickUp";
7
7
  readonly hubspot: "HubSpot";
8
8
  readonly github: "GitHub";
9
+ readonly openframe: "OpenFrame";
10
+ readonly stripe: "Stripe";
11
+ readonly quickbooks: "QuickBooks";
9
12
  };
10
13
  export type DataSyncSource = keyof typeof DATA_SYNC_SOURCES;
11
14
  export declare function isDataSyncSource(value: unknown): value is DataSyncSource;
@@ -1 +1 @@
1
- {"version":3,"file":"data-sync.d.ts","sourceRoot":"","sources":["../../src/types/data-sync.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE5D,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAExE;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,4CAA4C;IAC5C,MAAM,EAAE,cAAc,CAAC;IACvB,mFAAmF;IACnF,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}
1
+ {"version":3,"file":"data-sync.d.ts","sourceRoot":"","sources":["../../src/types/data-sync.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE5D,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAExE;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,4CAA4C;IAC5C,MAAM,EAAE,cAAc,CAAC;IACvB,mFAAmF;IACnF,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}
@@ -1,7 +1,10 @@
1
1
  const DATA_SYNC_SOURCES = {
2
2
  clickup: "ClickUp",
3
3
  hubspot: "HubSpot",
4
- github: "GitHub"
4
+ github: "GitHub",
5
+ openframe: "OpenFrame",
6
+ stripe: "Stripe",
7
+ quickbooks: "QuickBooks"
5
8
  };
6
9
  function isDataSyncSource(value) {
7
10
  return typeof value === "string" && Object.prototype.hasOwnProperty.call(DATA_SYNC_SOURCES, value);
@@ -28,7 +28,10 @@ var AVAILABLE_SVG_ICONS = [
28
28
  var DATA_SYNC_SOURCES = {
29
29
  clickup: "ClickUp",
30
30
  hubspot: "HubSpot",
31
- github: "GitHub"
31
+ github: "GitHub",
32
+ openframe: "OpenFrame",
33
+ stripe: "Stripe",
34
+ quickbooks: "QuickBooks"
32
35
  };
33
36
  function isDataSyncSource(value) {
34
37
  return typeof value === "string" && Object.prototype.hasOwnProperty.call(DATA_SYNC_SOURCES, value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.852",
3
+ "version": "0.0.853",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -103,7 +103,7 @@ export interface TrustCenterPageProps {
103
103
  */
104
104
  beforeFaq?: ReactNode;
105
105
  /**
106
- * The "Data synced from <source>" line and its PDF download in the status row. Default true. Pass false when the
106
+ * The "Data from <source>" line and its PDF download in the status row. Default true. Pass false when the
107
107
  * host's own header states both (the hub's admin preview draws them in its page header), so the page never says
108
108
  * them twice; the monitoring status stays.
109
109
  */
@@ -1,6 +1,6 @@
1
1
  import { ICON_SIZE } from '../../styles/component-sizes';
2
2
  /**
3
- * A tool or source mark's 16px box (`ToolBadge`'s mark, the "Data synced from" line's source glyph): read by the marks
3
+ * A tool or source mark's 16px box (`ToolBadge`'s mark, the "Data from" line's source glyph): read by the marks
4
4
  * and by every skeleton that stands for one. A leaf, so a `ui` component can read it without loading the badge.
5
5
  */
6
6
  export const TOOL_MARK_CLASS = `flex ${ICON_SIZE.sm} shrink-0 items-center justify-center`;
@@ -7,6 +7,9 @@ import { formatDate } from '../../utils/format';
7
7
  import { ClickupIcon } from '../icons-v2-generated/brand-logos/clickup-icon';
8
8
  import { GithubClassicIcon } from '../icons-v2-generated/brand-logos/github-classic-icon';
9
9
  import { HubspotIcon } from '../icons-v2-generated/brand-logos/hubspot-icon';
10
+ import { OpenframeLogoGreyIcon } from '../icons-v2-generated/brand-logos/openframe-logo-grey-icon';
11
+ import { QuickbooksIcon } from '../icons-v2-generated/brand-logos/quickbooks-icon';
12
+ import { StripeIcon } from '../icons-v2-generated/brand-logos/stripe-icon';
10
13
  import { TextLineSkeleton, UnifiedSkeleton } from '../loading/unified-skeleton';
11
14
  import { TOOL_MARK_CLASS } from '../platform/tool-badge-mark';
12
15
  import { useLoadingScope } from './loading-scope';
@@ -39,8 +42,8 @@ function Separator() {
39
42
  }
40
43
 
41
44
  /**
42
- * THE "Data synced from <source> · Last updated: <date>" line every synced
43
- * surface shows (the cap table, the financials, the Trust Center). The date is
45
+ * THE "Data from <source> · Last updated: <date>" line every surface showing another system's data
46
+ * draws (the cap table, the financials, the Trust Center). The date is
44
47
  * UTC (`formatDate`), so a server-rendered page and its hydrated copy print the
45
48
  * same text.
46
49
  */
@@ -50,7 +53,7 @@ export function DataAttribution({ icon, source, lastUpdated, action }: DataAttri
50
53
  <div className={LINE_CLASS}>
51
54
  <div className={ITEM_CLASS}>
52
55
  {icon}
53
- <span>Data synced from {source}</span>
56
+ <span>Data from {source}</span>
54
57
  </div>
55
58
  <Separator />
56
59
  <span className={UPDATED_CLASS}>Last updated: {lastUpdated ? formatDate(lastUpdated) : 'Never'}</span>
@@ -70,7 +73,7 @@ function DataAttributionSkeleton({ icon, action }: Pick<DataAttributionProps, 'i
70
73
  <div className={ITEM_CLASS}>
71
74
  {icon ?? <UnifiedSkeleton className={cn(TOOL_MARK_CLASS, 'rounded')} />}
72
75
  <span>
73
- Data synced from <TextLineSkeleton type="inherit" as="span" className={`${WORD_BAR_CLASS} w-20`} />
76
+ Data from <TextLineSkeleton type="inherit" as="span" className={`${WORD_BAR_CLASS} w-20`} />
74
77
  </span>
75
78
  </div>
76
79
  <Separator />
@@ -88,12 +91,22 @@ function DataAttributionSkeleton({ icon, action }: Pick<DataAttributionProps, 'i
88
91
  }
89
92
 
90
93
  /** The mark each sync source is drawn with (the app's standard brand marks); its name is `DATA_SYNC_SOURCES`'. */
91
- const DATA_SYNC_ICONS: Record<DataSyncSource, typeof ClickupIcon> = {
94
+ const DATA_SYNC_ICONS: Record<DataSyncSource, (props: { size?: number }) => ReactNode> = {
92
95
  clickup: ClickupIcon,
93
96
  hubspot: HubspotIcon,
94
97
  github: GithubClassicIcon,
98
+ // The OpenFrame mark drawn in `currentColor`, so it reads as the text beside it in both themes.
99
+ openframe: OpenframeLogoGreyIcon,
100
+ stripe: StripeIcon,
101
+ quickbooks: QuickbooksIcon,
95
102
  };
96
103
 
104
+ /** A sync source's mark, the one `DataSyncLine` draws: for a page that names the source in its own words. */
105
+ export function DataSyncIcon({ source, size = 16 }: { source: DataSyncSource; size?: number }) {
106
+ const Icon = DATA_SYNC_ICONS[source];
107
+ return <Icon size={size} />;
108
+ }
109
+
97
110
  /**
98
111
  * THE sync line of a shared page whose records an API reads from a mirror (the roadmap and the delivery board:
99
112
  * ClickUp; the ticket center: HubSpot; the docs and the legal documents: GitHub). The page draws whatever `sync`
@@ -121,13 +134,12 @@ export function DataSyncLine({
121
134
  const inScope = useLoadingScope();
122
135
  const loading = (loadingProp || inScope) && stated;
123
136
  if (!loading && !(sync && sync.source in DATA_SYNC_ICONS)) return null;
124
- const Icon = sync ? DATA_SYNC_ICONS[sync.source] : null;
125
137
  const line =
126
- loading || !sync || !Icon ? (
138
+ loading || !sync ? (
127
139
  <DataAttributionSkeleton action={action} />
128
140
  ) : (
129
141
  <DataAttribution
130
- icon={<Icon size={16} />}
142
+ icon={<DataSyncIcon source={sync.source} />}
131
143
  source={DATA_SYNC_SOURCES[sync.source]}
132
144
  lastUpdated={sync.syncedAt}
133
145
  action={action}
@@ -112,6 +112,8 @@ export * from './device-card';
112
112
  export * from './device-card-compact';
113
113
  export * from './entity-image';
114
114
  export * from './data-attribution';
115
+ // The sources `DataSyncLine` / `DataSyncIcon` take, beside them, so a page draws a source's name and mark from one import.
116
+ export * from '../../types/data-sync';
115
117
  export * from './download-button';
116
118
  export * from './compliance-badge';
117
119
  export * from './feature-card';
@@ -1,11 +1,14 @@
1
1
  /**
2
2
  * Every system a shared page's records are mirrored from, with the name a page shows for it. THE list: `DataSync`,
3
- * `DataSyncLine`'s marks, the docs hook and every host that answers a `sync` read it.
3
+ * `DataSyncLine`'s and `DataSyncIcon`'s marks, the docs hook and every host that answers a `sync` read it.
4
4
  */
5
5
  export const DATA_SYNC_SOURCES = {
6
6
  clickup: 'ClickUp',
7
7
  hubspot: 'HubSpot',
8
8
  github: 'GitHub',
9
+ openframe: 'OpenFrame',
10
+ stripe: 'Stripe',
11
+ quickbooks: 'QuickBooks',
9
12
  } as const;
10
13
 
11
14
  export type DataSyncSource = keyof typeof DATA_SYNC_SOURCES;