Comparing version 1.0.2 to 1.0.3
@@ -567,3 +567,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
if (this.next == null || this.domNode.nextSibling != refDomNode) { | ||
parentBlot.domNode.insertBefore(this.domNode, refDomNode); | ||
parentBlot.domNode.insertBefore(this.domNode, (typeof refDomNode !== 'undefined') ? refDomNode : null); | ||
} | ||
@@ -570,0 +570,0 @@ this.parent = parentBlot; |
{ | ||
"name": "parchment", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A document model for rich text editors", | ||
@@ -12,2 +12,3 @@ "author": "Jason Chen <jhchen7@gmail.com>", | ||
], | ||
"types": "dist/src/parchment.d.ts", | ||
"devDependencies": { | ||
@@ -23,5 +24,5 @@ "istanbul": "~0.4.5", | ||
"karma-webpack": "^1.8.0", | ||
"ts-loader": "~0.9.1", | ||
"typescript": "^2.0.3", | ||
"webpack": "^1.13.2" | ||
"ts-loader": "^1.2.2", | ||
"typescript": "^2.0.10", | ||
"webpack": "^1.13.3" | ||
}, | ||
@@ -28,0 +29,0 @@ "engines": { |
import * as Registry from '../registry'; | ||
interface AttributorOptions { | ||
export interface AttributorOptions { | ||
scope?: Registry.Scope; | ||
@@ -9,3 +9,3 @@ whitelist?: string[]; | ||
class Attributor { | ||
export default class Attributor { | ||
attrName: string; | ||
@@ -57,4 +57,1 @@ keyName: string; | ||
} | ||
export default Attributor; |
@@ -5,3 +5,3 @@ import LinkedList from '../../collection/linked-list'; | ||
interface Blot extends LinkedNode { | ||
export interface Blot extends LinkedNode { | ||
parent: Parent; | ||
@@ -34,3 +34,3 @@ prev: Blot; | ||
interface Parent extends Blot { | ||
export interface Parent extends Blot { | ||
children: LinkedList<Blot>; | ||
@@ -52,3 +52,3 @@ domNode: HTMLElement; | ||
interface Formattable extends Blot { | ||
export interface Formattable extends Blot { | ||
format(name: string, value: any): void; | ||
@@ -59,3 +59,3 @@ formats(): { [index: string]: any }; | ||
interface Leaf extends Blot { | ||
export interface Leaf extends Blot { | ||
index(node: Node, offset: number): number; | ||
@@ -65,4 +65,1 @@ position(index: number, inclusive: boolean): [Node, number]; | ||
} | ||
export { Blot, Parent, Formattable, Leaf }; |
@@ -98,3 +98,3 @@ import { Blot, Parent, Formattable } from './blot'; | ||
if (this.next == null || this.domNode.nextSibling != refDomNode) { | ||
parentBlot.domNode.insertBefore(this.domNode, refDomNode); | ||
parentBlot.domNode.insertBefore(this.domNode, (typeof refDomNode !== 'undefined') ? refDomNode : null); | ||
} | ||
@@ -101,0 +101,0 @@ this.parent = parentBlot; |
@@ -0,1 +1,2 @@ | ||
import { Blot } from './blot/abstract/blot'; | ||
import ContainerBlot from './blot/abstract/container'; | ||
@@ -2,0 +3,0 @@ import FormatBlot from './blot/abstract/format'; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
187192
41
3086
0
274