feat(ui): finalize E-TIB modernization with footer redesign, video optimization, and TS fixes

Former-commit-id: 67ac02c8404cc66893fdf97308574701cca6000c
This commit is contained in:
2026-05-07 10:43:20 +02:00
parent f2fdea96ec
commit 5439df72ea
3712 changed files with 932332 additions and 1867 deletions
@@ -0,0 +1,25 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var style_to_object_1 = __importDefault(require("style-to-object"));
var utilities_1 = require("./utilities");
/**
* Parses CSS inline style to JavaScript object (camelCased).
*/
function StyleToJS(style, options) {
var output = {};
if (!style || typeof style !== 'string') {
return output;
}
(0, style_to_object_1.default)(style, function (property, value) {
// skip CSS comment
if (property && value) {
output[(0, utilities_1.camelCase)(property, options)] = value;
}
});
return output;
}
StyleToJS.default = StyleToJS;
module.exports = StyleToJS;
//# sourceMappingURL=index.js.map
@@ -0,0 +1,47 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.camelCase = void 0;
var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;
var HYPHEN_REGEX = /-([a-z])/g;
var NO_HYPHEN_REGEX = /^[^-]+$/;
var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
/**
* Checks whether to skip camelCase.
*/
var skipCamelCase = function (property) {
return !property ||
NO_HYPHEN_REGEX.test(property) ||
CUSTOM_PROPERTY_REGEX.test(property);
};
/**
* Replacer that capitalizes first character.
*/
var capitalize = function (match, character) {
return character.toUpperCase();
};
/**
* Replacer that removes beginning hyphen of vendor prefix property.
*/
var trimHyphen = function (match, prefix) { return "".concat(prefix, "-"); };
/**
* CamelCases a CSS property.
*/
var camelCase = function (property, options) {
if (options === void 0) { options = {}; }
if (skipCamelCase(property)) {
return property;
}
property = property.toLowerCase();
if (options.reactCompat) {
// `-ms` vendor prefix should not be capitalized
property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
}
else {
// for non-React, remove first hyphen so vendor prefix is not capitalized
property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
}
return property.replace(HYPHEN_REGEX, capitalize);
};
exports.camelCase = camelCase;
//# sourceMappingURL=utilities.js.map
@@ -0,0 +1,70 @@
{
"name": "style-to-js",
"version": "1.1.21",
"description": "Parses CSS inline style to JavaScript object (camelCased).",
"author": "Mark <mark@remarkablemark.org>",
"main": "cjs/index.js",
"scripts": {
"build": "npm run build:cjs && npm run build:umd",
"build:cjs": "tsc --declaration --outDir cjs",
"build:umd": "rollup --config --failAfterWarnings",
"clean": "rm -rf cjs umd",
"lint": "eslint .",
"lint:tsc": "tsc --noEmit",
"lint:fix": "npm run lint -- --fix",
"prepare": "husky",
"prepublishOnly": "npm run lint && npm run lint:tsc && npm run test:ci && npm run clean && npm run build",
"test": "jest",
"test:ci": "CI=true jest --ci --colors --coverage",
"test:watch": "jest --watch"
},
"repository": {
"type": "git",
"url": "git+https://github.com/remarkablemark/style-to-js.git"
},
"bugs": {
"url": "https://github.com/remarkablemark/style-to-js/issues"
},
"keywords": [
"style-to-js",
"css",
"style",
"javascript",
"object",
"pojo"
],
"dependencies": {
"style-to-object": "1.0.14"
},
"devDependencies": {
"@commitlint/cli": "20.1.0",
"@commitlint/config-conventional": "20.0.0",
"@eslint/compat": "2.0.0",
"@eslint/eslintrc": "3.3.1",
"@eslint/js": "9.39.1",
"@rollup/plugin-commonjs": "29.0.0",
"@rollup/plugin-node-resolve": "16.0.3",
"@rollup/plugin-terser": "0.4.4",
"@types/jest": "30.0.0",
"@typescript-eslint/eslint-plugin": "8.46.4",
"@typescript-eslint/parser": "8.46.4",
"eslint": "9.39.1",
"eslint-plugin-prettier": "5.5.4",
"eslint-plugin-simple-import-sort": "12.1.1",
"globals": "16.5.0",
"husky": "9.1.7",
"jest": "30.2.0",
"lint-staged": "16.2.6",
"prettier": "3.6.2",
"rollup": "4.53.2",
"ts-jest": "29.4.5",
"ts-node": "10.9.2",
"typescript": "5.9.3"
},
"files": [
"cjs/",
"src/",
"umd/"
],
"license": "MIT"
}
@@ -0,0 +1 @@
../../style-to-object@1.0.14/node_modules/style-to-object