Socket
Socket
Sign inDemoInstall

@atlaskit/primitives

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/primitives - npm Package Compare versions

Comparing version 5.1.2 to 5.2.0

6

CHANGELOG.md
# @atlaskit/primitives
## 5.2.0
### Minor Changes
- [#86279](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86279) [`0988fda99a0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0988fda99a0d) - Renaming text alignment prop for Text component from `textAlign` to `align`
## 5.1.2

@@ -4,0 +10,0 @@

2

dist/cjs/components/anchor.js

@@ -79,3 +79,3 @@ "use strict";

packageName: "@atlaskit/primitives",
packageVersion: "5.1.2",
packageVersion: "5.2.0",
analyticsData: analyticsContext,

@@ -82,0 +82,0 @@ actionSubject: 'link'

@@ -11,6 +11,3 @@ "use strict";

var _xcss = require("../xcss/xcss");
/**
* @jsxRuntime classic
* @jsx jsx
*/
/** @jsx jsx */

@@ -17,0 +14,0 @@ var baseStyles = (0, _react2.css)({

@@ -83,3 +83,3 @@ "use strict";

packageName: "@atlaskit/primitives",
packageVersion: "5.1.2",
packageVersion: "5.2.0",
analyticsData: analyticsContext,

@@ -86,0 +86,0 @@ actionSubject: 'button'

@@ -90,2 +90,4 @@ "use strict";

textAlign = _ref.textAlign,
_ref$align = _ref.align,
align = _ref$align === void 0 ? textAlign : _ref$align,
testId = _ref.testId,

@@ -103,3 +105,3 @@ id = _ref.id,

ref: ref,
css: [resetStyles, _styleMaps.fontStylesMap[size], color && _styleMaps.textColorStylesMap[color], maxLines && truncationStyles, maxLines === 1 && wordBreakMap.breakAll, textAlign && textAlignMap[textAlign], weight && _styleMaps.fontWeightStylesMap[weight], Component === 'em' && emStyles, Component === 'strong' && strongStyles],
css: [resetStyles, _styleMaps.fontStylesMap[size], color && _styleMaps.textColorStylesMap[color], maxLines && truncationStyles, maxLines === 1 && wordBreakMap.breakAll, align && textAlignMap[align], weight && _styleMaps.fontWeightStylesMap[weight], Component === 'em' && emStyles, Component === 'strong' && strongStyles],
style: {

@@ -106,0 +108,0 @@ WebkitLineClamp: maxLines

@@ -65,3 +65,3 @@ import _extends from "@babel/runtime/helpers/extends";

packageName: "@atlaskit/primitives",
packageVersion: "5.1.2",
packageVersion: "5.2.0",
analyticsData: analyticsContext,

@@ -68,0 +68,0 @@ actionSubject: 'link'

@@ -1,5 +0,2 @@

/**
* @jsxRuntime classic
* @jsx jsx
*/
/** @jsx jsx */
import React from 'react';

@@ -6,0 +3,0 @@ import { css, jsx } from '@emotion/react';

@@ -69,3 +69,3 @@ import _extends from "@babel/runtime/helpers/extends";

packageName: "@atlaskit/primitives",
packageVersion: "5.1.2",
packageVersion: "5.2.0",
analyticsData: analyticsContext,

@@ -72,0 +72,0 @@ actionSubject: 'button'

@@ -79,2 +79,3 @@ /** @jsx jsx */

textAlign,
align = textAlign,
testId,

@@ -92,3 +93,3 @@ id,

ref: ref,
css: [resetStyles, fontStylesMap[size], color && textColorStylesMap[color], maxLines && truncationStyles, maxLines === 1 && wordBreakMap.breakAll, textAlign && textAlignMap[textAlign], weight && fontWeightStylesMap[weight], Component === 'em' && emStyles, Component === 'strong' && strongStyles],
css: [resetStyles, fontStylesMap[size], color && textColorStylesMap[color], maxLines && truncationStyles, maxLines === 1 && wordBreakMap.breakAll, align && textAlignMap[align], weight && fontWeightStylesMap[weight], Component === 'em' && emStyles, Component === 'strong' && strongStyles],
style: {

@@ -95,0 +96,0 @@ WebkitLineClamp: maxLines

@@ -69,3 +69,3 @@ import _extends from "@babel/runtime/helpers/extends";

packageName: "@atlaskit/primitives",
packageVersion: "5.1.2",
packageVersion: "5.2.0",
analyticsData: analyticsContext,

@@ -72,0 +72,0 @@ actionSubject: 'link'

@@ -1,5 +0,2 @@

/**
* @jsxRuntime classic
* @jsx jsx
*/
/** @jsx jsx */
import React from 'react';

@@ -6,0 +3,0 @@ import { css, jsx } from '@emotion/react';

@@ -73,3 +73,3 @@ import _extends from "@babel/runtime/helpers/extends";

packageName: "@atlaskit/primitives",
packageVersion: "5.1.2",
packageVersion: "5.2.0",
analyticsData: analyticsContext,

@@ -76,0 +76,0 @@ actionSubject: 'button'

@@ -82,2 +82,4 @@ /** @jsx jsx */

textAlign = _ref.textAlign,
_ref$align = _ref.align,
align = _ref$align === void 0 ? textAlign : _ref$align,
testId = _ref.testId,

@@ -95,3 +97,3 @@ id = _ref.id,

ref: ref,
css: [resetStyles, fontStylesMap[size], color && textColorStylesMap[color], maxLines && truncationStyles, maxLines === 1 && wordBreakMap.breakAll, textAlign && textAlignMap[textAlign], weight && fontWeightStylesMap[weight], Component === 'em' && emStyles, Component === 'strong' && strongStyles],
css: [resetStyles, fontStylesMap[size], color && textColorStylesMap[color], maxLines && truncationStyles, maxLines === 1 && wordBreakMap.breakAll, align && textAlignMap[align], weight && fontWeightStylesMap[weight], Component === 'em' && emStyles, Component === 'strong' && strongStyles],
style: {

@@ -98,0 +100,0 @@ WebkitLineClamp: maxLines

@@ -1,5 +0,2 @@

/**
* @jsxRuntime classic
* @jsx jsx
*/
/** @jsx jsx */
import React, { ReactNode } from 'react';

@@ -6,0 +3,0 @@ import { jsx } from '@emotion/react';

@@ -38,6 +38,10 @@ /** @jsx jsx */

/**
* The [HTML `text-align` attribute](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align).
* @deprecated The [HTML `text-align` attribute](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align).
*/
textAlign?: TextAlign;
/**
* Text alignment.
*/
align?: TextAlign;
/**
* Text size.

@@ -71,3 +75,3 @@ */

*/
declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "textAlign" | "size" | "weight" | "children" | "as" | "id" | "role" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "textAlign" | "size" | "weight" | "children" | "as" | "id" | "role" | "align" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
export default Text;

@@ -1,5 +0,2 @@

/**
* @jsxRuntime classic
* @jsx jsx
*/
/** @jsx jsx */
import React, { ReactNode } from 'react';

@@ -6,0 +3,0 @@ import { jsx } from '@emotion/react';

@@ -33,6 +33,10 @@ /** @jsx jsx */

/**
* The [HTML `text-align` attribute](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align).
* @deprecated The [HTML `text-align` attribute](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align).
*/
textAlign?: TextAlign;
/**
* Text alignment.
*/
align?: TextAlign;
/**
* Text size.

@@ -66,3 +70,3 @@ */

*/
declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "textAlign" | "size" | "weight" | "children" | "as" | "id" | "role" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "textAlign" | "size" | "weight" | "children" | "as" | "id" | "role" | "align" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
export default Text;
{
"name": "@atlaskit/primitives",
"version": "5.1.2",
"version": "5.2.0",
"description": "Primitives are token-backed low-level building blocks.",

@@ -5,0 +5,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc