@hellocoop/react 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/dist/buttons.js +2 -2
  2. package/package.json +1 -1
package/dist/buttons.js CHANGED
@@ -32,13 +32,13 @@ function BaseButton({ scope, updateScope, targetURI, providerHint, label, style,
32
32
  var _a;
33
33
  //check if dev has added Hellō stylesheet to pages with Hellō buttons
34
34
  if (typeof window != 'undefined' && !checkedForStylesheet) {
35
- const hasStylesheet = !Array.from(document.head.getElementsByTagName('link')).find((element) => {
35
+ const hasStylesheet = Array.from(document.head.getElementsByTagName('link')).find((element) => {
36
36
  var _a;
37
37
  return element.getAttribute('rel') === 'stylesheet' &&
38
38
  ((_a = element.getAttribute('href')) === null || _a === void 0 ? void 0 : _a.startsWith(types_1.Button.STYLES_URL));
39
39
  });
40
40
  if (!hasStylesheet)
41
- console.info('Could not find Hellō stylesheet. Please add to pages with Hellō buttons. See http://hello.dev/docs/buttons/#stylesheet for more info.');
41
+ console.warn('Could not find Hellō stylesheet. Please add to pages with Hellō buttons. See http://hello.dev/docs/buttons/#stylesheet for more info.');
42
42
  checkedForStylesheet = true;
43
43
  }
44
44
  const helloBtnClass = (_a = types_1.Button.CLASS_MAPPING[color]) === null || _a === void 0 ? void 0 : _a[theme];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellocoop/react",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "React SDK for Hellō https://hello.dev",
5
5
  "repository": {
6
6
  "type": "git",