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 };
+4
View File
@@ -0,0 +1,4 @@
import { setVersion } from './setVersion';
export { setVersion };
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":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,UAAU,CAAC,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;
+25
View File
@@ -0,0 +1,25 @@
// 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 */
}
export 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);
}
}
}
//# sourceMappingURL=setVersion.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"setVersion.js","sourceRoot":"../src/","sources":["setVersion.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,+DAA+D;AAC/D,IAAM,aAAa,GAA+B,EAAE,CAAC;AAErD,oDAAoD;AACpD,IAAI,IAAI,GAAuB,SAAS,CAAC;AAEzC,IAAI,CAAC;IACH,IAAI,GAAG,MAAM,CAAC;AAChB,CAAC;AAAC,OAAO,CAAC,EAAE,CAAC;IACX,WAAW;AACb,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,WAAmB,EAAE,cAAsB;IACpE,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE,CAAC;QAChC,8DAA8D;QAC9D,IAAM,QAAQ,GAAG,CAAE,IAAY,CAAC,YAAY,GAAI,IAAY,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;QAEjF,4FAA4F;QAC5F,0CAA0C;QAC1C,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,CAAC;YAC1D,aAAa,CAAC,WAAW,CAAC,GAAG,cAAc,CAAC;YAC5C,IAAM,QAAQ,GAAG,CAAC,QAAQ,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;YACvE,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;AACH,CAAC","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"]}