@unisim/sdk 0.113.0 → 0.114.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.
package/dist/PrivacyNote.d.ts
CHANGED
|
@@ -47,6 +47,14 @@ export interface PrivacyNoteProps {
|
|
|
47
47
|
repo: string;
|
|
48
48
|
/** What this app is handed, in the reader's words — "Your PDF", "Your images". */
|
|
49
49
|
subject?: string;
|
|
50
|
+
/**
|
|
51
|
+
* ⚠️ Set this when `subject` is plural, or the sentence reads "Your images
|
|
52
|
+
* never LEAVES this computer" — which is how it shipped to Universal Images
|
|
53
|
+
* for exactly as long as it took to look at the page. A free-text `subject`
|
|
54
|
+
* cannot be inflected for, and guessing from a trailing "s" would be wrong
|
|
55
|
+
* for the first app whose subject is "Your address" or "Your canvas".
|
|
56
|
+
*/
|
|
57
|
+
plural?: boolean;
|
|
50
58
|
/** ⚠️ How this app can send something out. `null` = it never can. See note 3. */
|
|
51
59
|
except?: string | null;
|
|
52
60
|
/**
|
|
@@ -62,5 +70,5 @@ export interface PrivacyNoteProps {
|
|
|
62
70
|
className?: string;
|
|
63
71
|
style?: CSSProperties;
|
|
64
72
|
}
|
|
65
|
-
export declare function PrivacyNote({ repo, subject, except, headline, accent, accentHover, className, style, }: PrivacyNoteProps): import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
export declare function PrivacyNote({ repo, subject, plural, except, headline, accent, accentHover, className, style, }: PrivacyNoteProps): import("react/jsx-runtime").JSX.Element;
|
|
66
74
|
//# 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;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AAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,OAAqB,EACrB,MAAc,EACd,MAAa,EACb,QAAiF,EACjF,MAAkB,EAClB,WAAuB,EACvB,SAAS,EACT,KAAK,GACN,EAAE,gBAAgB,2CAiFlB"}
|
package/dist/PrivacyNote.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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', 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.', accent = '#c2410c', accentHover = '#ea580c', className, style, }) {
|
|
4
4
|
return (_jsxs("div", { className: className, style: {
|
|
5
5
|
display: 'flex',
|
|
6
6
|
gap: '0.75rem',
|
|
@@ -9,7 +9,7 @@ export function PrivacyNote({ repo, subject = 'Your file', except = null, headli
|
|
|
9
9
|
borderRadius: '0.75rem',
|
|
10
10
|
background: 'rgba(248, 250, 252, 0.7)',
|
|
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 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: '#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: {
|
|
13
13
|
whiteSpace: 'nowrap',
|
|
14
14
|
fontWeight: 600,
|
|
15
15
|
color: accent,
|
package/dist/PrivacyNote.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrivacyNote.js","sourceRoot":"","sources":["../src/PrivacyNote.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;
|
|
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,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