@sprinklrjs/spaceweb 14.14.4 → 14.15.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/banner/cvaConfig.js +1 -1
- package/date-input/DateInput.js +4 -2
- package/esm/banner/cvaConfig.js +1 -1
- package/esm/date-input/DateInput.js +4 -2
- package/esm/input/enhancer-button.d.ts +1 -0
- package/esm/input/enhancer-button.js +6 -1
- package/esm/singleton/createSingletonInstance.d.ts +9 -0
- package/esm/singleton/createSingletonInstance.js +26 -0
- package/esm/styleEngine/styleEngine.js +24 -23
- package/input/enhancer-button.d.ts +1 -0
- package/input/enhancer-button.js +6 -1
- package/package.json +4 -3
- package/singleton/createSingletonInstance.d.ts +9 -0
- package/singleton/createSingletonInstance.js +32 -0
- package/styleEngine/styleEngine.js +24 -23
- package/tsconfig.build.tsbuildinfo +1 -1
package/banner/cvaConfig.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.bannerIconFillColor = exports.bannerRootCVA = void 0;
|
|
4
4
|
var cvaWrapper_1 = require("../style/cvaWrapper");
|
|
5
5
|
exports.bannerRootCVA = (0, cvaWrapper_1.cvaWrapper)('banner', 'root', [
|
|
6
|
-
'box-border w-full rounded-8 border-solid border-1 overflow-auto pb-2',
|
|
6
|
+
'box-border w-full rounded-8 border-solid border-1 overflow-auto pb-2 spr-bg-primary',
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
$intent: {
|
package/date-input/DateInput.js
CHANGED
|
@@ -206,8 +206,10 @@ var DateInput = function (_a) {
|
|
|
206
206
|
var contentEl = contentRef.current;
|
|
207
207
|
// The Year/Month selector menu (which gets autofocused on open) is rendered as a sibling of contentEl
|
|
208
208
|
// We check contentEl.parentElement(Popover.Inner) as a potential container for events
|
|
209
|
-
if (
|
|
210
|
-
|
|
209
|
+
if (isOpen) {
|
|
210
|
+
if (!contentEl || !(((_a = contentEl.parentElement) === null || _a === void 0 ? void 0 : _a.contains(e.relatedTarget)) || contentEl.contains(e.relatedTarget))) {
|
|
211
|
+
closeDatePicker();
|
|
212
|
+
}
|
|
211
213
|
}
|
|
212
214
|
// on blur, clear the input if the value is malformed
|
|
213
215
|
if (!value && inputValue) {
|
package/esm/banner/cvaConfig.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cvaWrapper } from '../style/cvaWrapper';
|
|
2
2
|
export var bannerRootCVA = cvaWrapper('banner', 'root', [
|
|
3
|
-
'box-border w-full rounded-8 border-solid border-1 overflow-auto pb-2',
|
|
3
|
+
'box-border w-full rounded-8 border-solid border-1 overflow-auto pb-2 spr-bg-primary',
|
|
4
4
|
{
|
|
5
5
|
variants: {
|
|
6
6
|
$intent: {
|
|
@@ -203,8 +203,10 @@ export var DateInput = function (_a) {
|
|
|
203
203
|
var contentEl = contentRef.current;
|
|
204
204
|
// The Year/Month selector menu (which gets autofocused on open) is rendered as a sibling of contentEl
|
|
205
205
|
// We check contentEl.parentElement(Popover.Inner) as a potential container for events
|
|
206
|
-
if (
|
|
207
|
-
|
|
206
|
+
if (isOpen) {
|
|
207
|
+
if (!contentEl || !(((_a = contentEl.parentElement) === null || _a === void 0 ? void 0 : _a.contains(e.relatedTarget)) || contentEl.contains(e.relatedTarget))) {
|
|
208
|
+
closeDatePicker();
|
|
209
|
+
}
|
|
208
210
|
}
|
|
209
211
|
// on blur, clear the input if the value is malformed
|
|
210
212
|
if (!value && inputValue) {
|
|
@@ -9,6 +9,7 @@ export type FieldEnhancerSharedProps = {
|
|
|
9
9
|
$intent?: Intent;
|
|
10
10
|
$isFocused?: boolean;
|
|
11
11
|
$isPseudoFocused?: boolean;
|
|
12
|
+
$isSelected?: boolean;
|
|
12
13
|
};
|
|
13
14
|
export type FieldEnhancerButtonProps = Omit<ButtonProps, 'size' | 'disabled' | 'intent'>;
|
|
14
15
|
export type FieldEnhancerButtonConfig = FieldEnhancerButtonProps | ((sharedProps: FieldEnhancerSharedProps) => FieldEnhancerButtonProps);
|
|
@@ -34,7 +34,12 @@ export var renderFieldEnhancerButton = function (position, sharedProps, config)
|
|
|
34
34
|
BaseButton: {
|
|
35
35
|
className: [
|
|
36
36
|
'h-full min-h-0 spr-bg-secondary hover:spr-bg-secondary focus:spr-bg-secondary',
|
|
37
|
-
|
|
37
|
+
function (_, _a) {
|
|
38
|
+
var $isSelected = _a.$isSelected;
|
|
39
|
+
return isStart
|
|
40
|
+
? "rounded-r-0 ".concat(!$isSelected ? 'border-r-[--sw-border-right-color]' : '')
|
|
41
|
+
: "rounded-l-0 ".concat(!$isSelected ? 'border-l-[--sw-border-left-color]' : '');
|
|
42
|
+
},
|
|
38
43
|
],
|
|
39
44
|
// @ts-ignore -- Variable needed for styling
|
|
40
45
|
style: isStart ? { '--sw-border-right-color': 'transparent' } : { '--sw-border-left-color': 'transparent' },
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file should be used within spaceweb repository only. Using this outside may lead to breaking behavior.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum SingletonInstanceIdentifier {
|
|
5
|
+
STYLETRON_ENGINE = "STYLETRON_ENGINE"
|
|
6
|
+
}
|
|
7
|
+
export declare function createSingletonInstance<T>(instanceGetter: () => T, identifier: SingletonInstanceIdentifier): T;
|
|
8
|
+
export declare function getSingletonInstance<T>(identifier: string): T | undefined;
|
|
9
|
+
export declare function setSingletonInstance<T>(identifier: string, instance: T): T;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file should be used within spaceweb repository only. Using this outside may lead to breaking behavior.
|
|
3
|
+
*/
|
|
4
|
+
/*
|
|
5
|
+
* Please refer the following doc - https://sprinklr.atlassian.net/wiki/spaces/Frontend/pages/5506367561/ModuleFederation+Handbook#Using-Singleton-Context
|
|
6
|
+
*/
|
|
7
|
+
export var SingletonInstanceIdentifier;
|
|
8
|
+
(function (SingletonInstanceIdentifier) {
|
|
9
|
+
SingletonInstanceIdentifier["STYLETRON_ENGINE"] = "STYLETRON_ENGINE";
|
|
10
|
+
})(SingletonInstanceIdentifier || (SingletonInstanceIdentifier = {}));
|
|
11
|
+
var allInstances = {};
|
|
12
|
+
export function createSingletonInstance(instanceGetter, identifier) {
|
|
13
|
+
if (allInstances[identifier]) {
|
|
14
|
+
return allInstances[identifier];
|
|
15
|
+
}
|
|
16
|
+
var singletonInstance = instanceGetter();
|
|
17
|
+
allInstances[identifier] = singletonInstance;
|
|
18
|
+
return singletonInstance;
|
|
19
|
+
}
|
|
20
|
+
export function getSingletonInstance(identifier) {
|
|
21
|
+
return allInstances[identifier];
|
|
22
|
+
}
|
|
23
|
+
export function setSingletonInstance(identifier, instance) {
|
|
24
|
+
allInstances[identifier] = instance;
|
|
25
|
+
return instance;
|
|
26
|
+
}
|
|
@@ -4,6 +4,7 @@ import { useMemo } from 'react';
|
|
|
4
4
|
import { Client, Server } from 'styletron-engine-atomic';
|
|
5
5
|
import { DebugEngine, Provider as StyletronProvider } from 'styletron-react';
|
|
6
6
|
import { useDocument } from '../spacewebProvider/DocumentProvider';
|
|
7
|
+
import { getSingletonInstance, setSingletonInstance, SingletonInstanceIdentifier, } from '@sprinklrjs/spaceweb/singleton/createSingletonInstance';
|
|
7
8
|
export var SPACEWEB_STYLE_PREFIX = 'sw--';
|
|
8
9
|
export var SPACEWEB_STYLE_CONTAINER_ID = 'spaceweb-style-cache';
|
|
9
10
|
export var isServer = typeof window === 'undefined';
|
|
@@ -13,9 +14,13 @@ var NoopDebugEngine = /** @class */ (function () {
|
|
|
13
14
|
}
|
|
14
15
|
return NoopDebugEngine;
|
|
15
16
|
}());
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
var getStyletron = function () {
|
|
18
|
+
return getSingletonInstance(SingletonInstanceIdentifier.STYLETRON_ENGINE);
|
|
19
|
+
};
|
|
20
|
+
var setStyletron = function (engine) {
|
|
21
|
+
return setSingletonInstance(SingletonInstanceIdentifier.STYLETRON_ENGINE, engine);
|
|
22
|
+
};
|
|
23
|
+
var hasStyletron = function () { return typeof getStyletron() !== 'undefined'; };
|
|
19
24
|
// Throws and error if not called from the server.
|
|
20
25
|
var ensureServer = function () {
|
|
21
26
|
if (!isServer) {
|
|
@@ -38,26 +43,22 @@ export var hydrate = function (ownerDocument) {
|
|
|
38
43
|
};
|
|
39
44
|
// Gets isomorphic Styletron engine.
|
|
40
45
|
export var getStyleEngine = function (ownerDocument, nonce) {
|
|
46
|
+
var styletron = getStyletron();
|
|
41
47
|
if (isServer) {
|
|
42
|
-
|
|
43
|
-
return styletron;
|
|
44
|
-
styletron = new Server({ prefix: SPACEWEB_STYLE_PREFIX });
|
|
48
|
+
return styletron !== null && styletron !== void 0 ? styletron : setStyletron(new Server({ prefix: SPACEWEB_STYLE_PREFIX }));
|
|
45
49
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return styletron;
|
|
51
|
-
}
|
|
52
|
-
// adds a style tag in document.head to make sure only one instance of styletron is created in an app.
|
|
53
|
-
appendCacheContainer(ownerDocument, nonce);
|
|
54
|
-
styletron = new Client({
|
|
55
|
-
hydrate: hydrate(ownerDocument),
|
|
56
|
-
prefix: SPACEWEB_STYLE_PREFIX,
|
|
57
|
-
container: ownerDocument === null || ownerDocument === void 0 ? void 0 : ownerDocument.head,
|
|
58
|
-
});
|
|
50
|
+
var doc = ownerDocument || document;
|
|
51
|
+
var el = doc.getElementById(SPACEWEB_STYLE_CONTAINER_ID);
|
|
52
|
+
if (el && styletron) {
|
|
53
|
+
return styletron;
|
|
59
54
|
}
|
|
60
|
-
|
|
55
|
+
// adds a style tag in document.head to make sure only one instance of styletron is created in an app.
|
|
56
|
+
appendCacheContainer(ownerDocument, nonce);
|
|
57
|
+
return setStyletron(new Client({
|
|
58
|
+
hydrate: hydrate(ownerDocument),
|
|
59
|
+
prefix: SPACEWEB_STYLE_PREFIX,
|
|
60
|
+
container: ownerDocument === null || ownerDocument === void 0 ? void 0 : ownerDocument.head,
|
|
61
|
+
}));
|
|
61
62
|
};
|
|
62
63
|
// @ts-ignore
|
|
63
64
|
StyletronProvider.displayName = 'StyletronProvider';
|
|
@@ -72,17 +73,17 @@ StyleProvider.displayName = 'StyleProvider';
|
|
|
72
73
|
export var getStylesheets = function () {
|
|
73
74
|
ensureServer();
|
|
74
75
|
ensureEngine();
|
|
75
|
-
return
|
|
76
|
+
return getStyletron().getStylesheets();
|
|
76
77
|
};
|
|
77
78
|
// Gets hydration stylesheets HTML code as string.
|
|
78
79
|
export var getStylesheetsHtml = function () {
|
|
79
80
|
ensureServer();
|
|
80
81
|
ensureEngine();
|
|
81
|
-
return
|
|
82
|
+
return getStyletron().getStylesheetsHtml();
|
|
82
83
|
};
|
|
83
84
|
export var deprecatedRenderKeyframes = function (keyframes) {
|
|
84
85
|
ensureEngine();
|
|
85
|
-
return
|
|
86
|
+
return getStyletron().renderKeyframes(keyframes);
|
|
86
87
|
};
|
|
87
88
|
// Appends cache styles to the DOM and returns element's instance.
|
|
88
89
|
export var appendCacheContainer = function (ownerDocument, nonce) {
|
|
@@ -9,6 +9,7 @@ export type FieldEnhancerSharedProps = {
|
|
|
9
9
|
$intent?: Intent;
|
|
10
10
|
$isFocused?: boolean;
|
|
11
11
|
$isPseudoFocused?: boolean;
|
|
12
|
+
$isSelected?: boolean;
|
|
12
13
|
};
|
|
13
14
|
export type FieldEnhancerButtonProps = Omit<ButtonProps, 'size' | 'disabled' | 'intent'>;
|
|
14
15
|
export type FieldEnhancerButtonConfig = FieldEnhancerButtonProps | ((sharedProps: FieldEnhancerSharedProps) => FieldEnhancerButtonProps);
|
package/input/enhancer-button.js
CHANGED
|
@@ -40,7 +40,12 @@ var renderFieldEnhancerButton = function (position, sharedProps, config) {
|
|
|
40
40
|
BaseButton: {
|
|
41
41
|
className: [
|
|
42
42
|
'h-full min-h-0 spr-bg-secondary hover:spr-bg-secondary focus:spr-bg-secondary',
|
|
43
|
-
|
|
43
|
+
function (_, _a) {
|
|
44
|
+
var $isSelected = _a.$isSelected;
|
|
45
|
+
return isStart
|
|
46
|
+
? "rounded-r-0 ".concat(!$isSelected ? 'border-r-[--sw-border-right-color]' : '')
|
|
47
|
+
: "rounded-l-0 ".concat(!$isSelected ? 'border-l-[--sw-border-left-color]' : '');
|
|
48
|
+
},
|
|
44
49
|
],
|
|
45
50
|
// @ts-ignore -- Variable needed for styling
|
|
46
51
|
style: isStart ? { '--sw-border-right-color': 'transparent' } : { '--sw-border-left-color': 'transparent' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprinklrjs/spaceweb",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.15.0",
|
|
4
4
|
"description": "Components for SpaceWeb",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -98,10 +98,11 @@
|
|
|
98
98
|
"postcss": "^7.0.27",
|
|
99
99
|
"postcss-js": "^2.0.3",
|
|
100
100
|
"react-test-renderer": "^17.0.2",
|
|
101
|
-
"ts-node": "^10.4.0"
|
|
101
|
+
"ts-node": "^10.4.0",
|
|
102
|
+
"typescript": "~5.0.0"
|
|
102
103
|
},
|
|
103
104
|
"peerDependencies": {
|
|
104
|
-
"@sprinklrjs/spaceweb-themes": "14.
|
|
105
|
+
"@sprinklrjs/spaceweb-themes": "14.15.0",
|
|
105
106
|
"react": ">=17.0.2 <19.0.0",
|
|
106
107
|
"react-dom": ">=17.0.2 <19.0.0"
|
|
107
108
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file should be used within spaceweb repository only. Using this outside may lead to breaking behavior.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum SingletonInstanceIdentifier {
|
|
5
|
+
STYLETRON_ENGINE = "STYLETRON_ENGINE"
|
|
6
|
+
}
|
|
7
|
+
export declare function createSingletonInstance<T>(instanceGetter: () => T, identifier: SingletonInstanceIdentifier): T;
|
|
8
|
+
export declare function getSingletonInstance<T>(identifier: string): T | undefined;
|
|
9
|
+
export declare function setSingletonInstance<T>(identifier: string, instance: T): T;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file should be used within spaceweb repository only. Using this outside may lead to breaking behavior.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.setSingletonInstance = exports.getSingletonInstance = exports.createSingletonInstance = exports.SingletonInstanceIdentifier = void 0;
|
|
7
|
+
/*
|
|
8
|
+
* Please refer the following doc - https://sprinklr.atlassian.net/wiki/spaces/Frontend/pages/5506367561/ModuleFederation+Handbook#Using-Singleton-Context
|
|
9
|
+
*/
|
|
10
|
+
var SingletonInstanceIdentifier;
|
|
11
|
+
(function (SingletonInstanceIdentifier) {
|
|
12
|
+
SingletonInstanceIdentifier["STYLETRON_ENGINE"] = "STYLETRON_ENGINE";
|
|
13
|
+
})(SingletonInstanceIdentifier = exports.SingletonInstanceIdentifier || (exports.SingletonInstanceIdentifier = {}));
|
|
14
|
+
var allInstances = {};
|
|
15
|
+
function createSingletonInstance(instanceGetter, identifier) {
|
|
16
|
+
if (allInstances[identifier]) {
|
|
17
|
+
return allInstances[identifier];
|
|
18
|
+
}
|
|
19
|
+
var singletonInstance = instanceGetter();
|
|
20
|
+
allInstances[identifier] = singletonInstance;
|
|
21
|
+
return singletonInstance;
|
|
22
|
+
}
|
|
23
|
+
exports.createSingletonInstance = createSingletonInstance;
|
|
24
|
+
function getSingletonInstance(identifier) {
|
|
25
|
+
return allInstances[identifier];
|
|
26
|
+
}
|
|
27
|
+
exports.getSingletonInstance = getSingletonInstance;
|
|
28
|
+
function setSingletonInstance(identifier, instance) {
|
|
29
|
+
allInstances[identifier] = instance;
|
|
30
|
+
return instance;
|
|
31
|
+
}
|
|
32
|
+
exports.setSingletonInstance = setSingletonInstance;
|
|
@@ -7,6 +7,7 @@ var react_1 = require("react");
|
|
|
7
7
|
var styletron_engine_atomic_1 = require("styletron-engine-atomic");
|
|
8
8
|
var styletron_react_1 = require("styletron-react");
|
|
9
9
|
var DocumentProvider_1 = require("../spacewebProvider/DocumentProvider");
|
|
10
|
+
var createSingletonInstance_1 = require("@sprinklrjs/spaceweb/singleton/createSingletonInstance");
|
|
10
11
|
exports.SPACEWEB_STYLE_PREFIX = 'sw--';
|
|
11
12
|
exports.SPACEWEB_STYLE_CONTAINER_ID = 'spaceweb-style-cache';
|
|
12
13
|
exports.isServer = typeof window === 'undefined';
|
|
@@ -16,9 +17,13 @@ var NoopDebugEngine = /** @class */ (function () {
|
|
|
16
17
|
}
|
|
17
18
|
return NoopDebugEngine;
|
|
18
19
|
}());
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
var getStyletron = function () {
|
|
21
|
+
return (0, createSingletonInstance_1.getSingletonInstance)(createSingletonInstance_1.SingletonInstanceIdentifier.STYLETRON_ENGINE);
|
|
22
|
+
};
|
|
23
|
+
var setStyletron = function (engine) {
|
|
24
|
+
return (0, createSingletonInstance_1.setSingletonInstance)(createSingletonInstance_1.SingletonInstanceIdentifier.STYLETRON_ENGINE, engine);
|
|
25
|
+
};
|
|
26
|
+
var hasStyletron = function () { return typeof getStyletron() !== 'undefined'; };
|
|
22
27
|
// Throws and error if not called from the server.
|
|
23
28
|
var ensureServer = function () {
|
|
24
29
|
if (!exports.isServer) {
|
|
@@ -42,26 +47,22 @@ var hydrate = function (ownerDocument) {
|
|
|
42
47
|
exports.hydrate = hydrate;
|
|
43
48
|
// Gets isomorphic Styletron engine.
|
|
44
49
|
var getStyleEngine = function (ownerDocument, nonce) {
|
|
50
|
+
var styletron = getStyletron();
|
|
45
51
|
if (exports.isServer) {
|
|
46
|
-
|
|
47
|
-
return styletron;
|
|
48
|
-
styletron = new styletron_engine_atomic_1.Server({ prefix: exports.SPACEWEB_STYLE_PREFIX });
|
|
52
|
+
return styletron !== null && styletron !== void 0 ? styletron : setStyletron(new styletron_engine_atomic_1.Server({ prefix: exports.SPACEWEB_STYLE_PREFIX }));
|
|
49
53
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return styletron;
|
|
55
|
-
}
|
|
56
|
-
// adds a style tag in document.head to make sure only one instance of styletron is created in an app.
|
|
57
|
-
(0, exports.appendCacheContainer)(ownerDocument, nonce);
|
|
58
|
-
styletron = new styletron_engine_atomic_1.Client({
|
|
59
|
-
hydrate: (0, exports.hydrate)(ownerDocument),
|
|
60
|
-
prefix: exports.SPACEWEB_STYLE_PREFIX,
|
|
61
|
-
container: ownerDocument === null || ownerDocument === void 0 ? void 0 : ownerDocument.head,
|
|
62
|
-
});
|
|
54
|
+
var doc = ownerDocument || document;
|
|
55
|
+
var el = doc.getElementById(exports.SPACEWEB_STYLE_CONTAINER_ID);
|
|
56
|
+
if (el && styletron) {
|
|
57
|
+
return styletron;
|
|
63
58
|
}
|
|
64
|
-
|
|
59
|
+
// adds a style tag in document.head to make sure only one instance of styletron is created in an app.
|
|
60
|
+
(0, exports.appendCacheContainer)(ownerDocument, nonce);
|
|
61
|
+
return setStyletron(new styletron_engine_atomic_1.Client({
|
|
62
|
+
hydrate: (0, exports.hydrate)(ownerDocument),
|
|
63
|
+
prefix: exports.SPACEWEB_STYLE_PREFIX,
|
|
64
|
+
container: ownerDocument === null || ownerDocument === void 0 ? void 0 : ownerDocument.head,
|
|
65
|
+
}));
|
|
65
66
|
};
|
|
66
67
|
exports.getStyleEngine = getStyleEngine;
|
|
67
68
|
// @ts-ignore
|
|
@@ -78,19 +79,19 @@ exports.StyleProvider.displayName = 'StyleProvider';
|
|
|
78
79
|
var getStylesheets = function () {
|
|
79
80
|
ensureServer();
|
|
80
81
|
ensureEngine();
|
|
81
|
-
return
|
|
82
|
+
return getStyletron().getStylesheets();
|
|
82
83
|
};
|
|
83
84
|
exports.getStylesheets = getStylesheets;
|
|
84
85
|
// Gets hydration stylesheets HTML code as string.
|
|
85
86
|
var getStylesheetsHtml = function () {
|
|
86
87
|
ensureServer();
|
|
87
88
|
ensureEngine();
|
|
88
|
-
return
|
|
89
|
+
return getStyletron().getStylesheetsHtml();
|
|
89
90
|
};
|
|
90
91
|
exports.getStylesheetsHtml = getStylesheetsHtml;
|
|
91
92
|
var deprecatedRenderKeyframes = function (keyframes) {
|
|
92
93
|
ensureEngine();
|
|
93
|
-
return
|
|
94
|
+
return getStyletron().renderKeyframes(keyframes);
|
|
94
95
|
};
|
|
95
96
|
exports.deprecatedRenderKeyframes = deprecatedRenderKeyframes;
|
|
96
97
|
// Appends cache styles to the DOM and returns element's instance.
|