@unisim/sdk 0.114.0 → 0.115.0

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.
@@ -35,6 +35,14 @@ import type { CSSProperties, ReactNode } from 'react';
35
35
  * file at all — QR builds a code from what you type, BlackBook holds
36
36
  * contacts — so "your file" would simply be wrong there.
37
37
  *
38
+ * 5. **Green, not the brand orange — and not slate.** Inherited from the
39
+ * PrivacyStrip that Universal Compress and Universal Converter already
40
+ * shipped, whose reasoning holds: this is a reassurance, and an orange
41
+ * strip reads as a warning at a glance. #2F9E57 is the suite's semantic
42
+ * "good" (BRANDING.md). The shield does NOT become their padlock, though —
43
+ * a padlock is the browser's own mark for "this connection is encrypted",
44
+ * a promise about the wire rather than about where the file went.
45
+ *
38
46
  * ⚠️ Inline styles, not Tailwind classes: this ships inside node_modules and
39
47
  * the apps' Tailwind builds do not scan it. Classes here would silently render
40
48
  * unstyled. Same reason DropRing and DropAnywhere are written this way.
@@ -63,12 +71,16 @@ export interface PrivacyNoteProps {
63
71
  * your contacts on their servers and mine them.").
64
72
  */
65
73
  headline?: ReactNode;
66
- /** Link colour. Defaults to a burnt orange that clears AA on the note's fill. */
67
- accent?: string;
68
- /** Hover colour for the link's underline. */
69
- accentHover?: string;
74
+ /**
75
+ * The trailing chip, from the strip this replaced — "on-device · works
76
+ * offline", or the engine actually doing the work. Omit for none.
77
+ *
78
+ * It is the one part of the note that is checkable without leaving the page,
79
+ * so prefer a fact ("ffmpeg.wasm") over a slogan.
80
+ */
81
+ badge?: ReactNode;
70
82
  className?: string;
71
83
  style?: CSSProperties;
72
84
  }
73
- export declare function PrivacyNote({ repo, subject, plural, except, headline, accent, accentHover, className, style, }: PrivacyNoteProps): import("react/jsx-runtime").JSX.Element;
85
+ export declare function PrivacyNote({ repo, subject, plural, except, headline, badge, className, style, }: PrivacyNoteProps): import("react/jsx-runtime").JSX.Element;
74
86
  //# sourceMappingURL=PrivacyNote.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrivacyNote.d.ts","sourceRoot":"","sources":["../src/PrivacyNote.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,kFAAkF;IAClF,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,OAAqB,EACrB,MAAc,EACd,MAAa,EACb,QAAiF,EACjF,MAAkB,EAClB,WAAuB,EACvB,SAAS,EACT,KAAK,GACN,EAAE,gBAAgB,2CAiFlB"}
1
+ {"version":3,"file":"PrivacyNote.d.ts","sourceRoot":"","sources":["../src/PrivacyNote.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,kFAAkF;IAClF,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,OAAqB,EACrB,MAAc,EACd,MAAa,EACb,QAAiF,EACjF,KAAK,EACL,SAAS,EACT,KAAK,GACN,EAAE,gBAAgB,2CAyGlB"}
@@ -1,25 +1,37 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- export function PrivacyNote({ repo, subject = 'Your file', plural = false, except = null, headline = 'Other companies upload your files to view them and scrape your data.', accent = '#c2410c', accentHover = '#ea580c', className, style, }) {
3
+ export function PrivacyNote({ repo, subject = 'Your file', plural = false, except = null, headline = 'Other companies upload your files to view them and scrape your data.', badge, className, style, }) {
4
4
  return (_jsxs("div", { className: className, style: {
5
5
  display: 'flex',
6
6
  gap: '0.75rem',
7
7
  padding: '0.75rem 0.875rem',
8
- border: '1px solid #e2e8f0',
8
+ border: '1px solid rgba(47, 158, 87, 0.25)',
9
9
  borderRadius: '0.75rem',
10
- background: 'rgba(248, 250, 252, 0.7)',
10
+ background: 'rgba(47, 158, 87, 0.10)',
11
11
  ...style,
12
- }, children: [_jsxs("svg", { viewBox: "0 0 24 24", width: "20", height: "20", style: { marginTop: '2px', flexShrink: 0, color: '#64748b' }, fill: "none", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("path", { d: "M12 3 5 6v5.5c0 4.3 2.9 8.2 7 9.5 4.1-1.3 7-5.2 7-9.5V6z" }), _jsx("path", { d: "m9.2 11.8 2 2 3.6-3.9" })] }), _jsxs("div", { style: { fontSize: '12.5px', lineHeight: 1.45 }, children: [_jsx("p", { style: { margin: 0, fontWeight: 600, color: '#0f172a' }, children: headline }), _jsxs("p", { style: { margin: '2px 0 0', color: '#475569' }, children: ["We don\u2019t. ", subject, " never ", plural ? 'leave' : 'leaves', " this computer", except ? ` unless you choose it to (e.g. ${except})` : '', ".", ' ', _jsxs("a", { href: repo, target: "_blank", rel: "noopener noreferrer", title: "Every line of this app is public \u2014 read the source on GitHub", style: {
12
+ }, children: [_jsxs("svg", { viewBox: "0 0 24 24", width: "20", height: "20", style: { marginTop: '2px', flexShrink: 0, color: '#2F9E57' }, fill: "none", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("path", { d: "M12 3 5 6v5.5c0 4.3 2.9 8.2 7 9.5 4.1-1.3 7-5.2 7-9.5V6z" }), _jsx("path", { d: "m9.2 11.8 2 2 3.6-3.9" })] }), _jsxs("div", { style: { flex: 1, minWidth: 0, fontSize: '12.5px', lineHeight: 1.45 }, children: [_jsx("p", { style: { margin: 0, fontWeight: 600, color: '#14532d' }, children: headline }), _jsxs("p", { style: { margin: '2px 0 0', color: '#166534' }, children: ["We don\u2019t. ", subject, " never ", plural ? 'leave' : 'leaves', " this computer", except ? ` unless you choose it to (e.g. ${except})` : '', ".", ' ', _jsxs("a", { href: repo, target: "_blank", rel: "noopener noreferrer", title: "Every line of this app is public \u2014 read the source on GitHub", style: {
13
13
  whiteSpace: 'nowrap',
14
- fontWeight: 600,
15
- color: accent,
14
+ fontWeight: 700,
15
+ color: '#14532d',
16
16
  textDecoration: 'underline',
17
- textDecorationColor: `${accent}66`,
17
+ textDecorationColor: 'rgba(47, 158, 87, 0.55)',
18
18
  textUnderlineOffset: '2px',
19
19
  }, onMouseEnter: (e) => {
20
- e.currentTarget.style.textDecorationColor = accentHover;
20
+ e.currentTarget.style.textDecorationColor = '#14532d';
21
21
  }, onMouseLeave: (e) => {
22
- e.currentTarget.style.textDecorationColor = `${accent}66`;
23
- }, children: ["Guaranteed", _jsx("svg", { viewBox: "0 0 24 24", width: "12", height: "12", style: { marginLeft: '2px', display: 'inline', verticalAlign: '-1px' }, fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "M7 17 17 7M9 7h8v8" }) })] })] })] })] }));
22
+ e.currentTarget.style.textDecorationColor = 'rgba(47, 158, 87, 0.55)';
23
+ }, children: ["Guaranteed", _jsx("svg", { viewBox: "0 0 24 24", width: "12", height: "12", style: { marginLeft: '2px', display: 'inline', verticalAlign: '-1px' }, fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "M7 17 17 7M9 7h8v8" }) })] })] })] }), badge != null && (_jsx("span", { style: {
24
+ flexShrink: 0,
25
+ alignSelf: 'flex-start',
26
+ marginTop: '1px',
27
+ padding: '0.125rem 0.625rem',
28
+ borderRadius: '9999px',
29
+ border: '1px solid #e2e8f0',
30
+ background: '#ffffff',
31
+ fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace',
32
+ fontSize: '10.5px',
33
+ color: '#475569',
34
+ whiteSpace: 'nowrap',
35
+ }, children: badge }))] }));
24
36
  }
25
37
  //# sourceMappingURL=PrivacyNote.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrivacyNote.js","sourceRoot":"","sources":["../src/PrivacyNote.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AA4EZ,MAAM,UAAU,WAAW,CAAC,EAC1B,IAAI,EACJ,OAAO,GAAG,WAAW,EACrB,MAAM,GAAG,KAAK,EACd,MAAM,GAAG,IAAI,EACb,QAAQ,GAAG,sEAAsE,EACjF,MAAM,GAAG,SAAS,EAClB,WAAW,GAAG,SAAS,EACvB,SAAS,EACT,KAAK,GACY;IACjB,OAAO,CACL,eACE,SAAS,EAAE,SAAS,EACpB,KAAK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CAClB,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,mBAAmB,GAAG,SAAS,CAAA;gCACvD,CAAC,EACD,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE;oCAClB,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,mBAAmB,GAAG,yBAAyB,CAAA;gCACvE,CAAC,2BAGD,cACE,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,EACtE,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,YAElB,eAAM,CAAC,EAAC,oBAAoB,GAAG,GAC3B,IACJ,IACF,IACA,EAKL,KAAK,IAAI,IAAI,IAAI,CAChB,eACE,KAAK,EAAE;oBACL,UAAU,EAAE,CAAC;oBACb,SAAS,EAAE,YAAY;oBACvB,SAAS,EAAE,KAAK;oBAChB,OAAO,EAAE,mBAAmB;oBAC5B,YAAY,EAAE,QAAQ;oBACtB,MAAM,EAAE,mBAAmB;oBAC3B,UAAU,EAAE,SAAS;oBACrB,UAAU,EACR,6EAA6E;oBAC/E,QAAQ,EAAE,QAAQ;oBAClB,KAAK,EAAE,SAAS;oBAChB,UAAU,EAAE,QAAQ;iBACrB,YAEA,KAAK,GACD,CACR,IACG,CACP,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisim/sdk",
3
- "version": "0.114.0",
3
+ "version": "0.115.0",
4
4
  "description": "Shared React SDK for the Universal Suite — auth, entitlements, usage telemetry, changelog, org admin.",
5
5
  "license": "MIT",
6
6
  "author": "Universal Simulation Ltd",