@difizen/libro-markdown 0.3.16 → 1.0.1
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/es/config-contribution.d.ts +2 -2
- package/es/config-contribution.d.ts.map +1 -1
- package/es/config-contribution.js +2 -2
- package/es/config.d.ts +1 -1
- package/es/config.d.ts.map +1 -1
- package/es/config.js +1 -1
- package/es/markdown-render.d.ts +1 -1
- package/es/markdown-render.d.ts.map +1 -1
- package/es/markdown-render.js +1 -1
- package/es/module.d.ts +1 -1
- package/es/module.d.ts.map +1 -1
- package/es/module.js +1 -1
- package/package.json +2 -3
- package/src/config-contribution.ts +2 -2
- package/src/config.ts +2 -2
- package/src/markdown-render.ts +1 -1
- package/src/module.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigurationContribution } from '@difizen/
|
|
1
|
+
import { ConfigurationContribution } from '@difizen/libro-common/app';
|
|
2
2
|
export declare class LibroMarkdownSettingContribution implements ConfigurationContribution {
|
|
3
|
-
registerConfigurations(): import("@difizen/
|
|
3
|
+
registerConfigurations(): import("@difizen/libro-common/app").ConfigurationNode<boolean>[];
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=config-contribution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-contribution.d.ts","sourceRoot":"","sources":["../src/config-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"config-contribution.d.ts","sourceRoot":"","sources":["../src/config-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAKtE,qBACa,gCAAiC,YAAW,yBAAyB;IAChF,sBAAsB;CAGvB"}
|
|
@@ -5,8 +5,8 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
5
5
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
-
import { ConfigurationContribution } from '@difizen/
|
|
9
|
-
import { singleton } from '@difizen/
|
|
8
|
+
import { ConfigurationContribution } from '@difizen/libro-common/app';
|
|
9
|
+
import { singleton } from '@difizen/libro-common/app';
|
|
10
10
|
import { LibroMarkdownConfiguration } from "./config.js";
|
|
11
11
|
export var LibroMarkdownSettingContribution = (_dec = singleton({
|
|
12
12
|
contrib: ConfigurationContribution
|
package/es/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConfigurationNode } from '@difizen/
|
|
1
|
+
import type { ConfigurationNode } from '@difizen/libro-common/app';
|
|
2
2
|
export declare const LibroConfigLinkTargetToBlank: ConfigurationNode<boolean>;
|
|
3
3
|
export declare const LibroMarkdownConfiguration: {
|
|
4
4
|
TargetToBlank: ConfigurationNode<boolean>;
|
package/es/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,eAAO,MAAM,4BAA4B,EAAE,iBAAiB,CAAC,OAAO,CASnE,CAAC;AAEF,eAAO,MAAM,0BAA0B;;CAEtC,CAAC"}
|
package/es/config.js
CHANGED
package/es/markdown-render.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigurationService } from '@difizen/
|
|
1
|
+
import { ConfigurationService } from '@difizen/libro-common/app';
|
|
2
2
|
import MarkdownIt from 'markdown-it';
|
|
3
3
|
import type { MarkdownRenderOption } from './markdown-protocol.js';
|
|
4
4
|
import { MarkdownParser } from './markdown-protocol.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-render.d.ts","sourceRoot":"","sources":["../src/markdown-render.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAIrB,MAAM,
|
|
1
|
+
{"version":3,"file":"markdown-render.d.ts","sourceRoot":"","sources":["../src/markdown-render.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EAIrB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,UAAU,MAAM,aAAa,CAAC;AAKrC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,0BAA0B,CAAC;AAElC,qBACa,cAAe,YAAW,cAAc;IACnD,SAAS,CAAC,GAAG,EAAE,UAAU,CAAC;IAC1B,OAAO,wBAAW;IAClB,eAAe,UAAS;IACM,SAAS,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAGnF,IAAI;IA4DJ,OAAO,CAAC,YAAY;IAsDpB,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,MAAM;CAIrE"}
|
package/es/markdown-render.js
CHANGED
|
@@ -8,7 +8,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
8
8
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
9
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
10
10
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
11
|
-
import { ConfigurationService, inject, postConstruct, singleton } from '@difizen/
|
|
11
|
+
import { ConfigurationService, inject, postConstruct, singleton } from '@difizen/libro-common/app';
|
|
12
12
|
import latexPlugin from '@traptitech/markdown-it-katex';
|
|
13
13
|
import MarkdownIt from 'markdown-it';
|
|
14
14
|
import sanitizeHtml from 'sanitize-html';
|
package/es/module.d.ts
CHANGED
package/es/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAMvD,eAAO,MAAM,cAAc,YAI1B,CAAC"}
|
package/es/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ManaModule } from '@difizen/
|
|
1
|
+
import { ManaModule } from '@difizen/libro-common/app';
|
|
2
2
|
import { LibroMarkdownSettingContribution } from "./config-contribution.js";
|
|
3
3
|
import { MarkdownParser } from "./markdown-protocol.js";
|
|
4
4
|
import { MarkdownRender } from "./markdown-render.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-markdown",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -33,8 +33,7 @@
|
|
|
33
33
|
"src"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@difizen/
|
|
37
|
-
"@difizen/mana-l10n": "latest",
|
|
36
|
+
"@difizen/libro-common": "^1.0.1",
|
|
38
37
|
"@traptitech/markdown-it-katex": "^3.6.0",
|
|
39
38
|
"@types/markdown-it": "^12.2.3",
|
|
40
39
|
"katex": "^0.16.10",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigurationContribution } from '@difizen/
|
|
2
|
-
import { singleton } from '@difizen/
|
|
1
|
+
import { ConfigurationContribution } from '@difizen/libro-common/app';
|
|
2
|
+
import { singleton } from '@difizen/libro-common/app';
|
|
3
3
|
|
|
4
4
|
import { LibroMarkdownConfiguration } from './config.js';
|
|
5
5
|
|
package/src/config.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConfigurationNode } from '@difizen/
|
|
2
|
-
import { l10n } from '@difizen/
|
|
1
|
+
import type { ConfigurationNode } from '@difizen/libro-common/app';
|
|
2
|
+
import { l10n } from '@difizen/libro-common/l10n';
|
|
3
3
|
|
|
4
4
|
export const LibroConfigLinkTargetToBlank: ConfigurationNode<boolean> = {
|
|
5
5
|
id: 'libro.markdown.link.target.to.blank',
|
package/src/markdown-render.ts
CHANGED
package/src/module.ts
CHANGED