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
+2
View File
@@ -0,0 +1,2 @@
import { setVersion } from './setVersion';
export { setVersion };
+8
View File
@@ -0,0 +1,8 @@
define(["require", "exports", "./setVersion"], function (require, exports, setVersion_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setVersion = void 0;
Object.defineProperty(exports, "setVersion", { enumerable: true, get: function () { return setVersion_1.setVersion; } });
(0, setVersion_1.setVersion)('@fluentui/set-version', '6.0.0');
});
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":";;;;IACS,2FADA,uBAAU,OACA;IAEnB,IAAA,uBAAU,EAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC","sourcesContent":["import { setVersion } from './setVersion';\nexport { setVersion };\n\nsetVersion('@fluentui/set-version', '6.0.0');\n"]}
+1
View File
@@ -0,0 +1 @@
export declare function setVersion(packageName: string, packageVersion: string): void;
+31
View File
@@ -0,0 +1,31 @@
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setVersion = void 0;
// A packages cache that makes sure that we don't inject the same packageName twice in the same bundle -
// this cache is local to the module closure inside this bundle
var packagesCache = {};
// Cache access to window to avoid IE11 memory leak.
var _win = undefined;
try {
_win = window;
}
catch (e) {
/* no-op */
}
function setVersion(packageName, packageVersion) {
if (typeof _win !== 'undefined') {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
var packages = (_win.__packages__ = _win.__packages__ || {});
// We allow either the global packages or local packages caches to invalidate so testing can
// just clear the global to set this state
if (!packages[packageName] || !packagesCache[packageName]) {
packagesCache[packageName] = packageVersion;
var versions = (packages[packageName] = packages[packageName] || []);
versions.push(packageVersion);
}
}
}
exports.setVersion = setVersion;
});
//# sourceMappingURL=setVersion.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"setVersion.js","sourceRoot":"../src/","sources":["setVersion.ts"],"names":[],"mappings":";;;;IAAA,wGAAwG;IACxG,+DAA+D;IAC/D,IAAM,aAAa,GAA+B,EAAE,CAAC;IAErD,oDAAoD;IACpD,IAAI,IAAI,GAAuB,SAAS,CAAC;IAEzC,IAAI,CAAC;QACH,IAAI,GAAG,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,WAAW;IACb,CAAC;IAED,SAAgB,UAAU,CAAC,WAAmB,EAAE,cAAsB;QACpE,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE,CAAC;YAChC,8DAA8D;YAC9D,IAAM,QAAQ,GAAG,CAAE,IAAY,CAAC,YAAY,GAAI,IAAY,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;YAEjF,4FAA4F;YAC5F,0CAA0C;YAC1C,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,CAAC;gBAC1D,aAAa,CAAC,WAAW,CAAC,GAAG,cAAc,CAAC;gBAC5C,IAAM,QAAQ,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;gBACvE,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;IACH,CAAC;IAbD,gCAaC","sourcesContent":["// A packages cache that makes sure that we don't inject the same packageName twice in the same bundle -\n// this cache is local to the module closure inside this bundle\nconst packagesCache: { [name: string]: string } = {};\n\n// Cache access to window to avoid IE11 memory leak.\nlet _win: Window | undefined = undefined;\n\ntry {\n _win = window;\n} catch (e) {\n /* no-op */\n}\n\nexport function setVersion(packageName: string, packageVersion: string): void {\n if (typeof _win !== 'undefined') {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const packages = ((_win as any).__packages__ = (_win as any).__packages__ || {});\n\n // We allow either the global packages or local packages caches to invalidate so testing can\n // just clear the global to set this state\n if (!packages[packageName] || !packagesCache[packageName]) {\n packagesCache[packageName] = packageVersion;\n const versions = (packages[packageName] = packages[packageName] || []);\n versions.push(packageVersion);\n }\n }\n}\n"]}