@textbus/core
Advanced tools
Comparing version 1.0.0-beta.10 to 1.0.0-beta.11
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
export declare function makeError(name: string): (message: string) => Error; |
@@ -0,0 +0,0 @@ export function makeError(name) { |
@@ -0,0 +0,0 @@ import { Injector, Type } from '@tanbo/di'; |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
@@ -0,0 +0,0 @@ export * from './di/_api'; |
@@ -0,0 +0,0 @@ export * from './di/_api'; |
@@ -0,0 +0,0 @@ import { Fragment } from './fragment'; |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
@@ -0,0 +0,0 @@ import { AbstractComponent } from './component'; |
@@ -0,0 +0,0 @@ import { AbstractComponent, parentFragmentAccessToken } from './component'; |
@@ -0,0 +0,0 @@ export * from './component'; |
@@ -0,0 +0,0 @@ export * from './component'; |
@@ -0,0 +0,0 @@ import { AbstractComponent } from '../component'; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { TypeDecorator, Provider } from '@tanbo/di'; |
import { makeClassDecorator } from '@tanbo/di'; | ||
export const Component = function ComponentDecorator(define) { | ||
if (!(this instanceof ComponentDecorator)) { | ||
return makeClassDecorator(ComponentDecorator, null, define); | ||
return makeClassDecorator(ComponentDecorator, define); | ||
} | ||
}; | ||
//# sourceMappingURL=component.js.map |
@@ -0,0 +0,0 @@ import { AbstractComponent } from '../component'; |
export class DynamicKeymap { | ||
} | ||
//# sourceMappingURL=dynamic-keymap.js.map |
@@ -0,0 +0,0 @@ import { AbstractComponent } from '../component'; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { AbstractComponent } from '../component'; |
export class MarkdownSupport { | ||
} | ||
//# sourceMappingURL=markdown-support.js.map |
@@ -0,0 +0,0 @@ import { Observable } from 'rxjs'; |
@@ -0,0 +0,0 @@ var _a; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { BlockFormatter, FormatRange, InlineFormatter } from './formatter'; |
@@ -0,0 +0,0 @@ import { BlockFormatter, FormatEffect } from './formatter'; |
@@ -0,0 +0,0 @@ import { FormatData } from './format-data'; |
@@ -0,0 +0,0 @@ import { FormatData } from './format-data'; |
@@ -0,0 +0,0 @@ import { Type } from '@tanbo/di'; |
@@ -0,0 +0,0 @@ var _a; |
@@ -0,0 +0,0 @@ import { Observable } from 'rxjs'; |
@@ -0,0 +0,0 @@ import { Subject } from 'rxjs'; |
@@ -0,0 +0,0 @@ import { VElement } from './element'; |
@@ -0,0 +0,0 @@ import { VElement, VTextNode } from './element'; |
@@ -0,0 +0,0 @@ import { Fragment } from './fragment'; |
@@ -0,0 +0,0 @@ import { Fragment } from './fragment'; |
@@ -0,0 +0,0 @@ import { Type } from '@tanbo/di'; |
@@ -0,0 +0,0 @@ import { Fragment } from './fragment'; |
@@ -0,0 +0,0 @@ import { Observable } from 'rxjs'; |
@@ -0,0 +0,0 @@ import { Subject } from 'rxjs'; |
@@ -0,0 +0,0 @@ import { Observable } from 'rxjs'; |
@@ -0,0 +0,0 @@ import { of, Subject, merge } from 'rxjs'; |
@@ -0,0 +0,0 @@ import { Observable } from 'rxjs'; |
@@ -0,0 +0,0 @@ import { BehaviorSubject } from 'rxjs'; |
@@ -0,0 +0,0 @@ import { Observable } from 'rxjs'; |
export {}; | ||
//# sourceMappingURL=editor-options.js.map |
@@ -0,0 +0,0 @@ import { Observable } from 'rxjs'; |
@@ -152,3 +152,3 @@ import { from, fromEvent, Observable, of, Subject } from 'rxjs'; | ||
classes.forEach(c => { | ||
const annotation = getAnnotations(c).getClassMetadata(Component).decoratorArguments[0]; | ||
const annotation = getAnnotations(c).getClassMetadata(Component).metadata; | ||
if (annotation.styles) { | ||
@@ -272,3 +272,3 @@ styles.push(...annotation.styles.filter(i => i)); | ||
this.componentAnnotations = [RootComponent, ...(this.options.components || []), BrComponent].map(c => { | ||
return getAnnotations(c).getClassMetadata(Component).decoratorArguments[0]; | ||
return getAnnotations(c).getClassMetadata(Component).metadata; | ||
}); | ||
@@ -312,4 +312,3 @@ this.setDocStyle(this.componentAnnotations, contentDocument); | ||
useValue: componentInjectors | ||
}, | ||
{ | ||
}, { | ||
provide: FileUploader, | ||
@@ -354,3 +353,3 @@ useFactory: (message, i18n) => { | ||
const metadata = getAnnotations(c).getClassMetadata(Component); | ||
const annotation = metadata.decoratorArguments[0]; | ||
const annotation = metadata.metadata; | ||
const componentInjector = new ReflectiveInjector(customInjector, annotation.providers || []); | ||
@@ -357,0 +356,0 @@ componentInjectors.set(c, componentInjector); |
@@ -0,0 +0,0 @@ import { Observable } from 'rxjs'; |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
export * from './i18n'; | ||
export * from './en_US'; | ||
export * from './zh_CN'; |
@@ -0,0 +0,0 @@ export * from './i18n'; |
import { I18NConfig } from './i18n'; | ||
export declare const i18n_en_US: I18NConfig; |
@@ -0,0 +0,0 @@ export const i18n_en_US = { |
@@ -0,0 +0,0 @@ export interface I18NConfig { |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
import { I18NConfig } from './i18n'; | ||
export declare const i18n_zh_CN: I18NConfig; |
@@ -0,0 +0,0 @@ export const i18n_zh_CN = { |
@@ -0,0 +0,0 @@ import { InjectionToken } from '@tanbo/di'; |
@@ -0,0 +0,0 @@ import { InjectionToken } from '@tanbo/di'; |
@@ -0,0 +0,0 @@ import { VElement } from './core/_api'; |
@@ -0,0 +0,0 @@ import { Renderer, VTextNode } from './core/_api'; |
@@ -0,0 +0,0 @@ /** |
export {}; | ||
//# sourceMappingURL=plugin.js.map |
@@ -0,0 +0,0 @@ import { DivisionAbstractComponent, VElement, SlotRenderFn, SingleSlotRenderFn } from './core/_api'; |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
@@ -0,0 +0,0 @@ export * from './_utils/_api'; |
@@ -0,0 +0,0 @@ export * from './_utils/_api'; |
export * from './tab'; | ||
export * from './uikit'; |
export * from './tab'; | ||
export * from './uikit'; | ||
//# sourceMappingURL=_api.js.map |
@@ -0,0 +0,0 @@ export interface TabConfig { |
@@ -0,0 +0,0 @@ import { createElement, createTextNode } from './_api'; |
@@ -0,0 +0,0 @@ export interface UIElementParams { |
@@ -0,0 +0,0 @@ export function createElement(tagName, options = {}) { |
@@ -0,0 +0,0 @@ import { Observable } from 'rxjs'; |
export class FileUploader { | ||
} | ||
//# sourceMappingURL=file-uploader.js.map |
export declare const iframeHTML: string; |
@@ -0,0 +0,0 @@ export const iframeHTML = ` |
@@ -0,0 +0,0 @@ import { ContextMenuAction, Parser, Renderer, TBSelection, KeymapAction, MarkdownGrammarInterceptor } from '../core/_api'; |
@@ -411,2 +411,22 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
div.style.cssText = 'width:10px; height:10px; overflow: hidden; position: fixed; left: -9999px'; | ||
const files = Array.from(ev.clipboardData.files); | ||
if (files.length) { | ||
Promise.all(files.filter(i => { | ||
return /image/i.test(i.type); | ||
}).map(item => { | ||
const reader = new FileReader(); | ||
return new Promise(resolve => { | ||
reader.onload = (event) => { | ||
resolve(event.target.result); | ||
}; | ||
reader.readAsDataURL(item); | ||
}); | ||
})).then(urls => { | ||
div.innerHTML = urls.map(i => { | ||
return `<img src=${i}>`; | ||
}).join(''); | ||
this.handlePaste(div, text); | ||
}); | ||
return; | ||
} | ||
div.contentEditable = 'true'; | ||
@@ -413,0 +433,0 @@ document.body.appendChild(div); |
@@ -0,0 +0,0 @@ import { Observable } from 'rxjs'; |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
export * from './control-panel.plugin'; | ||
export * from './dialog.plugin'; | ||
export * from './message.plugin'; |
@@ -0,0 +0,0 @@ export * from './control-panel.plugin'; |
@@ -0,0 +0,0 @@ import { ComponentControlPanelView } from '../../core/_api'; |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
@@ -0,0 +0,0 @@ import { TBPlugin } from '../../plugin'; |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
@@ -0,0 +0,0 @@ import { TBPlugin } from '../../plugin'; |
@@ -0,0 +0,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
@@ -0,0 +0,0 @@ import 'reflect-metadata'; |
@@ -0,0 +0,0 @@ import 'reflect-metadata'; |
{ | ||
"name": "@textbus/core", | ||
"version": "1.0.0-beta.10", | ||
"version": "1.0.0-beta.11", | ||
"description": "TextBus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.", | ||
@@ -8,2 +8,9 @@ "main": "./bundles/public-api.js", | ||
"typings": "./bundles/public-api.d.ts", | ||
"scripts": { | ||
"start": "webpack-dev-server", | ||
"test": "cross-env env=test jest", | ||
"test-c": "cross-env env=test jest --coverage", | ||
"build:lib": "rimraf bundles && gulp && webpack --config webpack-sass.config.js && tsc -p tsconfig-build.json", | ||
"publish:lib": "npm run build:lib && npm publish --access=public" | ||
}, | ||
"license": "GPL-3.0-only", | ||
@@ -21,6 +28,47 @@ "keywords": [ | ||
], | ||
"devDependencies": { | ||
"@babel/core": "^7.11.6", | ||
"@babel/preset-env": "^7.11.5", | ||
"@types/jest": "^25.1.2", | ||
"@types/node": "^12.7.1", | ||
"@typescript-eslint/eslint-plugin": "^4.6.1", | ||
"@typescript-eslint/parser": "^4.6.1", | ||
"add-assets-webpack-plugin": "^1.0.0", | ||
"autoprefixer": "^9.6.1", | ||
"babel-jest": "^26.3.0", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", | ||
"core-js": "^3.6.4", | ||
"cross-env": "^7.0.2", | ||
"css-loader": "^3.1.0", | ||
"eslint": "^7.12.1", | ||
"eslint-webpack-plugin": "^3.0.1", | ||
"extract-loader": "^3.1.0", | ||
"file-loader": "^4.1.0", | ||
"gulp": "^4.0.2", | ||
"handlebars": "^4.4.3", | ||
"handlebars-loader": "^1.7.1", | ||
"html-webpack-plugin": "^3.2.0", | ||
"ip": "^1.1.5", | ||
"jest": "^25.1.0", | ||
"loader-utils": "^1.2.3", | ||
"mini-css-extract-plugin": "^0.8.0", | ||
"sass": "^1.38.0", | ||
"open": "^6.4.0", | ||
"postcss": "^7.0.17", | ||
"postcss-loader": "^3.0.0", | ||
"sass-loader": "^7.1.0", | ||
"style-loader": "^0.23.1", | ||
"ts-jest": "^25.2.0", | ||
"ts-loader": "^6.2.1", | ||
"typescript": "^4.1.5", | ||
"url-loader": "^2.2.0", | ||
"val-loader": "^1.1.1", | ||
"webpack": "^4.46.0", | ||
"webpack-cli": "^3.3.12", | ||
"webpack-dev-server": "^3.11.2" | ||
}, | ||
"dependencies": { | ||
"@tanbo/color": "^0.0.3", | ||
"@tanbo/css-themes": "^0.0.1", | ||
"@tanbo/di": "^0.0.36", | ||
"@tanbo/di": "^1.0.4", | ||
"reflect-metadata": "^0.1.13", | ||
@@ -27,0 +75,0 @@ "rxjs": "^6.0.0" |
@@ -0,0 +0,0 @@ ## TextBus 核心库 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
622530
161
9002
39
+ Added@tanbo/di@1.1.8(transitive)
- Removed@tanbo/di@0.0.36(transitive)
Updated@tanbo/di@^1.0.4