@atlaskit/primitives 7.2.0 → 7.3.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atlaskit/primitives
2
2
 
3
+ ## 7.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#111623](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111623)
8
+ [`0392b6e4d865a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0392b6e4d865a) -
9
+ The `Text` component now aplies `overflow-wrap: anywhere` by default to ensure text does not break
10
+ out of fixed width containers. Be aware that if a single word is wider than its container width,
11
+ the word will be broken over multiple lines.
12
+
3
13
  ## 7.2.0
4
14
 
5
15
  ### Minor Changes
@@ -88,7 +88,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
88
88
  action: 'clicked',
89
89
  componentName: componentName || 'Anchor',
90
90
  packageName: "@atlaskit/primitives",
91
- packageVersion: "7.2.0",
91
+ packageVersion: "7.3.0",
92
92
  analyticsData: analyticsContext,
93
93
  actionSubject: 'link'
94
94
  });
@@ -81,7 +81,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
81
81
  action: 'clicked',
82
82
  componentName: componentName || 'Pressable',
83
83
  packageName: "@atlaskit/primitives",
84
- packageVersion: "7.2.0",
84
+ packageVersion: "7.3.0",
85
85
  analyticsData: analyticsContext,
86
86
  actionSubject: 'button'
87
87
  });
@@ -17,7 +17,8 @@ var asAllowlist = ['span', 'p', 'strong', 'em'];
17
17
  // Long term we should remove those instances from the reset - it should be a reset to 0.
18
18
  // For now, at least we know <Text> will be unaffected by this.
19
19
  var resetStyles = (0, _react2.css)({
20
- margin: 0
20
+ margin: 0,
21
+ overflowWrap: 'anywhere'
21
22
  });
22
23
  var strongStyles = (0, _react2.css)({
23
24
  fontWeight: 'bold'
@@ -74,7 +74,7 @@ const AnchorNoRef = ({
74
74
  action: 'clicked',
75
75
  componentName: componentName || 'Anchor',
76
76
  packageName: "@atlaskit/primitives",
77
- packageVersion: "7.2.0",
77
+ packageVersion: "7.3.0",
78
78
  analyticsData: analyticsContext,
79
79
  actionSubject: 'link'
80
80
  });
@@ -67,7 +67,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
67
67
  action: 'clicked',
68
68
  componentName: componentName || 'Pressable',
69
69
  packageName: "@atlaskit/primitives",
70
- packageVersion: "7.2.0",
70
+ packageVersion: "7.3.0",
71
71
  analyticsData: analyticsContext,
72
72
  actionSubject: 'button'
73
73
  });
@@ -9,7 +9,8 @@ const asAllowlist = ['span', 'p', 'strong', 'em'];
9
9
  // Long term we should remove those instances from the reset - it should be a reset to 0.
10
10
  // For now, at least we know <Text> will be unaffected by this.
11
11
  const resetStyles = css({
12
- margin: 0
12
+ margin: 0,
13
+ overflowWrap: 'anywhere'
13
14
  });
14
15
  const strongStyles = css({
15
16
  fontWeight: 'bold'
@@ -78,7 +78,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
78
78
  action: 'clicked',
79
79
  componentName: componentName || 'Anchor',
80
80
  packageName: "@atlaskit/primitives",
81
- packageVersion: "7.2.0",
81
+ packageVersion: "7.3.0",
82
82
  analyticsData: analyticsContext,
83
83
  actionSubject: 'link'
84
84
  });
@@ -71,7 +71,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
71
71
  action: 'clicked',
72
72
  componentName: componentName || 'Pressable',
73
73
  packageName: "@atlaskit/primitives",
74
- packageVersion: "7.2.0",
74
+ packageVersion: "7.3.0",
75
75
  analyticsData: analyticsContext,
76
76
  actionSubject: 'button'
77
77
  });
@@ -9,7 +9,8 @@ var asAllowlist = ['span', 'p', 'strong', 'em'];
9
9
  // Long term we should remove those instances from the reset - it should be a reset to 0.
10
10
  // For now, at least we know <Text> will be unaffected by this.
11
11
  var resetStyles = css({
12
- margin: 0
12
+ margin: 0,
13
+ overflowWrap: 'anywhere'
13
14
  });
14
15
  var strongStyles = css({
15
16
  fontWeight: 'bold'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "7.2.0",
3
+ "version": "7.3.0",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -16,7 +16,9 @@
16
16
  "atlaskit:src": "src/index.tsx",
17
17
  "atlassian": {
18
18
  "team": "Design System Team",
19
- "productPushConsumption": ["jira"],
19
+ "productPushConsumption": [
20
+ "jira"
21
+ ],
20
22
  "inPublicMirror": false,
21
23
  "releaseModel": "continuous",
22
24
  "website": {
@@ -156,23 +158,36 @@
156
158
  },
157
159
  "techstack": {
158
160
  "@atlassian/frontend": {
159
- "import-structure": ["atlassian-conventions"],
161
+ "import-structure": [
162
+ "atlassian-conventions"
163
+ ],
160
164
  "circular-dependencies": "file-and-folder-level"
161
165
  },
162
166
  "@repo/internal": {
163
167
  "design-system": "v1",
164
168
  "dom-events": "use-bind-event-listener",
165
169
  "analytics": "analytics-next",
166
- "ui-components": ["lite-mode"],
170
+ "ui-components": [
171
+ "lite-mode"
172
+ ],
167
173
  "deprecation": "no-deprecated-imports",
168
- "styling": ["static", "emotion"],
169
- "design-tokens": ["color", "spacing"]
174
+ "styling": [
175
+ "static",
176
+ "emotion"
177
+ ],
178
+ "design-tokens": [
179
+ "color",
180
+ "spacing"
181
+ ]
170
182
  }
171
183
  },
172
184
  "homepage": "https://atlassian.design/components/primitives/overview/",
173
185
  "typesVersions": {
174
186
  ">=4.5 <4.9": {
175
- "*": ["dist/types-ts4.5/*", "dist/types-ts4.5/index.d.ts"]
187
+ "*": [
188
+ "dist/types-ts4.5/*",
189
+ "dist/types-ts4.5/index.d.ts"
190
+ ]
176
191
  }
177
192
  },
178
193
  "af:exports": {