@meltingspot/core 0.1.0 → 1.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ <!--
4
+ To add a new release, copy from this template:
5
+
6
+ ## vX.Y.Z
7
+
8
+ Date: YYYY-MM-DD
9
+
10
+ ### Major Changes
11
+
12
+ ### Minor Changes
13
+
14
+ ### Patch Changes
15
+
16
+ -->
17
+
18
+ ## v1.1.0
19
+
20
+ Date: 2026-06-25
21
+
22
+ ### Minor Changes
23
+
24
+ - Add the opt-in `autoJoin` configuration flag (default `false`): when enabled,
25
+ the SDK auto-joins and auto-validates the member on the spot right after SSO
26
+ login.
27
+ - Expose `validateSsoToken` and the `spotMembers~joinFromSso` API service used
28
+ by the auto-join flow.
29
+
30
+ ## v1.0.0
31
+
32
+ Date: 2026-06-17
33
+
34
+ ### Major Changes
35
+
36
+ Initial release of the `@meltingspot/core` SDK.
37
+
38
+ Shared foundation (auth, configuration, transport) consumed by the
39
+ `@meltingspot/embed`, `@meltingspot/widget` and `@meltingspot/coach` SDKs.
package/README.md CHANGED
@@ -2,41 +2,6 @@
2
2
 
3
3
  Foundation layer of the MeltingSpot SDKs. It exposes the shared services (configuration, authentication, SSO, HTTP/API access) and types consumed by the higher-level SDKs (`@meltingspot/embed`, `@meltingspot/widget`, `@meltingspot/coach`).
4
4
 
5
- > You usually don't install this package directly — it comes as a dependency of the SDK you integrate. Install it explicitly only for advanced programmatic usage.
6
-
7
- ## Installation
8
-
9
- ```bash
10
- npm install @meltingspot/core
11
- ```
12
-
13
- ## Usage
14
-
15
- ```typescript
16
- import { ConfigurationService, AuthService } from '@meltingspot/core';
17
-
18
- // Configure the SDK once for your spot.
19
- ConfigurationService.setConfiguration({ spotId: 'YOUR_SPOT_ID' });
20
-
21
- // Authenticate the current user with a MeltingSpot SSO token.
22
- const result = await AuthService.loginWithSsoToken('CURRENT_USER_SSO_TOKEN');
23
- if (result.isErr()) {
24
- console.error('Authentication failed', result.error);
25
- }
26
- ```
27
-
28
- ## What's inside
29
-
30
- | Export | Description |
31
- | ---------------------- | ------------------------------------------------------ |
32
- | `ConfigurationService` | Global SDK configuration (spot id, theme, API base...) |
33
- | `AuthService` | Authentication & token lifecycle |
34
- | `SsoService` | SSO token exchange |
35
- | `MeltingSpotApi` | Typed HTTP client for the MeltingSpot API |
36
- | `Logger` | Namespaced logger with debug toggle |
37
-
38
- See the [MeltingSpot helpdesk](https://help.meltingspot.io) for integration guides.
39
-
40
- ```
41
-
42
- ```
5
+ > This package is an internal dependency of the other SDKs and is not meant to be used directly.
6
+ >
7
+ > It comes installed automatically with the SDK you integrate.