@dreamtree-org/landing-kit 0.10.1 → 0.11.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/MIGRATION.md +12 -0
- package/package.json +1 -1
package/MIGRATION.md
CHANGED
|
@@ -189,3 +189,15 @@ server advertises it in `GET /me`, so a product on tenancy 0.4.0 sees no change.
|
|
|
189
189
|
- A product that already has its own settings or subscription tab in `companyTabs` should drop it once the
|
|
190
190
|
server serves the built-in one, or the company page shows both.
|
|
191
191
|
|
|
192
|
+
|
|
193
|
+
## 0.11.0 — Dreamtree ID sign-in on AuthShell (additive)
|
|
194
|
+
|
|
195
|
+
`AuthShell` takes an optional `ssoProvider` prop for Dreamtree ID single sign-on (DTID-32). Without the prop the
|
|
196
|
+
card renders exactly as before, so nothing changes for apps that don't pass it.
|
|
197
|
+
|
|
198
|
+
- Map the app's `AUTH_MODE` to the prop: `local` → leave it out; `hybrid` → `{ startUrl, mode: 'hybrid' }` (a
|
|
199
|
+
"Continue with Dreamtree" button and an "or" divider above the form); `sso` → `{ startUrl, mode: 'sso' }`
|
|
200
|
+
(the form is replaced by a redirect status, with a fallback link).
|
|
201
|
+
- `companySlug` and `returnTo` are passed to the start URL as `dt_company` and `return_to`. `buildSsoUrl` is
|
|
202
|
+
exported for apps that build the link themselves.
|
|
203
|
+
- The server side is `@dreamtree-org/tenancy/sso` (0.6.0), which serves `startUrl` (`/auth/sso/start`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dreamtree-org/landing-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "The shared marketing site, auth frame (AuthShell + brands) and Platform admin console for every Dreamtree product: content-driven landing pages, login/signup shell, platform console client, Express routes, prerender and SEO files.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Partha Preetham Krishna",
|