@atlaskit/adf-schema 24.0.1 → 24.0.3
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/CHANGELOG.md +14 -0
- package/dist/cjs/schema/marks/text-color.js +16 -2
- package/dist/cjs/schema/nodes/block-card.js +3 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/schema/marks/text-color.js +15 -2
- package/dist/es2019/schema/nodes/block-card.js +3 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/schema/marks/text-color.js +15 -2
- package/dist/esm/schema/nodes/block-card.js +3 -1
- package/dist/esm/version.json +1 -1
- package/package.json +8 -11
- package/report.api.md +1035 -1044
- package/dist/types-ts4.0/index.d.ts +0 -4
- package/dist/types-ts4.0/json-schema/index.d.ts +0 -2
- package/dist/types-ts4.0/schema/bitbucket-schema.d.ts +0 -2
- package/dist/types-ts4.0/schema/confluence-schema.d.ts +0 -3
- package/dist/types-ts4.0/schema/create-schema.d.ts +0 -32
- package/dist/types-ts4.0/schema/default-schema.d.ts +0 -7
- package/dist/types-ts4.0/schema/groups.d.ts +0 -6
- package/dist/types-ts4.0/schema/index.d.ts +0 -7
- package/dist/types-ts4.0/schema/inline-nodes.d.ts +0 -1
- package/dist/types-ts4.0/schema/jira-schema.d.ts +0 -26
- package/dist/types-ts4.0/schema/marks/alignment.d.ts +0 -16
- package/dist/types-ts4.0/schema/marks/annotation.d.ts +0 -32
- package/dist/types-ts4.0/schema/marks/breakout.d.ts +0 -12
- package/dist/types-ts4.0/schema/marks/code.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/confluence-inline-comment.d.ts +0 -12
- package/dist/types-ts4.0/schema/marks/data-consumer.d.ts +0 -48
- package/dist/types-ts4.0/schema/marks/em.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/fragment.d.ts +0 -29
- package/dist/types-ts4.0/schema/marks/indentation.d.ts +0 -16
- package/dist/types-ts4.0/schema/marks/index.d.ts +0 -32
- package/dist/types-ts4.0/schema/marks/link.d.ts +0 -35
- package/dist/types-ts4.0/schema/marks/strike.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/strong.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/subsup.d.ts +0 -15
- package/dist/types-ts4.0/schema/marks/text-color.d.ts +0 -21
- package/dist/types-ts4.0/schema/marks/type-ahead-query.d.ts +0 -2
- package/dist/types-ts4.0/schema/marks/underline.d.ts +0 -8
- package/dist/types-ts4.0/schema/marks/unsupported-mark.d.ts +0 -2
- package/dist/types-ts4.0/schema/marks/unsupported-node-attributes.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/block-card.d.ts +0 -22
- package/dist/types-ts4.0/schema/nodes/blockquote.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/bodied-extension.d.ts +0 -24
- package/dist/types-ts4.0/schema/nodes/bullet-list.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/caption.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/code-block.d.ts +0 -31
- package/dist/types-ts4.0/schema/nodes/confluence-jira-issue.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/confluence-unsupported-block.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/confluence-unsupported-inline.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/date.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/decision-item.d.ts +0 -17
- package/dist/types-ts4.0/schema/nodes/decision-list.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/doc.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/embed-card.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/emoji.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/expand.d.ts +0 -33
- package/dist/types-ts4.0/schema/nodes/extension.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/hard-break.d.ts +0 -11
- package/dist/types-ts4.0/schema/nodes/heading.d.ts +0 -36
- package/dist/types-ts4.0/schema/nodes/image.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/index.d.ts +0 -93
- package/dist/types-ts4.0/schema/nodes/inline-card.d.ts +0 -10
- package/dist/types-ts4.0/schema/nodes/inline-extension.d.ts +0 -18
- package/dist/types-ts4.0/schema/nodes/layout-column.d.ts +0 -21
- package/dist/types-ts4.0/schema/nodes/layout-section.d.ts +0 -44
- package/dist/types-ts4.0/schema/nodes/list-item.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/media-group.d.ts +0 -14
- package/dist/types-ts4.0/schema/nodes/media-inline.d.ts +0 -16
- package/dist/types-ts4.0/schema/nodes/media-single.d.ts +0 -61
- package/dist/types-ts4.0/schema/nodes/media.d.ts +0 -60
- package/dist/types-ts4.0/schema/nodes/mention.d.ts +0 -26
- package/dist/types-ts4.0/schema/nodes/nested-expand.d.ts +0 -27
- package/dist/types-ts4.0/schema/nodes/ordered-list.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/panel.d.ts +0 -38
- package/dist/types-ts4.0/schema/nodes/paragraph.d.ts +0 -37
- package/dist/types-ts4.0/schema/nodes/placeholder.d.ts +0 -11
- package/dist/types-ts4.0/schema/nodes/rule.d.ts +0 -8
- package/dist/types-ts4.0/schema/nodes/status.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/tableNodes.d.ts +0 -113
- package/dist/types-ts4.0/schema/nodes/task-item.d.ts +0 -17
- package/dist/types-ts4.0/schema/nodes/task-list.d.ts +0 -21
- package/dist/types-ts4.0/schema/nodes/text.d.ts +0 -15
- package/dist/types-ts4.0/schema/nodes/types/block-content.d.ts +0 -22
- package/dist/types-ts4.0/schema/nodes/types/extensions.d.ts +0 -34
- package/dist/types-ts4.0/schema/nodes/types/inline-content.d.ts +0 -32
- package/dist/types-ts4.0/schema/nodes/types/mark.d.ts +0 -15
- package/dist/types-ts4.0/schema/nodes/types/non-nestable-block-content.d.ts +0 -20
- package/dist/types-ts4.0/schema/nodes/types/rich-media-common.d.ts +0 -9
- package/dist/types-ts4.0/schema/nodes/unknown-block.d.ts +0 -3
- package/dist/types-ts4.0/schema/nodes/unsupported-block.d.ts +0 -2
- package/dist/types-ts4.0/schema/nodes/unsupported-inline.d.ts +0 -2
- package/dist/types-ts4.0/schema/unsupported.d.ts +0 -1
- package/dist/types-ts4.0/steps/analytics.d.ts +0 -59
- package/dist/types-ts4.0/steps/set-attrs.d.ts +0 -23
- package/dist/types-ts4.0/steps/table/add-column.d.ts +0 -88
- package/dist/types-ts4.0/steps/table/constants.d.ts +0 -4
- package/dist/types-ts4.0/steps/table/sort-column.d.ts +0 -18
- package/dist/types-ts4.0/steps/table/types.d.ts +0 -39
- package/dist/types-ts4.0/steps/table/utils/cell-step.d.ts +0 -51
- package/dist/types-ts4.0/steps/table/utils/cells-at-column.d.ts +0 -20
- package/dist/types-ts4.0/steps/table/utils/find-column.d.ts +0 -8
- package/dist/types-ts4.0/steps/table/utils/get-table-rect-from-doc.d.ts +0 -8
- package/dist/types-ts4.0/steps/table/utils/side-effects/rows.d.ts +0 -25
- package/dist/types-ts4.0/steps/table/utils/side-effects/side-effects.d.ts +0 -15
- package/dist/types-ts4.0/steps/table/utils/side-effects/table.d.ts +0 -16
- package/dist/types-ts4.0/steps/table/utils/side-effects/types.d.ts +0 -33
- package/dist/types-ts4.0/steps/table/utils/table-map.d.ts +0 -6
- package/dist/types-ts4.0/steps/type-ahead.d.ts +0 -35
- package/dist/types-ts4.0/steps.d.ts +0 -8
- package/dist/types-ts4.0/utils/colors.d.ts +0 -71
- package/dist/types-ts4.0/utils/confluence/emoji.d.ts +0 -50
- package/dist/types-ts4.0/utils/extensions.d.ts +0 -3
- package/dist/types-ts4.0/utils/index.d.ts +0 -6
- package/dist/types-ts4.0/utils/parseDOM.d.ts +0 -1
- package/dist/types-ts4.0/utils/url.d.ts +0 -23
- package/dist/types-ts4.0/utils/uuid.d.ts +0 -5
@@ -1,39 +0,0 @@
|
|
1
|
-
import { Node as ProseMirrorNode } from 'prosemirror-model';
|
2
|
-
import { SideEffects, SideEffectsJSON } from './utils/side-effects/types';
|
3
|
-
import { SortOrder } from './constants';
|
4
|
-
export declare type ColumnInfo = Map<number, CellStep>;
|
5
|
-
export interface AddColumnStepInfo {
|
6
|
-
cells: CellStep[];
|
7
|
-
sideEffects?: SideEffects;
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* Information about the cell
|
11
|
-
* from: where the cell will be added removed
|
12
|
-
* to: where the original cell ends
|
13
|
-
* newCell?: the content of the new cells if it's added
|
14
|
-
*/
|
15
|
-
export interface CellStep {
|
16
|
-
from: number;
|
17
|
-
to: number;
|
18
|
-
newCell?: ProseMirrorNode;
|
19
|
-
mergeWith?: number;
|
20
|
-
}
|
21
|
-
export interface CellStepJson {
|
22
|
-
from: number;
|
23
|
-
to: number;
|
24
|
-
newCell?: {
|
25
|
-
[key: string]: any;
|
26
|
-
};
|
27
|
-
mergeWith?: number;
|
28
|
-
}
|
29
|
-
export interface AddColumnStepJson {
|
30
|
-
stepType: 'ak-add-column';
|
31
|
-
tablePos: number;
|
32
|
-
cells: CellStepJson[];
|
33
|
-
sideEffects?: SideEffectsJSON;
|
34
|
-
isDelete: boolean;
|
35
|
-
}
|
36
|
-
export interface TableColumnOrdering {
|
37
|
-
columnIndex: number;
|
38
|
-
order: SortOrder;
|
39
|
-
}
|
@@ -1,51 +0,0 @@
|
|
1
|
-
import { Node as ProseMirrorNode } from 'prosemirror-model';
|
2
|
-
import { Cell } from './cells-at-column';
|
3
|
-
import { CellStep } from '../types';
|
4
|
-
import { Transform, StepMap } from 'prosemirror-transform';
|
5
|
-
import { TableRect } from '@atlaskit/editor-tables/table-map';
|
6
|
-
/**
|
7
|
-
* Given a cell step, this function has to do the specific transformation to executed that step.
|
8
|
-
* It returns the applied cellStep and rows that needs to skip (because it was already handled).
|
9
|
-
* @param tr
|
10
|
-
* @param tableRect
|
11
|
-
* @param cell
|
12
|
-
* @param cellStep
|
13
|
-
* @param isDelete
|
14
|
-
* @param column
|
15
|
-
*/
|
16
|
-
export declare function applyCellStep(tr: Transform, tableRect: TableRect, cell: Cell, cellStep: CellStep, isDelete: boolean, column: number): {
|
17
|
-
tr: Transform;
|
18
|
-
skipRows: number;
|
19
|
-
cellStep: CellStep;
|
20
|
-
};
|
21
|
-
/**
|
22
|
-
* Given a cell step, this functions return un StepMap representing this action.
|
23
|
-
* [position, oldSize, newSize]
|
24
|
-
* @param cellStep
|
25
|
-
* @param isDelete
|
26
|
-
*/
|
27
|
-
export declare function getMapFromCellStep(cellStep: CellStep, isDelete: boolean): [
|
28
|
-
number,
|
29
|
-
number,
|
30
|
-
number
|
31
|
-
];
|
32
|
-
/**
|
33
|
-
* Given a cell step, this function invert that step.
|
34
|
-
* @param doc
|
35
|
-
* @param getTableRectAndColumn
|
36
|
-
* @param cellStep
|
37
|
-
* @param isDelete
|
38
|
-
* @param stepMap
|
39
|
-
*/
|
40
|
-
export declare function invertCellStep(doc: ProseMirrorNode, getTableRectAndColumn: () => {
|
41
|
-
rect: TableRect;
|
42
|
-
column: number;
|
43
|
-
}, cellStep: CellStep, isDelete: boolean, stepMap: StepMap): CellStep;
|
44
|
-
/**
|
45
|
-
* Create a cell step based on the current cell and operation (add/delete)
|
46
|
-
* @param cell
|
47
|
-
* @param column
|
48
|
-
* @param isDelete
|
49
|
-
* @param previousCellStep
|
50
|
-
*/
|
51
|
-
export declare function createCellStep(cell: Cell, column: number, isDelete: boolean, previousCellStep?: CellStep): CellStep;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { TableRect } from '@atlaskit/editor-tables/table-map';
|
2
|
-
import { NodeType } from 'prosemirror-model';
|
3
|
-
import { CellAttributes } from '../../../schema/nodes/tableNodes';
|
4
|
-
export interface Cell {
|
5
|
-
from: number;
|
6
|
-
to: number;
|
7
|
-
row: number;
|
8
|
-
col: number;
|
9
|
-
attrs?: CellAttributes;
|
10
|
-
hasMergedCells: boolean;
|
11
|
-
type: NodeType;
|
12
|
-
}
|
13
|
-
/**
|
14
|
-
* Helper to have a consistent way to iterate for all the cells in a column.
|
15
|
-
* You can skip rows by passing the rows to skipped in the next arguments.
|
16
|
-
* For example: `iter.next(1)` to skip the next row
|
17
|
-
* @param rect
|
18
|
-
* @param col
|
19
|
-
*/
|
20
|
-
export declare function cellsAtColumn(rect: TableRect, col: number): Generator<Cell, void, number | undefined>;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { TableRect } from '@atlaskit/editor-tables/table-map';
|
2
|
-
import { ColumnInfo } from '../types';
|
3
|
-
/**
|
4
|
-
* Try to find the right column based on the cell steps in column info..
|
5
|
-
* @param columnInfo - Map of cell positions sorted from lower to greather
|
6
|
-
* @param rect - map rect
|
7
|
-
*/
|
8
|
-
export declare function findColumn(columnInfo: ColumnInfo, rect: TableRect): number | null;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { Node as ProseMirrorNode } from 'prosemirror-model';
|
2
|
-
import { TableRect } from '@atlaskit/editor-tables/table-map';
|
3
|
-
/**
|
4
|
-
* Util to get the table rect from the docs
|
5
|
-
* @param doc
|
6
|
-
* @param tablePos
|
7
|
-
*/
|
8
|
-
export declare function getTableRectFromDoc(doc: ProseMirrorNode, tablePos: number): TableRect;
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { Node as ProseMirrorNode, Schema } from 'prosemirror-model';
|
2
|
-
import { Mappable, StepMap, Transform } from 'prosemirror-transform';
|
3
|
-
import { TableRect } from '@atlaskit/editor-tables/table-map';
|
4
|
-
import { RowSideEffect, RowSideEffectJSON } from './types';
|
5
|
-
import { Cell } from '../cells-at-column';
|
6
|
-
interface RowsHandler {
|
7
|
-
handle: (tr: Transform, rect: TableRect, row: number, col: number, cell: Cell) => {
|
8
|
-
handled: boolean;
|
9
|
-
skipRows?: number;
|
10
|
-
};
|
11
|
-
end: (tr: Transform, rect: TableRect, col: number) => void;
|
12
|
-
}
|
13
|
-
export declare class RowsSideEffectHandler {
|
14
|
-
rows?: RowSideEffect[];
|
15
|
-
constructor(rowsSideEffect?: RowSideEffect[]);
|
16
|
-
private deleteHandler;
|
17
|
-
private addHandler;
|
18
|
-
start(isDelete: boolean): RowsHandler;
|
19
|
-
addRowRanges(ranges: number[], isDelete: boolean): number[];
|
20
|
-
map(mapping: Mappable): RowSideEffect[];
|
21
|
-
invert(originalDoc: ProseMirrorNode, isDelete: boolean, map: StepMap): RowSideEffect[] | undefined;
|
22
|
-
toJSON(): RowSideEffectJSON[] | undefined;
|
23
|
-
static fromJSON(schema: Schema, json: RowSideEffectJSON[]): RowSideEffect[];
|
24
|
-
}
|
25
|
-
export {};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { Node as ProseMirrorNode, Schema } from 'prosemirror-model';
|
2
|
-
import { Mappable, StepMap } from 'prosemirror-transform';
|
3
|
-
import { SideEffects, SideEffectsJSON } from './types';
|
4
|
-
import { TableSideEffectHandler } from './table';
|
5
|
-
import { RowsSideEffectHandler } from './rows';
|
6
|
-
export declare class SideEffectsHandler {
|
7
|
-
table: TableSideEffectHandler;
|
8
|
-
rows: RowsSideEffectHandler;
|
9
|
-
constructor(sideEffects?: SideEffects);
|
10
|
-
getTableMap(isDelete: boolean): StepMap | undefined;
|
11
|
-
map(mapping: Mappable): SideEffects;
|
12
|
-
invert(originalDoc: ProseMirrorNode, isDelete: boolean, map: StepMap): SideEffects;
|
13
|
-
toJSON(): SideEffectsJSON | undefined;
|
14
|
-
static fromJSON(schema: Schema, json: SideEffectsJSON): SideEffects;
|
15
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { Node as ProseMirrorNode, Schema } from 'prosemirror-model';
|
2
|
-
import { Mappable, StepMap, Transform } from 'prosemirror-transform';
|
3
|
-
import { TableRect } from '@atlaskit/editor-tables/table-map';
|
4
|
-
import { TableSideEffect, TableSideEffectJSON } from './types';
|
5
|
-
export declare class TableSideEffectHandler {
|
6
|
-
table?: TableSideEffect;
|
7
|
-
constructor(tableSideEffect?: TableSideEffect);
|
8
|
-
private addTableSideEffect;
|
9
|
-
handleAddTable(tr: Transform, isDelete: boolean): boolean;
|
10
|
-
handleRemoveTable(tr: Transform, tablePos: number, tableRect: TableRect, column: number | null, isDelete: boolean): boolean;
|
11
|
-
getTableMap(isDelete: boolean): StepMap | undefined;
|
12
|
-
map(mapping: Mappable): TableSideEffect | undefined;
|
13
|
-
invert(doc: ProseMirrorNode): TableSideEffect | undefined;
|
14
|
-
toJSON(): TableSideEffectJSON | undefined;
|
15
|
-
static fromJSON(schema: Schema, json: TableSideEffectJSON): TableSideEffect;
|
16
|
-
}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { Node as ProseMirrorNode } from 'prosemirror-model';
|
2
|
-
export interface TableSideEffect {
|
3
|
-
from: number;
|
4
|
-
to: number;
|
5
|
-
node: ProseMirrorNode;
|
6
|
-
}
|
7
|
-
export interface RowSideEffect {
|
8
|
-
from: number;
|
9
|
-
to: number;
|
10
|
-
rowNode: ProseMirrorNode;
|
11
|
-
}
|
12
|
-
export interface TableSideEffectJSON {
|
13
|
-
from: number;
|
14
|
-
to: number;
|
15
|
-
node: {
|
16
|
-
[key: string]: any;
|
17
|
-
};
|
18
|
-
}
|
19
|
-
export interface RowSideEffectJSON {
|
20
|
-
from: number;
|
21
|
-
to: number;
|
22
|
-
rowNode: {
|
23
|
-
[key: string]: any;
|
24
|
-
};
|
25
|
-
}
|
26
|
-
export declare type SideEffects = {
|
27
|
-
table?: TableSideEffect;
|
28
|
-
rows?: RowSideEffect[];
|
29
|
-
};
|
30
|
-
export declare type SideEffectsJSON = {
|
31
|
-
table?: TableSideEffectJSON;
|
32
|
-
rows?: RowSideEffectJSON[];
|
33
|
-
};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
2
|
-
export declare const getCellIndex: (map: TableMap, row: number, col: number) => number;
|
3
|
-
export declare function hasMergedColumns(map: TableMap, row: number, col: number): boolean;
|
4
|
-
export declare function hasMergedRows(map: TableMap, row: number, col: number): boolean;
|
5
|
-
export declare function isRootRow(map: TableMap, row: number, col: number): boolean;
|
6
|
-
export declare function isRootCol(map: TableMap, row: number, col: number): boolean;
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import { Node as PMNode } from 'prosemirror-model';
|
2
|
-
import { Mappable, ReplaceStep, Step, StepMap, StepResult } from 'prosemirror-transform';
|
3
|
-
export declare const insertTypeAheadStepType = "atlaskit-insert-type-ahead";
|
4
|
-
export declare enum InsertTypeAheadStages {
|
5
|
-
DELETING_RAW_QUERY = "DELETING_RAW_QUERY",
|
6
|
-
INSERTING_ITEM = "INSERTING_ITEM"
|
7
|
-
}
|
8
|
-
declare type Config = {
|
9
|
-
selectedIndex: number;
|
10
|
-
stage: InsertTypeAheadStages;
|
11
|
-
query: string;
|
12
|
-
trigger: string;
|
13
|
-
};
|
14
|
-
export declare class InsertTypeAheadStep extends Step {
|
15
|
-
private isInvertStep;
|
16
|
-
selectedIndex: number;
|
17
|
-
stage: InsertTypeAheadStages;
|
18
|
-
query: string;
|
19
|
-
trigger: string;
|
20
|
-
constructor({ stage, query, trigger, selectedIndex }: Config, isInvertStep?: boolean);
|
21
|
-
invert(): InsertTypeAheadStep;
|
22
|
-
apply(doc: PMNode): StepResult<any>;
|
23
|
-
merge(): null;
|
24
|
-
isInsertionStep(): boolean;
|
25
|
-
isUndoingStep(): boolean;
|
26
|
-
map(mapping: Mappable): InsertTypeAheadStep;
|
27
|
-
getMap(): StepMap;
|
28
|
-
toJSON(): {
|
29
|
-
stepType: string;
|
30
|
-
from: number;
|
31
|
-
to: number;
|
32
|
-
};
|
33
|
-
static fromJSON(): ReplaceStep<any>;
|
34
|
-
}
|
35
|
-
export {};
|
@@ -1,8 +0,0 @@
|
|
1
|
-
export { SortOrder as TableSortOrder } from './steps/table/constants';
|
2
|
-
export { TableSortStep } from './steps/table/sort-column';
|
3
|
-
export { InsertTypeAheadStages, InsertTypeAheadStep } from './steps/type-ahead';
|
4
|
-
export { AddColumnStep } from './steps/table/add-column';
|
5
|
-
export { SetAttrsStep } from './steps/set-attrs';
|
6
|
-
export { AnalyticsStep } from './steps/analytics';
|
7
|
-
export type { TableColumnOrdering } from './steps/table/types';
|
8
|
-
export type { AnalyticsInvertStep, AnalyticsWithChannel, AnalyticsPayload, } from './steps/analytics';
|
@@ -1,71 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* We're avoding importing these colors from @atlaskit/theme since we
|
3
|
-
* do not want to have react as a dependency of this package.
|
4
|
-
* TODO: Refactor this once tokenization by Core team is ready
|
5
|
-
* https://product-fabric.atlassian.net/browse/CS-908
|
6
|
-
*/
|
7
|
-
export declare const R50 = "#FFEBE6";
|
8
|
-
export declare const R75 = "#FFBDAD";
|
9
|
-
export declare const R100 = "#FF8F73";
|
10
|
-
export declare const R300 = "#FF5630";
|
11
|
-
export declare const R400 = "#DE350B";
|
12
|
-
export declare const R500 = "#BF2600";
|
13
|
-
export declare const Y50 = "#FFFAE6";
|
14
|
-
export declare const Y75 = "#FFF0B3";
|
15
|
-
export declare const Y200 = "#FFC400";
|
16
|
-
export declare const Y400 = "#FF991F";
|
17
|
-
export declare const Y500 = "#FF8B00";
|
18
|
-
export declare const G50 = "#E3FCEF";
|
19
|
-
export declare const G75 = "#ABF5D1";
|
20
|
-
export declare const G200 = "#57D9A3";
|
21
|
-
export declare const G300 = "#36B37E";
|
22
|
-
export declare const G400 = "#00875A";
|
23
|
-
export declare const G500 = "#006644";
|
24
|
-
export declare const B50 = "#DEEBFF";
|
25
|
-
export declare const B75 = "#B3D4FF";
|
26
|
-
export declare const B100 = "#4C9AFF";
|
27
|
-
export declare const B400 = "#0052CC";
|
28
|
-
export declare const B500 = "#0747A6";
|
29
|
-
export declare const N0 = "#FFFFFF";
|
30
|
-
export declare const N20 = "#F4F5F7";
|
31
|
-
export declare const N30 = "#EBECF0";
|
32
|
-
export declare const N40 = "#DFE1E6";
|
33
|
-
export declare const N50 = "#C1C7D0";
|
34
|
-
export declare const N60 = "#B3BAC5";
|
35
|
-
export declare const N80 = "#97A0AF";
|
36
|
-
export declare const N90 = "#8993A4";
|
37
|
-
export declare const N200 = "#6B778C";
|
38
|
-
export declare const N300 = "#5E6C84";
|
39
|
-
export declare const N500 = "#42526E";
|
40
|
-
export declare const N800 = "#172B4D";
|
41
|
-
export declare const P50 = "#EAE6FF";
|
42
|
-
export declare const P75 = "#C0B6F2";
|
43
|
-
export declare const P100 = "#998DD9";
|
44
|
-
export declare const P300 = "#6554C0";
|
45
|
-
export declare const P400 = "#5243AA";
|
46
|
-
export declare const P500 = "#403294";
|
47
|
-
export declare const T50 = "#E6FCFF";
|
48
|
-
export declare const T75 = "#B3F5FF";
|
49
|
-
export declare const T100 = "#79E2F2";
|
50
|
-
export declare const T300 = "#00B8D9";
|
51
|
-
export declare const T500 = "#008DA6";
|
52
|
-
/**
|
53
|
-
* @return String with HEX-coded color
|
54
|
-
*/
|
55
|
-
export declare function normalizeHexColor(color: string | null, defaultColor?: string): string | null;
|
56
|
-
/**
|
57
|
-
* Converts hex color format to rgb.
|
58
|
-
* Works well with full hex color format and shortcut as well.
|
59
|
-
*
|
60
|
-
* @param hex - hex color string (#xxx, or #xxxxxx)
|
61
|
-
*/
|
62
|
-
export declare function hexToRgb(color: string): string | null;
|
63
|
-
/**
|
64
|
-
* Converts hex color format to rgba.
|
65
|
-
*
|
66
|
-
* @param hex - hex color string (#xxx, or #xxxxxx)
|
67
|
-
*/
|
68
|
-
export declare function hexToRgba(rawColor: string, alpha: number): string | null;
|
69
|
-
export declare function rgbToHex(value: string): string | null;
|
70
|
-
export declare function isRgb(color: string): boolean;
|
71
|
-
export declare function isHex(color: string): boolean;
|
@@ -1,50 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Confluence glyphs ac:name of <ac:emoticon /> map to new emojis
|
3
|
-
* {
|
4
|
-
* [ac:name] : ['emoji-id', 'emoji-shortName', 'emoji-fallback']
|
5
|
-
* ...
|
6
|
-
* }
|
7
|
-
* Glyphs that do not map to Fabric Emoji
|
8
|
-
* will be mapped to Emoji Id '2b50' (:star:) with preserving ac:name as shortName attribute;
|
9
|
-
*/
|
10
|
-
declare const acNameToEmojiMap: {
|
11
|
-
smile: string[];
|
12
|
-
sad: string[];
|
13
|
-
cheeky: string[];
|
14
|
-
laugh: string[];
|
15
|
-
wink: string[];
|
16
|
-
information: string[];
|
17
|
-
tick: string[];
|
18
|
-
cross: string[];
|
19
|
-
warning: string[];
|
20
|
-
plus: string[];
|
21
|
-
minus: string[];
|
22
|
-
question: string[];
|
23
|
-
'thumbs-up': string[];
|
24
|
-
'thumbs-down': string[];
|
25
|
-
'light-on': string[];
|
26
|
-
'yellow-star': string[];
|
27
|
-
'light-off': string[];
|
28
|
-
'red-star': string[];
|
29
|
-
'green-star': string[];
|
30
|
-
'blue-star': string[];
|
31
|
-
heart: string[];
|
32
|
-
'broken-heart': string[];
|
33
|
-
};
|
34
|
-
export declare type NameToEmoji = keyof typeof acNameToEmojiMap;
|
35
|
-
export declare function acNameToEmoji(acName: NameToEmoji): {
|
36
|
-
id: string;
|
37
|
-
shortName: string;
|
38
|
-
text: string;
|
39
|
-
};
|
40
|
-
export declare function emojiIdToAcName(emojiId: string): never;
|
41
|
-
export declare function acShortcutToEmoji(hipchatEmoticonShortName: string): {
|
42
|
-
id: string;
|
43
|
-
shortName: string;
|
44
|
-
text: string;
|
45
|
-
};
|
46
|
-
export declare function getEmojiAcName({ id, shortName, }: {
|
47
|
-
id: string;
|
48
|
-
shortName: string;
|
49
|
-
}): string;
|
50
|
-
export {};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
export { acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, getEmojiAcName, } from './confluence/emoji';
|
2
|
-
export type { NameToEmoji } from './confluence/emoji';
|
3
|
-
export { generateUuid, uuid } from './uuid';
|
4
|
-
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, hexToRgb, hexToRgba, isHex, isRgb, normalizeHexColor, rgbToHex, } from './colors';
|
5
|
-
export { getLinkMatch, isSafeUrl, normalizeUrl, linkify, linkifyMatch, } from './url';
|
6
|
-
export type { Match } from './url';
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const isDOMElement: (maybeNode: unknown) => maybeNode is Element;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import LinkifyIt from 'linkify-it';
|
2
|
-
/**
|
3
|
-
* Please notify the Editor Mobile team (Slack: #help-mobilekit) if the logic for this changes.
|
4
|
-
*/
|
5
|
-
export declare const isSafeUrl: (url: string) => boolean;
|
6
|
-
export interface Match {
|
7
|
-
schema: any;
|
8
|
-
index: number;
|
9
|
-
lastIndex: number;
|
10
|
-
raw: string;
|
11
|
-
text: string;
|
12
|
-
url: string;
|
13
|
-
length?: number;
|
14
|
-
input?: string;
|
15
|
-
}
|
16
|
-
export declare const linkify: LinkifyIt.LinkifyIt;
|
17
|
-
export declare const LINK_REGEXP: RegExp;
|
18
|
-
export declare const linkifyMatch: (text: string) => Match[];
|
19
|
-
export declare function getLinkMatch(str?: string): Match | null;
|
20
|
-
/**
|
21
|
-
* Adds protocol to url if needed.
|
22
|
-
*/
|
23
|
-
export declare function normalizeUrl(url?: string): string;
|