@orangecheck/app-design 1.6.2 → 1.7.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.
Files changed (52) hide show
  1. package/README.md +3 -3
  2. package/dist/chrome.d.mts +11 -6
  3. package/dist/chrome.d.ts +11 -6
  4. package/dist/chrome.js +152 -128
  5. package/dist/chrome.js.map +1 -1
  6. package/dist/chrome.mjs +151 -129
  7. package/dist/chrome.mjs.map +1 -1
  8. package/dist/components.d.mts +40 -5
  9. package/dist/components.d.ts +40 -5
  10. package/dist/components.js +131 -10
  11. package/dist/components.js.map +1 -1
  12. package/dist/components.mjs +128 -11
  13. package/dist/components.mjs.map +1 -1
  14. package/dist/{docs-CFE5mU_6.d.mts → docs-B9G1BNXI.d.mts} +2 -2
  15. package/dist/{docs-ByUx4t-D.d.ts → docs-BWWnm5Jv.d.ts} +2 -2
  16. package/dist/family.d.mts +1 -1
  17. package/dist/family.d.ts +1 -1
  18. package/dist/family.js +7 -1
  19. package/dist/family.js.map +1 -1
  20. package/dist/family.mjs +5 -2
  21. package/dist/family.mjs.map +1 -1
  22. package/dist/{index-DmfyPYe5.d.mts → index-Bkl49Vgy.d.mts} +4 -1
  23. package/dist/{index-DmfyPYe5.d.ts → index-Bkl49Vgy.d.ts} +4 -1
  24. package/dist/index.d.mts +7 -7
  25. package/dist/index.d.ts +7 -7
  26. package/dist/index.js +189 -43
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +181 -44
  29. package/dist/index.mjs.map +1 -1
  30. package/dist/mdx.d.mts +3 -3
  31. package/dist/mdx.d.ts +3 -3
  32. package/dist/mdx.js +3 -2
  33. package/dist/mdx.js.map +1 -1
  34. package/dist/mdx.mjs +3 -2
  35. package/dist/mdx.mjs.map +1 -1
  36. package/dist/primitives.d.mts +2 -2
  37. package/dist/primitives.d.ts +2 -2
  38. package/dist/session.d.mts +4 -4
  39. package/dist/session.d.ts +4 -4
  40. package/dist/session.js +122 -1
  41. package/dist/session.js.map +1 -1
  42. package/dist/session.mjs +122 -1
  43. package/dist/session.mjs.map +1 -1
  44. package/dist/{status-badge-BJ9Sdsx8.d.mts → status-badge-BBbCO6ZA.d.mts} +1 -1
  45. package/dist/{status-badge-Bt8x3RhO.d.ts → status-badge-CHHxtFkP.d.ts} +1 -1
  46. package/dist/styles/swagger.css +24 -1
  47. package/dist/styles/tokens.css +5 -0
  48. package/dist/{tool-shell-CQZNRUgH.d.mts → tool-shell-CnZ3NUSi.d.ts} +10 -4
  49. package/dist/{tool-shell-CRmceGrV.d.ts → tool-shell-DQFEMLLe.d.mts} +10 -4
  50. package/dist/{tools-Bg1gi2HO.d.mts → tools-CKO8IseL.d.mts} +2 -2
  51. package/dist/{tools-Bw7RhO92.d.ts → tools-CzjFPng4.d.ts} +2 -2
  52. package/package.json +2 -2
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ButtonHTMLAttributes, HTMLAttributes, ReactNode, ReactElement, InputHTMLAttributes, ComponentPropsWithoutRef, TextareaHTMLAttributes } from 'react';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
5
- export { S as Statement, a as Status, b as StatusBadge, c as StatusBadgeProps, s as statusWord } from './status-badge-BJ9Sdsx8.mjs';
5
+ export { S as Statement, a as Status, b as StatusBadge, c as StatusBadgeProps, s as statusWord } from './status-badge-BBbCO6ZA.mjs';
6
6
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
7
7
  import * as LabelPrimitive from '@radix-ui/react-label';
8
8
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
@@ -17,7 +17,7 @@ import * as SeparatorPrimitive from '@radix-ui/react-separator';
17
17
  import { ToasterProps } from 'sonner';
18
18
  export { toast } from 'sonner';
19
19
  import { ClassValue } from 'clsx';
20
- import './index-DmfyPYe5.mjs';
20
+ import './index-Bkl49Vgy.mjs';
21
21
 
22
22
  declare const buttonVariants: (props?: ({
23
23
  variant?: "link" | "danger" | "brand" | "primary" | "secondary" | "ghost" | "onInk" | "onInkOutline" | null | undefined;
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ButtonHTMLAttributes, HTMLAttributes, ReactNode, ReactElement, InputHTMLAttributes, ComponentPropsWithoutRef, TextareaHTMLAttributes } from 'react';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
5
- export { S as Statement, a as Status, b as StatusBadge, c as StatusBadgeProps, s as statusWord } from './status-badge-Bt8x3RhO.js';
5
+ export { S as Statement, a as Status, b as StatusBadge, c as StatusBadgeProps, s as statusWord } from './status-badge-CHHxtFkP.js';
6
6
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
7
7
  import * as LabelPrimitive from '@radix-ui/react-label';
8
8
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
@@ -17,7 +17,7 @@ import * as SeparatorPrimitive from '@radix-ui/react-separator';
17
17
  import { ToasterProps } from 'sonner';
18
18
  export { toast } from 'sonner';
19
19
  import { ClassValue } from 'clsx';
20
- import './index-DmfyPYe5.js';
20
+ import './index-Bkl49Vgy.js';
21
21
 
22
22
  declare const buttonVariants: (props?: ({
23
23
  variant?: "link" | "danger" | "brand" | "primary" | "secondary" | "ghost" | "onInk" | "onInkOutline" | null | undefined;
@@ -1,10 +1,10 @@
1
1
  import * as react from 'react';
2
2
  import { OcAccount } from '@orangecheck/auth-client';
3
- import { a as AccountMenuItem } from './tool-shell-CQZNRUgH.mjs';
4
- export { S as SessionAccountView, d as SessionState } from './tool-shell-CQZNRUgH.mjs';
5
- import './tools-Bg1gi2HO.mjs';
3
+ import { a as AccountMenuItem } from './tool-shell-DQFEMLLe.mjs';
4
+ export { S as SessionAccountView, d as SessionState } from './tool-shell-DQFEMLLe.mjs';
5
+ import './tools-CKO8IseL.mjs';
6
6
  import './format.mjs';
7
- import './index-DmfyPYe5.mjs';
7
+ import './index-Bkl49Vgy.mjs';
8
8
 
9
9
  declare function accountName(account: Pick<OcAccount, 'displayName' | 'displayIdentity'>): string;
10
10
  declare function SessionAccount({ signInHref, signInPath, signInLabel, accountHref, items, nameFrom, }: {
package/dist/session.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as react from 'react';
2
2
  import { OcAccount } from '@orangecheck/auth-client';
3
- import { a as AccountMenuItem } from './tool-shell-CRmceGrV.js';
4
- export { S as SessionAccountView, d as SessionState } from './tool-shell-CRmceGrV.js';
5
- import './tools-Bw7RhO92.js';
3
+ import { a as AccountMenuItem } from './tool-shell-CnZ3NUSi.js';
4
+ export { S as SessionAccountView, d as SessionState } from './tool-shell-CnZ3NUSi.js';
5
+ import './tools-CzjFPng4.js';
6
6
  import './format.js';
7
- import './index-DmfyPYe5.js';
7
+ import './index-Bkl49Vgy.js';
8
8
 
9
9
  declare function accountName(account: Pick<OcAccount, 'displayName' | 'displayIdentity'>): string;
10
10
  declare function SessionAccount({ signInHref, signInPath, signInLabel, accountHref, items, nameFrom, }: {
package/dist/session.js CHANGED
@@ -45,6 +45,127 @@ var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMe
45
45
  var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
46
46
  var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespace(TooltipPrimitive);
47
47
 
48
+ // src/family/index.ts
49
+ var OCHK_IO = "https://ochk.io";
50
+ var DOCS_HREF = `${OCHK_IO}/docs`;
51
+ var OCHK_APP = "https://ochk.app";
52
+ var SIGN_IN_LABEL = "Sign in";
53
+ function protocol(slug, verb, line, kinds) {
54
+ return {
55
+ slug,
56
+ label: slug,
57
+ href: `${OCHK_IO}/${slug}`,
58
+ group: "protocol",
59
+ line,
60
+ status: "live",
61
+ verb,
62
+ pageHref: `${OCHK_IO}/${slug}`,
63
+ toolHref: `https://${slug}.ochk.io`,
64
+ specHref: `https://github.com/orangecheck/oc-${slug}-protocol`,
65
+ kinds
66
+ };
67
+ }
68
+ var PROTOCOLS = [
69
+ protocol("attest", "identity", "Show that an address holds bitcoin, and for how long.", "30078"),
70
+ protocol("lock", "confidentiality", "Encrypt to a Bitcoin address, so only its holder can open it.", "30078"),
71
+ protocol("vote", "legitimacy", "Polls weighed in sats, that anyone can tally.", "30080\u201330082"),
72
+ protocol("stamp", "provenance", "Prove who signed something, and when.", "30083"),
73
+ protocol("agent", "authority", "Give software scoped, revocable permission to act for you.", "30083\u201330086"),
74
+ protocol("pledge", "commitment", "Make a promise with bitcoin behind it, on a public record.", "30078")
75
+ ];
76
+ PROTOCOLS.map((p) => p.slug);
77
+ var FAMILY = [
78
+ {
79
+ slug: "home",
80
+ label: "ochk.io",
81
+ href: OCHK_IO,
82
+ group: "orangecheck",
83
+ line: "The open protocols, and the company behind them.",
84
+ status: "live"
85
+ },
86
+ {
87
+ slug: "me",
88
+ label: "ochk.app",
89
+ href: OCHK_APP,
90
+ group: "orangecheck",
91
+ line: "One account, with Bitcoin behind it.",
92
+ status: "testing"
93
+ },
94
+ {
95
+ slug: "docs",
96
+ label: "docs",
97
+ href: DOCS_HREF,
98
+ group: "orangecheck",
99
+ line: "Specs, SDKs and guides for every protocol.",
100
+ status: "live"
101
+ },
102
+ ...PROTOCOLS,
103
+ {
104
+ slug: "vault",
105
+ label: "vault",
106
+ href: "https://vault.ochk.io",
107
+ group: "app",
108
+ line: "A password manager, encrypted in your browser.",
109
+ status: "live",
110
+ protocols: ["lock"]
111
+ },
112
+ {
113
+ slug: "chat",
114
+ label: "chat",
115
+ href: "https://chat.ochk.io",
116
+ group: "app",
117
+ line: "Messages only the holder of a Bitcoin address can read.",
118
+ status: "testing",
119
+ protocols: ["lock"]
120
+ },
121
+ {
122
+ slug: "cosign",
123
+ label: "cosign",
124
+ href: "https://cosign.ochk.io",
125
+ group: "app",
126
+ line: "Builders find co-founders and backers.",
127
+ status: "testing",
128
+ // Signs in with an orangecheck account and a wallet; uses none of the six directly.
129
+ protocols: []
130
+ },
131
+ {
132
+ slug: "me-demo",
133
+ // "demo", not the made-up app's own name, so nobody takes it for ours.
134
+ label: "demo",
135
+ href: "https://me-demo.ochk.io",
136
+ group: "app",
137
+ line: "Lumen Notes, a made-up app that signs in with orangecheck.",
138
+ status: "live"
139
+ },
140
+ {
141
+ slug: "globe",
142
+ label: "globe",
143
+ href: "https://globe.ochk.io",
144
+ group: "public-good",
145
+ line: "The Bitcoin network, live, on a globe.",
146
+ status: "live"
147
+ },
148
+ {
149
+ slug: "btc",
150
+ label: "btc",
151
+ href: "https://btc.ochk.io",
152
+ group: "public-good",
153
+ line: "A free desk for reading the Bitcoin market.",
154
+ status: "live"
155
+ }
156
+ ];
157
+ new Map(FAMILY.map((s) => [s.slug, s]));
158
+ [
159
+ {
160
+ href: `${OCHK_IO}/protocols`,
161
+ label: "Protocols",
162
+ children: PROTOCOLS.map((p) => ({ href: p.pageHref, label: p.label, description: p.line }))
163
+ },
164
+ { href: `${OCHK_IO}/apps`, label: "Apps" },
165
+ { href: DOCS_HREF, label: "Docs" },
166
+ { href: `${OCHK_IO}/trust`, label: "Trust" },
167
+ { href: `${OCHK_IO}/about`, label: "About" }
168
+ ];
48
169
  var merge = tailwindMerge.extendTailwindMerge({
49
170
  extend: {
50
171
  classGroups: {
@@ -375,7 +496,7 @@ function SessionAccountView({
375
496
  items = [],
376
497
  signInHref,
377
498
  signInPath,
378
- signInLabel = "Sign in",
499
+ signInLabel = SIGN_IN_LABEL,
379
500
  accountHref = OCHK_APP_ACCOUNT,
380
501
  onSignOut,
381
502
  nameFrom = "lg"