@bbl-digital/snorre 4.3.8 → 4.3.10

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.
@@ -16,7 +16,8 @@ const HtmlDefault = exports.HtmlDefault = {
16
16
  name: 'Html',
17
17
  args: {
18
18
  allowVideo: true,
19
- text: `<ol><li>test</li><li>test</li><li>est <ol><li>test<ol><li>test</li><li>test</li><li>test</li></ol></li></ol></li></ol><br /><ul><li>test</li><li>test<ul><li>test</li></ul></li></ul> 50`
19
+ text: `<h1>WroomWroom</h1><h2>test</h2><h3>test</h3><h4>test</h4><p><br /></p><ol><li>test</li><li>test<ol><li>test<ol><li>test</li><li>test</li></ol></li></ol></li></ol><ul><li>test<ul><li>test<ul><li>test</li></ul></li></ul></li></ul><p><br /></p><p><img src=\"https://bbldpublicationsstgtest.blob.core.windows.net/bbldtest02/37e9fbd2-14d1-4c59-9f23-0c67d57942e9/27982f6f-542c-46cc-90c6-a365a38e6d40?sv=2024-11-04&amp;se=2040-03-21T12%3A07%3A44Z&amp;sr=b&amp;sp=r&amp;sig=1WCwtE53sk9adHcHrhVGZhuD8iU5lfKIAJzFToVBR90%3D\"></p><p>Nytt bilde</p><p><img src=\"https://bbldpublicationsstgtest.blob.core.windows.net/bbldtest02/37e9fbd2-14d1-4c59-9f23-0c67d57942e9/6768e119-627d-4981-9d70-77bea58d2794?sv=2024-11-04&amp;se=2040-03-09T08%3A07%3A03Z&amp;sr=b&amp;sp=r&amp;sig=VJSLebAwU3%2FA5aFJ3xRL6N18611SO%2BNk5YXKTOaoKkc%3D\"></p><p>tekst under bildet</p><p><br /></p><p><div>\uFEFF<span contenteditable=\"false\"><div class=\"video-container\"><br /> <iframe src=\"https://www.youtube.com/embed/hQlXebNPQAU?showinfo=0\" frameborder=\"0\" allowfullscreen=\"\"></iframe><br /> </div></span>\uFEFF</div></p>",
20
+ st<ol><li>test</li><li>test</li><li>test</li></ol></li></ol></li></ol><br /><ul><li>test</li><li>test<ul><li>test</li></ul></li></ul>`
20
21
  }
21
22
  };
22
23
  const HTMLLongText = exports.HTMLLongText = {
@@ -7,7 +7,7 @@ exports.styles = exports.default = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
9
9
  const styles = exports.styles = {
10
- default: theme => /*#__PURE__*/(0, _react.css)("padding:0px!important;font-size:16px;color:", theme.defaultText, ";max-width:100%;*{max-width:100%;}h1,h2,h3,h4,h5,h6,p,ul,ol{margin:0;}a{color:", theme.primary, ";text-decoration:underline;cursor:pointer;}li::marker{margin-right:0.5em;}p{min-height:22px;margin-bottom:1em;}ul{list-style-type:disc;padding-left:40px;}ul ul{list-style-type:circle;}ul ul ul{list-style-type:square;}ol{list-style-type:decimal;padding-left:40px;}.ql-indent-1{padding-inline-start:30px;}.ql-indent-2{padding-inline-start:60px;}.ql-indent-3{padding-inline-start:90px;}.ql-indent-4{padding-inline-start:120px;}.ql-indent-5{padding-inline-start:150px;}.ql-indent-6{padding-inline-start:180px;}.ql-indent-7{padding-inline-start:210px;}.ql-indent-8{padding-inline-start:240px;}.ql-indent-9{padding-inline-start:270px;}.ql-indent-10{padding-inline-start:300px;}.video-container{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;}.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%;}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;")),
10
+ default: theme => /*#__PURE__*/(0, _react.css)("padding:0px!important;font-size:16px;color:", theme.defaultText, ";max-width:100%;*{max-width:100%;}h1,h2,h3,h4,h5,h6,p,ul,ol{margin:0;font-size:revert;}a{color:", theme.primary, ";text-decoration:underline;cursor:pointer;}li::marker{margin-right:0.5em;}p{min-height:22px;margin-bottom:1em;}ul{list-style-type:disc;padding-left:40px;}ul ul{list-style-type:circle;}ul ul ul{list-style-type:square;}ol{list-style-type:decimal;padding-left:40px;}.ql-indent-1{padding-inline-start:30px;}.ql-indent-2{padding-inline-start:60px;}.ql-indent-3{padding-inline-start:90px;}.ql-indent-4{padding-inline-start:120px;}.ql-indent-5{padding-inline-start:150px;}.ql-indent-6{padding-inline-start:180px;}.ql-indent-7{padding-inline-start:210px;}.ql-indent-8{padding-inline-start:240px;}.ql-indent-9{padding-inline-start:270px;}.ql-indent-10{padding-inline-start:300px;}.video-container{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;}.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%;}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;")),
11
11
  secondary: theme => /*#__PURE__*/(0, _react.css)({
12
12
  color: theme.secondary
13
13
  }, process.env.NODE_ENV === "production" ? "" : ";label:secondary;"),
@@ -45,7 +45,7 @@ const Input = /*#__PURE__*/_react.default.forwardRef(({
45
45
  return val;
46
46
  };
47
47
  const handleNumberOnlyFormatting = val => {
48
- const onlyNumbers = val.replace(/[^\d\s-]/g, '');
48
+ const onlyNumbers = val.replace(/[^\d\s]/g, '');
49
49
  getFormattedNumber && getFormattedNumber(onlyNumbers);
50
50
  return onlyNumbers;
51
51
  };
@@ -64,11 +64,9 @@ const Input = /*#__PURE__*/_react.default.forwardRef(({
64
64
  };
65
65
  const handleBlur = e => {
66
66
  if (variant === 'formattedNumber') {
67
- const onlyNumbers = value.toString().replace(/[^\d\s-]/g, '');
68
- const num = onlyNumbers.toString();
69
- const parts = num.split('.');
70
- parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
71
- setValueChanged(parts.join('.'));
67
+ const onlyNumbers = value.toString().replace(/[^\d]/g, '');
68
+ const formatedNumbersWithSpace = onlyNumbers.replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
69
+ setValueChanged(formatedNumbersWithSpace);
72
70
  }
73
71
  props.onBlur && props.onBlur(e);
74
72
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Html.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Html/Html.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,IAAI,MAAM,GAAG,CAAA;AAEpB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAG3B,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,WAAW,EAAE,KAOzB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAK1B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAmBxB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAA"}
1
+ {"version":3,"file":"Html.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Html/Html.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,IAAI,MAAM,GAAG,CAAA;AAEpB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAG3B,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,WAAW,EAAE,KAQzB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAK1B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAmBxB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAA"}
@@ -16,7 +16,8 @@ const HtmlDefault = exports.HtmlDefault = {
16
16
  name: 'Html',
17
17
  args: {
18
18
  allowVideo: true,
19
- text: `<ol><li>test</li><li>test</li><li>est <ol><li>test<ol><li>test</li><li>test</li><li>test</li></ol></li></ol></li></ol><br /><ul><li>test</li><li>test<ul><li>test</li></ul></li></ul> 50`
19
+ text: `<h1>WroomWroom</h1><h2>test</h2><h3>test</h3><h4>test</h4><p><br /></p><ol><li>test</li><li>test<ol><li>test<ol><li>test</li><li>test</li></ol></li></ol></li></ol><ul><li>test<ul><li>test<ul><li>test</li></ul></li></ul></li></ul><p><br /></p><p><img src=\"https://bbldpublicationsstgtest.blob.core.windows.net/bbldtest02/37e9fbd2-14d1-4c59-9f23-0c67d57942e9/27982f6f-542c-46cc-90c6-a365a38e6d40?sv=2024-11-04&amp;se=2040-03-21T12%3A07%3A44Z&amp;sr=b&amp;sp=r&amp;sig=1WCwtE53sk9adHcHrhVGZhuD8iU5lfKIAJzFToVBR90%3D\"></p><p>Nytt bilde</p><p><img src=\"https://bbldpublicationsstgtest.blob.core.windows.net/bbldtest02/37e9fbd2-14d1-4c59-9f23-0c67d57942e9/6768e119-627d-4981-9d70-77bea58d2794?sv=2024-11-04&amp;se=2040-03-09T08%3A07%3A03Z&amp;sr=b&amp;sp=r&amp;sig=VJSLebAwU3%2FA5aFJ3xRL6N18611SO%2BNk5YXKTOaoKkc%3D\"></p><p>tekst under bildet</p><p><br /></p><p><div>\uFEFF<span contenteditable=\"false\"><div class=\"video-container\"><br /> <iframe src=\"https://www.youtube.com/embed/hQlXebNPQAU?showinfo=0\" frameborder=\"0\" allowfullscreen=\"\"></iframe><br /> </div></span>\uFEFF</div></p>",
20
+ st<ol><li>test</li><li>test</li><li>test</li></ol></li></ol></li></ol><br /><ul><li>test</li><li>test<ul><li>test</li></ul></li></ul>`
20
21
  }
21
22
  };
22
23
  const HTMLLongText = exports.HTMLLongText = {
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Html/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,QAAA,MAAM,MAAM;qBACO,SAAS;uBAsGP,SAAS;kBAId,SAAS;iBAIV,MAAM;wBACC,MAAM;;CAkB3B,CAAA;AAED,eAAe,MAAM,CAAA;AAErB,OAAO,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Html/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,QAAA,MAAM,MAAM;qBACO,SAAS;uBAuGP,SAAS;kBAId,SAAS;iBAIV,MAAM;wBACC,MAAM;;CAkB3B,CAAA;AAED,eAAe,MAAM,CAAA;AAErB,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -7,7 +7,7 @@ exports.styles = exports.default = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
9
9
  const styles = exports.styles = {
10
- default: theme => /*#__PURE__*/(0, _react.css)("padding:0px!important;font-size:16px;color:", theme.defaultText, ";max-width:100%;*{max-width:100%;}h1,h2,h3,h4,h5,h6,p,ul,ol{margin:0;}a{color:", theme.primary, ";text-decoration:underline;cursor:pointer;}li::marker{margin-right:0.5em;}p{min-height:22px;margin-bottom:1em;}ul{list-style-type:disc;padding-left:40px;}ul ul{list-style-type:circle;}ul ul ul{list-style-type:square;}ol{list-style-type:decimal;padding-left:40px;}.ql-indent-1{padding-inline-start:30px;}.ql-indent-2{padding-inline-start:60px;}.ql-indent-3{padding-inline-start:90px;}.ql-indent-4{padding-inline-start:120px;}.ql-indent-5{padding-inline-start:150px;}.ql-indent-6{padding-inline-start:180px;}.ql-indent-7{padding-inline-start:210px;}.ql-indent-8{padding-inline-start:240px;}.ql-indent-9{padding-inline-start:270px;}.ql-indent-10{padding-inline-start:300px;}.video-container{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;}.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%;}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;")),
10
+ default: theme => /*#__PURE__*/(0, _react.css)("padding:0px!important;font-size:16px;color:", theme.defaultText, ";max-width:100%;*{max-width:100%;}h1,h2,h3,h4,h5,h6,p,ul,ol{margin:0;font-size:revert;}a{color:", theme.primary, ";text-decoration:underline;cursor:pointer;}li::marker{margin-right:0.5em;}p{min-height:22px;margin-bottom:1em;}ul{list-style-type:disc;padding-left:40px;}ul ul{list-style-type:circle;}ul ul ul{list-style-type:square;}ol{list-style-type:decimal;padding-left:40px;}.ql-indent-1{padding-inline-start:30px;}.ql-indent-2{padding-inline-start:60px;}.ql-indent-3{padding-inline-start:90px;}.ql-indent-4{padding-inline-start:120px;}.ql-indent-5{padding-inline-start:150px;}.ql-indent-6{padding-inline-start:180px;}.ql-indent-7{padding-inline-start:210px;}.ql-indent-8{padding-inline-start:240px;}.ql-indent-9{padding-inline-start:270px;}.ql-indent-10{padding-inline-start:300px;}.video-container{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;}.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%;}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;")),
11
11
  secondary: theme => /*#__PURE__*/(0, _react.css)({
12
12
  color: theme.secondary
13
13
  }, process.env.NODE_ENV === "production" ? "" : ";label:secondary;"),
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Input/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAEZ,8BAA8B,EAE/B,MAAM,OAAO,CAAA;AAUd,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IACxE,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAA;IACrE,kBAA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CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,CAAC,EAAE,8BAA8B,CAAA;IAC7C;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,iBAAiB,CAAA;IACvC,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C;AAED,MAAM,MAAM,GAAG,GAAG,gBAAgB,CAAA;AAElC,QAAA,MAAM,KAAK,qFAmLV,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -45,7 +45,7 @@ const Input = /*#__PURE__*/_react.default.forwardRef(({
45
45
  return val;
46
46
  };
47
47
  const handleNumberOnlyFormatting = val => {
48
- const onlyNumbers = val.replace(/[^\d\s-]/g, '');
48
+ const onlyNumbers = val.replace(/[^\d\s]/g, '');
49
49
  getFormattedNumber && getFormattedNumber(onlyNumbers);
50
50
  return onlyNumbers;
51
51
  };
@@ -64,11 +64,9 @@ const Input = /*#__PURE__*/_react.default.forwardRef(({
64
64
  };
65
65
  const handleBlur = e => {
66
66
  if (variant === 'formattedNumber') {
67
- const onlyNumbers = value.toString().replace(/[^\d\s-]/g, '');
68
- const num = onlyNumbers.toString();
69
- const parts = num.split('.');
70
- parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
71
- setValueChanged(parts.join('.'));
67
+ const onlyNumbers = value.toString().replace(/[^\d]/g, '');
68
+ const formatedNumbersWithSpace = onlyNumbers.replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
69
+ setValueChanged(formatedNumbersWithSpace);
72
70
  }
73
71
  props.onBlur && props.onBlur(e);
74
72
  };
@@ -5,15 +5,15 @@ export declare const basicToolbar: (string[] | ({
5
5
  indent: string;
6
6
  list?: undefined;
7
7
  })[])[];
8
- export declare const richToolbar: (string[] | {
9
- header: (number | boolean)[];
10
- }[] | ({
8
+ export declare const richToolbar: (string[] | ({
11
9
  list: string;
12
10
  indent?: undefined;
13
11
  } | {
14
12
  indent: string;
15
13
  list?: undefined;
16
14
  })[] | {
15
+ header: (number | boolean)[];
16
+ }[] | {
17
17
  align: string;
18
18
  }[])[];
19
19
  //# sourceMappingURL=config.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbl-digital/snorre",
3
- "version": "4.3.8",
3
+ "version": "4.3.10",
4
4
  "description": "Design library for BBL Digital",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",
@@ -39,7 +39,7 @@
39
39
  "react-player": "^2.12.0",
40
40
  "react-stately": "^3.21.0",
41
41
  "react-test-renderer": "^18.2.0",
42
- "recharts": "2.1.16",
42
+ "recharts": "2.15.3",
43
43
  "vite": "^4.3.6"
44
44
  },
45
45
  "peerDependencies": {