@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.
Files changed (116) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/schema/nodes/tableNodes.js +1 -1
  3. package/dist/cjs/version.json +1 -1
  4. package/dist/es2019/schema/nodes/tableNodes.js +1 -1
  5. package/dist/es2019/version.json +1 -1
  6. package/dist/esm/schema/nodes/tableNodes.js +1 -1
  7. package/dist/esm/version.json +1 -1
  8. package/dist/types-ts4.0/index.d.ts +6 -0
  9. package/dist/types-ts4.0/json-schema/index.d.ts +2 -0
  10. package/dist/types-ts4.0/schema/bitbucket-schema.d.ts +5 -0
  11. package/dist/types-ts4.0/schema/confluence-schema.d.ts +9 -0
  12. package/dist/types-ts4.0/schema/create-schema.d.ts +32 -0
  13. package/dist/types-ts4.0/schema/default-schema.d.ts +7 -0
  14. package/dist/types-ts4.0/schema/groups.d.ts +6 -0
  15. package/dist/types-ts4.0/schema/index.d.ts +9 -0
  16. package/dist/types-ts4.0/schema/inline-nodes.d.ts +1 -0
  17. package/dist/types-ts4.0/schema/jira-schema.d.ts +65 -0
  18. package/dist/types-ts4.0/schema/marks/alignment.d.ts +16 -0
  19. package/dist/types-ts4.0/schema/marks/annotation.d.ts +32 -0
  20. package/dist/types-ts4.0/schema/marks/border.d.ts +24 -0
  21. package/dist/types-ts4.0/schema/marks/breakout.d.ts +12 -0
  22. package/dist/types-ts4.0/schema/marks/code.d.ts +8 -0
  23. package/dist/types-ts4.0/schema/marks/confluence-inline-comment.d.ts +12 -0
  24. package/dist/types-ts4.0/schema/marks/data-consumer.d.ts +48 -0
  25. package/dist/types-ts4.0/schema/marks/em.d.ts +8 -0
  26. package/dist/types-ts4.0/schema/marks/fragment.d.ts +29 -0
  27. package/dist/types-ts4.0/schema/marks/indentation.d.ts +16 -0
  28. package/dist/types-ts4.0/schema/marks/index.d.ts +34 -0
  29. package/dist/types-ts4.0/schema/marks/link.d.ts +35 -0
  30. package/dist/types-ts4.0/schema/marks/strike.d.ts +8 -0
  31. package/dist/types-ts4.0/schema/marks/strong.d.ts +8 -0
  32. package/dist/types-ts4.0/schema/marks/subsup.d.ts +15 -0
  33. package/dist/types-ts4.0/schema/marks/text-color.d.ts +22 -0
  34. package/dist/types-ts4.0/schema/marks/type-ahead-query.d.ts +2 -0
  35. package/dist/types-ts4.0/schema/marks/underline.d.ts +8 -0
  36. package/dist/types-ts4.0/schema/marks/unsupported-mark.d.ts +2 -0
  37. package/dist/types-ts4.0/schema/marks/unsupported-node-attributes.d.ts +2 -0
  38. package/dist/types-ts4.0/schema/nodes/block-card.d.ts +22 -0
  39. package/dist/types-ts4.0/schema/nodes/blockquote.d.ts +14 -0
  40. package/dist/types-ts4.0/schema/nodes/bodied-extension.d.ts +24 -0
  41. package/dist/types-ts4.0/schema/nodes/bullet-list.d.ts +3 -0
  42. package/dist/types-ts4.0/schema/nodes/caption.d.ts +20 -0
  43. package/dist/types-ts4.0/schema/nodes/code-block.d.ts +31 -0
  44. package/dist/types-ts4.0/schema/nodes/confluence-jira-issue.d.ts +2 -0
  45. package/dist/types-ts4.0/schema/nodes/confluence-unsupported-block.d.ts +2 -0
  46. package/dist/types-ts4.0/schema/nodes/confluence-unsupported-inline.d.ts +2 -0
  47. package/dist/types-ts4.0/schema/nodes/date.d.ts +14 -0
  48. package/dist/types-ts4.0/schema/nodes/decision-item.d.ts +17 -0
  49. package/dist/types-ts4.0/schema/nodes/decision-list.d.ts +18 -0
  50. package/dist/types-ts4.0/schema/nodes/doc.d.ts +18 -0
  51. package/dist/types-ts4.0/schema/nodes/embed-card.d.ts +18 -0
  52. package/dist/types-ts4.0/schema/nodes/emoji.d.ts +14 -0
  53. package/dist/types-ts4.0/schema/nodes/expand.d.ts +33 -0
  54. package/dist/types-ts4.0/schema/nodes/extension.d.ts +18 -0
  55. package/dist/types-ts4.0/schema/nodes/hard-break.d.ts +11 -0
  56. package/dist/types-ts4.0/schema/nodes/heading.d.ts +36 -0
  57. package/dist/types-ts4.0/schema/nodes/image.d.ts +2 -0
  58. package/dist/types-ts4.0/schema/nodes/index.d.ts +93 -0
  59. package/dist/types-ts4.0/schema/nodes/inline-card.d.ts +10 -0
  60. package/dist/types-ts4.0/schema/nodes/inline-extension.d.ts +18 -0
  61. package/dist/types-ts4.0/schema/nodes/layout-column.d.ts +21 -0
  62. package/dist/types-ts4.0/schema/nodes/layout-section.d.ts +44 -0
  63. package/dist/types-ts4.0/schema/nodes/list-item.d.ts +2 -0
  64. package/dist/types-ts4.0/schema/nodes/media-group.d.ts +14 -0
  65. package/dist/types-ts4.0/schema/nodes/media-inline.d.ts +16 -0
  66. package/dist/types-ts4.0/schema/nodes/media-single.d.ts +61 -0
  67. package/dist/types-ts4.0/schema/nodes/media.d.ts +62 -0
  68. package/dist/types-ts4.0/schema/nodes/mention.d.ts +26 -0
  69. package/dist/types-ts4.0/schema/nodes/nested-expand.d.ts +27 -0
  70. package/dist/types-ts4.0/schema/nodes/ordered-list.d.ts +4 -0
  71. package/dist/types-ts4.0/schema/nodes/panel.d.ts +38 -0
  72. package/dist/types-ts4.0/schema/nodes/paragraph.d.ts +37 -0
  73. package/dist/types-ts4.0/schema/nodes/placeholder.d.ts +11 -0
  74. package/dist/types-ts4.0/schema/nodes/rule.d.ts +8 -0
  75. package/dist/types-ts4.0/schema/nodes/status.d.ts +20 -0
  76. package/dist/types-ts4.0/schema/nodes/tableNodes.d.ts +114 -0
  77. package/dist/types-ts4.0/schema/nodes/task-item.d.ts +17 -0
  78. package/dist/types-ts4.0/schema/nodes/task-list.d.ts +21 -0
  79. package/dist/types-ts4.0/schema/nodes/text.d.ts +15 -0
  80. package/dist/types-ts4.0/schema/nodes/types/block-content.d.ts +22 -0
  81. package/dist/types-ts4.0/schema/nodes/types/extensions.d.ts +34 -0
  82. package/dist/types-ts4.0/schema/nodes/types/inline-content.d.ts +32 -0
  83. package/dist/types-ts4.0/schema/nodes/types/list.d.ts +42 -0
  84. package/dist/types-ts4.0/schema/nodes/types/mark.d.ts +15 -0
  85. package/dist/types-ts4.0/schema/nodes/types/non-nestable-block-content.d.ts +20 -0
  86. package/dist/types-ts4.0/schema/nodes/types/rich-media-common.d.ts +9 -0
  87. package/dist/types-ts4.0/schema/nodes/unknown-block.d.ts +3 -0
  88. package/dist/types-ts4.0/schema/nodes/unsupported-block.d.ts +2 -0
  89. package/dist/types-ts4.0/schema/nodes/unsupported-inline.d.ts +2 -0
  90. package/dist/types-ts4.0/schema/unsupported.d.ts +1 -0
  91. package/dist/types-ts4.0/steps/analytics.d.ts +59 -0
  92. package/dist/types-ts4.0/steps/link-meta-step.d.ts +51 -0
  93. package/dist/types-ts4.0/steps/set-attrs.d.ts +23 -0
  94. package/dist/types-ts4.0/steps/table/add-column.d.ts +88 -0
  95. package/dist/types-ts4.0/steps/table/constants.d.ts +4 -0
  96. package/dist/types-ts4.0/steps/table/sort-column.d.ts +18 -0
  97. package/dist/types-ts4.0/steps/table/types.d.ts +39 -0
  98. package/dist/types-ts4.0/steps/table/utils/cell-step.d.ts +51 -0
  99. package/dist/types-ts4.0/steps/table/utils/cells-at-column.d.ts +20 -0
  100. package/dist/types-ts4.0/steps/table/utils/find-column.d.ts +8 -0
  101. package/dist/types-ts4.0/steps/table/utils/get-table-rect-from-doc.d.ts +8 -0
  102. package/dist/types-ts4.0/steps/table/utils/side-effects/rows.d.ts +25 -0
  103. package/dist/types-ts4.0/steps/table/utils/side-effects/side-effects.d.ts +15 -0
  104. package/dist/types-ts4.0/steps/table/utils/side-effects/table.d.ts +16 -0
  105. package/dist/types-ts4.0/steps/table/utils/side-effects/types.d.ts +33 -0
  106. package/dist/types-ts4.0/steps/table/utils/table-map.d.ts +6 -0
  107. package/dist/types-ts4.0/steps/type-ahead.d.ts +35 -0
  108. package/dist/types-ts4.0/steps.d.ts +10 -0
  109. package/dist/types-ts4.0/utils/colors.d.ts +74 -0
  110. package/dist/types-ts4.0/utils/confluence/emoji.d.ts +50 -0
  111. package/dist/types-ts4.0/utils/extensions.d.ts +3 -0
  112. package/dist/types-ts4.0/utils/index.d.ts +6 -0
  113. package/dist/types-ts4.0/utils/parseDOM.d.ts +1 -0
  114. package/dist/types-ts4.0/utils/url.d.ts +31 -0
  115. package/dist/types-ts4.0/utils/uuid.d.ts +5 -0
  116. 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;
@@ -0,0 +1,5 @@
1
+ export declare const generateUuid: () => string;
2
+ export declare const uuid: {
3
+ setStatic(value: string | false): void;
4
+ generate(): string;
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "25.5.1",
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.1.0",
43
- "@atlaskit/editor-palette": "1.3.0",
44
- "@atlaskit/editor-tables": "^2.2.0",
45
- "@atlaskit/tokens": "^1.2.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.1.0",
58
- "@atlaskit/editor-json-transformer": "^8.8.0",
59
- "@atlaskit/editor-test-helpers": "^18.2.0",
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",