@atlaskit/editor-wikimarkup-transformer 11.20.13 → 11.20.15

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/editor-wikimarkup-transformer
2
2
 
3
+ ## 11.20.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 11.20.14
10
+
11
+ ### Patch Changes
12
+
13
+ - [`76faad1c8c7b5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76faad1c8c7b5) -
14
+ Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
15
+
16
+ What changed: The `react-intl-next` devDependency alias (which resolved to `react-intl@^5`) has
17
+ been renamed to `react-intl`. This is a development-only change with no impact on consumers.
18
+
3
19
  ## 11.20.13
4
20
 
5
21
  ### Patch Changes
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
- "target": "es5",
5
4
  "outDir": "../../../../../tsDist/@atlaskit__editor-wikimarkup-transformer/app",
6
5
  "rootDir": "../",
7
6
  "composite": true,
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.parseAttrs = parseAttrs;
8
8
  var _toArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toArray"));
9
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
9
10
  function parseAttrs(str) {
10
11
  var sep = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '|';
11
12
  var output = {};
@@ -18,7 +19,7 @@ function parseAttrs(str) {
18
19
  var _attributeStr$split = attributeStr.split('='),
19
20
  _attributeStr$split2 = (0, _toArray2.default)(_attributeStr$split),
20
21
  key = _attributeStr$split2[0],
21
- value = _attributeStr$split2.slice(1);
22
+ value = _arrayLikeToArray(_attributeStr$split2).slice(1);
22
23
  // take only first value of the same keys
23
24
  if (!output[key]) {
24
25
  output[key] = value.join('=');
@@ -1,4 +1,5 @@
1
1
  import _toArray from "@babel/runtime/helpers/toArray";
2
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
2
3
  export function parseAttrs(str) {
3
4
  var sep = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '|';
4
5
  var output = {};
@@ -11,7 +12,7 @@ export function parseAttrs(str) {
11
12
  var _attributeStr$split = attributeStr.split('='),
12
13
  _attributeStr$split2 = _toArray(_attributeStr$split),
13
14
  key = _attributeStr$split2[0],
14
- value = _attributeStr$split2.slice(1);
15
+ value = _arrayLikeToArray(_attributeStr$split2).slice(1);
15
16
  // take only first value of the same keys
16
17
  if (!output[key]) {
17
18
  output[key] = value.join('=');
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Testing structured MCP docs for review — ignore this file.
3
+ * Contact #dst-structured-content in Slack with questions.
4
+ */
5
+
6
+ import path from 'path';
7
+
8
+ import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
9
+
10
+ import packageJson from './package.json';
11
+
12
+ const packagePath = path.resolve(__dirname);
13
+
14
+ const documentation: StructuredContentSource = {
15
+ components: [
16
+ {
17
+ name: 'Editor Wikimarkup Transformer',
18
+ description: 'Wiki markup transformer for JIRA and Confluence',
19
+ status: 'general-availability',
20
+ import: {
21
+ name: 'Editor Wikimarkup Transformer',
22
+ package: '@atlaskit/editor-wikimarkup-transformer',
23
+ type: 'default',
24
+ packagePath,
25
+ packageJson,
26
+ },
27
+ usageGuidelines: [],
28
+ contentGuidelines: [],
29
+ accessibilityGuidelines: [],
30
+ keywords: ['editor', 'editor-wikimarkup-transformer', 'atlaskit'],
31
+ categories: ['editor'],
32
+ examples: [
33
+ {
34
+ name: 'ADF to wikimarkup',
35
+ description: 'Transform ADF to wikimarkup.',
36
+ source: path.resolve(packagePath, './examples/0-adf-to-wikimarkup.tsx'),
37
+ },
38
+ {
39
+ name: 'Wikimarkup to ADF',
40
+ description: 'Transform wikimarkup to ADF.',
41
+ source: path.resolve(packagePath, './examples/1-wikimarkup-to-adf.tsx'),
42
+ },
43
+ {
44
+ name: 'Wikimarkup editor',
45
+ description: 'Editor with wikimarkup transformer.',
46
+ source: path.resolve(packagePath, './examples/2-wikimarkup-editor.tsx'),
47
+ },
48
+ ],
49
+ },
50
+ ],
51
+ };
52
+
53
+ export default documentation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-wikimarkup-transformer",
3
- "version": "11.20.13",
3
+ "version": "11.20.15",
4
4
  "description": "Wiki markup transformer for JIRA and Confluence",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,24 +29,25 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^52.4.0",
33
- "@atlaskit/editor-json-transformer": "^8.31.0",
32
+ "@atlaskit/adf-schema": "^53.0.0",
33
+ "@atlaskit/editor-json-transformer": "^8.33.0",
34
34
  "@atlaskit/editor-prosemirror": "^7.3.0",
35
35
  "@babel/runtime": "^7.0.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@atlaskit/activity": "^1.0.1",
39
- "@atlaskit/editor-core": "^217.12.0",
39
+ "@atlaskit/editor-core": "^220.2.0",
40
40
  "@atlaskit/editor-test-helpers": "workspace:^",
41
- "@atlaskit/mention": "^24.6.0",
42
- "@atlaskit/tokens": "^12.0.0",
43
- "@atlaskit/util-data-test": "^18.5.0",
41
+ "@atlaskit/mention": "^26.2.0",
42
+ "@atlaskit/tokens": "^13.3.0",
43
+ "@atlaskit/util-data-test": "^18.6.0",
44
+ "@atlassian/structured-docs-types": "workspace:^",
44
45
  "@emotion/react": "^11.7.1",
45
46
  "@types/debug": "^4.1.10",
46
47
  "cookie": "^0.3.1",
47
48
  "debug": "^4.3.4",
48
49
  "react": "^18.2.0",
49
- "react-intl-next": "npm:react-intl@^5.18.1",
50
+ "react-intl": "^6.6.2",
50
51
  "rxjs": "^5.5.0"
51
52
  }
52
53
  }
@@ -1,39 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.local-consumption.json",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "outDir": "../../../../../jira/tsDist/@atlaskit__editor-wikimarkup-transformer/app",
6
- "rootDir": "../",
7
- "composite": true,
8
- "noCheck": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../adf-schema/afm-jira/tsconfig.json"
28
- },
29
- {
30
- "path": "../../editor-json-transformer/afm-jira/tsconfig.json"
31
- },
32
- {
33
- "path": "../../editor-prosemirror/afm-jira/tsconfig.json"
34
- },
35
- {
36
- "path": "../../../design-system/theme/afm-jira/tsconfig.json"
37
- }
38
- ]
39
- }