first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isShadowConfig = exports.makeShadowConfig = exports.DEFAULT_SHADOW_CONFIG = exports.SHADOW_DOM_STYLESHEET_SETTING = exports.GLOBAL_STYLESHEET_KEY = void 0;
exports.GLOBAL_STYLESHEET_KEY = '__global__';
exports.SHADOW_DOM_STYLESHEET_SETTING = '__shadow_dom_stylesheet__';
exports.DEFAULT_SHADOW_CONFIG = {
stylesheetKey: exports.GLOBAL_STYLESHEET_KEY,
inShadow: false,
window: undefined,
__isShadowConfig__: true,
};
var makeShadowConfig = function (stylesheetKey, inShadow, window) {
return {
stylesheetKey: stylesheetKey,
inShadow: inShadow,
window: window,
__isShadowConfig__: true,
};
};
exports.makeShadowConfig = makeShadowConfig;
var isShadowConfig = function (value) {
if (!(value && isRecord(value))) {
return false;
}
return value.__isShadowConfig__ === true;
};
exports.isShadowConfig = isShadowConfig;
function isRecord(value) {
return value !== null && typeof value === 'object' && !Array.isArray(value);
}
//# sourceMappingURL=shadowConfig.js.map