@businessdash/sdk 0.9.60 → 0.9.80
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/README.md +991 -295
- package/assets/biab-sw.js +92 -0
- package/dist/account-core/index.d.ts +126 -0
- package/dist/account-core/index.d.ts.map +1 -0
- package/dist/account-core/index.js +191 -0
- package/dist/account-core/index.js.map +1 -0
- package/dist/account.d.ts +11 -0
- package/dist/account.d.ts.map +1 -0
- package/dist/account.js +11 -0
- package/dist/account.js.map +1 -0
- package/dist/auth-handler.d.ts +1 -1
- package/dist/auth-links.d.ts +33 -0
- package/dist/auth-links.d.ts.map +1 -0
- package/dist/auth-links.js +64 -0
- package/dist/auth-links.js.map +1 -0
- package/dist/blog-core/index.d.ts +112 -0
- package/dist/blog-core/index.d.ts.map +1 -0
- package/dist/blog-core/index.js +330 -0
- package/dist/blog-core/index.js.map +1 -0
- package/dist/blog.d.ts +11 -0
- package/dist/blog.d.ts.map +1 -0
- package/dist/blog.js +11 -0
- package/dist/blog.js.map +1 -0
- package/dist/chat-core/index.d.ts +97 -0
- package/dist/chat-core/index.d.ts.map +1 -0
- package/dist/chat-core/index.js +237 -0
- package/dist/chat-core/index.js.map +1 -0
- package/dist/chat.d.ts +11 -0
- package/dist/chat.d.ts.map +1 -0
- package/dist/chat.js +11 -0
- package/dist/chat.js.map +1 -0
- package/dist/checkout-core/index.d.ts +65 -0
- package/dist/checkout-core/index.d.ts.map +1 -0
- package/dist/checkout-core/index.js +159 -0
- package/dist/checkout-core/index.js.map +1 -0
- package/dist/checkout.d.ts +10 -0
- package/dist/checkout.d.ts.map +1 -0
- package/dist/checkout.js +10 -0
- package/dist/checkout.js.map +1 -0
- package/dist/cli.js +133 -25
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +622 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +888 -1
- package/dist/client.js.map +1 -1
- package/dist/consent-core/index.cjs +107 -0
- package/dist/consent-core/index.d.ts +103 -0
- package/dist/consent-core/index.d.ts.map +1 -0
- package/dist/consent-core/index.js +157 -0
- package/dist/consent-core/index.js.map +1 -0
- package/dist/contracts.d.ts +3526 -767
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +571 -4
- package/dist/contracts.js.map +1 -1
- package/dist/data-model-schema.d.ts +1 -1
- package/dist/data-model-schema.d.ts.map +1 -1
- package/dist/element.d.ts +30 -0
- package/dist/element.d.ts.map +1 -1
- package/dist/element.js +56 -0
- package/dist/element.js.map +1 -1
- package/dist/embed-protocol.d.ts +86 -0
- package/dist/embed-protocol.d.ts.map +1 -0
- package/dist/embed-protocol.js +60 -0
- package/dist/embed-protocol.js.map +1 -0
- package/dist/framework-support.d.ts +122 -0
- package/dist/framework-support.d.ts.map +1 -0
- package/dist/framework-support.js +323 -0
- package/dist/framework-support.js.map +1 -0
- package/dist/index.cjs +1355 -24
- package/dist/legal-core/index.cjs +115 -0
- package/dist/legal-core/index.d.ts +160 -0
- package/dist/legal-core/index.d.ts.map +1 -0
- package/dist/legal-core/index.js +220 -0
- package/dist/legal-core/index.js.map +1 -0
- package/dist/marketing-core/index.d.ts +66 -0
- package/dist/marketing-core/index.d.ts.map +1 -0
- package/dist/marketing-core/index.js +154 -0
- package/dist/marketing-core/index.js.map +1 -0
- package/dist/marketing.d.ts +7 -0
- package/dist/marketing.d.ts.map +1 -0
- package/dist/marketing.js +7 -0
- package/dist/marketing.js.map +1 -0
- package/dist/mcp-adapters/index.d.ts +135 -0
- package/dist/mcp-adapters/index.d.ts.map +1 -0
- package/dist/mcp-adapters/index.js +187 -0
- package/dist/mcp-adapters/index.js.map +1 -0
- package/dist/mcp-adapters.d.ts +7 -0
- package/dist/mcp-adapters.d.ts.map +1 -0
- package/dist/mcp-adapters.js +7 -0
- package/dist/mcp-adapters.js.map +1 -0
- package/dist/model3d-core/index.cjs +95 -0
- package/dist/model3d-core/index.d.ts +167 -0
- package/dist/model3d-core/index.d.ts.map +1 -0
- package/dist/model3d-core/index.js +158 -0
- package/dist/model3d-core/index.js.map +1 -0
- package/dist/notifications-core/index.cjs +315 -0
- package/dist/notifications-core/index.d.ts +229 -0
- package/dist/notifications-core/index.d.ts.map +1 -0
- package/dist/notifications-core/index.js +445 -0
- package/dist/notifications-core/index.js.map +1 -0
- package/dist/portal-core/index.d.ts +451 -0
- package/dist/portal-core/index.d.ts.map +1 -0
- package/dist/portal-core/index.js +819 -0
- package/dist/portal-core/index.js.map +1 -0
- package/dist/portal.d.ts +7 -0
- package/dist/portal.d.ts.map +1 -0
- package/dist/portal.js +7 -0
- package/dist/portal.js.map +1 -0
- package/dist/push-core/index.cjs +171 -0
- package/dist/push-core/index.d.ts +149 -0
- package/dist/push-core/index.d.ts.map +1 -0
- package/dist/push-core/index.js +231 -0
- package/dist/push-core/index.js.map +1 -0
- package/dist/react-marketing.d.ts +1 -17
- package/dist/react-marketing.d.ts.map +1 -1
- package/dist/react-marketing.js +4 -0
- package/dist/react-marketing.js.map +1 -1
- package/dist/react.d.ts +294 -101
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +302 -246
- package/dist/react.js.map +1 -1
- package/dist/seed-core/index.d.ts +354 -0
- package/dist/seed-core/index.d.ts.map +1 -0
- package/dist/seed-core/index.js +420 -0
- package/dist/seed-core/index.js.map +1 -0
- package/dist/seed.d.ts +7 -0
- package/dist/seed.d.ts.map +1 -0
- package/dist/seed.js +7 -0
- package/dist/seed.js.map +1 -0
- package/dist/seo-core/blog.d.ts +94 -0
- package/dist/seo-core/blog.d.ts.map +1 -0
- package/dist/seo-core/blog.js +149 -0
- package/dist/seo-core/blog.js.map +1 -0
- package/dist/seo-core/commerce.d.ts +64 -0
- package/dist/seo-core/commerce.d.ts.map +1 -0
- package/dist/seo-core/commerce.js +87 -0
- package/dist/seo-core/commerce.js.map +1 -0
- package/dist/seo-core/index.cjs +751 -0
- package/dist/seo-core/index.d.ts +226 -0
- package/dist/seo-core/index.d.ts.map +1 -0
- package/dist/seo-core/index.js +455 -0
- package/dist/seo-core/index.js.map +1 -0
- package/dist/seo-core/local.d.ts +181 -0
- package/dist/seo-core/local.d.ts.map +1 -0
- package/dist/seo-core/local.js +193 -0
- package/dist/seo-core/local.js.map +1 -0
- package/dist/sitemap-core/index.cjs +167 -0
- package/dist/sitemap-core/index.d.ts +155 -0
- package/dist/sitemap-core/index.d.ts.map +1 -0
- package/dist/sitemap-core/index.js +195 -0
- package/dist/sitemap-core/index.js.map +1 -0
- package/dist/social-core/index.d.ts +74 -0
- package/dist/social-core/index.d.ts.map +1 -0
- package/dist/social-core/index.js +72 -0
- package/dist/social-core/index.js.map +1 -0
- package/dist/social.d.ts +7 -0
- package/dist/social.d.ts.map +1 -0
- package/dist/social.js +7 -0
- package/dist/social.js.map +1 -0
- package/dist/solid-compat.d.ts +204 -0
- package/dist/solid-compat.d.ts.map +1 -0
- package/dist/solid-compat.js +221 -0
- package/dist/solid-compat.js.map +1 -0
- package/dist/store-core/index.d.ts +141 -0
- package/dist/store-core/index.d.ts.map +1 -0
- package/dist/store-core/index.js +277 -0
- package/dist/store-core/index.js.map +1 -0
- package/dist/store.d.ts +12 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +12 -0
- package/dist/store.js.map +1 -0
- package/dist/vanilla.d.ts +111 -0
- package/dist/vanilla.d.ts.map +1 -1
- package/dist/vanilla.js +206 -0
- package/dist/vanilla.js.map +1 -1
- package/dist/verify-core/index.d.ts +98 -0
- package/dist/verify-core/index.d.ts.map +1 -0
- package/dist/verify-core/index.js +186 -0
- package/dist/verify-core/index.js.map +1 -0
- package/dist/verify.d.ts +8 -0
- package/dist/verify.d.ts.map +1 -0
- package/dist/verify.js +8 -0
- package/dist/verify.js.map +1 -0
- package/openapi.json +4516 -1311
- package/package.json +128 -11
- package/src/account-core/index.ts +309 -0
- package/src/account.ts +11 -0
- package/src/angular/headless.ts +519 -0
- package/src/angular/index.ts +3 -0
- package/src/auth-links.ts +76 -0
- package/src/blog-core/index.ts +423 -0
- package/src/blog.ts +11 -0
- package/src/chat-core/index.ts +335 -0
- package/src/chat.ts +11 -0
- package/src/checkout-core/index.ts +225 -0
- package/src/checkout.ts +10 -0
- package/src/cli.ts +184 -28
- package/src/client.ts +1097 -0
- package/src/consent-core/index.ts +213 -0
- package/src/contracts.ts +768 -11
- package/src/data-model-schema.ts +1 -1
- package/src/element.ts +102 -0
- package/src/embed-protocol.ts +100 -0
- package/src/framework-support.ts +440 -0
- package/src/legal-core/index.ts +276 -0
- package/src/marketing-core/index.ts +209 -0
- package/src/marketing.ts +7 -0
- package/src/mcp-adapters/index.ts +264 -0
- package/src/mcp-adapters.ts +7 -0
- package/src/model3d-core/index.ts +248 -0
- package/src/notifications-core/index.ts +650 -0
- package/src/portal-core/index.ts +1564 -0
- package/src/portal.ts +7 -0
- package/src/push-core/index.ts +335 -0
- package/src/qwik.tsx +602 -2
- package/src/react-marketing.tsx +5 -0
- package/src/react.tsx +434 -319
- package/src/seed-core/index.ts +735 -0
- package/src/seed.ts +7 -0
- package/src/seo-core/blog.ts +216 -0
- package/src/seo-core/commerce.ts +138 -0
- package/src/seo-core/index.ts +605 -0
- package/src/seo-core/local.ts +333 -0
- package/src/sitemap-core/index.ts +296 -0
- package/src/social-core/index.ts +103 -0
- package/src/social.ts +7 -0
- package/src/solid-compat.tsx +347 -0
- package/src/solid-surfaces.tsx +1311 -0
- package/src/solid.tsx +82 -60
- package/src/store-core/index.ts +426 -0
- package/src/store.ts +12 -0
- package/src/svelte/SocialLinks.svelte +84 -0
- package/src/svelte/headless.ts +435 -0
- package/src/svelte/index.ts +9 -0
- package/src/vanilla.ts +367 -0
- package/src/verify-core/index.ts +288 -0
- package/src/verify.ts +8 -0
- package/src/vue/headless.ts +527 -0
- package/src/vue/index.ts +3 -0
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which framework versions each adapter supports — one source of truth,
|
|
3
|
+
* consumed by `package.json` peer ranges, the docs matrix, and (later) the
|
|
4
|
+
* runtime mismatch warning.
|
|
5
|
+
*
|
|
6
|
+
* WHY THIS EXISTS
|
|
7
|
+
*
|
|
8
|
+
* Frameworks break their own APIs. When one ships a major that reworks
|
|
9
|
+
* reactivity or JSX, an adapter written against the old dialect stops
|
|
10
|
+
* compiling for anyone who upgrades — and, just as bad, our docs keep showing
|
|
11
|
+
* one implementation as if it were universal. A developer on the new major
|
|
12
|
+
* follows a page that silently describes the old one.
|
|
13
|
+
*
|
|
14
|
+
* The blast radius is already small by design: every binding is a thin view
|
|
15
|
+
* over the framework-agnostic core (`createFormController` in
|
|
16
|
+
* `@businessdash/sdk/forms`). Values, validation, conditional visibility,
|
|
17
|
+
* multi-step navigation, uploads and submit lifecycle all live there and
|
|
18
|
+
* survive any framework major untouched. Only the binding layer — how an
|
|
19
|
+
* external store becomes reactive state, and how a list renders — is
|
|
20
|
+
* version-sensitive.
|
|
21
|
+
*
|
|
22
|
+
* `frameworkApis` names exactly which imports each binding leans on, so when
|
|
23
|
+
* a major lands the question "does this break us?" is a diff against a list
|
|
24
|
+
* rather than a reread of 1,400 lines.
|
|
25
|
+
*
|
|
26
|
+
* WHEN A MAJOR BREAKS AN ADAPTER
|
|
27
|
+
*
|
|
28
|
+
* Add a second entry for the same adapter with the new range and a distinct
|
|
29
|
+
* `dialect`, rather than rewriting the existing one. Both ship; the docs show
|
|
30
|
+
* both; consumers on either major get working code. Retire the old entry only
|
|
31
|
+
* when that major is genuinely out of support.
|
|
32
|
+
*/
|
|
33
|
+
/** Human-readable names, in the order the docs table renders them. */
|
|
34
|
+
export const CAPABILITY_LABELS = {
|
|
35
|
+
forms: "Forms",
|
|
36
|
+
"client-di": "Shared client",
|
|
37
|
+
chatbot: "AI chat",
|
|
38
|
+
auth: "Customer auth",
|
|
39
|
+
storefront: "Storefront",
|
|
40
|
+
cart: "Cart",
|
|
41
|
+
checkout: "Checkout",
|
|
42
|
+
blog: "Blog",
|
|
43
|
+
"customer-portal": "Customer portal",
|
|
44
|
+
"marketing-pages": "Marketing pages",
|
|
45
|
+
followers: "Followers",
|
|
46
|
+
"social-links": "Social links",
|
|
47
|
+
"email-verify": "Email verification",
|
|
48
|
+
"phone-verify": "Phone verification",
|
|
49
|
+
};
|
|
50
|
+
export const ALL_CAPABILITIES = Object.keys(CAPABILITY_LABELS);
|
|
51
|
+
/**
|
|
52
|
+
* Everything `@businessdash/sdk/react` exposes — the full product.
|
|
53
|
+
*
|
|
54
|
+
* Note how much of it is `embed`: storefront, cart and blog are hosted pages in
|
|
55
|
+
* every binding INCLUDING React. No framework has a native storefront, so on
|
|
56
|
+
* those surfaces the other bindings are not behind — there is simply nothing
|
|
57
|
+
* more to have yet.
|
|
58
|
+
*/
|
|
59
|
+
const FULL_SURFACE = {
|
|
60
|
+
forms: "native",
|
|
61
|
+
"client-di": "native",
|
|
62
|
+
chatbot: "both",
|
|
63
|
+
auth: "native",
|
|
64
|
+
// `both`: the hosted iframe widget AND the headless controller. The native
|
|
65
|
+
// path is `useStorefront` / `useChatbot` over `store-core` / `chat-core`.
|
|
66
|
+
storefront: "both",
|
|
67
|
+
cart: "both",
|
|
68
|
+
checkout: "both",
|
|
69
|
+
blog: "both",
|
|
70
|
+
"customer-portal": "both",
|
|
71
|
+
"marketing-pages": "native",
|
|
72
|
+
followers: "native",
|
|
73
|
+
"social-links": "native",
|
|
74
|
+
"email-verify": "native",
|
|
75
|
+
"phone-verify": "native",
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Forms, a shared client, and the two native surfaces every binding now has.
|
|
79
|
+
*
|
|
80
|
+
* `storefront`, `cart` and `chatbot` are `native` rather than `both` here: these
|
|
81
|
+
* bindings expose the headless controllers, not the hosted iframe widgets. They
|
|
82
|
+
* render into the consumer's own DOM, which is the harder and better half.
|
|
83
|
+
*/
|
|
84
|
+
const FORMS_AND_CLIENT = {
|
|
85
|
+
forms: "native",
|
|
86
|
+
"client-di": "native",
|
|
87
|
+
storefront: "native",
|
|
88
|
+
cart: "native",
|
|
89
|
+
chatbot: "native",
|
|
90
|
+
blog: "native",
|
|
91
|
+
auth: "native",
|
|
92
|
+
checkout: "native",
|
|
93
|
+
followers: "native",
|
|
94
|
+
"marketing-pages": "native",
|
|
95
|
+
"email-verify": "native",
|
|
96
|
+
"phone-verify": "native",
|
|
97
|
+
"social-links": "native",
|
|
98
|
+
"customer-portal": "native",
|
|
99
|
+
};
|
|
100
|
+
export const FRAMEWORK_SUPPORT = [
|
|
101
|
+
{
|
|
102
|
+
entry: "@businessdash/sdk/react",
|
|
103
|
+
pkg: "react",
|
|
104
|
+
range: ">=18.0.0 <20",
|
|
105
|
+
dialect: "default",
|
|
106
|
+
shipMode: "compiled",
|
|
107
|
+
frameworkApis: [
|
|
108
|
+
"useSyncExternalStore",
|
|
109
|
+
"useState",
|
|
110
|
+
"useMemo",
|
|
111
|
+
"useEffect",
|
|
112
|
+
"useId",
|
|
113
|
+
"createContext",
|
|
114
|
+
"useContext",
|
|
115
|
+
],
|
|
116
|
+
capabilities: FULL_SURFACE,
|
|
117
|
+
status: "supported",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
entry: "@businessdash/sdk/solid",
|
|
121
|
+
pkg: "solid-js",
|
|
122
|
+
range: ">=1.8.0 <2",
|
|
123
|
+
dialect: "v1",
|
|
124
|
+
shipMode: "source",
|
|
125
|
+
frameworkApis: [
|
|
126
|
+
"from",
|
|
127
|
+
"createSignal",
|
|
128
|
+
"createMemo",
|
|
129
|
+
"createContext",
|
|
130
|
+
"useContext",
|
|
131
|
+
"createUniqueId",
|
|
132
|
+
"onMount",
|
|
133
|
+
"onCleanup",
|
|
134
|
+
"For",
|
|
135
|
+
"Show",
|
|
136
|
+
"Switch",
|
|
137
|
+
"Match",
|
|
138
|
+
],
|
|
139
|
+
capabilities: {
|
|
140
|
+
forms: "native",
|
|
141
|
+
"client-di": "native",
|
|
142
|
+
// The hosted widget plus `createChat`. React additionally ships
|
|
143
|
+
// `<ChatbotInline>`, a rendered chat UI that Solid does not have — the
|
|
144
|
+
// headless controller beneath them is the same.
|
|
145
|
+
chatbot: "both",
|
|
146
|
+
auth: "native",
|
|
147
|
+
storefront: "both",
|
|
148
|
+
cart: "both",
|
|
149
|
+
checkout: "both",
|
|
150
|
+
blog: "both",
|
|
151
|
+
"customer-portal": "both",
|
|
152
|
+
followers: "native",
|
|
153
|
+
"social-links": "native",
|
|
154
|
+
"marketing-pages": "native",
|
|
155
|
+
"email-verify": "native",
|
|
156
|
+
"phone-verify": "native",
|
|
157
|
+
},
|
|
158
|
+
status: "supported",
|
|
159
|
+
notes: "Solid 2.0 shipped 2026-08 with a substantial API rework. This adapter is written against the 1.x dialect and is NOT yet verified on 2.x — a `v2` entry alongside this one is the intended shape, not a rewrite of it.",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
entry: "@businessdash/sdk/vue",
|
|
163
|
+
pkg: "vue",
|
|
164
|
+
range: ">=3.3.0 <4",
|
|
165
|
+
dialect: "default",
|
|
166
|
+
shipMode: "source",
|
|
167
|
+
frameworkApis: [
|
|
168
|
+
"defineComponent",
|
|
169
|
+
"ref",
|
|
170
|
+
"computed",
|
|
171
|
+
"onMounted",
|
|
172
|
+
"onUnmounted",
|
|
173
|
+
"provide",
|
|
174
|
+
"inject",
|
|
175
|
+
"h",
|
|
176
|
+
],
|
|
177
|
+
capabilities: FORMS_AND_CLIENT,
|
|
178
|
+
status: "supported",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
entry: "@businessdash/sdk/svelte",
|
|
182
|
+
pkg: "svelte",
|
|
183
|
+
range: ">=5.0.0 <6",
|
|
184
|
+
dialect: "runes",
|
|
185
|
+
shipMode: "source",
|
|
186
|
+
frameworkApis: ["$state", "$derived", "$effect", "onMount", "onDestroy"],
|
|
187
|
+
capabilities: FORMS_AND_CLIENT,
|
|
188
|
+
status: "supported",
|
|
189
|
+
notes: "Written against Svelte 5 runes. Svelte 4's store-based dialect is a separate entry if it's ever needed.",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
entry: "@businessdash/sdk/qwik",
|
|
193
|
+
pkg: "@builder.io/qwik",
|
|
194
|
+
range: ">=1.5.0 <2",
|
|
195
|
+
dialect: "default",
|
|
196
|
+
shipMode: "source",
|
|
197
|
+
frameworkApis: [
|
|
198
|
+
"component$",
|
|
199
|
+
"useSignal",
|
|
200
|
+
"useStore",
|
|
201
|
+
"useVisibleTask$",
|
|
202
|
+
"useComputed$",
|
|
203
|
+
],
|
|
204
|
+
capabilities: {
|
|
205
|
+
forms: "native",
|
|
206
|
+
storefront: "native",
|
|
207
|
+
cart: "native",
|
|
208
|
+
chatbot: "native",
|
|
209
|
+
blog: "native",
|
|
210
|
+
auth: "native",
|
|
211
|
+
checkout: "native",
|
|
212
|
+
followers: "native",
|
|
213
|
+
"marketing-pages": "native",
|
|
214
|
+
"email-verify": "native",
|
|
215
|
+
"phone-verify": "native",
|
|
216
|
+
"social-links": "native",
|
|
217
|
+
"customer-portal": "native",
|
|
218
|
+
},
|
|
219
|
+
status: "untested",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
entry: "@businessdash/sdk/angular",
|
|
223
|
+
pkg: "@angular/core",
|
|
224
|
+
range: ">=17.0.0",
|
|
225
|
+
dialect: "standalone",
|
|
226
|
+
shipMode: "source",
|
|
227
|
+
frameworkApis: ["Component", "signal", "computed", "effect", "inject"],
|
|
228
|
+
capabilities: FORMS_AND_CLIENT,
|
|
229
|
+
status: "untested",
|
|
230
|
+
notes: "Written against standalone components + signals (Angular 17+).",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
entry: "@businessdash/sdk/vanilla",
|
|
234
|
+
pkg: "(none)",
|
|
235
|
+
range: "*",
|
|
236
|
+
dialect: "default",
|
|
237
|
+
shipMode: "compiled",
|
|
238
|
+
frameworkApis: [],
|
|
239
|
+
capabilities: {
|
|
240
|
+
forms: "native",
|
|
241
|
+
storefront: "native",
|
|
242
|
+
cart: "native",
|
|
243
|
+
chatbot: "native",
|
|
244
|
+
blog: "native",
|
|
245
|
+
auth: "native",
|
|
246
|
+
checkout: "native",
|
|
247
|
+
followers: "native",
|
|
248
|
+
"marketing-pages": "native",
|
|
249
|
+
"email-verify": "native",
|
|
250
|
+
"phone-verify": "native",
|
|
251
|
+
"social-links": "native",
|
|
252
|
+
"customer-portal": "native",
|
|
253
|
+
},
|
|
254
|
+
status: "supported",
|
|
255
|
+
notes: "No framework dependency — the fallback that cannot be broken by anyone else's major.",
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
entry: "@businessdash/sdk/element",
|
|
259
|
+
pkg: "(none)",
|
|
260
|
+
range: "*",
|
|
261
|
+
dialect: "default",
|
|
262
|
+
shipMode: "compiled",
|
|
263
|
+
frameworkApis: ["customElements"],
|
|
264
|
+
capabilities: FORMS_AND_CLIENT,
|
|
265
|
+
status: "supported",
|
|
266
|
+
notes: "Web component. Works inside any framework, and is the recommended escape hatch when a framework major outpaces its adapter.",
|
|
267
|
+
},
|
|
268
|
+
];
|
|
269
|
+
/** All adapters for one framework package — several when majors diverge. */
|
|
270
|
+
export function supportFor(pkg) {
|
|
271
|
+
return FRAMEWORK_SUPPORT.filter((f) => f.pkg === pkg);
|
|
272
|
+
}
|
|
273
|
+
export const REACT_TARGETS = [
|
|
274
|
+
{
|
|
275
|
+
name: "React",
|
|
276
|
+
entry: "@businessdash/sdk/react",
|
|
277
|
+
requires: "Nothing — import and render.",
|
|
278
|
+
starter: "React-Bun",
|
|
279
|
+
status: "supported",
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: "Next.js (App Router)",
|
|
283
|
+
entry: "@businessdash/sdk/react",
|
|
284
|
+
requires: 'Nothing as of 0.9.61 — the adapter now carries its own `"use client"` boundary, so components import directly into a server-rendered page. Before that, every component needed a hand-written client wrapper.',
|
|
285
|
+
starter: "T3-App",
|
|
286
|
+
status: "supported",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
name: "Astro",
|
|
290
|
+
entry: "@businessdash/sdk/react",
|
|
291
|
+
requires: "`@astrojs/react`, and a client directive on the island (`<ContactForm client:load />`) — without one Astro renders it to static HTML and no handler ever attaches.",
|
|
292
|
+
starter: "Astro",
|
|
293
|
+
status: "supported",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: "Remix / React Router 7",
|
|
297
|
+
entry: "@businessdash/sdk/react",
|
|
298
|
+
requires: "Nothing — no RSC boundary to cross.",
|
|
299
|
+
starter: "Remix",
|
|
300
|
+
status: "supported",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
name: "TanStack Start",
|
|
304
|
+
entry: "@businessdash/sdk/react",
|
|
305
|
+
requires: "Nothing — no RSC boundary to cross.",
|
|
306
|
+
starter: "Tanstack-Start",
|
|
307
|
+
status: "supported",
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
name: "Preact",
|
|
311
|
+
entry: "@businessdash/sdk/react",
|
|
312
|
+
requires: "The standard `preact/compat` alias in your bundler — nothing SDK-specific. The binding imports nine runtime symbols from `react` and never imports `react-dom`, so it is renderer-agnostic; `test/preact-compat.test.ts` renders components on both and asserts identical markup.",
|
|
313
|
+
status: "supported",
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: "React Native / Expo",
|
|
317
|
+
entry: "@businessdash/sdk/native",
|
|
318
|
+
requires: "The `native` entry, not `react` — the DOM components don't render there. Data access and auth are shared; the UI is yours.",
|
|
319
|
+
starter: "React-Native",
|
|
320
|
+
status: "supported",
|
|
321
|
+
},
|
|
322
|
+
];
|
|
323
|
+
//# sourceMappingURL=framework-support.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"framework-support.js","sourceRoot":"","sources":["../src/framework-support.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AA6EH,sEAAsE;AACtE,MAAM,CAAC,MAAM,iBAAiB,GAAyC;IACtE,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,eAAe;IAC5B,O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