@rh-support/react-context 2.1.8 → 2.1.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"NewFeatureLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/NewFeatureAnnouncement/NewFeatureLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAKtE,OAAO,EAAE,uBAAuB,EAA0B,MAAM,oCAAoC,CAAC;AAErG,UAAU,MAAO,SAAQ,YAAY;IACjC,WAAW,EAAE,uBAAuB,CAAC;CACxC;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,eAqB5C"}
1
+ {"version":3,"file":"NewFeatureLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/NewFeatureAnnouncement/NewFeatureLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAKtE,OAAO,EAAE,uBAAuB,EAA0B,MAAM,oCAAoC,CAAC;AAErG,UAAU,MAAO,SAAQ,YAAY;IACjC,WAAW,EAAE,uBAAuB,CAAC;CACxC;AACD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,eAyB5C"}
@@ -19,7 +19,11 @@ export function NewFeatureLabel(props) {
19
19
  const { featureConfig: { isFeatureAnnouncementVisible, featureText }, onFeatureDismiss, } = useFeatureAnnouncement(featureName);
20
20
  if (!isFeatureAnnouncementVisible)
21
21
  return React.createElement(React.Fragment, null);
22
- const conditionalProps = Object.assign({}, (featureText ? { bodyContent: React.createElement("div", { dangerouslySetInnerHTML: { __html: featureText } }) } : undefined));
22
+ const conditionalProps = Object.assign({}, (featureText
23
+ ? {
24
+ bodyContent: React.createElement("div", { dangerouslySetInnerHTML: { __html: featureText } }),
25
+ }
26
+ : undefined));
23
27
  const onHidden = () => {
24
28
  onFeatureDismiss();
25
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NewFeaturePopoverAnnouncement.d.ts","sourceRoot":"","sources":["../../../../src/components/NewFeatureAnnouncement/NewFeaturePopoverAnnouncement.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,uBAAuB,EAA0B,MAAM,oCAAoC,CAAC;AAErG,UAAU,MAAO,SAAQ,YAAY;IACjC,WAAW,EAAE,uBAAuB,CAAC;IACrC,UAAU,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACxC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAClC;AACD,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,eA6C1D"}
1
+ {"version":3,"file":"NewFeaturePopoverAnnouncement.d.ts","sourceRoot":"","sources":["../../../../src/components/NewFeatureAnnouncement/NewFeaturePopoverAnnouncement.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,uBAAuB,EAA0B,MAAM,oCAAoC,CAAC;AAErG,UAAU,MAAO,SAAQ,YAAY;IACjC,WAAW,EAAE,uBAAuB,CAAC;IACrC,UAAU,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACxC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAClC;AACD,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,eAiD1D"}
@@ -20,7 +20,11 @@ export function NewFeaturePopoverAnnouncement(props) {
20
20
  const [isPopoverVisible, setIsPopoverVisible] = useState(false);
21
21
  const isSectionVisible = useOnScreen(sectionRef);
22
22
  const { featureConfig: { isFeatureAnnouncementVisible, featureText }, onFeatureDismiss, } = useFeatureAnnouncement(featureName);
23
- const conditionalProps = Object.assign({}, (featureText ? { bodyContent: React.createElement("div", { dangerouslySetInnerHTML: { __html: featureText } }) } : undefined));
23
+ const conditionalProps = Object.assign({}, (featureText
24
+ ? {
25
+ bodyContent: React.createElement("div", { dangerouslySetInnerHTML: { __html: featureText } }),
26
+ }
27
+ : undefined));
24
28
  useEffect(() => {
25
29
  if (isSectionVisible && isFeatureAnnouncementVisible) {
26
30
  setTimeout(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/react-context",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -40,10 +40,10 @@
40
40
  "@cee-eng/hydrajs": "4.15.87",
41
41
  "@patternfly/react-core": "4.264.0",
42
42
  "@patternfly/react-icons": "4.92.10",
43
- "@rh-support/components": "2.1.8",
43
+ "@rh-support/components": "2.1.9",
44
44
  "@rh-support/types": "2.0.2",
45
- "@rh-support/user-permissions": "2.1.3",
46
- "@rh-support/utils": "2.1.1",
45
+ "@rh-support/user-permissions": "2.1.4",
46
+ "@rh-support/utils": "2.1.2",
47
47
  "i18next": "^19.0.1",
48
48
  "localforage": "^1.10.0",
49
49
  "lodash": "^4.17.21",
@@ -85,5 +85,5 @@
85
85
  "defaults and supports es6-module",
86
86
  "maintained node versions"
87
87
  ],
88
- "gitHead": "a47ffbcfff1c99bef15fb811497e6c756845e9e8"
88
+ "gitHead": "8f7f0aee0461c78e8a5cc0e16777371c4ae1305d"
89
89
  }