@atlaskit/adf-schema 25.5.1 → 25.6.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/CHANGELOG.md +16 -0
- package/dist/cjs/schema/nodes/tableNodes.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/schema/nodes/tableNodes.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/schema/nodes/tableNodes.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types-ts4.0/index.d.ts +6 -0
- package/dist/types-ts4.0/json-schema/index.d.ts +2 -0
- package/dist/types-ts4.0/schema/bitbucket-schema.d.ts +5 -0
- package/dist/types-ts4.0/schema/confluence-schema.d.ts +9 -0
- package/dist/types-ts4.0/schema/create-schema.d.ts +32 -0
- package/dist/types-ts4.0/schema/default-schema.d.ts +7 -0
- package/dist/types-ts4.0/schema/groups.d.ts +6 -0
- package/dist/types-ts4.0/schema/index.d.ts +9 -0
- package/dist/types-ts4.0/schema/inline-nodes.d.ts +1 -0
- package/dist/types-ts4.0/schema/jira-schema.d.ts +65 -0
- package/dist/types-ts4.0/schema/marks/alignment.d.ts +16 -0
- package/dist/types-ts4.0/schema/marks/annotation.d.ts +32 -0
- package/dist/types-ts4.0/schema/marks/border.d.ts +24 -0
- package/dist/types-ts4.0/schema/marks/breakout.d.ts +12 -0
- package/dist/types-ts4.0/schema/marks/code.d.ts +8 -0
- package/dist/types-ts4.0/schema/marks/confluence-inline-comment.d.ts +12 -0
- package/dist/types-ts4.0/schema/marks/data-consumer.d.ts +48 -0
- package/dist/types-ts4.0/schema/marks/em.d.ts +8 -0
- package/dist/types-ts4.0/schema/marks/fragment.d.ts +29 -0
- package/dist/types-ts4.0/schema/marks/indentation.d.ts +16 -0
- package/dist/types-ts4.0/schema/marks/index.d.ts +34 -0
- package/dist/types-ts4.0/schema/marks/link.d.ts +35 -0
- package/dist/types-ts4.0/schema/marks/strike.d.ts +8 -0
- package/dist/types-ts4.0/schema/marks/strong.d.ts +8 -0
- package/dist/types-ts4.0/schema/marks/subsup.d.ts +15 -0
- package/dist/types-ts4.0/schema/marks/text-color.d.ts +22 -0
- package/dist/types-ts4.0/schema/marks/type-ahead-query.d.ts +2 -0
- package/dist/types-ts4.0/schema/marks/underline.d.ts +8 -0
- package/dist/types-ts4.0/schema/marks/unsupported-mark.d.ts +2 -0
- package/dist/types-ts4.0/schema/marks/unsupported-node-attributes.d.ts +2 -0
- package/dist/types-ts4.0/schema/nodes/block-card.d.ts +22 -0
- package/dist/types-ts4.0/schema/nodes/blockquote.d.ts +14 -0
- package/dist/types-ts4.0/schema/nodes/bodied-extension.d.ts +24 -0
- package/dist/types-ts4.0/schema/nodes/bullet-list.d.ts +3 -0
- package/dist/types-ts4.0/schema/nodes/caption.d.ts +20 -0
- package/dist/types-ts4.0/schema/nodes/code-block.d.ts +31 -0
- package/dist/types-ts4.0/schema/nodes/confluence-jira-issue.d.ts +2 -0
- package/dist/types-ts4.0/schema/nodes/confluence-unsupported-block.d.ts +2 -0
- package/dist/types-ts4.0/schema/nodes/confluence-unsupported-inline.d.ts +2 -0
- package/dist/types-ts4.0/schema/nodes/date.d.ts +14 -0
- package/dist/types-ts4.0/schema/nodes/decision-item.d.ts +17 -0
- package/dist/types-ts4.0/schema/nodes/decision-list.d.ts +18 -0
- package/dist/types-ts4.0/schema/nodes/doc.d.ts +18 -0
- package/dist/types-ts4.0/schema/nodes/embed-card.d.ts +18 -0
- package/dist/types-ts4.0/schema/nodes/emoji.d.ts +14 -0
- package/dist/types-ts4.0/schema/nodes/expand.d.ts +33 -0
- package/dist/types-ts4.0/schema/nodes/extension.d.ts +18 -0
- package/dist/types-ts4.0/schema/nodes/hard-break.d.ts +11 -0
- package/dist/types-ts4.0/schema/nodes/heading.d.ts +36 -0
- package/dist/types-ts4.0/schema/nodes/image.d.ts +2 -0
- package/dist/types-ts4.0/schema/nodes/index.d.ts +93 -0
- package/dist/types-ts4.0/schema/nodes/inline-card.d.ts +10 -0
- package/dist/types-ts4.0/schema/nodes/inline-extension.d.ts +18 -0
- package/dist/types-ts4.0/schema/nodes/layout-column.d.ts +21 -0
- package/dist/types-ts4.0/schema/nodes/layout-section.d.ts +44 -0
- package/dist/types-ts4.0/schema/nodes/list-item.d.ts +2 -0
- package/dist/types-ts4.0/schema/nodes/media-group.d.ts +14 -0
- package/dist/types-ts4.0/schema/nodes/media-inline.d.ts +16 -0
- package/dist/types-ts4.0/schema/nodes/media-single.d.ts +61 -0
- package/dist/types-ts4.0/schema/nodes/media.d.ts +62 -0
- package/dist/types-ts4.0/schema/nodes/mention.d.ts +26 -0
- package/dist/types-ts4.0/schema/nodes/nested-expand.d.ts +27 -0
- package/dist/types-ts4.0/schema/nodes/ordered-list.d.ts +4 -0
- package/dist/types-ts4.0/schema/nodes/panel.d.ts +38 -0
- package/dist/types-ts4.0/schema/nodes/paragraph.d.ts +37 -0
- package/dist/types-ts4.0/schema/nodes/placeholder.d.ts +11 -0
- package/dist/types-ts4.0/schema/nodes/rule.d.ts +8 -0
- package/dist/types-ts4.0/schema/nodes/status.d.ts +20 -0
- package/dist/types-ts4.0/schema/nodes/tableNodes.d.ts +114 -0
- package/dist/types-ts4.0/schema/nodes/task-item.d.ts +17 -0
- package/dist/types-ts4.0/schema/nodes/task-list.d.ts +21 -0
- package/dist/types-ts4.0/schema/nodes/text.d.ts +15 -0
- package/dist/types-ts4.0/schema/nodes/types/block-content.d.ts +22 -0
- package/dist/types-ts4.0/schema/nodes/types/extensions.d.ts +34 -0
- package/dist/types-ts4.0/schema/nodes/types/inline-content.d.ts +32 -0
- package/dist/types-ts4.0/schema/nodes/types/list.d.ts +42 -0
- package/dist/types-ts4.0/schema/nodes/types/mark.d.ts +15 -0
- package/dist/types-ts4.0/schema/nodes/types/non-nestable-block-content.d.ts +20 -0
- package/dist/types-ts4.0/schema/nodes/types/rich-media-common.d.ts +9 -0
- package/dist/types-ts4.0/schema/nodes/unknown-block.d.ts +3 -0
- package/dist/types-ts4.0/schema/nodes/unsupported-block.d.ts +2 -0
- package/dist/types-ts4.0/schema/nodes/unsupported-inline.d.ts +2 -0
- package/dist/types-ts4.0/schema/unsupported.d.ts +1 -0
- package/dist/types-ts4.0/steps/analytics.d.ts +59 -0
- package/dist/types-ts4.0/steps/link-meta-step.d.ts +51 -0
- package/dist/types-ts4.0/steps/set-attrs.d.ts +23 -0
- package/dist/types-ts4.0/steps/table/add-column.d.ts +88 -0
- package/dist/types-ts4.0/steps/table/constants.d.ts +4 -0
- package/dist/types-ts4.0/steps/table/sort-column.d.ts +18 -0
- package/dist/types-ts4.0/steps/table/types.d.ts +39 -0
- package/dist/types-ts4.0/steps/table/utils/cell-step.d.ts +51 -0
- package/dist/types-ts4.0/steps/table/utils/cells-at-column.d.ts +20 -0
- package/dist/types-ts4.0/steps/table/utils/find-column.d.ts +8 -0
- package/dist/types-ts4.0/steps/table/utils/get-table-rect-from-doc.d.ts +8 -0
- package/dist/types-ts4.0/steps/table/utils/side-effects/rows.d.ts +25 -0
- package/dist/types-ts4.0/steps/table/utils/side-effects/side-effects.d.ts +15 -0
- package/dist/types-ts4.0/steps/table/utils/side-effects/table.d.ts +16 -0
- package/dist/types-ts4.0/steps/table/utils/side-effects/types.d.ts +33 -0
- package/dist/types-ts4.0/steps/table/utils/table-map.d.ts +6 -0
- package/dist/types-ts4.0/steps/type-ahead.d.ts +35 -0
- package/dist/types-ts4.0/steps.d.ts +10 -0
- package/dist/types-ts4.0/utils/colors.d.ts +74 -0
- package/dist/types-ts4.0/utils/confluence/emoji.d.ts +50 -0
- package/dist/types-ts4.0/utils/extensions.d.ts +3 -0
- package/dist/types-ts4.0/utils/index.d.ts +6 -0
- package/dist/types-ts4.0/utils/parseDOM.d.ts +1 -0
- package/dist/types-ts4.0/utils/url.d.ts +31 -0
- package/dist/types-ts4.0/utils/uuid.d.ts +5 -0
- package/package.json +8 -8
@@ -0,0 +1 @@
|
|
1
|
+
export declare const isDOMElement: (maybeNode: unknown) => maybeNode is Element;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
* This file has been duplicated in packages/linking-platform/link-picker/src/common/utils/url.ts
|
3
|
+
* Any changes made here should be mirrored there.
|
4
|
+
*/
|
5
|
+
import LinkifyIt from 'linkify-it';
|
6
|
+
/**
|
7
|
+
* Please notify the Editor Mobile team (Slack: #help-mobilekit) if the logic for this changes.
|
8
|
+
*/
|
9
|
+
export declare const isSafeUrl: (url: string) => boolean;
|
10
|
+
export interface Match {
|
11
|
+
schema: any;
|
12
|
+
index: number;
|
13
|
+
lastIndex: number;
|
14
|
+
raw: string;
|
15
|
+
text: string;
|
16
|
+
url: string;
|
17
|
+
length?: number;
|
18
|
+
input?: string;
|
19
|
+
}
|
20
|
+
export declare const linkify: LinkifyIt.LinkifyIt;
|
21
|
+
export declare const LINK_REGEXP: RegExp;
|
22
|
+
export declare const linkifyMatch: (text: string) => Match[];
|
23
|
+
export declare function getLinkMatch(str?: string): Match | null;
|
24
|
+
/**
|
25
|
+
* Adds protocol to url if needed.
|
26
|
+
*/
|
27
|
+
export declare function normalizeUrl(url?: string): string;
|
28
|
+
/**
|
29
|
+
* checks if root relative link
|
30
|
+
*/
|
31
|
+
export declare function isRootRelative(url: string): boolean;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "25.
|
3
|
+
"version": "25.6.1",
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
5
5
|
"publishConfig": {
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
@@ -39,10 +39,10 @@
|
|
39
39
|
"ak-postbuild": "yarn build:json-schema"
|
40
40
|
},
|
41
41
|
"dependencies": {
|
42
|
-
"@atlaskit/codemod-utils": "^4.
|
43
|
-
"@atlaskit/editor-palette": "1.
|
44
|
-
"@atlaskit/editor-tables": "^2.
|
45
|
-
"@atlaskit/tokens": "^1.
|
42
|
+
"@atlaskit/codemod-utils": "^4.2.0",
|
43
|
+
"@atlaskit/editor-palette": "1.4.0",
|
44
|
+
"@atlaskit/editor-tables": "^2.3.0",
|
45
|
+
"@atlaskit/tokens": "^1.3.0",
|
46
46
|
"@babel/runtime": "^7.0.0",
|
47
47
|
"@types/linkify-it": "^2.0.4",
|
48
48
|
"@types/prosemirror-model": "^1.11.0",
|
@@ -54,9 +54,9 @@
|
|
54
54
|
"prosemirror-transform": "1.3.2"
|
55
55
|
},
|
56
56
|
"devDependencies": {
|
57
|
-
"@atlaskit/adf-utils": "^18.
|
58
|
-
"@atlaskit/editor-json-transformer": "^8.
|
59
|
-
"@atlaskit/editor-test-helpers": "^18.
|
57
|
+
"@atlaskit/adf-utils": "^18.2.0",
|
58
|
+
"@atlaskit/editor-json-transformer": "^8.9.0",
|
59
|
+
"@atlaskit/editor-test-helpers": "^18.3.0",
|
60
60
|
"@atlaskit/json-schema-generator": "^3.3.0",
|
61
61
|
"@atlassian/adf-sample": "^1.1.0",
|
62
62
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|