@fluentui-react-native/tooltip 0.2.17 → 0.2.19

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
@@ -1,6 +1,21 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/tooltip",
3
3
  "entries": [
4
+ {
5
+ "date": "Fri, 29 Mar 2024 18:05:03 GMT",
6
+ "version": "0.2.19",
7
+ "tag": "@fluentui-react-native/tooltip_v0.2.19",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "30809111+acoates-ms@users.noreply.github.com",
12
+ "package": "@fluentui-react-native/tooltip",
13
+ "commit": "a722aa94799f4afee55baa03a5a754b0d4b2fdce",
14
+ "comment": "Use codegenNativeComponent so JS View configs can be generated for all native components"
15
+ }
16
+ ]
17
+ }
18
+ },
4
19
  {
5
20
  "date": "Fri, 15 Mar 2024 16:26:21 GMT",
6
21
  "version": "0.2.16",
package/CHANGELOG.md CHANGED
@@ -1,9 +1,17 @@
1
1
  # Change Log - @fluentui-react-native/tooltip
2
2
 
3
- This log was last generated on Fri, 15 Mar 2024 16:26:21 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 29 Mar 2024 18:05:03 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.2.19
8
+
9
+ Fri, 29 Mar 2024 18:05:03 GMT
10
+
11
+ ### Patches
12
+
13
+ - Use codegenNativeComponent so JS View configs can be generated for all native components (30809111+acoates-ms@users.noreply.github.com)
14
+
7
15
  ## 0.2.16
8
16
 
9
17
  Fri, 15 Mar 2024 16:26:21 GMT
package/lib/Tooltip.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
1
6
  import type { TooltipProps } from './Tooltip.types';
2
7
  /**
3
8
  * A function which determines if a set of styles should be applied to the component given the current state and props of the tooltip.
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../src/Tooltip.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAKpD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,UAAW,MAAM,aAAa,YAAY,KAAG,OAEtE,CAAC;AAEF,eAAO,MAAM,OAAO,6EAIlB,CAAC;AAIH,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../src/Tooltip.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,UAAW,MAAM,aAAa,YAAY,KAAG,OAEtE,CAAC;AAEF,eAAO,MAAM,OAAO,6EAIlB,CAAC;AAIH,eAAe,OAAO,CAAC"}
package/lib/Tooltip.js CHANGED
@@ -1,10 +1,14 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
1
6
  import { __assign } from "tslib";
2
7
  /** @jsxRuntime classic */
3
8
  import * as React from 'react';
4
- import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
5
9
  import { mergeProps, stagedComponent } from '@fluentui-react-native/framework';
6
10
  import { tooltipName } from './Tooltip.types';
7
- var NativeTooltipView = ensureNativeComponent('RCTTooltip');
11
+ import NativeTooltipView from './TooltipNativeComponent';
8
12
  /**
9
13
  * A function which determines if a set of styles should be applied to the component given the current state and props of the tooltip.
10
14
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../src/Tooltip.tsx"],"names":[],"mappings":";AAAA,0BAA0B;AAC1B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,UAAU,EAA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AC;IACxF,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;AAElC,eAAe,OAAO,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
6
+ import type { HostComponent, ViewProps } from 'react-native';
7
+ export interface NativeProps extends ViewProps {
8
+ content?: string;
9
+ }
10
+ declare const _default: HostComponent<NativeProps>;
11
+ export default _default;
12
+ //# sourceMappingURL=TooltipNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TooltipNativeComponent.d.ts","sourceRoot":"","sources":["../src/TooltipNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI7D,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;;AAED,wBAA+F"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
6
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
7
+ export default codegenNativeComponent('RCTTooltip');
8
+ //# sourceMappingURL=TooltipNativeComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TooltipNativeComponent.js","sourceRoot":"","sources":["../src/TooltipNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAM7F,eAAe,sBAAsB,CAAc,YAAY,CAA+B,CAAC"}
@@ -1,3 +1,8 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
1
6
  import type { TooltipProps } from './Tooltip.types';
2
7
  /**
3
8
  * A function which determines if a set of styles should be applied to the component given the current state and props of the tooltip.
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../src/Tooltip.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAKpD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,UAAW,MAAM,aAAa,YAAY,KAAG,OAEtE,CAAC;AAEF,eAAO,MAAM,OAAO,6EAIlB,CAAC;AAIH,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../src/Tooltip.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,UAAW,MAAM,aAAa,YAAY,KAAG,OAEtE,CAAC;AAEF,eAAO,MAAM,OAAO,6EAIlB,CAAC;AAIH,eAAe,OAAO,CAAC"}
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
+ /**
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ * @format
6
+ */
2
7
  Object.defineProperty(exports, "__esModule", { value: true });
3
8
  exports.Tooltip = exports.tooltipLookup = void 0;
4
9
  var tslib_1 = require("tslib");
5
10
  /** @jsxRuntime classic */
6
11
  var React = tslib_1.__importStar(require("react"));
7
- var component_cache_1 = require("@fluentui-react-native/component-cache");
8
12
  var framework_1 = require("@fluentui-react-native/framework");
9
13
  var Tooltip_types_1 = require("./Tooltip.types");
10
- var NativeTooltipView = (0, component_cache_1.ensureNativeComponent)('RCTTooltip');
14
+ var TooltipNativeComponent_1 = tslib_1.__importDefault(require("./TooltipNativeComponent"));
11
15
  /**
12
16
  * A function which determines if a set of styles should be applied to the component given the current state and props of the tooltip.
13
17
  *
@@ -21,7 +25,7 @@ var tooltipLookup = function (layer, userProps) {
21
25
  exports.tooltipLookup = tooltipLookup;
22
26
  exports.Tooltip = (0, framework_1.stagedComponent)(function (props) {
23
27
  return function (rest, children) {
24
- return React.createElement(NativeTooltipView, tslib_1.__assign({}, (0, framework_1.mergeProps)(props, rest)), children);
28
+ return React.createElement(TooltipNativeComponent_1.default, tslib_1.__assign({}, (0, framework_1.mergeProps)(props, rest)), children);
25
29
  };
26
30
  });
27
31
  exports.Tooltip.displayName = Tooltip_types_1.tooltipName;
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../src/Tooltip.tsx"],"names":[],"mappings":";;;;AAAA,0BAA0B;AAC1B,mDAA+B;AAE/B,0EAA+E;AAC/E,8DAA+E;AAG/E,iDAA8C;AAE9C,IAAM,iBAAiB,GAAG,IAAA,uCAAqB,EAAC,YAAY,CAAC,CAAC;AAE9D;;;;;;GAMG;AACI,IAAM,aAAa,GAAG,UAAC,KAAa,EAAE,SAAuB;IAClE,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;AAC1B,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB;AAEW,QAAA,OAAO,GAAG,IAAA,2BAAe,EAAC,UAAC,KAAmB;IACzD,OAAO,UAAC,IAAkB,EAAE,QAAyB;QACnD,OAAO,oBAAC,iBAAiB,uBAAK,IAAA,sBAAU,EAAC,KAAK,EAAE,IAAI,CAAC,GAAG,QAAQ,CAAqB,CAAC;IACxF,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAO,CAAC,WAAW,GAAG,2BAAW,CAAC;AAElC,kBAAe,eAAO,CAAC"}
1
+ {"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../src/Tooltip.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;;;;AAEH,0BAA0B;AAC1B,mDAA+B;AAE/B,8DAA+E;AAG/E,iDAA8C;AAC9C,4FAAyD;AAEzD;;;;;;GAMG;AACI,IAAM,aAAa,GAAG,UAAC,KAAa,EAAE,SAAuB;IAClE,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;AAC1B,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB;AAEW,QAAA,OAAO,GAAG,IAAA,2BAAe,EAAC,UAAC,KAAmB;IACzD,OAAO,UAAC,IAAkB,EAAE,QAAyB;QACnD,OAAO,oBAAC,gCAAiB,uBAAK,IAAA,sBAAU,EAAC,KAAK,EAAE,IAAI,CAAC,GAAG,QAAQ,CAAqB,CAAC;IACxF,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAO,CAAC,WAAW,GAAG,2BAAW,CAAC;AAElC,kBAAe,eAAO,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
6
+ import type { HostComponent, ViewProps } from 'react-native';
7
+ export interface NativeProps extends ViewProps {
8
+ content?: string;
9
+ }
10
+ declare const _default: HostComponent<NativeProps>;
11
+ export default _default;
12
+ //# sourceMappingURL=TooltipNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TooltipNativeComponent.d.ts","sourceRoot":"","sources":["../src/TooltipNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI7D,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;;AAED,wBAA+F"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ * @format
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ var tslib_1 = require("tslib");
9
+ var codegenNativeComponent_1 = tslib_1.__importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
10
+ exports.default = (0, codegenNativeComponent_1.default)('RCTTooltip');
11
+ //# sourceMappingURL=TooltipNativeComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TooltipNativeComponent.js","sourceRoot":"","sources":["../src/TooltipNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,2HAA6F;AAM7F,kBAAe,IAAA,gCAAsB,EAAc,YAAY,CAA+B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/tooltip",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "description": "A cross-platform Tooltip component for React Native.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -22,13 +22,12 @@
22
22
  "directory": "packages/experimental/Tooltip"
23
23
  },
24
24
  "dependencies": {
25
- "@fluentui-react-native/callout": "0.25.15",
26
- "@fluentui-react-native/component-cache": "1.6.1",
25
+ "@fluentui-react-native/callout": "0.25.16",
27
26
  "@fluentui-react-native/framework": "0.13.10",
28
27
  "tslib": "^2.3.1"
29
28
  },
30
29
  "devDependencies": {
31
- "@fluentui-react-native/button": "0.36.17",
30
+ "@fluentui-react-native/button": "0.36.18",
32
31
  "@fluentui-react-native/eslint-config-rules": "0.1.1",
33
32
  "@fluentui-react-native/scripts": "0.1.1",
34
33
  "@fluentui-react-native/test-tools": "0.1.1",
package/src/Tooltip.tsx CHANGED
@@ -1,13 +1,17 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
6
+
1
7
  /** @jsxRuntime classic */
2
8
  import * as React from 'react';
3
9
 
4
- import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
5
10
  import { mergeProps, stagedComponent } from '@fluentui-react-native/framework';
6
11
 
7
12
  import type { TooltipProps } from './Tooltip.types';
8
13
  import { tooltipName } from './Tooltip.types';
9
-
10
- const NativeTooltipView = ensureNativeComponent('RCTTooltip');
14
+ import NativeTooltipView from './TooltipNativeComponent';
11
15
 
12
16
  /**
13
17
  * A function which determines if a set of styles should be applied to the component given the current state and props of the tooltip.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
6
+
7
+ import type { HostComponent, ViewProps } from 'react-native';
8
+
9
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
10
+
11
+ export interface NativeProps extends ViewProps {
12
+ content?: string;
13
+ }
14
+
15
+ export default codegenNativeComponent<NativeProps>('RCTTooltip') as HostComponent<NativeProps>;