@startinblox/core 0.17.25 → 0.17.27

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,"sources":["index.ts"],"names":["AutocompletionMixin","RichtextMixin","callbackDirectory","autocompletion","richtext"],"mappings":"AAAA,SAASA,mBAAT,QAAoC,uBAApC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AAEA,MAAMC,iBAAiB,GAAG;AACxBC,EAAAA,cAAc,EAAEH,mBADQ;AAExBI,EAAAA,QAAQ,EAAEH;AAFc,CAA1B;AAKA,SACEC,iBADF,EAEEF,mBAFF,EAGEC,aAHF","sourcesContent":["import { AutocompletionMixin } from './autocompletionMixin';\nimport { RichtextMixin } from './richtextMixin';\n\nconst callbackDirectory = {\n autocompletion: AutocompletionMixin,\n richtext: RichtextMixin\n}\n\nexport {\n callbackDirectory,\n AutocompletionMixin,\n RichtextMixin\n}\n"]}
1
+ {"version":3,"sources":["index.ts"],"names":["AutocompletionMixin","RichtextMixin","callbackDirectory","autocompletion","richtext"],"mappings":"AAAA,SAASA,mBAAT,QAAoC,uBAApC;AACA,SAASC,aAAT,QAA8B,iBAA9B;AAEA,MAAMC,iBAAiB,GAAG;AACxBC,EAAAA,cAAc,EAAEH,mBADQ;AAExBI,EAAAA,QAAQ,EAAEH;AAFc,CAA1B;AAKA,SACEC,iBADF,EAEEF,mBAFF,EAGEC,aAHF","sourcesContent":["import { AutocompletionMixin } from './autocompletionMixin';\nimport { RichtextMixin } from './richtextMixin';\n\nconst callbackDirectory = {\n autocompletion: AutocompletionMixin,\n richtext: RichtextMixin,\n}\n\nexport {\n callbackDirectory,\n AutocompletionMixin,\n RichtextMixin,\n}\n"]}
@@ -11,7 +11,10 @@ const MarkdownMixin = {
11
11
  let newValue = '';
12
12
 
13
13
  if (value) {
14
- const md = markdownit();
14
+ const md = markdownit({
15
+ breaks: true,
16
+ html: false
17
+ });
15
18
  const html = md.render(value);
16
19
  newValue = unsafeHTML(html);
17
20
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["markdownMixin.ts"],"names":["unsafeHTML","markdownit","MarkdownMixin","name","created","listValueTransformations","push","transformValue","bind","value","newValue","md","html","render","nextProcessor","shift"],"mappings":"AAAA,SAASA,UAAT,QAA2B,iCAA3B;AAEA,OAAOC,UAAP,MAAuB,aAAvB;AAEA,MAAMC,aAAa,GAAG;AACpBC,EAAAA,IAAI,EAAE,gBADc;;AAEpBC,EAAAA,OAAO,GAAG;AACR,SAAKC,wBAAL,CAA8BC,IAA9B,CAAmC,KAAKC,cAAL,CAAoBC,IAApB,CAAyB,IAAzB,CAAnC;AACD,GAJmB;;AAKpBD,EAAAA,cAAc,CAACE,KAAD,EAAgBJ,wBAAhB,EAAsD;AAClE,QAAIK,QAAa,GAAG,EAApB;;AACA,QAAID,KAAJ,EAAW;AACT,YAAME,EAAE,GAAGV,UAAU,EAArB;AACA,YAAMW,IAAI,GAAGD,EAAE,CAACE,MAAH,CAAUJ,KAAV,CAAb;AACAC,MAAAA,QAAQ,GAAGV,UAAU,CAACY,IAAD,CAArB;AACD;;AAED,UAAME,aAAa,GAAGT,wBAAwB,CAACU,KAAzB,EAAtB;AACA,QAAGD,aAAH,EAAkBA,aAAa,CAACJ,QAAD,EAAWL,wBAAX,CAAb;AACnB;;AAfmB,CAAtB;AAkBA,SACEH,aADF","sourcesContent":["import { unsafeHTML } from 'lit-html/directives/unsafe-html';\n\nimport markdownit from 'markdown-it';\n\nconst MarkdownMixin = {\n name: 'markdown-mixin',\n created() {\n this.listValueTransformations.push(this.transformValue.bind(this));\n },\n transformValue(value: string, listValueTransformations: Function[]) {\n let newValue: any = '';\n if (value) {\n const md = markdownit();\n const html = md.render(value);\n newValue = unsafeHTML(html);\n }\n\n const nextProcessor = listValueTransformations.shift();\n if(nextProcessor) nextProcessor(newValue, listValueTransformations);\n }\n}\n\nexport {\n MarkdownMixin\n}"]}
1
+ {"version":3,"sources":["markdownMixin.ts"],"names":["unsafeHTML","markdownit","MarkdownMixin","name","created","listValueTransformations","push","transformValue","bind","value","newValue","md","breaks","html","render","nextProcessor","shift"],"mappings":"AAAA,SAASA,UAAT,QAA2B,iCAA3B;AAEA,OAAOC,UAAP,MAAuB,aAAvB;AAEA,MAAMC,aAAa,GAAG;AACpBC,EAAAA,IAAI,EAAE,gBADc;;AAEpBC,EAAAA,OAAO,GAAG;AACR,SAAKC,wBAAL,CAA8BC,IAA9B,CAAmC,KAAKC,cAAL,CAAoBC,IAApB,CAAyB,IAAzB,CAAnC;AACD,GAJmB;;AAKpBD,EAAAA,cAAc,CAACE,KAAD,EAAgBJ,wBAAhB,EAAsD;AAClE,QAAIK,QAAa,GAAG,EAApB;;AACA,QAAID,KAAJ,EAAW;AACT,YAAME,EAAE,GAAGV,UAAU,CAAC;AACpBW,QAAAA,MAAM,EAAE,IADY;AAEpBC,QAAAA,IAAI,EAAE;AAFc,OAAD,CAArB;AAKA,YAAMA,IAAI,GAAGF,EAAE,CAACG,MAAH,CAAUL,KAAV,CAAb;AACAC,MAAAA,QAAQ,GAAGV,UAAU,CAACa,IAAD,CAArB;AACD;;AAED,UAAME,aAAa,GAAGV,wBAAwB,CAACW,KAAzB,EAAtB;AACA,QAAGD,aAAH,EAAkBA,aAAa,CAACL,QAAD,EAAWL,wBAAX,CAAb;AACnB;;AAnBmB,CAAtB;AAsBA,SACEH,aADF","sourcesContent":["import { unsafeHTML } from 'lit-html/directives/unsafe-html';\n\nimport markdownit from 'markdown-it';\n\nconst MarkdownMixin = {\n name: 'markdown-mixin',\n created() {\n this.listValueTransformations.push(this.transformValue.bind(this));\n },\n transformValue(value: string, listValueTransformations: Function[]) {\n let newValue: any = '';\n if (value) {\n const md = markdownit({\n breaks: true,\n html: false\n });\n\n const html = md.render(value);\n newValue = unsafeHTML(html);\n }\n\n const nextProcessor = listValueTransformations.shift();\n if(nextProcessor) nextProcessor(newValue, listValueTransformations);\n }\n}\n\nexport {\n MarkdownMixin\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/core",
3
- "version": "0.17.25",
3
+ "version": "0.17.27",
4
4
  "description": "This is a series of web component respecting both the web components standards and the Linked Data Platform convention.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -83,6 +83,7 @@
83
83
  "babel-plugin-remove-import-js-extension": "0.0.3",
84
84
  "body-parser": "^1.19.0",
85
85
  "cypress": "^6.6.0",
86
+ "cypress-iframe": "^1.0.1",
86
87
  "cypress-plugin-tab": "^1.0.5",
87
88
  "delta-markdown-for-quill": "0.0.9",
88
89
  "dialog-polyfill": "^0.5.6",
@@ -105,5 +106,8 @@
105
106
  "tui-calendar": "^1.13.0",
106
107
  "typescript": "^4.1.3",
107
108
  "wait-on": "^5.2.1"
109
+ },
110
+ "dependencies": {
111
+ "cors": "^2.8.5"
108
112
  }
109
113
  }