Skip to content

Releases: atlassian-labs/compiled

@compiled/react@0.21.2

12 May 06:28
62b0633

Choose a tag to compare

Patch Changes

  • 51925d5: Fix class component prop types under TypeScript 6. ElementAttributesProperty and ElementChildrenAttribute are now declared as inline interfaces in the CompiledJSX namespace rather than type aliases to JSX.ElementAttributesProperty / JSX.ElementChildrenAttribute. The aliases caused a circular reference when @compiled/react is used as jsxImportSource (since JSX re-exports CompiledJSX), which TypeScript 6 resolves differently — passing the class instance type to LibraryManagedAttributes instead of the extracted props, making all class component props inaccessible in JSX.

@compiled/react@0.21.1

30 Apr 03:09
57914bd

Choose a tag to compare

Patch Changes

  • 9a805f7: Fix JSX namespace types compatibility with React 19. CompiledJSX.LibraryManagedAttributes no longer delegates to ReactJSXLibraryManagedAttributes, which caused a circular reference when used with React 19's @types/react. The type now directly intersects component props with { key?: React.Key }, which works correctly for both React 18 and React 19.

@compiled/react@0.21.0

20 Apr 22:36
e229755

Choose a tag to compare

Minor Changes

  • 8e70033: Add StyleContainerProvider to enable style injection into a custom DOM node (e.g. Shadow DOM) instead of document.head.

@compiled/eslint-plugin@0.19.2

30 Mar 05:39
985574d

Choose a tag to compare

Patch Changes

  • 213e6d5: Use publishing registry from repo root

@compiled/codemods@0.10.1

30 Mar 06:59
3501a57

Choose a tag to compare

Patch Changes

  • 2992a96: Change to trigger new publishing flow

@compiled/css@0.21.1

27 Feb 02:38
54f9653

Choose a tag to compare

Patch Changes

  • a990973: Add support for @position-try global at-rule

    Added support for CSS @position-try at-rule (CSS Anchor Positioning Level 1) in Compiled's cssMap API. The @position-try at-rule defines named fallback positions for CSS Anchor Positioning and is now correctly handled as a global at-rule, similar to @keyframes.

    What changed:

    • Added 'position-try' to the ignored at-rules list in packages/css/src/plugins/atomicify-rules.ts
    • This ensures @position-try rules are emitted globally without atomification or component scoping
    • Both nested and flat syntax styles are supported:
      • Nested: '@position-try': { '--name': { ... } }
      • Flat: '@position-try --name': { ... }

    Browser support:

    • Chrome 125+ (May 2024)
    • Firefox 131+ (Oct 2024)
    • Safari 18.2+ (Dec 2024)

    Example usage:

    const styles = cssMap({
      arrowBlockStart: {
        '@position-try --ds-arrow-block-start': {
          positionArea: 'block-start',
          margin: 0,
          marginBlockEnd: 'var(--ds-arrow-size, 8px)',
        },
      },
    });

    Note: Type support for @position-try was already present via csstype 3.2.3 (added in #1867). This change completes the implementation by ensuring the CSS transformation correctly handles it as a global at-rule.

@compiled/babel-plugin@0.39.1

27 Feb 02:38
54f9653

Choose a tag to compare

Patch Changes

  • a990973: Add support for @position-try global at-rule

    Added support for CSS @position-try at-rule (CSS Anchor Positioning Level 1) in Compiled's cssMap API. The @position-try at-rule defines named fallback positions for CSS Anchor Positioning and is now correctly handled as a global at-rule, similar to @keyframes.

    What changed:

    • Added 'position-try' to the ignored at-rules list in packages/css/src/plugins/atomicify-rules.ts
    • This ensures @position-try rules are emitted globally without atomification or component scoping
    • Both nested and flat syntax styles are supported:
      • Nested: '@position-try': { '--name': { ... } }
      • Flat: '@position-try --name': { ... }

    Browser support:

    • Chrome 125+ (May 2024)
    • Firefox 131+ (Oct 2024)
    • Safari 18.2+ (Dec 2024)

    Example usage:

    const styles = cssMap({
      arrowBlockStart: {
        '@position-try --ds-arrow-block-start': {
          positionArea: 'block-start',
          margin: 0,
          marginBlockEnd: 'var(--ds-arrow-size, 8px)',
        },
      },
    });

    Note: Type support for @position-try was already present via csstype 3.2.3 (added in #1867). This change completes the implementation by ensuring the CSS transformation correctly handles it as a global at-rule.

  • Updated dependencies [a990973]

    • @compiled/css@0.21.1

@compiled/webpack-loader@0.20.1

23 Feb 20:27
18fa545

Choose a tag to compare

Patch Changes

  • Updated dependencies [6429bfe]
    • @compiled/babel-plugin@0.39.0

@compiled/vite-plugin@1.1.4

23 Feb 20:27
18fa545

Choose a tag to compare

Patch Changes

  • Updated dependencies [6429bfe]
    • @compiled/babel-plugin@0.39.0

@compiled/react@0.20.0

23 Feb 20:27
18fa545

Choose a tag to compare

Minor Changes

  • 6429bfe: Bump csstype from 3.1.3 to 3.2.3 and add missing @container support to cssMap validation

    Updates csstype to the latest version which reflects the evolution of CSS standards. This change also fixes a bug where @container (CSS Container Queries) was partially supported in CSS processing but was missing from the cssMap type validation lookup table.

    Removed at-rules:

    • @scroll-timeline - Abandoned CSS proposal; Scroll-driven Animations now use animation-timeline property instead
    • @viewport - Obsolete at-rule with no modern browser support; viewport configuration is now handled via meta tags and media queries

    Added at-rules (with full support):

    • @container - CSS Container Queries (now fully validated in cssMap)
    • @position-try - CSS Anchor Positioning
    • @view-transition - View Transitions API

    What changed:

    • Updated csstype dependency to 3.2.3 across all packages
    • Updated AtRules type mapping in packages/babel-plugin/src/utils/css-map.ts to include the new at-rules and remove deprecated ones
    • Bumped to minor for @compiled/babel-plugin due to adding @container support to cssMap validation

    Note: The @scroll-timeline and @viewport at-rules are not used anywhere in the Compiled codebase, so this is not a breaking change.