@omegagrid/markdown 0.4.46 → 0.4.47
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/dist/loader.js +1 -1
- package/dist/loader.js.map +1 -1
- package/package.json +6 -6
package/dist/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _a,_MilkdownLoader_milkdown,__classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(e,i,t,o){if("a"===t&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof i?e!==i||!o:!i.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?o:"a"===t?o.call(e):o?o.value:i.get(e)},__classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(e,i,t,o,a){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof i?e!==i||!a:!i.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?a.call(e,t):a?a.value=t:i.set(e,t),t};import{ScriptLoader}from"@omegagrid/core/dist/common/
|
|
1
|
+
var _a,_MilkdownLoader_milkdown,__classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(e,i,t,o){if("a"===t&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof i?e!==i||!o:!i.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?o:"a"===t?o.call(e):o?o.value:i.get(e)},__classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(e,i,t,o,a){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof i?e!==i||!a:!i.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?a.call(e,t):a?a.value=t:i.set(e,t),t};import{ScriptLoader}from"@omegagrid/core/dist/common/loaders";export const md={};export class MilkdownLoader{static init(e){_a.milkdownPath=e}static async get(){return __classPrivateFieldGet(this,_a,"f",_MilkdownLoader_milkdown)||__classPrivateFieldSet(this,_a,await this.load(),"f",_MilkdownLoader_milkdown),Object.assign(md,__classPrivateFieldGet(this,_a,"f",_MilkdownLoader_milkdown)),__classPrivateFieldGet(this,_a,"f",_MilkdownLoader_milkdown)}static getSync(){return __classPrivateFieldGet(this,_a,"f",_MilkdownLoader_milkdown)}static async load(){return window.Milkdown?window.Milkdown:new Promise(((e,i)=>ScriptLoader.load(this.milkdownPath).then((()=>{window.Milkdown?e(window.Milkdown):i("Failed to load Milkdown")})).catch((e=>{console.error("Failed to load Milkdown",e),i(e)}))))}}_a=MilkdownLoader,_MilkdownLoader_milkdown={value:void 0};
|
package/dist/loader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAQnE,MAAM,CAAC,MAAM,EAAE,GAA6B,EAAE,CAAC;AAE/C,MAAM,OAAO,cAAc;IAK1B,MAAM,CAAC,IAAI,CAAC,IAAY;QACvB,EAAc,CAAC,YAAY,GAAG,IAAI,CAAC;IACpC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,GAAG;QACf,IAAI,CAAC,uBAAA,IAAI,oCAAU;YAAE,uBAAA,IAAI,MAAa,MAAM,IAAI,CAAC,IAAI,EAAE,gCAAA,CAAC;QACxD,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,uBAAA,IAAI,oCAAU,CAAC,CAAC;QAClC,OAAO,uBAAA,IAAI,oCAAU,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,OAAO;QACb,OAAO,uBAAA,IAAI,oCAAU,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAAI;QAChB,IAAI,MAAM,CAAC,QAAQ;YAAE,OAAO,MAAM,CAAC,QAAQ,CAAC;QAE5C,OAAO,IAAI,OAAO,CAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;YACvG,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;gBACrB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC1B,CAAC;iBAAM,CAAC;gBACP,MAAM,CAAC,yBAAyB,CAAC,CAAC;YACnC,CAAC;QACF,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;YAClB,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;YAChD,MAAM,CAAC,KAAK,CAAC,CAAC;QACf,CAAC,CAAC,CAAC,CAAC;IACL,CAAC;CAED;;AA/BO,4CAAS,CAAkB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omegagrid/markdown",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.47",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "Markdown view webcomponent",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@fortawesome/fontawesome-svg-core": "6.4.2",
|
|
31
|
-
"@omegagrid/code": "^0.4.
|
|
32
|
-
"@omegagrid/core": "^0.4.
|
|
33
|
-
"@omegagrid/localize": "^0.4.
|
|
34
|
-
"@omegagrid/milkdown-kit": "^0.4.
|
|
35
|
-
"@omegagrid/tabs": "^0.4.
|
|
31
|
+
"@omegagrid/code": "^0.4.47",
|
|
32
|
+
"@omegagrid/core": "^0.4.47",
|
|
33
|
+
"@omegagrid/localize": "^0.4.47",
|
|
34
|
+
"@omegagrid/milkdown-kit": "^0.4.47",
|
|
35
|
+
"@omegagrid/tabs": "^0.4.47",
|
|
36
36
|
"@riovir/wc-fontawesome": "^0.1.9",
|
|
37
37
|
"lit": "^3.1.1",
|
|
38
38
|
"markdown-it": "^14.1.0",
|