@auxilium/datalynk-client 1.2.0 → 1.2.1
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/dist/index.js +9 -3
- package/dist/index.mjs +9 -3
- package/dist/login-prompt.d.ts +6 -0
- package/dist/login-prompt.d.ts.map +1 -1
- package/dist/themes.d.ts +18 -1
- package/dist/themes.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1819,6 +1819,8 @@ async function getTheme(spoke, scope) {
|
|
|
1819
1819
|
logo: `https://${spoke}.auxiliumgroup.com/static/js/auxilium/dijits/templates/login/${spoke}/logo.png`,
|
|
1820
1820
|
title: spoke.toUpperCase(),
|
|
1821
1821
|
textColor: "white",
|
|
1822
|
+
titleFontFamily: "'AR BLANCA', serif",
|
|
1823
|
+
titleFontUrl: "https://fonts.cdnfonts.com/css/ar-blanca",
|
|
1822
1824
|
...theme || {}
|
|
1823
1825
|
};
|
|
1824
1826
|
}
|
|
@@ -1905,7 +1907,7 @@ const _LoginPrompt = class _LoginPrompt {
|
|
|
1905
1907
|
/** Dynamically create CSS style */
|
|
1906
1908
|
__publicField(_LoginPrompt, "css", (options) => `
|
|
1907
1909
|
<style id="datalynk-login-styles">
|
|
1908
|
-
|
|
1910
|
+
${options.titleFontUrl ? `@import url('${options.titleFontUrl}');` : `@import url('https://fonts.cdnfonts.com/css/ar-blanca');`}
|
|
1909
1911
|
|
|
1910
1912
|
#datalynk-login {
|
|
1911
1913
|
--theme-background: ${options.backgroundColor ? options.backgroundColor : `url(${options.background})`};
|
|
@@ -1980,7 +1982,11 @@ __publicField(_LoginPrompt, "css", (options) => `
|
|
|
1980
1982
|
font-size: 32px;
|
|
1981
1983
|
margin-bottom: 2rem;
|
|
1982
1984
|
}
|
|
1983
|
-
|
|
1985
|
+
|
|
1986
|
+
#datalynk-login .login-title {
|
|
1987
|
+
font-family: ${options.titleFontFamily ? options.titleFontFamily : "'AR BLANCA', serif"};
|
|
1988
|
+
${options.titleTextShadow ? `text-shadow: ${options.titleTextShadow};` : ""}
|
|
1989
|
+
}
|
|
1984
1990
|
#datalynk-login .login-content {
|
|
1985
1991
|
display: flex;
|
|
1986
1992
|
flex-direction: column;
|
|
@@ -3422,7 +3428,7 @@ class Superuser {
|
|
|
3422
3428
|
} });
|
|
3423
3429
|
}
|
|
3424
3430
|
}
|
|
3425
|
-
const version = "1.2.
|
|
3431
|
+
const version = "1.2.1";
|
|
3426
3432
|
class WebRtc {
|
|
3427
3433
|
constructor(api) {
|
|
3428
3434
|
__publicField(this, "ice");
|
package/dist/index.mjs
CHANGED
|
@@ -1817,6 +1817,8 @@ async function getTheme(spoke, scope) {
|
|
|
1817
1817
|
logo: `https://${spoke}.auxiliumgroup.com/static/js/auxilium/dijits/templates/login/${spoke}/logo.png`,
|
|
1818
1818
|
title: spoke.toUpperCase(),
|
|
1819
1819
|
textColor: "white",
|
|
1820
|
+
titleFontFamily: "'AR BLANCA', serif",
|
|
1821
|
+
titleFontUrl: "https://fonts.cdnfonts.com/css/ar-blanca",
|
|
1820
1822
|
...theme || {}
|
|
1821
1823
|
};
|
|
1822
1824
|
}
|
|
@@ -1903,7 +1905,7 @@ const _LoginPrompt = class _LoginPrompt {
|
|
|
1903
1905
|
/** Dynamically create CSS style */
|
|
1904
1906
|
__publicField(_LoginPrompt, "css", (options) => `
|
|
1905
1907
|
<style id="datalynk-login-styles">
|
|
1906
|
-
|
|
1908
|
+
${options.titleFontUrl ? `@import url('${options.titleFontUrl}');` : `@import url('https://fonts.cdnfonts.com/css/ar-blanca');`}
|
|
1907
1909
|
|
|
1908
1910
|
#datalynk-login {
|
|
1909
1911
|
--theme-background: ${options.backgroundColor ? options.backgroundColor : `url(${options.background})`};
|
|
@@ -1978,7 +1980,11 @@ __publicField(_LoginPrompt, "css", (options) => `
|
|
|
1978
1980
|
font-size: 32px;
|
|
1979
1981
|
margin-bottom: 2rem;
|
|
1980
1982
|
}
|
|
1981
|
-
|
|
1983
|
+
|
|
1984
|
+
#datalynk-login .login-title {
|
|
1985
|
+
font-family: ${options.titleFontFamily ? options.titleFontFamily : "'AR BLANCA', serif"};
|
|
1986
|
+
${options.titleTextShadow ? `text-shadow: ${options.titleTextShadow};` : ""}
|
|
1987
|
+
}
|
|
1982
1988
|
#datalynk-login .login-content {
|
|
1983
1989
|
display: flex;
|
|
1984
1990
|
flex-direction: column;
|
|
@@ -3420,7 +3426,7 @@ class Superuser {
|
|
|
3420
3426
|
} });
|
|
3421
3427
|
}
|
|
3422
3428
|
}
|
|
3423
|
-
const version = "1.2.
|
|
3429
|
+
const version = "1.2.1";
|
|
3424
3430
|
class WebRtc {
|
|
3425
3431
|
constructor(api) {
|
|
3426
3432
|
__publicField(this, "ice");
|
package/dist/login-prompt.d.ts
CHANGED
|
@@ -24,6 +24,12 @@ export type LoginPromptOptions = {
|
|
|
24
24
|
title?: string;
|
|
25
25
|
/** Color of headers & links */
|
|
26
26
|
textColor?: string;
|
|
27
|
+
/** Custom font for title */
|
|
28
|
+
titleFontFamily?: string;
|
|
29
|
+
/** Import URL for custom font */
|
|
30
|
+
titleFontUrl?: string;
|
|
31
|
+
/** Text shadow for the title */
|
|
32
|
+
titleTextShadow?: string;
|
|
27
33
|
};
|
|
28
34
|
/** Create a login prompt */
|
|
29
35
|
export declare class LoginPrompt {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-prompt.d.ts","sourceRoot":"","sources":["../src/login-prompt.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAG1B,uCAAuC;AACvC,MAAM,MAAM,kBAAkB,GAAG;IAChC,+BAA+B;IAC/B,QAAQ,CAAC,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAC,EAAE,CAAC;IACzC,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,eAAe,CAAC,EA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C,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB,CAAA;AAED,4BAA4B;AAC5B,qBAAa,WAAW;IA2OX,OAAO,CAAC,QAAQ,CAAC,GAAG;aAAuB,KAAK,EAAE,MAAM;IAAS,OAAO,EAAE,kBAAkB;IA1OxG,mCAAmC;IACnC,OAAO,CAAC,MAAM,CAAC,GAAG,CAkKR;IAEV,8BAA8B;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAuDrB;IAEF,OAAO,CAAC,KAAK,CAAO;IACpB,OAAO,CAAC,MAAM,CAAO;IACrB,OAAO,CAAC,IAAI,CAAO;IACnB,OAAO,CAAC,QAAQ,CAAO;IACvB,OAAO,CAAC,OAAO,CAAO;IACtB,OAAO,CAAC,QAAQ,CAAO;IAEvB,OAAO,CAAC,KAAK,CAAY;IACzB,oDAAoD;IACpD,IAAI,gBAAmD;gBAE1B,GAAG,EAAE,GAAG,EAAkB,KAAK,EAAE,MAAM,EAAS,OAAO,GAAE,kBAAuB;YAI/F,MAAM;YAkBN,aAAa;IAS3B,6BAA6B;IAC7B,KAAK;IAKL,0CAA0C;IAC1C,MAAM;IAIN,8BAA8B;IAC9B,KAAK,CAAC,KAAK,EAAE,GAAG;CA4BhB"}
|
package/dist/themes.d.ts
CHANGED
|
@@ -1,22 +1,39 @@
|
|
|
1
1
|
export interface Theme {
|
|
2
|
+
/** Add links to top of page */
|
|
3
|
+
addLinks?: {
|
|
4
|
+
text: string;
|
|
5
|
+
url: string;
|
|
6
|
+
}[];
|
|
2
7
|
/** Background image URL */
|
|
3
8
|
background?: string;
|
|
4
9
|
/** Background color as hex (overrides background image) */
|
|
5
10
|
backgroundColor?: string;
|
|
6
11
|
/** Primary color as hex: `#000000` */
|
|
7
12
|
color?: string;
|
|
13
|
+
/** Change glow color, defaults to color or set to falsy to disable */
|
|
14
|
+
glow?: string;
|
|
15
|
+
/** Hide app links */
|
|
16
|
+
hideApps?: boolean;
|
|
8
17
|
/** Logo URL */
|
|
9
18
|
logo?: string;
|
|
19
|
+
/** Allow users to stay logged in */
|
|
20
|
+
persist?: boolean;
|
|
10
21
|
/** Header string or HTML: <img alt="logo" src="...">*/
|
|
11
22
|
title?: string;
|
|
12
23
|
/** Color of headers & links */
|
|
13
24
|
textColor?: string;
|
|
25
|
+
/** Custom font for title */
|
|
26
|
+
titleFontFamily?: string;
|
|
27
|
+
/** Import URL for custom font */
|
|
28
|
+
titleFontUrl?: string;
|
|
29
|
+
/** Text shadow for the title */
|
|
30
|
+
titleTextShadow?: string;
|
|
14
31
|
}
|
|
15
32
|
/**
|
|
16
33
|
* Get the theme for a spoke
|
|
17
34
|
* @param {string} spoke Name of spoke
|
|
18
35
|
* @param {string} scope Apply sub-theme
|
|
19
|
-
* @returns {Promise<Theme>}
|
|
36
|
+
* @returns {Promise<Theme & {found: boolean}>}
|
|
20
37
|
*/
|
|
21
38
|
export declare function getTheme(spoke: string, scope?: string): Promise<Theme & {
|
|
22
39
|
found: boolean;
|
package/dist/themes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../src/themes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACrB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../src/themes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACrB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC3C,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iCAAiC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gCAAgC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,wBAAsB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG;IAAC,KAAK,EAAE,OAAO,CAAA;CAAC,CAAC,CAe/F"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@auxilium/datalynk-client",
|
|
3
3
|
"description": "Datalynk client library",
|
|
4
4
|
"repository": "https://gitlab.auxiliumgroup.com/auxilium/datalynk/datalynk-client",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.1",
|
|
6
6
|
"author": "Zak Timson <zaktimson@gmail.com>",
|
|
7
7
|
"private": false,
|
|
8
8
|
"main": "./dist/index.cjs",
|