@fluentui/global-context 9.0.0-beta.103 → 9.0.0-beta.104
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/CHANGELOG.md +13 -2
- package/dist/index.d.cts +33 -0
- package/lib/global-context-selector.js +3 -3
- package/lib/global-context-selector.js.map +1 -1
- package/lib/global-context.js +3 -3
- package/lib/global-context.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib-commonjs/{global-context-selector.js → global-context-selector.cjs} +1 -1
- package/lib-commonjs/{global-context.js → global-context.cjs} +1 -1
- package/lib-commonjs/{index.js → index.cjs} +2 -2
- package/package.json +15 -9
- /package/lib-commonjs/{global-context-selector.js.map → global-context-selector.cjs.map} +0 -0
- /package/lib-commonjs/{global-context.js.map → global-context.cjs.map} +0 -0
- /package/lib-commonjs/{index.js.map → index.cjs.map} +0 -0
- /package/lib-commonjs/{types.js → types.cjs} +0 -0
- /package/lib-commonjs/{types.js.map → types.cjs.map} +0 -0
- /package/lib-commonjs/{utils.js → utils.cjs} +0 -0
- /package/lib-commonjs/{utils.js.map → utils.cjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
# Change Log - @fluentui/global-context
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Tue, 11 Aug 2026 17:16:03 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.0.0-beta.104](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.104)
|
|
8
|
+
|
|
9
|
+
Tue, 11 Aug 2026 17:16:03 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.103..@fluentui/global-context_v9.0.0-beta.104)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- Ship ESM-first (type:module): valid ESM under lib/, CommonJS under lib-commonjs/*.cjs, and drop the `node` export condition - bare-Node `import` resolves ESM, `require` resolves CJS; node-targeted bundlers tree-shake. ([PR #36327](https://github.com/microsoft/fluentui/pull/36327) by martinhochel@microsoft.com)
|
|
15
|
+
- Bump @fluentui/react-context-selector to v9.2.19 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
16
|
+
- Bump @fluentui/react-utilities to v9.26.6 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
17
|
+
|
|
7
18
|
## [9.0.0-beta.103](https://github.com/microsoft/fluentui/tree/@fluentui/global-context_v9.0.0-beta.103)
|
|
8
19
|
|
|
9
|
-
Wed, 24 Jun 2026 11:
|
|
20
|
+
Wed, 24 Jun 2026 11:10:10 GMT
|
|
10
21
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/global-context_v9.0.0-beta.102..@fluentui/global-context_v9.0.0-beta.103)
|
|
11
22
|
|
|
12
23
|
### Changes
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React_2 from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Wrapper around @see React.createContext that implements context registration
|
|
5
|
+
* in the globalThis object to avoid duplicate contexts. Contexts are keyed with
|
|
6
|
+
* a unique sybmol for the package name, version and name of the context.
|
|
7
|
+
*
|
|
8
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol}
|
|
9
|
+
*
|
|
10
|
+
* @param defaultValue - @see React.createContext
|
|
11
|
+
* @param name - name of the context
|
|
12
|
+
* @param packageName - name of the npm package where the module is used
|
|
13
|
+
* @param packageVersion - version of the npm package where the module is used
|
|
14
|
+
* @returns @see React.createContext
|
|
15
|
+
*/
|
|
16
|
+
export declare const createContext: <T>(defaultValue: T, name: string, packageName: string, packageVersion: string) => React_2.Context<T>;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Wrapper around @see createContext from \@fluentui/react-context-selector that implements context registration
|
|
20
|
+
* in the globalThis object to avoid duplicate contexts. Contexts are keyed with
|
|
21
|
+
* a unique sybmol for the package name, version and name of the context.
|
|
22
|
+
*
|
|
23
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol}
|
|
24
|
+
*
|
|
25
|
+
* @param defaultValue - @see React.createContext
|
|
26
|
+
* @param name - name of the context
|
|
27
|
+
* @param packageName - name of the npm package where the module is used
|
|
28
|
+
* @param packageVersion - version of the npm package where the module is used
|
|
29
|
+
* @returns @see React.createContext
|
|
30
|
+
*/
|
|
31
|
+
export declare const createContextSelector: <T>(defaultValue: T, name: string, packageName: string, packageVersion: string) => React_2.Context<T>;
|
|
32
|
+
|
|
33
|
+
export { }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { createContext as baseCreateContext } from
|
|
3
|
-
import { canUseDOM } from
|
|
4
|
-
import { getMajorVersion } from
|
|
2
|
+
import { createContext as baseCreateContext } from "@fluentui/react-context-selector";
|
|
3
|
+
import { canUseDOM } from "@fluentui/react-utilities";
|
|
4
|
+
import { getMajorVersion } from "./utils.js";
|
|
5
5
|
const isBrowser = canUseDOM();
|
|
6
6
|
const globalObject = isBrowser ? window : global;
|
|
7
7
|
// Identifier for the symbol, for easy idenfitifaction of symbols created by this util
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/global-context-selector.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { createContext as baseCreateContext } from '@fluentui/react-context-selector';\nimport { canUseDOM } from '@fluentui/react-utilities';\nimport { getMajorVersion } from './utils';\nimport type { GlobalObject } from './types';\n\nconst isBrowser = canUseDOM();\nconst globalObject: GlobalObject = isBrowser\n ? // eslint-disable-next-line @nx/workspace-no-restricted-globals\n window\n : global;\n\n// Identifier for the symbol, for easy idenfitifaction of symbols created by this util\n// Useful for clearning global object during SSR reloads\nexport const SYMBOL_NAMESPACE = 'global-context-selector:';\n\n// During SSR the global object persists with the server process\n// Clean out the global object during server reload during development\nif (!isBrowser && process.env.NODE_ENV !== 'production') {\n const globalSymbols = Object.getOwnPropertySymbols(globalObject);\n globalSymbols.forEach(sym => {\n if (Symbol.keyFor(sym)?.startsWith(SYMBOL_NAMESPACE)) {\n delete globalObject[sym];\n }\n });\n}\n\n/**\n * Wrapper around @see createContext from \\@fluentui/react-context-selector that implements context registration\n * in the globalThis object to avoid duplicate contexts. Contexts are keyed with\n * a unique sybmol for the package name, version and name of the context.\n *\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol}\n *\n * @param defaultValue - @see React.createContext\n * @param name - name of the context\n * @param packageName - name of the npm package where the module is used\n * @param packageVersion - version of the npm package where the module is used\n * @returns @see React.createContext\n */\nexport const createContext = <T>(\n defaultValue: T,\n name: string,\n packageName: string,\n packageVersion: string,\n): React.Context<T> => {\n // Symbol guaranteed to be unique for the entire runtime\n const sym = Symbol.for(`${SYMBOL_NAMESPACE}${packageName}/${name}/@${getMajorVersion(packageVersion)}`);\n\n // Objects keyed with symbols are not visible with console.log\n // Object symbol properties can't be iterated with `for` or `Object.keys`\n const globalSymbols = Object.getOwnPropertySymbols(globalObject);\n if (!globalSymbols.includes(sym)) {\n // eslint-disable-next-line @fluentui/no-context-default-value\n globalObject[sym] = baseCreateContext<unknown>(defaultValue);\n }\n\n return globalObject[sym] as React.Context<T>;\n};\n"],"names":["createContext","baseCreateContext","canUseDOM","getMajorVersion","isBrowser","globalObject","window","global","SYMBOL_NAMESPACE","process","env","NODE_ENV","globalSymbols","Object","getOwnPropertySymbols","forEach","sym","Symbol","keyFor","startsWith","defaultValue","name","packageName","packageVersion","for","includes"],"mappings":"AAAA;AAGA,SAASA,iBAAiBC,iBAAiB,QAAQ,mCAAmC;AACtF,SAASC,SAAS,QAAQ,4BAA4B;AACtD,SAASC,eAAe,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/global-context-selector.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { createContext as baseCreateContext } from '@fluentui/react-context-selector';\nimport { canUseDOM } from '@fluentui/react-utilities';\nimport { getMajorVersion } from './utils';\nimport type { GlobalObject } from './types';\n\nconst isBrowser = canUseDOM();\nconst globalObject: GlobalObject = isBrowser\n ? // eslint-disable-next-line @nx/workspace-no-restricted-globals\n window\n : global;\n\n// Identifier for the symbol, for easy idenfitifaction of symbols created by this util\n// Useful for clearning global object during SSR reloads\nexport const SYMBOL_NAMESPACE = 'global-context-selector:';\n\n// During SSR the global object persists with the server process\n// Clean out the global object during server reload during development\nif (!isBrowser && process.env.NODE_ENV !== 'production') {\n const globalSymbols = Object.getOwnPropertySymbols(globalObject);\n globalSymbols.forEach(sym => {\n if (Symbol.keyFor(sym)?.startsWith(SYMBOL_NAMESPACE)) {\n delete globalObject[sym];\n }\n });\n}\n\n/**\n * Wrapper around @see createContext from \\@fluentui/react-context-selector that implements context registration\n * in the globalThis object to avoid duplicate contexts. Contexts are keyed with\n * a unique sybmol for the package name, version and name of the context.\n *\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol}\n *\n * @param defaultValue - @see React.createContext\n * @param name - name of the context\n * @param packageName - name of the npm package where the module is used\n * @param packageVersion - version of the npm package where the module is used\n * @returns @see React.createContext\n */\nexport const createContext = <T>(\n defaultValue: T,\n name: string,\n packageName: string,\n packageVersion: string,\n): React.Context<T> => {\n // Symbol guaranteed to be unique for the entire runtime\n const sym = Symbol.for(`${SYMBOL_NAMESPACE}${packageName}/${name}/@${getMajorVersion(packageVersion)}`);\n\n // Objects keyed with symbols are not visible with console.log\n // Object symbol properties can't be iterated with `for` or `Object.keys`\n const globalSymbols = Object.getOwnPropertySymbols(globalObject);\n if (!globalSymbols.includes(sym)) {\n // eslint-disable-next-line @fluentui/no-context-default-value\n globalObject[sym] = baseCreateContext<unknown>(defaultValue);\n }\n\n return globalObject[sym] as React.Context<T>;\n};\n"],"names":["createContext","baseCreateContext","canUseDOM","getMajorVersion","isBrowser","globalObject","window","global","SYMBOL_NAMESPACE","process","env","NODE_ENV","globalSymbols","Object","getOwnPropertySymbols","forEach","sym","Symbol","keyFor","startsWith","defaultValue","name","packageName","packageVersion","for","includes"],"mappings":"AAAA;AAGA,SAASA,iBAAiBC,iBAAiB,QAAQ,mCAAmC;AACtF,SAASC,SAAS,QAAQ,4BAA4B;AACtD,SAASC,eAAe,QAAQ,aAAU;AAG1C,MAAMC,YAAYF;AAClB,MAAMG,eAA6BD,YAE/BE,SACAC;AAEJ,sFAAsF;AACtF,wDAAwD;AACxD,OAAO,MAAMC,mBAAmB,2BAA2B;AAE3D,gEAAgE;AAChE,sEAAsE;AACtE,IAAI,CAACJ,aAAaK,QAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;IACvD,MAAMC,gBAAgBC,OAAOC,qBAAqB,CAACT;IACnDO,cAAcG,OAAO,CAACC,CAAAA;YAChBC;QAAJ,KAAIA,iBAAAA,OAAOC,MAAM,CAACF,kBAAdC,qCAAAA,eAAoBE,UAAU,CAACX,mBAAmB;YACpD,OAAOH,YAAY,CAACW,IAAI;QAC1B;IACF;AACF;AAEA;;;;;;;;;;;;CAYC,GACD,OAAO,MAAMhB,gBAAgB,CAC3BoB,cACAC,MACAC,aACAC;IAEA,wDAAwD;IACxD,MAAMP,MAAMC,OAAOO,GAAG,CAAC,GAAGhB,mBAAmBc,YAAY,CAAC,EAAED,KAAK,EAAE,EAAElB,gBAAgBoB,iBAAiB;IAEtG,8DAA8D;IAC9D,yEAAyE;IACzE,MAAMX,gBAAgBC,OAAOC,qBAAqB,CAACT;IACnD,IAAI,CAACO,cAAca,QAAQ,CAACT,MAAM;QAChC,8DAA8D;QAC9DX,YAAY,CAACW,IAAI,GAAGf,kBAA2BmB;IACjD;IAEA,OAAOf,YAAY,CAACW,IAAI;AAC1B,EAAE"}
|
package/lib/global-context.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import * as React from
|
|
3
|
-
import { canUseDOM } from
|
|
4
|
-
import { getMajorVersion } from
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { canUseDOM } from "@fluentui/react-utilities";
|
|
4
|
+
import { getMajorVersion } from "./utils.js";
|
|
5
5
|
const isBrowser = canUseDOM();
|
|
6
6
|
const globalObject = isBrowser ? window : global;
|
|
7
7
|
// Identifier for the symbol, for easy idenfitifaction of symbols created by this util
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/global-context.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { canUseDOM } from '@fluentui/react-utilities';\nimport type { GlobalObject } from './types';\nimport { getMajorVersion } from './utils';\n\nconst isBrowser = canUseDOM();\nconst globalObject: GlobalObject = isBrowser\n ? // eslint-disable-next-line @nx/workspace-no-restricted-globals\n window\n : global;\n\n// Identifier for the symbol, for easy idenfitifaction of symbols created by this util\n// Useful for clearning global object during SSR reloads\nexport const SYMBOL_NAMESPACE = 'global-context:';\n\n// During SSR the global object persists with the server process\n// Clean out the global object during server reload during development\nif (!isBrowser && process.env.NODE_ENV !== 'production') {\n const globalSymbols = Object.getOwnPropertySymbols(globalObject);\n globalSymbols.forEach(sym => {\n if (Symbol.keyFor(sym)?.startsWith(SYMBOL_NAMESPACE)) {\n delete globalObject[sym];\n }\n });\n}\n\n/**\n * Wrapper around @see React.createContext that implements context registration\n * in the globalThis object to avoid duplicate contexts. Contexts are keyed with\n * a unique sybmol for the package name, version and name of the context.\n *\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol}\n *\n * @param defaultValue - @see React.createContext\n * @param name - name of the context\n * @param packageName - name of the npm package where the module is used\n * @param packageVersion - version of the npm package where the module is used\n * @returns @see React.createContext\n */\nexport const createContext = <T>(\n defaultValue: T,\n name: string,\n packageName: string,\n packageVersion: string,\n): React.Context<T> => {\n // Symbol guaranteed to be unique for the entire runtime\n const sym = Symbol.for(`${SYMBOL_NAMESPACE}${packageName}/${name}/@${getMajorVersion(packageVersion)}`);\n\n // Objects keyed with symbols are not visible with console.log\n // Object symbol properties can't be iterated with `for` or `Object.keys`\n const globalSymbols = Object.getOwnPropertySymbols(globalObject);\n if (!globalSymbols.includes(sym)) {\n // eslint-disable-next-line @fluentui/no-context-default-value\n globalObject[sym] = React.createContext<unknown>(defaultValue);\n }\n\n return globalObject[sym] as React.Context<T>;\n};\n"],"names":["React","canUseDOM","getMajorVersion","isBrowser","globalObject","window","global","SYMBOL_NAMESPACE","process","env","NODE_ENV","globalSymbols","Object","getOwnPropertySymbols","forEach","sym","Symbol","keyFor","startsWith","createContext","defaultValue","name","packageName","packageVersion","for","includes"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,SAAS,QAAQ,4BAA4B;AAEtD,SAASC,eAAe,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/global-context.ts"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { canUseDOM } from '@fluentui/react-utilities';\nimport type { GlobalObject } from './types';\nimport { getMajorVersion } from './utils';\n\nconst isBrowser = canUseDOM();\nconst globalObject: GlobalObject = isBrowser\n ? // eslint-disable-next-line @nx/workspace-no-restricted-globals\n window\n : global;\n\n// Identifier for the symbol, for easy idenfitifaction of symbols created by this util\n// Useful for clearning global object during SSR reloads\nexport const SYMBOL_NAMESPACE = 'global-context:';\n\n// During SSR the global object persists with the server process\n// Clean out the global object during server reload during development\nif (!isBrowser && process.env.NODE_ENV !== 'production') {\n const globalSymbols = Object.getOwnPropertySymbols(globalObject);\n globalSymbols.forEach(sym => {\n if (Symbol.keyFor(sym)?.startsWith(SYMBOL_NAMESPACE)) {\n delete globalObject[sym];\n }\n });\n}\n\n/**\n * Wrapper around @see React.createContext that implements context registration\n * in the globalThis object to avoid duplicate contexts. Contexts are keyed with\n * a unique sybmol for the package name, version and name of the context.\n *\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol}\n *\n * @param defaultValue - @see React.createContext\n * @param name - name of the context\n * @param packageName - name of the npm package where the module is used\n * @param packageVersion - version of the npm package where the module is used\n * @returns @see React.createContext\n */\nexport const createContext = <T>(\n defaultValue: T,\n name: string,\n packageName: string,\n packageVersion: string,\n): React.Context<T> => {\n // Symbol guaranteed to be unique for the entire runtime\n const sym = Symbol.for(`${SYMBOL_NAMESPACE}${packageName}/${name}/@${getMajorVersion(packageVersion)}`);\n\n // Objects keyed with symbols are not visible with console.log\n // Object symbol properties can't be iterated with `for` or `Object.keys`\n const globalSymbols = Object.getOwnPropertySymbols(globalObject);\n if (!globalSymbols.includes(sym)) {\n // eslint-disable-next-line @fluentui/no-context-default-value\n globalObject[sym] = React.createContext<unknown>(defaultValue);\n }\n\n return globalObject[sym] as React.Context<T>;\n};\n"],"names":["React","canUseDOM","getMajorVersion","isBrowser","globalObject","window","global","SYMBOL_NAMESPACE","process","env","NODE_ENV","globalSymbols","Object","getOwnPropertySymbols","forEach","sym","Symbol","keyFor","startsWith","createContext","defaultValue","name","packageName","packageVersion","for","includes"],"mappings":"AAAA;AAEA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,SAAS,QAAQ,4BAA4B;AAEtD,SAASC,eAAe,QAAQ,aAAU;AAE1C,MAAMC,YAAYF;AAClB,MAAMG,eAA6BD,YAE/BE,SACAC;AAEJ,sFAAsF;AACtF,wDAAwD;AACxD,OAAO,MAAMC,mBAAmB,kBAAkB;AAElD,gEAAgE;AAChE,sEAAsE;AACtE,IAAI,CAACJ,aAAaK,QAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;IACvD,MAAMC,gBAAgBC,OAAOC,qBAAqB,CAACT;IACnDO,cAAcG,OAAO,CAACC,CAAAA;YAChBC;QAAJ,KAAIA,iBAAAA,OAAOC,MAAM,CAACF,kBAAdC,qCAAAA,eAAoBE,UAAU,CAACX,mBAAmB;YACpD,OAAOH,YAAY,CAACW,IAAI;QAC1B;IACF;AACF;AAEA;;;;;;;;;;;;CAYC,GACD,OAAO,MAAMI,gBAAgB,CAC3BC,cACAC,MACAC,aACAC;IAEA,wDAAwD;IACxD,MAAMR,MAAMC,OAAOQ,GAAG,CAAC,GAAGjB,mBAAmBe,YAAY,CAAC,EAAED,KAAK,EAAE,EAAEnB,gBAAgBqB,iBAAiB;IAEtG,8DAA8D;IAC9D,yEAAyE;IACzE,MAAMZ,gBAAgBC,OAAOC,qBAAqB,CAACT;IACnD,IAAI,CAACO,cAAcc,QAAQ,CAACV,MAAM;QAChC,8DAA8D;QAC9DX,YAAY,CAACW,IAAI,GAAGf,MAAMmB,aAAa,CAAUC;IACnD;IAEA,OAAOhB,YAAY,CAACW,IAAI;AAC1B,EAAE"}
|
package/lib/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createContext } from
|
|
2
|
-
export { createContext as createContextSelector } from
|
|
1
|
+
export { createContext } from "./global-context.js";
|
|
2
|
+
export { createContext as createContextSelector } from "./global-context-selector.js";
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { createContext } from './global-context';\nexport { createContext as createContextSelector } from './global-context-selector';\n"],"names":["createContext","createContextSelector"],"mappings":"AAAA,SAASA,aAAa,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { createContext } from './global-context';\nexport { createContext as createContextSelector } from './global-context-selector';\n"],"names":["createContext","createContextSelector"],"mappings":"AAAA,SAASA,aAAa,QAAQ,sBAAmB;AACjD,SAASA,iBAAiBC,qBAAqB,QAAQ,+BAA4B"}
|
|
@@ -19,7 +19,7 @@ _export(exports, {
|
|
|
19
19
|
});
|
|
20
20
|
const _reactcontextselector = require("@fluentui/react-context-selector");
|
|
21
21
|
const _reactutilities = require("@fluentui/react-utilities");
|
|
22
|
-
const _utils = require("./utils");
|
|
22
|
+
const _utils = require("./utils.cjs");
|
|
23
23
|
const isBrowser = (0, _reactutilities.canUseDOM)();
|
|
24
24
|
const globalObject = isBrowser ? window : global;
|
|
25
25
|
const SYMBOL_NAMESPACE = 'global-context-selector:';
|
|
@@ -20,7 +20,7 @@ _export(exports, {
|
|
|
20
20
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
21
21
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
22
22
|
const _reactutilities = require("@fluentui/react-utilities");
|
|
23
|
-
const _utils = require("./utils");
|
|
23
|
+
const _utils = require("./utils.cjs");
|
|
24
24
|
const isBrowser = (0, _reactutilities.canUseDOM)();
|
|
25
25
|
const globalObject = isBrowser ? window : global;
|
|
26
26
|
const SYMBOL_NAMESPACE = 'global-context:';
|
|
@@ -16,5 +16,5 @@ _export(exports, {
|
|
|
16
16
|
return _globalcontextselector.createContext;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
const _globalcontext = require("./global-context");
|
|
20
|
-
const _globalcontextselector = require("./global-context-selector");
|
|
19
|
+
const _globalcontext = require("./global-context.cjs");
|
|
20
|
+
const _globalcontextselector = require("./global-context-selector.cjs");
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/global-context",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.104",
|
|
4
4
|
"description": "Extension of React createContext to be a true singleton on the global scope",
|
|
5
|
-
"main": "lib-commonjs/index.
|
|
5
|
+
"main": "lib-commonjs/index.cjs",
|
|
6
6
|
"module": "lib/index.js",
|
|
7
7
|
"typings": "./dist/index.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui/react-context-selector": "^9.2.
|
|
16
|
-
"@fluentui/react-utilities": "^9.26.
|
|
15
|
+
"@fluentui/react-context-selector": "^9.2.19",
|
|
16
|
+
"@fluentui/react-utilities": "^9.26.6",
|
|
17
17
|
"@swc/helpers": "^0.5.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
@@ -31,17 +31,23 @@
|
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
"import": {
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"default": "./lib/index.js"
|
|
37
|
+
},
|
|
38
|
+
"require": {
|
|
39
|
+
"types": "./dist/index.d.cts",
|
|
40
|
+
"default": "./lib-commonjs/index.cjs"
|
|
41
|
+
}
|
|
38
42
|
},
|
|
39
43
|
"./package.json": "./package.json"
|
|
40
44
|
},
|
|
41
45
|
"files": [
|
|
42
46
|
"*.md",
|
|
43
47
|
"dist/*.d.ts",
|
|
48
|
+
"dist/*.d.cts",
|
|
44
49
|
"lib",
|
|
45
50
|
"lib-commonjs"
|
|
46
|
-
]
|
|
51
|
+
],
|
|
52
|
+
"type": "module"
|
|
47
53
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|