@fluentui/react-context-selector 9.0.0-rc.7 → 9.0.0-rc.8

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.json CHANGED
@@ -2,7 +2,34 @@
2
2
  "name": "@fluentui/react-context-selector",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 04 May 2022 13:24:10 GMT",
5
+ "date": "Thu, 05 May 2022 18:24:30 GMT",
6
+ "tag": "@fluentui/react-context-selector_v9.0.0-rc.8",
7
+ "version": "9.0.0-rc.8",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "martinhochel@microsoft.com",
12
+ "package": "@fluentui/react-context-selector",
13
+ "commit": "e465622ca241f3dd0534da50823a51e7311fd9ef",
14
+ "comment": "feat: ship rolluped only dts"
15
+ },
16
+ {
17
+ "author": "humberto_makoto@hotmail.com",
18
+ "package": "@fluentui/react-context-selector",
19
+ "commit": "982f68bd9b216ed71dc5e4fb7e77b56e73a8a468",
20
+ "comment": "Removing star exports."
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-context-selector",
25
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.8",
26
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ {
32
+ "date": "Wed, 04 May 2022 13:26:42 GMT",
6
33
  "tag": "@fluentui/react-context-selector_v9.0.0-rc.7",
7
34
  "version": "9.0.0-rc.7",
8
35
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,23 @@
1
1
  # Change Log - @fluentui/react-context-selector
2
2
 
3
- This log was last generated on Wed, 04 May 2022 13:24:10 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 05 May 2022 18:24:30 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-rc.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-rc.8)
8
+
9
+ Thu, 05 May 2022 18:24:30 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-rc.7..@fluentui/react-context-selector_v9.0.0-rc.8)
11
+
12
+ ### Changes
13
+
14
+ - feat: ship rolluped only dts ([PR #22823](https://github.com/microsoft/fluentui/pull/22823) by martinhochel@microsoft.com)
15
+ - Removing star exports. ([PR #22801](https://github.com/microsoft/fluentui/pull/22801) by humberto_makoto@hotmail.com)
16
+ - Bump @fluentui/react-utilities to v9.0.0-rc.8 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
17
+
7
18
  ## [9.0.0-rc.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-context-selector_v9.0.0-rc.7)
8
19
 
9
- Wed, 04 May 2022 13:24:10 GMT
20
+ Wed, 04 May 2022 13:26:42 GMT
10
21
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-context-selector_v9.0.0-rc.6..@fluentui/react-context-selector_v9.0.0-rc.7)
11
22
 
12
23
  ### Changes
File without changes
package/lib/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export { createContext } from './createContext';
2
2
  export { useContextSelector } from './useContextSelector';
3
3
  export { useHasParentContext } from './useHasParentContext';
4
- export * from './types';
5
4
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,SAAS,CAAC","sourcesContent":["export { createContext } from './createContext';\nexport { useContextSelector } from './useContextSelector';\nexport { useHasParentContext } from './useHasParentContext';\nexport * from './types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC","sourcesContent":["export { createContext } from './createContext';\nexport { useContextSelector } from './useContextSelector';\nexport { useHasParentContext } from './useHasParentContext';\nexport type { Context, ContextSelector, ContextValue, ContextValues, ContextVersion } from './types';\n"]}
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useHasParentContext = exports.useContextSelector = exports.createContext = void 0;
7
7
 
8
- const tslib_1 = /*#__PURE__*/require("tslib");
9
-
10
8
  var createContext_1 = /*#__PURE__*/require("./createContext");
11
9
 
12
10
  Object.defineProperty(exports, "createContext", {
@@ -33,6 +31,4 @@ Object.defineProperty(exports, "useHasParentContext", {
33
31
  return useHasParentContext_1.useHasParentContext;
34
32
  }
35
33
  });
36
-
37
- tslib_1.__exportStar(require("./types"), exports);
38
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,eAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,eAAA,CAAA,aAAA;AAAa;AAAb,CAAA;;AACT,IAAA,oBAAA,gBAAA,OAAA,CAAA,sBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,oBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,oBAAA,CAAA,kBAAA;AAAkB;AAAlB,CAAA;;AACT,IAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,qBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,qBAAA,CAAA,mBAAA;AAAmB;AAAnB,CAAA;;AACT,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA","sourcesContent":["export { createContext } from './createContext';\nexport { useContextSelector } from './useContextSelector';\nexport { useHasParentContext } from './useHasParentContext';\nexport * from './types';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,eAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,eAAA,CAAA,aAAA;AAAa;AAAb,CAAA;;AACT,IAAA,oBAAA,gBAAA,OAAA,CAAA,sBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,oBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,oBAAA,CAAA,kBAAA;AAAkB;AAAlB,CAAA;;AACT,IAAA,qBAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,qBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,qBAAA,CAAA,mBAAA;AAAmB;AAAnB,CAAA","sourcesContent":["export { createContext } from './createContext';\nexport { useContextSelector } from './useContextSelector';\nexport { useHasParentContext } from './useHasParentContext';\nexport type { Context, ContextSelector, ContextValue, ContextValues, ContextVersion } from './types';\n"],"sourceRoot":"../src/"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@fluentui/react-context-selector",
3
- "version": "9.0.0-rc.7",
3
+ "version": "9.0.0-rc.8",
4
4
  "description": "React useContextSelector hook in userland",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
7
- "typings": "lib/index.d.ts",
7
+ "typings": "dist/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
@@ -27,7 +27,7 @@
27
27
  "@fluentui/scripts": "^1.0.0"
28
28
  },
29
29
  "dependencies": {
30
- "@fluentui/react-utilities": "9.0.0-rc.7",
30
+ "@fluentui/react-utilities": "9.0.0-rc.8",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
33
  "peerDependencies": {
@@ -1,2 +0,0 @@
1
- import { Context } from './types';
2
- export declare const createContext: <Value>(defaultValue: Value) => Context<Value>;
package/lib/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export { createContext } from './createContext';
2
- export { useContextSelector } from './useContextSelector';
3
- export { useHasParentContext } from './useHasParentContext';
4
- export * from './types';
package/lib/types.d.ts DELETED
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- export declare type Context<Value> = React.Context<Value> & {
3
- Provider: React.FC<React.ProviderProps<Value>>;
4
- Consumer: never;
5
- };
6
- export declare type ContextSelector<Value, SelectedValue> = (value: Value) => SelectedValue;
7
- export declare type ContextVersion = number;
8
- export declare type ContextValue<Value> = {
9
- /** Holds a set of subscribers from components. */
10
- listeners: ((payload: readonly [ContextVersion, Value]) => void)[];
11
- /** Holds an actual value of React's context that will be propagated down for computations. */
12
- value: React.MutableRefObject<Value>;
13
- /** A version field is used to sync a context value and consumers. */
14
- version: React.MutableRefObject<ContextVersion>;
15
- };
16
- export declare type ContextValues<Value> = ContextValue<Value> & {
17
- /** List of listners to publish changes */
18
- listeners: ((payload: readonly [ContextVersion, Record<string, Value>]) => void)[];
19
- };
@@ -1,7 +0,0 @@
1
- import { Context, ContextSelector } from './types';
2
- /**
3
- * This hook returns context selected value by selector.
4
- * It will only accept context created by `createContext`.
5
- * It will trigger re-render if only the selected value is referencially changed.
6
- */
7
- export declare const useContextSelector: <Value, SelectedValue>(context: Context<Value>, selector: ContextSelector<Value, SelectedValue>) => SelectedValue;
@@ -1,9 +0,0 @@
1
- import { Context } from './types';
2
- /**
3
- * Utility hook for contexts created by react-context-selector to determine if a parent context exists
4
- * WARNING: This hook will not work for native React contexts
5
- *
6
- * @param context - context created by react-context-selector
7
- * @returns whether the hook is wrapped by a parent context
8
- */
9
- export declare function useHasParentContext<Value>(context: Context<Value>): boolean;
@@ -1,2 +0,0 @@
1
- import { Context } from './types';
2
- export declare const createContext: <Value>(defaultValue: Value) => Context<Value>;
@@ -1,4 +0,0 @@
1
- export { createContext } from './createContext';
2
- export { useContextSelector } from './useContextSelector';
3
- export { useHasParentContext } from './useHasParentContext';
4
- export * from './types';
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- export declare type Context<Value> = React.Context<Value> & {
3
- Provider: React.FC<React.ProviderProps<Value>>;
4
- Consumer: never;
5
- };
6
- export declare type ContextSelector<Value, SelectedValue> = (value: Value) => SelectedValue;
7
- export declare type ContextVersion = number;
8
- export declare type ContextValue<Value> = {
9
- /** Holds a set of subscribers from components. */
10
- listeners: ((payload: readonly [ContextVersion, Value]) => void)[];
11
- /** Holds an actual value of React's context that will be propagated down for computations. */
12
- value: React.MutableRefObject<Value>;
13
- /** A version field is used to sync a context value and consumers. */
14
- version: React.MutableRefObject<ContextVersion>;
15
- };
16
- export declare type ContextValues<Value> = ContextValue<Value> & {
17
- /** List of listners to publish changes */
18
- listeners: ((payload: readonly [ContextVersion, Record<string, Value>]) => void)[];
19
- };
@@ -1,7 +0,0 @@
1
- import { Context, ContextSelector } from './types';
2
- /**
3
- * This hook returns context selected value by selector.
4
- * It will only accept context created by `createContext`.
5
- * It will trigger re-render if only the selected value is referencially changed.
6
- */
7
- export declare const useContextSelector: <Value, SelectedValue>(context: Context<Value>, selector: ContextSelector<Value, SelectedValue>) => SelectedValue;
@@ -1,9 +0,0 @@
1
- import { Context } from './types';
2
- /**
3
- * Utility hook for contexts created by react-context-selector to determine if a parent context exists
4
- * WARNING: This hook will not work for native React contexts
5
- *
6
- * @param context - context created by react-context-selector
7
- * @returns whether the hook is wrapped by a parent context
8
- */
9
- export declare function useHasParentContext<Value>(context: Context<Value>): boolean;