@sprig-technologies/sprig-browser 2.14.7 → 2.14.8
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/LICENSE +22 -0
- package/controller/encodedViewJs.d.ts +1 -1
- package/controller/encodedViewJs.js +1 -1
- package/package.json +1 -1
- package/shared/constants.d.ts +2 -0
- package/shared/constants.d.ts.map +1 -1
- package/shared/constants.js +5 -0
- package/shared/network.js +1 -1
package/package.json
CHANGED
package/shared/constants.d.ts
CHANGED
|
@@ -37,11 +37,13 @@ export namespace CSS_CONSTANTS {
|
|
|
37
37
|
const QUESTION_HEADER_CLASS: string;
|
|
38
38
|
const CAPTION_CLASS: string;
|
|
39
39
|
const FADE_IN_CLASS: string;
|
|
40
|
+
const CARD_MAIN_CONTENT: string;
|
|
40
41
|
}
|
|
41
42
|
export namespace EXPERIMENT_FLAGS {
|
|
42
43
|
const SURVEY_MOBILE_STYLING: string;
|
|
43
44
|
}
|
|
44
45
|
export const MOBILE_MAX_WIDTH: 500;
|
|
45
46
|
export function getClasses(baseClass: any, useMobileStyling: any): any[];
|
|
47
|
+
export function getPlatformClass(baseClass: any, platform: any): any[];
|
|
46
48
|
export const MOBILE_PLATFORM_HEADERS: string[];
|
|
47
49
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../sprig-browser/shared/constants.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,4BAEE;AAEF,4CAA6C
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../sprig-browser/shared/constants.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,4BAEE;AAEF,4CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2C7C,mCAAoC;AAE7B,yEAIN;AAEM,uEAEN;AAED,+CAA0D"}
|
package/shared/constants.js
CHANGED
|
@@ -43,6 +43,7 @@ export const CSS_CONSTANTS = {
|
|
|
43
43
|
QUESTION_HEADER_CLASS: 'ul-question',
|
|
44
44
|
CAPTION_CLASS: 'ul-caption',
|
|
45
45
|
FADE_IN_CLASS: 'fade-in-transition',
|
|
46
|
+
CARD_MAIN_CONTENT: 'ul-card-main-content',
|
|
46
47
|
};
|
|
47
48
|
|
|
48
49
|
export const EXPERIMENT_FLAGS = {
|
|
@@ -57,4 +58,8 @@ export const getClasses = (baseClass, useMobileStyling) => {
|
|
|
57
58
|
return [baseClass + suffix, baseClass];
|
|
58
59
|
};
|
|
59
60
|
|
|
61
|
+
export const getPlatformClass = (baseClass, platform) => {
|
|
62
|
+
return [baseClass, `${baseClass}__${platform}`];
|
|
63
|
+
};
|
|
64
|
+
|
|
60
65
|
export const MOBILE_PLATFORM_HEADERS = ['ios', 'android'];
|
package/shared/network.js
CHANGED
|
@@ -25,7 +25,7 @@ export function getHttpHeaders(Sprig = {}) {
|
|
|
25
25
|
const headers = {
|
|
26
26
|
'Content-Type': 'application/json',
|
|
27
27
|
'userleap-platform': 'web',
|
|
28
|
-
'x-ul-sdk-version': '2.14.
|
|
28
|
+
'x-ul-sdk-version': '2.14.8', //version here doesn't matter. it is string-replaced when compiled
|
|
29
29
|
};
|
|
30
30
|
if (Sprig.envId) headers[HEADERS.ENVIRONMENT_ID] = Sprig.envId;
|
|
31
31
|
if (Sprig.token) headers['Authorization'] = 'Bearer ' + Sprig.token;
|