@unisim/sdk 0.225.0 → 0.227.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signInRequest.d.ts","sourceRoot":"","sources":["../src/signInRequest.ts"],"names":[],"mappings":"AAUA,wDAAwD;AACxD,eAAO,MAAM,kBAAkB,wBAAwB,CAAA;AAEvD,gFAAgF;AAChF,wBAAgB,UAAU,IAAI,IAAI,CAEjC"}
@@ -0,0 +1,17 @@
1
+ // Open the navbar's in-app sign-in from anywhere in the app (0.226.0).
2
+ //
3
+ // For an app that draws its own Tune this app page (`onOpenTuneThisApp`): the
4
+ // SDK dialog's "Your Universal ID" section had a Sign in button wired to the
5
+ // navbar's <SignInDialog />, and the page needs the same door without a handle
6
+ // on the navbar. A window event, like openTuneThisApp(), and for the same
7
+ // reason: whichever navbar is mounted owns the dialog.
8
+ //
9
+ // No React in here, so a route component can import it cheaply.
10
+ /** The window event <UniversalNavBar /> listens for. */
11
+ export const OPEN_SIGN_IN_EVENT = 'unisim:open-sign-in';
12
+ /** Opens the navbar's in-app sign-in dialog. A no-op before a window exists. */
13
+ export function openSignIn() {
14
+ if (typeof window !== 'undefined')
15
+ window.dispatchEvent(new CustomEvent(OPEN_SIGN_IN_EVENT));
16
+ }
17
+ //# sourceMappingURL=signInRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signInRequest.js","sourceRoot":"","sources":["../src/signInRequest.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,EAAE;AACF,8EAA8E;AAC9E,6EAA6E;AAC7E,+EAA+E;AAC/E,0EAA0E;AAC1E,uDAAuD;AACvD,EAAE;AACF,gEAAgE;AAEhE,wDAAwD;AACxD,MAAM,CAAC,MAAM,kBAAkB,GAAG,qBAAqB,CAAA;AAEvD,gFAAgF;AAChF,MAAM,UAAU,UAAU;IACxB,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAA;AAC9F,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisim/sdk",
3
- "version": "0.225.0",
3
+ "version": "0.227.0",
4
4
  "description": "Shared React SDK for the Universal Suite — auth, entitlements, usage telemetry, changelog, org admin.",
5
5
  "license": "MIT",
6
6
  "author": "Universal Simulation Ltd",
@@ -107,6 +107,7 @@
107
107
  "test:chips": "npm run build && node tests/chips.browser.mjs",
108
108
  "test:boxes": "npm run build && node tests/boxes.browser.mjs",
109
109
  "test:growing-textarea": "npm run build && node tests/growing-textarea.browser.mjs",
110
+ "test:selection": "npm run build && node tests/selection.browser.mjs",
110
111
  "test:controls": "npm run build && node tests/controls.browser.mjs",
111
112
  "test:i18n": "npm run build && node tests/i18n.mjs",
112
113
  "test:two-step-prompt": "npm run build && node tests/two-step-prompt.browser.mjs",