@theia/preview 1.67.0-next.13 → 1.67.0-next.56
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/README.md +1 -1
- package/package.json +7 -9
- package/src/browser/markdown/markdown-preview-handler.spec.ts +7 -7
- package/src/browser/markdown/markdown-preview-handler.ts +3 -4
- package/lib/browser/index.d.ts +0 -4
- package/lib/browser/index.d.ts.map +0 -1
- package/lib/browser/index.js +0 -21
- package/lib/browser/index.js.map +0 -1
- package/lib/browser/markdown/index.d.ts +0 -2
- package/lib/browser/markdown/index.d.ts.map +0 -1
- package/lib/browser/markdown/index.js +0 -20
- package/lib/browser/markdown/index.js.map +0 -1
- package/lib/browser/markdown/markdown-preview-handler.d.ts +0 -29
- package/lib/browser/markdown/markdown-preview-handler.d.ts.map +0 -1
- package/lib/browser/markdown/markdown-preview-handler.js +0 -294
- package/lib/browser/markdown/markdown-preview-handler.js.map +0 -1
- package/lib/browser/markdown/markdown-preview-handler.spec.d.ts +0 -2
- package/lib/browser/markdown/markdown-preview-handler.spec.d.ts.map +0 -1
- package/lib/browser/markdown/markdown-preview-handler.spec.js +0 -194
- package/lib/browser/markdown/markdown-preview-handler.spec.js.map +0 -1
- package/lib/browser/preview-contribution.d.ts +0 -51
- package/lib/browser/preview-contribution.d.ts.map +0 -1
- package/lib/browser/preview-contribution.js +0 -256
- package/lib/browser/preview-contribution.js.map +0 -1
- package/lib/browser/preview-frontend-module.d.ts +0 -6
- package/lib/browser/preview-frontend-module.d.ts.map +0 -1
- package/lib/browser/preview-frontend-module.js +0 -53
- package/lib/browser/preview-frontend-module.js.map +0 -1
- package/lib/browser/preview-handler.d.ts +0 -105
- package/lib/browser/preview-handler.d.ts.map +0 -1
- package/lib/browser/preview-handler.js +0 -66
- package/lib/browser/preview-handler.js.map +0 -1
- package/lib/browser/preview-link-normalizer.d.ts +0 -8
- package/lib/browser/preview-link-normalizer.d.ts.map +0 -1
- package/lib/browser/preview-link-normalizer.js +0 -47
- package/lib/browser/preview-link-normalizer.js.map +0 -1
- package/lib/browser/preview-uri.d.ts +0 -9
- package/lib/browser/preview-uri.d.ts.map +0 -1
- package/lib/browser/preview-uri.js +0 -48
- package/lib/browser/preview-uri.js.map +0 -1
- package/lib/browser/preview-widget.d.ts +0 -55
- package/lib/browser/preview-widget.d.ts.map +0 -1
- package/lib/browser/preview-widget.js +0 -251
- package/lib/browser/preview-widget.js.map +0 -1
- package/lib/common/preview-preferences.d.ts +0 -14
- package/lib/common/preview-preferences.d.ts.map +0 -1
- package/lib/common/preview-preferences.js +0 -48
- package/lib/common/preview-preferences.js.map +0 -1
- package/lib/node/preview-backend-module.d.ts +0 -4
- package/lib/node/preview-backend-module.d.ts.map +0 -1
- package/lib/node/preview-backend-module.js +0 -23
- package/lib/node/preview-backend-module.js.map +0 -1
- package/lib/package.spec.d.ts +0 -1
- package/lib/package.spec.d.ts.map +0 -1
- package/lib/package.spec.js +0 -26
- package/lib/package.spec.js.map +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { interfaces } from '@theia/core/shared/inversify';
|
|
2
|
-
import { PreferenceService } from '@theia/core/lib/common/preferences/preference-service';
|
|
3
|
-
import { PreferenceProxy } from '@theia/core/lib/common/preferences/preference-proxy';
|
|
4
|
-
import { PreferenceSchema } from '@theia/core/lib/common/preferences/preference-schema';
|
|
5
|
-
export declare const PreviewConfigSchema: PreferenceSchema;
|
|
6
|
-
export interface PreviewConfiguration {
|
|
7
|
-
'preview.openByDefault': boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const PreviewPreferenceContribution: unique symbol;
|
|
10
|
-
export declare const PreviewPreferences: unique symbol;
|
|
11
|
-
export type PreviewPreferences = PreferenceProxy<PreviewConfiguration>;
|
|
12
|
-
export declare function createPreviewPreferences(preferences: PreferenceService, schema?: PreferenceSchema): PreviewPreferences;
|
|
13
|
-
export declare function bindPreviewPreferences(bind: interfaces.Bind): void;
|
|
14
|
-
//# sourceMappingURL=preview-preferences.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preview-preferences.d.ts","sourceRoot":"","sources":["../../src/common/preview-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE1F,OAAO,EAAyB,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAC7G,OAAO,EAA0B,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAEhH,eAAO,MAAM,mBAAmB,EAAE,gBAQjC,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACjC,uBAAuB,EAAE,OAAO,CAAC;CACpC;AAED,eAAO,MAAM,6BAA6B,eAA0C,CAAC;AACrF,eAAO,MAAM,kBAAkB,eAA+B,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAEvE,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAE,gBAAsC,GAAG,kBAAkB,CAE3I;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAQlE"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2018 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.bindPreviewPreferences = exports.createPreviewPreferences = exports.PreviewPreferences = exports.PreviewPreferenceContribution = exports.PreviewConfigSchema = void 0;
|
|
19
|
-
const preference_service_1 = require("@theia/core/lib/common/preferences/preference-service");
|
|
20
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
21
|
-
const preference_proxy_1 = require("@theia/core/lib/common/preferences/preference-proxy");
|
|
22
|
-
const preference_schema_1 = require("@theia/core/lib/common/preferences/preference-schema");
|
|
23
|
-
exports.PreviewConfigSchema = {
|
|
24
|
-
properties: {
|
|
25
|
-
'preview.openByDefault': {
|
|
26
|
-
type: 'boolean',
|
|
27
|
-
description: nls_1.nls.localize('theia/preview/openByDefault', 'Open the preview instead of the editor by default.'),
|
|
28
|
-
default: false
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
exports.PreviewPreferenceContribution = Symbol('PreviewPreferenceContribution');
|
|
33
|
-
exports.PreviewPreferences = Symbol('PreviewPreferences');
|
|
34
|
-
function createPreviewPreferences(preferences, schema = exports.PreviewConfigSchema) {
|
|
35
|
-
return (0, preference_proxy_1.createPreferenceProxy)(preferences, schema);
|
|
36
|
-
}
|
|
37
|
-
exports.createPreviewPreferences = createPreviewPreferences;
|
|
38
|
-
function bindPreviewPreferences(bind) {
|
|
39
|
-
bind(exports.PreviewPreferences).toDynamicValue(ctx => {
|
|
40
|
-
const preferences = ctx.container.get(preference_service_1.PreferenceService);
|
|
41
|
-
const contribution = ctx.container.get(exports.PreviewPreferenceContribution);
|
|
42
|
-
return createPreviewPreferences(preferences, contribution.schema);
|
|
43
|
-
}).inSingletonScope();
|
|
44
|
-
bind(exports.PreviewPreferenceContribution).toConstantValue({ schema: exports.PreviewConfigSchema });
|
|
45
|
-
bind(preference_schema_1.PreferenceContribution).toService(exports.PreviewPreferenceContribution);
|
|
46
|
-
}
|
|
47
|
-
exports.bindPreviewPreferences = bindPreviewPreferences;
|
|
48
|
-
//# sourceMappingURL=preview-preferences.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preview-preferences.js","sourceRoot":"","sources":["../../src/common/preview-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAGhF,8FAA0F;AAC1F,oDAAiD;AACjD,0FAA6G;AAC7G,4FAAgH;AAEnG,QAAA,mBAAmB,GAAqB;IACjD,UAAU,EAAE;QACR,uBAAuB,EAAE;YACrB,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,SAAG,CAAC,QAAQ,CAAC,6BAA6B,EAAE,oDAAoD,CAAC;YAC9G,OAAO,EAAE,KAAK;SACjB;KACJ;CACJ,CAAC;AAMW,QAAA,6BAA6B,GAAG,MAAM,CAAC,+BAA+B,CAAC,CAAC;AACxE,QAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;AAG/D,SAAgB,wBAAwB,CAAC,WAA8B,EAAE,SAA2B,2BAAmB;IACnH,OAAO,IAAA,wCAAqB,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC;AAFD,4DAEC;AAED,SAAgB,sBAAsB,CAAC,IAAqB;IACxD,IAAI,CAAC,0BAAkB,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;QAC1C,MAAM,WAAW,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAoB,sCAAiB,CAAC,CAAC;QAC5E,MAAM,YAAY,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAyB,qCAA6B,CAAC,CAAC;QAC9F,OAAO,wBAAwB,CAAC,WAAW,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACtB,IAAI,CAAC,qCAA6B,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,2BAAmB,EAAE,CAAC,CAAC;IACrF,IAAI,CAAC,0CAAsB,CAAC,CAAC,SAAS,CAAC,qCAA6B,CAAC,CAAC;AAC1E,CAAC;AARD,wDAQC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preview-backend-module.d.ts","sourceRoot":"","sources":["../../src/node/preview-backend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAG/D,wBAEG"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2025 STMicroelectronics and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
19
|
-
const preview_preferences_1 = require("../common/preview-preferences");
|
|
20
|
-
exports.default = new inversify_1.ContainerModule(bind => {
|
|
21
|
-
(0, preview_preferences_1.bindPreviewPreferences)(bind);
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=preview-backend-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preview-backend-module.js","sourceRoot":"","sources":["../../src/node/preview-backend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,4DAA+D;AAC/D,uEAAuE;AAEvE,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAA,4CAAsB,EAAC,IAAI,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC"}
|
package/lib/package.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=package.spec.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.d.ts","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":""}
|
package/lib/package.spec.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2018 TypeFox and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
/* note: this bogus test file is required so that
|
|
17
|
-
we are able to run mocha unit tests on this
|
|
18
|
-
package, without having any actual unit tests in it.
|
|
19
|
-
This way a coverage report will be generated,
|
|
20
|
-
showing 0% coverage, instead of no report.
|
|
21
|
-
This file can be removed once we have real unit
|
|
22
|
-
tests in place. */
|
|
23
|
-
describe('preview package', () => {
|
|
24
|
-
it('support code coverage statistics', () => true);
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=package.spec.js.map
|
package/lib/package.spec.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF;;;;;;qBAMqB;AAErB,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAE7B,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC;AAEvD,CAAC,CAAC,CAAC"}
|