@unisim/sdk 0.125.1 → 0.126.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/README.md +13 -0
- package/android/src/main/AndroidManifest.xml +12 -1
- package/dist/OAuthButtons.d.ts +21 -0
- package/dist/OAuthButtons.d.ts.map +1 -0
- package/dist/OAuthButtons.js +79 -0
- package/dist/OAuthButtons.js.map +1 -0
- package/dist/SignInDialog.d.ts.map +1 -1
- package/dist/SignInDialog.js +86 -3
- package/dist/SignInDialog.js.map +1 -1
- package/dist/i18n.d.ts.map +1 -1
- package/dist/i18n.js +56 -0
- package/dist/i18n.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/mockAuth.d.ts.map +1 -1
- package/dist/mockAuth.js +56 -0
- package/dist/mockAuth.js.map +1 -1
- package/dist/oauth.d.ts +99 -0
- package/dist/oauth.d.ts.map +1 -0
- package/dist/oauth.js +132 -0
- package/dist/oauth.js.map +1 -0
- package/dist/security.d.ts +56 -0
- package/dist/security.d.ts.map +1 -0
- package/dist/security.js +129 -0
- package/dist/security.js.map +1 -0
- package/dist/suiteApps.d.ts +29 -6
- package/dist/suiteApps.d.ts.map +1 -1
- package/dist/suiteApps.js +25 -6
- package/dist/suiteApps.js.map +1 -1
- package/package.json +1 -1
package/dist/suiteApps.d.ts
CHANGED
|
@@ -8,7 +8,12 @@ export interface SuiteNativeApp {
|
|
|
8
8
|
* not legal in a URL scheme and hyphens are.
|
|
9
9
|
*/
|
|
10
10
|
scheme: string;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* iOS bundle identifier — the app's `appId` in its capacitor.config, or for a
|
|
13
|
+
* natively-built app (Ergo Assess) its `PRODUCT_BUNDLE_IDENTIFIER`. Used to
|
|
14
|
+
* work out which app a plist belongs to, never to open one: iOS opens on the
|
|
15
|
+
* scheme.
|
|
16
|
+
*/
|
|
12
17
|
iosBundleId: string;
|
|
13
18
|
/** Android application id. Usually the same string; Universal AI's is not. */
|
|
14
19
|
androidPackage: string;
|
|
@@ -16,15 +21,33 @@ export interface SuiteNativeApp {
|
|
|
16
21
|
/**
|
|
17
22
|
* Every suite product that has a native build, and only those.
|
|
18
23
|
*
|
|
19
|
-
* ⚠️ **Being in the switcher is not enough to be in here.**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
+
* ⚠️ **Being in the switcher is not enough to be in here.** Exports, Webinar and
|
|
25
|
+
* the rest are web-only; listing them would put a scheme nobody answers into
|
|
26
|
+
* fourteen Info.plists and mark rows "Installed" that can never be. A product
|
|
27
|
+
* missing from this list simply keeps today's behaviour — the https link —
|
|
28
|
+
* which is the correct answer for a product with no app.
|
|
24
29
|
*
|
|
25
30
|
* Universal Family has a native build and is deliberately absent for the same
|
|
26
31
|
* reason: it has no row in the switcher to open.
|
|
27
32
|
*
|
|
33
|
+
* ⚠️ **Ergo Assess used to be in that web-only sentence and is the reason this
|
|
34
|
+
* paragraph is worth re-reading rather than trusting.** It shipped a native app
|
|
35
|
+
* on both platforms while this list still called it web-only, so its switcher
|
|
36
|
+
* row went on falling back to the https link — the website, inside the webview
|
|
37
|
+
* the user was already in — while every other Assess app handed off. Nothing
|
|
38
|
+
* reported it: a missing registry entry is indistinguishable from "not
|
|
39
|
+
* installed", which is the same silence the three copies of this list have
|
|
40
|
+
* always had. **An app gaining a native build is a change to THIS file.**
|
|
41
|
+
*
|
|
42
|
+
* Ergo is also the first entry that is not a Capacitor app: it is a SwiftUI /
|
|
43
|
+
* Compose pair, so it has no `ios/App/App/` and its bundle id keeps the
|
|
44
|
+
* `com.universalsimulation.` prefix its Xcode project was generated under
|
|
45
|
+
* rather than the `uk.co.unisim.` the Capacitor apps share. Neither matters to
|
|
46
|
+
* the handoff — iOS matches on the scheme and Android on the package, and both
|
|
47
|
+
* are declared below — but it does mean `add-suite-app-links.mjs` has to find
|
|
48
|
+
* its plist by a different path, and that its own switcher rows cannot hand off
|
|
49
|
+
* yet, because its native nav bar has no switcher to tap.
|
|
50
|
+
*
|
|
28
51
|
* Universal AI is listed, and is the one entry where the two platform ids
|
|
29
52
|
* differ: its Capacitor `appId` `com.universal-ai.app` is legal on iOS and
|
|
30
53
|
* illegal on Android (a hyphen cannot appear in a Java package), so its Android
|
package/dist/suiteApps.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suiteApps.d.ts","sourceRoot":"","sources":["../src/suiteApps.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,EAAE,EAAE,cAAc,CAAA;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAA;IACd
|
|
1
|
+
{"version":3,"file":"suiteApps.d.ts","sourceRoot":"","sources":["../src/suiteApps.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,EAAE,EAAE,cAAc,CAAA;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB,8EAA8E;IAC9E,cAAc,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,cAAc,EAetD,CAAA;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,cAAc,GAAG,cAAc,GAAG,SAAS,CAE7E;AA2BD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C;AAOD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAkBjE;AAUD,iDAAiD;AACjD,wBAAgB,uBAAuB,SAEtC;AAED;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,EAAE,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAWvE"}
|
package/dist/suiteApps.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// • **iOS** matches on SCHEME, and `canOpenURL` answers `false` — with only a
|
|
20
20
|
// console line to say why — for any scheme the CALLING app has not listed
|
|
21
21
|
// in its own `LSApplicationQueriesSchemes`. So every app needs every other
|
|
22
|
-
// app's scheme in its Info.plist. `scripts/
|
|
22
|
+
// app's scheme in its Info.plist. `scripts/add-suite-app-links.mjs`
|
|
23
23
|
// writes that from this file; nobody should be hand-editing the lists.
|
|
24
24
|
//
|
|
25
25
|
// • **Android** matches on PACKAGE, and needs no per-app change at all: the
|
|
@@ -36,15 +36,33 @@ import { isNativeShell, capacitorPlugin } from './sessionStorage.js';
|
|
|
36
36
|
/**
|
|
37
37
|
* Every suite product that has a native build, and only those.
|
|
38
38
|
*
|
|
39
|
-
* ⚠️ **Being in the switcher is not enough to be in here.**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
39
|
+
* ⚠️ **Being in the switcher is not enough to be in here.** Exports, Webinar and
|
|
40
|
+
* the rest are web-only; listing them would put a scheme nobody answers into
|
|
41
|
+
* fourteen Info.plists and mark rows "Installed" that can never be. A product
|
|
42
|
+
* missing from this list simply keeps today's behaviour — the https link —
|
|
43
|
+
* which is the correct answer for a product with no app.
|
|
44
44
|
*
|
|
45
45
|
* Universal Family has a native build and is deliberately absent for the same
|
|
46
46
|
* reason: it has no row in the switcher to open.
|
|
47
47
|
*
|
|
48
|
+
* ⚠️ **Ergo Assess used to be in that web-only sentence and is the reason this
|
|
49
|
+
* paragraph is worth re-reading rather than trusting.** It shipped a native app
|
|
50
|
+
* on both platforms while this list still called it web-only, so its switcher
|
|
51
|
+
* row went on falling back to the https link — the website, inside the webview
|
|
52
|
+
* the user was already in — while every other Assess app handed off. Nothing
|
|
53
|
+
* reported it: a missing registry entry is indistinguishable from "not
|
|
54
|
+
* installed", which is the same silence the three copies of this list have
|
|
55
|
+
* always had. **An app gaining a native build is a change to THIS file.**
|
|
56
|
+
*
|
|
57
|
+
* Ergo is also the first entry that is not a Capacitor app: it is a SwiftUI /
|
|
58
|
+
* Compose pair, so it has no `ios/App/App/` and its bundle id keeps the
|
|
59
|
+
* `com.universalsimulation.` prefix its Xcode project was generated under
|
|
60
|
+
* rather than the `uk.co.unisim.` the Capacitor apps share. Neither matters to
|
|
61
|
+
* the handoff — iOS matches on the scheme and Android on the package, and both
|
|
62
|
+
* are declared below — but it does mean `add-suite-app-links.mjs` has to find
|
|
63
|
+
* its plist by a different path, and that its own switcher rows cannot hand off
|
|
64
|
+
* yet, because its native nav bar has no switcher to tap.
|
|
65
|
+
*
|
|
48
66
|
* Universal AI is listed, and is the one entry where the two platform ids
|
|
49
67
|
* differ: its Capacitor `appId` `com.universal-ai.app` is legal on iOS and
|
|
50
68
|
* illegal on Android (a hyphen cannot appear in a Java package), so its Android
|
|
@@ -53,6 +71,7 @@ import { isNativeShell, capacitorPlugin } from './sessionStorage.js';
|
|
|
53
71
|
* is here so that stops being true the moment the badge comes off.
|
|
54
72
|
*/
|
|
55
73
|
export const SUITE_NATIVE_APPS = [
|
|
74
|
+
{ id: 'ergo_assess', scheme: 'unisim-ergo-assess', iosBundleId: 'com.universalsimulation.ergoassesscapture', androidPackage: 'com.universalsimulation.ergoassesscapture' },
|
|
56
75
|
{ id: 'cyber_assess', scheme: 'unisim-cyber-assess', iosBundleId: 'uk.co.unisim.cyberassess', androidPackage: 'uk.co.unisim.cyberassess' },
|
|
57
76
|
{ id: 'workplace_assess', scheme: 'unisim-workplace-assess', iosBundleId: 'uk.co.unisim.wfhassess', androidPackage: 'uk.co.unisim.wfhassess' },
|
|
58
77
|
{ id: 'fire_assess', scheme: 'unisim-fire-assess', iosBundleId: 'uk.co.unisim.fireassess', androidPackage: 'uk.co.unisim.fireassess' },
|
package/dist/suiteApps.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suiteApps.js","sourceRoot":"","sources":["../src/suiteApps.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,sEAAsE;AACtE,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,8EAA8E;AAC9E,0DAA0D;AAC1D,EAAE;AACF,gFAAgF;AAChF,0EAA0E;AAC1E,gFAAgF;AAChF,yEAAyE;AACzE,0EAA0E;AAC1E,+CAA+C;AAC/C,EAAE;AACF,gEAAgE;AAChE,EAAE;AACF,gFAAgF;AAChF,8EAA8E;AAC9E,+EAA+E;AAC/E,
|
|
1
|
+
{"version":3,"file":"suiteApps.js","sourceRoot":"","sources":["../src/suiteApps.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,sEAAsE;AACtE,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,8EAA8E;AAC9E,0DAA0D;AAC1D,EAAE;AACF,gFAAgF;AAChF,0EAA0E;AAC1E,gFAAgF;AAChF,yEAAyE;AACzE,0EAA0E;AAC1E,+CAA+C;AAC/C,EAAE;AACF,gEAAgE;AAChE,EAAE;AACF,gFAAgF;AAChF,8EAA8E;AAC9E,+EAA+E;AAC/E,wEAAwE;AACxE,2EAA2E;AAC3E,EAAE;AACF,8EAA8E;AAC9E,4EAA4E;AAC5E,6EAA6E;AAC7E,6EAA6E;AAC7E,iDAAiD;AACjD,EAAE;AACF,6EAA6E;AAC7E,gFAAgF;AAChF,cAAc;AACd,iFAAiF;AAEjF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAuBpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA8B;IAC1D,EAAE,E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