@atlaskit/native-embeds-common 0.0.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.
- package/CHANGELOG.md +1 -0
- package/LICENSE.md +11 -0
- package/README.md +7 -0
- package/dist/cjs/constants.js +12 -0
- package/dist/cjs/index.js +18 -0
- package/dist/cjs/types.js +1 -0
- package/dist/es2019/constants.js +6 -0
- package/dist/es2019/index.js +1 -0
- package/dist/es2019/types.js +0 -0
- package/dist/esm/constants.js +6 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/types.js +0 -0
- package/dist/types/constants.d.ts +5 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/types.d.ts +1 -0
- package/dist/types-ts4.5/constants.d.ts +11 -0
- package/dist/types-ts4.5/index.d.ts +2 -0
- package/dist/types-ts4.5/types.d.ts +1 -0
- package/package.json +86 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @atlaskit/native-embeds-common
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Copyright 2023 Atlassian Pty Ltd
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
5
|
+
|
|
6
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DEFAULT_ALIGNMENT = exports.ALIGNMENT_VALUES = void 0;
|
|
7
|
+
var ALIGNMENT_VALUES = exports.ALIGNMENT_VALUES = ['left', 'center', 'right', 'wrap-left', 'wrap-right'];
|
|
8
|
+
|
|
9
|
+
/** Alignment value for native embed extension parameters. Single source of truth. */
|
|
10
|
+
|
|
11
|
+
/** Default alignment when not set in parameters. */
|
|
12
|
+
var DEFAULT_ALIGNMENT = exports.DEFAULT_ALIGNMENT = 'center';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ALIGNMENT_VALUES", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _constants.ALIGNMENT_VALUES;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "DEFAULT_ALIGNMENT", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _constants.DEFAULT_ALIGNMENT;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _constants = require("./constants");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const ALIGNMENT_VALUES = ['left', 'center', 'right', 'wrap-left', 'wrap-right'];
|
|
2
|
+
|
|
3
|
+
/** Alignment value for native embed extension parameters. Single source of truth. */
|
|
4
|
+
|
|
5
|
+
/** Default alignment when not set in parameters. */
|
|
6
|
+
export const DEFAULT_ALIGNMENT = 'center';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DEFAULT_ALIGNMENT, ALIGNMENT_VALUES } from './constants';
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var ALIGNMENT_VALUES = ['left', 'center', 'right', 'wrap-left', 'wrap-right'];
|
|
2
|
+
|
|
3
|
+
/** Alignment value for native embed extension parameters. Single source of truth. */
|
|
4
|
+
|
|
5
|
+
/** Default alignment when not set in parameters. */
|
|
6
|
+
export var DEFAULT_ALIGNMENT = 'center';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DEFAULT_ALIGNMENT, ALIGNMENT_VALUES } from './constants';
|
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ALIGNMENT_VALUES: readonly ["left", "center", "right", "wrap-left", "wrap-right"];
|
|
2
|
+
/** Alignment value for native embed extension parameters. Single source of truth. */
|
|
3
|
+
export type AlignmentValue = (typeof ALIGNMENT_VALUES)[number];
|
|
4
|
+
/** Default alignment when not set in parameters. */
|
|
5
|
+
export declare const DEFAULT_ALIGNMENT: AlignmentValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AlignmentValue } from './constants';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const ALIGNMENT_VALUES: readonly [
|
|
2
|
+
"left",
|
|
3
|
+
"center",
|
|
4
|
+
"right",
|
|
5
|
+
"wrap-left",
|
|
6
|
+
"wrap-right"
|
|
7
|
+
];
|
|
8
|
+
/** Alignment value for native embed extension parameters. Single source of truth. */
|
|
9
|
+
export type AlignmentValue = (typeof ALIGNMENT_VALUES)[number];
|
|
10
|
+
/** Default alignment when not set in parameters. */
|
|
11
|
+
export declare const DEFAULT_ALIGNMENT: AlignmentValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AlignmentValue } from './constants';
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"atlassian": {
|
|
3
|
+
"team": "Confluence Content Types",
|
|
4
|
+
"website": {
|
|
5
|
+
"name": "NativeEmbedsCommon",
|
|
6
|
+
"category": "Layout and structure"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-monorepo",
|
|
10
|
+
"main": "dist/cjs/index.js",
|
|
11
|
+
"module": "dist/esm/index.js",
|
|
12
|
+
"module:es2019": "dist/es2019/index.js",
|
|
13
|
+
"types": "dist/types/index.d.ts",
|
|
14
|
+
"typesVersions": {
|
|
15
|
+
">=4.5 <5.9": {
|
|
16
|
+
"*": [
|
|
17
|
+
"dist/types-ts4.5/*",
|
|
18
|
+
"dist/types-ts4.5/index.d.ts"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"*.compiled.css"
|
|
24
|
+
],
|
|
25
|
+
"atlaskit:src": "src/index.ts",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@babel/runtime": "^7.0.0",
|
|
28
|
+
"@compiled/react": "^0.18.6"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"react": "^18.2.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@af/integration-testing": "workspace:^",
|
|
35
|
+
"@af/visual-regression": "workspace:^",
|
|
36
|
+
"@atlaskit/ssr": "workspace:^",
|
|
37
|
+
"@testing-library/react": "^16.3.0",
|
|
38
|
+
"react-dom": "^18.2.0"
|
|
39
|
+
},
|
|
40
|
+
"techstack": {
|
|
41
|
+
"@atlassian/frontend": {
|
|
42
|
+
"code-structure": [
|
|
43
|
+
"tangerine-next"
|
|
44
|
+
],
|
|
45
|
+
"import-structure": [
|
|
46
|
+
"atlassian-conventions"
|
|
47
|
+
],
|
|
48
|
+
"circular-dependencies": [
|
|
49
|
+
"file-and-folder-level"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"@repo/internal": {
|
|
53
|
+
"dom-events": "use-bind-event-listener",
|
|
54
|
+
"analytics": [
|
|
55
|
+
"analytics-next"
|
|
56
|
+
],
|
|
57
|
+
"design-tokens": [
|
|
58
|
+
"color"
|
|
59
|
+
],
|
|
60
|
+
"theming": [
|
|
61
|
+
"react-context"
|
|
62
|
+
],
|
|
63
|
+
"ui-components": [
|
|
64
|
+
"lite-mode"
|
|
65
|
+
],
|
|
66
|
+
"deprecation": [
|
|
67
|
+
"no-deprecated-imports"
|
|
68
|
+
],
|
|
69
|
+
"styling": [
|
|
70
|
+
"static",
|
|
71
|
+
"compiled"
|
|
72
|
+
],
|
|
73
|
+
"imports": [
|
|
74
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"name": "@atlaskit/native-embeds-common",
|
|
79
|
+
"version": "0.0.0",
|
|
80
|
+
"description": "A shared package for native embeds to be used across experiences and plugin",
|
|
81
|
+
"author": "Atlassian Pty Ltd",
|
|
82
|
+
"license": "Apache-2.0",
|
|
83
|
+
"publishConfig": {
|
|
84
|
+
"registry": "https://registry.npmjs.org/"
|
|
85
|
+
}
|
|
86
|
+
}
|