@atlaskit/adf-schema 44.1.0 → 44.2.0

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 (63) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/index.js +24 -0
  3. package/dist/cjs/next-schema/generated/nodeTypes.js +77 -1
  4. package/dist/cjs/next-schema/groups/blockContentGroup.js +4 -2
  5. package/dist/cjs/next-schema/groups/blockGroup.js +4 -2
  6. package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +4 -2
  7. package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +2 -2
  8. package/dist/cjs/next-schema/nodes/extensionFrame.js +4 -2
  9. package/dist/cjs/next-schema/nodes/tableNodes.js +166 -0
  10. package/dist/cjs/schema/default-schema.js +5 -1
  11. package/dist/cjs/schema/index.js +24 -0
  12. package/dist/cjs/schema/nodes/index.js +24 -0
  13. package/dist/cjs/schema/nodes/tableNodes.js +52 -40
  14. package/dist/es2019/index.js +1 -1
  15. package/dist/es2019/next-schema/generated/nodeTypes.js +76 -0
  16. package/dist/es2019/next-schema/groups/blockContentGroup.js +4 -2
  17. package/dist/es2019/next-schema/groups/blockGroup.js +4 -2
  18. package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +4 -2
  19. package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  20. package/dist/es2019/next-schema/nodes/extensionFrame.js +4 -2
  21. package/dist/es2019/next-schema/nodes/tableNodes.js +160 -0
  22. package/dist/es2019/schema/default-schema.js +6 -2
  23. package/dist/es2019/schema/index.js +1 -1
  24. package/dist/es2019/schema/nodes/index.js +1 -1
  25. package/dist/es2019/schema/nodes/tableNodes.js +23 -14
  26. package/dist/esm/index.js +1 -1
  27. package/dist/esm/next-schema/generated/nodeTypes.js +76 -0
  28. package/dist/esm/next-schema/groups/blockContentGroup.js +4 -2
  29. package/dist/esm/next-schema/groups/blockGroup.js +4 -2
  30. package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +4 -2
  31. package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  32. package/dist/esm/next-schema/nodes/extensionFrame.js +4 -2
  33. package/dist/esm/next-schema/nodes/tableNodes.js +161 -0
  34. package/dist/esm/schema/default-schema.js +6 -2
  35. package/dist/esm/schema/index.js +1 -1
  36. package/dist/esm/schema/nodes/index.js +1 -1
  37. package/dist/esm/schema/nodes/tableNodes.js +52 -43
  38. package/dist/types/index.d.ts +1 -1
  39. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +3 -3
  40. package/dist/types/next-schema/generated/nodeTypes.d.ts +52 -4
  41. package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +1 -55
  42. package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +71 -0
  43. package/dist/types/next-schema/nodes/tableNodes.d.ts +2 -0
  44. package/dist/types/schema/index.d.ts +2 -2
  45. package/dist/types/schema/nodes/index.d.ts +2 -2
  46. package/dist/types/schema/nodes/tableNodes.d.ts +27 -0
  47. package/package.json +2 -2
  48. package/dist/cjs/next-schema/nodes/table.js +0 -53
  49. package/dist/cjs/next-schema/nodes/tableCell.js +0 -50
  50. package/dist/cjs/next-schema/nodes/tableHeader.js +0 -50
  51. package/dist/cjs/next-schema/nodes/tableRow.js +0 -26
  52. package/dist/es2019/next-schema/nodes/table.js +0 -47
  53. package/dist/es2019/next-schema/nodes/tableCell.js +0 -44
  54. package/dist/es2019/next-schema/nodes/tableHeader.js +0 -44
  55. package/dist/es2019/next-schema/nodes/tableRow.js +0 -20
  56. package/dist/esm/next-schema/nodes/table.js +0 -47
  57. package/dist/esm/next-schema/nodes/tableCell.js +0 -44
  58. package/dist/esm/next-schema/nodes/tableHeader.js +0 -44
  59. package/dist/esm/next-schema/nodes/tableRow.js +0 -20
  60. package/dist/types/next-schema/nodes/table.d.ts +0 -1
  61. package/dist/types/next-schema/nodes/tableCell.d.ts +0 -1
  62. package/dist/types/next-schema/nodes/tableHeader.d.ts +0 -1
  63. package/dist/types/next-schema/nodes/tableRow.d.ts +0 -1
@@ -1,44 +0,0 @@
1
- import { adfNode } from '@atlaskit/adf-schema-generator';
2
- import { tableHeaderContentPseudoGroup } from '../groups/tableCellContentPseudoGroup';
3
- import { unsupportedMark } from '../marks/unsupportedMark';
4
- import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
5
- export const tableHeader = adfNode('tableHeader').define({
6
- isolating: true,
7
- selectable: false,
8
- tableRole: 'header_cell',
9
- marks: [unsupportedMark, unsupportedNodeAttribute],
10
- attrs: {
11
- colspan: {
12
- type: 'number',
13
- default: 1,
14
- optional: true
15
- },
16
- rowspan: {
17
- type: 'number',
18
- default: 1,
19
- optional: true
20
- },
21
- colwidth: {
22
- type: 'array',
23
- items: {
24
- type: 'number'
25
- },
26
- default: null,
27
- optional: true
28
- },
29
- background: {
30
- type: 'string',
31
- default: null,
32
- optional: true
33
- }
34
- },
35
- content: [tableHeaderContentPseudoGroup],
36
- DANGEROUS_MANUAL_OVERRIDE: {
37
- 'validator-spec': {
38
- required: {
39
- reason: '@DSLCompatibilityException - required for tableHeader validator spec',
40
- value: ['content']
41
- }
42
- }
43
- }
44
- });
@@ -1,20 +0,0 @@
1
- import { $or, $onePlus, adfNode } from '@atlaskit/adf-schema-generator';
2
- import { unsupportedMark } from '../marks/unsupportedMark';
3
- import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
4
- import { tableCell } from './tableCell';
5
- import { tableHeader } from './tableHeader';
6
- import { tableCellContent } from './tableCellContent';
7
- export const tableRow = adfNode('tableRow').define({
8
- selectable: false,
9
- marks: [unsupportedMark, unsupportedNodeAttribute],
10
- content: [$onePlus($or(tableCell, tableHeader, tableCellContent))],
11
- tableRole: 'row',
12
- DANGEROUS_MANUAL_OVERRIDE: {
13
- 'validator-spec': {
14
- 'props.content.minItems': {
15
- reason: '@DSLCompatibilityException - required for tableRow validator spec',
16
- remove: true
17
- }
18
- }
19
- }
20
- });
@@ -1,47 +0,0 @@
1
- import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
- import { fragment } from '../marks/fragment';
3
- import { unsupportedMark } from '../marks/unsupportedMark';
4
- import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
5
- import { tableRow } from './tableRow';
6
- export var table = adfNode('table').define({
7
- isolating: true,
8
- selectable: true,
9
- tableRole: 'table',
10
- marks: [fragment, unsupportedMark, unsupportedNodeAttribute],
11
- attrs: {
12
- displayMode: {
13
- type: 'enum',
14
- values: ['default', 'fixed'],
15
- default: null,
16
- optional: true
17
- },
18
- isNumberColumnEnabled: {
19
- type: 'boolean',
20
- default: false,
21
- optional: true
22
- },
23
- layout: {
24
- type: 'enum',
25
- values: ['wide', 'full-width', 'center', 'align-end', 'align-start', 'default'],
26
- default: 'default',
27
- optional: true
28
- },
29
- localId: {
30
- type: 'string',
31
- minLength: 1,
32
- default: '',
33
- optional: true
34
- },
35
- width: {
36
- type: 'number',
37
- default: null,
38
- optional: true
39
- },
40
- __autoSize: {
41
- type: 'boolean',
42
- default: false,
43
- optional: true
44
- }
45
- },
46
- content: [$onePlus($or(tableRow))]
47
- });
@@ -1,44 +0,0 @@
1
- import { adfNode } from '@atlaskit/adf-schema-generator';
2
- import { unsupportedMark } from '../marks/unsupportedMark';
3
- import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
4
- import { tableCellContentPseudoGroup } from '../groups/tableCellContentPseudoGroup';
5
- export var tableCell = adfNode('tableCell').define({
6
- isolating: true,
7
- selectable: false,
8
- tableRole: 'cell',
9
- marks: [unsupportedMark, unsupportedNodeAttribute],
10
- attrs: {
11
- colspan: {
12
- type: 'number',
13
- default: 1,
14
- optional: true
15
- },
16
- rowspan: {
17
- type: 'number',
18
- default: 1,
19
- optional: true
20
- },
21
- colwidth: {
22
- type: 'array',
23
- items: {
24
- type: 'number'
25
- },
26
- default: null,
27
- optional: true
28
- },
29
- background: {
30
- type: 'string',
31
- default: null,
32
- optional: true
33
- }
34
- },
35
- content: [tableCellContentPseudoGroup],
36
- DANGEROUS_MANUAL_OVERRIDE: {
37
- 'validator-spec': {
38
- required: {
39
- reason: '@DSLCompatibilityException - required for tableCell validator spec',
40
- value: ['content']
41
- }
42
- }
43
- }
44
- });
@@ -1,44 +0,0 @@
1
- import { adfNode } from '@atlaskit/adf-schema-generator';
2
- import { tableHeaderContentPseudoGroup } from '../groups/tableCellContentPseudoGroup';
3
- import { unsupportedMark } from '../marks/unsupportedMark';
4
- import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
5
- export var tableHeader = adfNode('tableHeader').define({
6
- isolating: true,
7
- selectable: false,
8
- tableRole: 'header_cell',
9
- marks: [unsupportedMark, unsupportedNodeAttribute],
10
- attrs: {
11
- colspan: {
12
- type: 'number',
13
- default: 1,
14
- optional: true
15
- },
16
- rowspan: {
17
- type: 'number',
18
- default: 1,
19
- optional: true
20
- },
21
- colwidth: {
22
- type: 'array',
23
- items: {
24
- type: 'number'
25
- },
26
- default: null,
27
- optional: true
28
- },
29
- background: {
30
- type: 'string',
31
- default: null,
32
- optional: true
33
- }
34
- },
35
- content: [tableHeaderContentPseudoGroup],
36
- DANGEROUS_MANUAL_OVERRIDE: {
37
- 'validator-spec': {
38
- required: {
39
- reason: '@DSLCompatibilityException - required for tableHeader validator spec',
40
- value: ['content']
41
- }
42
- }
43
- }
44
- });
@@ -1,20 +0,0 @@
1
- import { $or, $onePlus, adfNode } from '@atlaskit/adf-schema-generator';
2
- import { unsupportedMark } from '../marks/unsupportedMark';
3
- import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
4
- import { tableCell } from './tableCell';
5
- import { tableHeader } from './tableHeader';
6
- import { tableCellContent } from './tableCellContent';
7
- export var tableRow = adfNode('tableRow').define({
8
- selectable: false,
9
- marks: [unsupportedMark, unsupportedNodeAttribute],
10
- content: [$onePlus($or(tableCell, tableHeader, tableCellContent))],
11
- tableRole: 'row',
12
- DANGEROUS_MANUAL_OVERRIDE: {
13
- 'validator-spec': {
14
- 'props.content.minItems': {
15
- reason: '@DSLCompatibilityException - required for tableRow validator spec',
16
- remove: true
17
- }
18
- }
19
- }
20
- });
@@ -1 +0,0 @@
1
- export declare const table: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec>;
@@ -1 +0,0 @@
1
- export declare const tableCell: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec>;
@@ -1 +0,0 @@
1
- export declare const tableHeader: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec>;
@@ -1 +0,0 @@
1
- export declare const tableRow: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec>;