New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atlassian/clientside-extensions-docs

Package Overview
Dependencies
Maintainers
0
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlassian/clientside-extensions-docs - npm Package Versions

1
17

2.0.0-docs-1

Diff

gleal-atlassian
published 2.0.0 •

Changelog

Source

[2.0.0] - 2021-02-18

The Client-Side Extensions 2.0 introduces a new schema validation based on the GraphQL syntax. The previously used JSON schema syntax wasn't good enough to validate the extension points' more complex structures.

The extension developers are not directly affected by this change and can continue using the CSE 1.x. The new schema format and validation tooling are breaking changes for the extension owners only. The existing owners are mostly the Atlassian product developers.

However, if you are a plugin developer, we recommend you upgrade to the latest CSE version so that you can get better support for TypeScript.

You can read more about the GraphQL schemas on the documentation page:

  • How to use Schemas
  • Setting up the CSE schema-loader

Added

  • FEP-765: Introduce a new validation based on GraphQL schema. We added a new @atlassian/clientside-extensions-schema package that provides:

    • a webpack loader for .graphql files that generate React components and hooks that can be used to display extension points
    • static generators for built-in GraphQL scalars
    • static generators for *.graphl files that generate validators and React components
  • CSE-75: Some of the extensions handlers are now more useful, and it is encouraged to use them:

    • The ButtonHandler can now be used to render a properly styled Button
    • The LinkHandler can now be used to render a properly styled Link
    • The SectionHandler can now be used to render a section
  • CSE-75: A new convenience handler for Modals was introduced that renders an action handler, either a button or a link, that will take care of the lifecycle of the modal. It is exported as ModalWithActionHandler.

  • CSE-75: A ExtensionType enum is exported containing the named identifiers for extensions. This can be used to check if a extension descriptor is of a certain type. It can be imported as import { ExtensionType } from '@atlassian/clientside-extensions-components';. Currently, it supports:

    • ExtensionType.asyncPanel
    • ExtensionType.button
    • ExtensionType.link
    • ExtensionType.modal
    • ExtensionType.page
    • ExtensionType.panel
    • ExtensionType.section

Removed

  • FEP-765: We removed the support for JSON schema used to document and validate extension points APIs. Use the GraphQL based schema instead.

  • CSE-44 [BREAKING CHANGE]: We dropped support for Node 10. The CSE Node packages requires a Node version 12.19 or newer.

  • CSE-4 [BREAKING CHANGE]: We removed the MountProps types from the PanelExtension and ModalExtension types. The MountProps types used to be an empty interfaces that are no longer needed.

  • CSE-75 [BREAKING CHANGE]: The handlers no longer export the constant type. This has been moved to an enum called ExtensionType which can be accessed from the package directly. See Added section

Changed

  • CSE-79 [BREAKING CHANGE]: We updated the supported version of JavaScript in generated code. All the Node and NPM packages are now compiled to ES9 (ES2018).

  • CSE-75 [BREAKING CHANGE]: Some of the TypeScript components within the @atlassian/clientside-extensions-components package were renamed.

    • ButtonHandler.ButtonRenderer => ButtonHandler
    • LinkHandler.LinkRenderer => LinkHandler
    • PanelHandler.PanelRenderer => PanelHandler
    • ModalHandler.ModalRenderer => ModalHandler
    • AsyncPanelHandler.AsyncPanelRenderer => AsyncPanelHandler
    • SectionHandler.SectionRenderer => SectionHandler
  • CSE-4 [BREAKING CHANGE]: The renderElementAsReact utility function was moved from the @atlassian/clientside-extensions to the @atlassian/clientside-extensions-components package. Please update your imports.

    Example:

    • import { renderElementAsReact } from '@atlassian/clientside-extensions' becomes import { renderElementAsReact } from '@atlassian/clientside-extensions-components'
  • CSE-4 [BREAKING CHANGE]: Some of the TypeScript types were moved from @atlassian/clientside-extensions to the @atlassian/clientside-extensions-components package or vice versa. If you are using TypeScript in your project please update the types. Example:

    • PanelHandler.PanelRenderExtension => PanelExtension.PanelRenderExtension
    • ModalHandler.ModalRenderExtension => ModalExtension.ModalRenderExtension
    • ModalHandler.ModalAction => ModalExtension.ModalAction
  • CSE-23: WRM webpack plugin is now a peer dependency of CSE webpack plugin. This will prevent CSE from installing its own version of the plugin, causing issues in build time if the consumer uses a non-compatible version.

  • CSE-8 [BREAKING CHANGE]: Renamed the remaining plugin* keywords to extension* in TypeScript types and internal code.

gleal-atlassian
published 0.9.1 •

gleal-atlassian
published 0.9.0 •

Changelog

Source

[0.9.0] - 2020-02-18

Added

  • setActions and onClose methods has been added to the top level ModalAPI. They will replace the ones provided as "options" in onMount modal method.
  • setWidth and setAppearance methods have been added to ModalAPI.
  • setAction ModalAPI now can an accept a new testId property. You can use this property to write unique selectors while working on the e2e tests.

Fixed

  • Runtime no longer bundles React/AJV.
  • The existing JSON schema fields like label, url, title are not getting overwritten with default values.
  • Attributes are now validated also when calling updateAttributes.

Changed

  • BREAKING CHANGE: The useDebug, useValidation, useLogging, useDiscovery React hooks were removed from the @atlassian/clientside-extensions-debug package and moved to the @atlassian/clientside-extensions-components package.
  • Runtime no longer validates the type of extensions in production mode.

Deprecated

  • setActions and onClose Modal Options API is deprecated in favor for their counterparts in ModalAPI. They are still available for you to use, but will be removed on a later version.
gleal-atlassian
published 1.2.1 •

Changelog

Source

[1.2.1] - 2020-09-16

Fixed

  • CSE-31: Fixed the module resolution for the dependent all CSE Node packages. Now the CSE packages will use the same dependant versions of all CSE Node packages.
  • CSE-39: Fixed the broken builds of Node ESM modules.
gleal-atlassian
published 1.2.1-9db97dc •

gleal-atlassian
published 1.2.0 •

Changelog

Source

[1.2.0] - 2020-09-08

Added

Fixed

  • SFP-126 The discovery blue bubble no longer has the dark border around it in Chrome.
  • Provide the named chunk for validation module that is loaded by dynamic import.
  • SFP-139 CSE webpack plugin will show an appropriate error message when specifying an empty or invalid condition annotation.
gleal-atlassian
published 1.2.0-rc-5 •

gleal-atlassian
published 1.2.0-rc-4 •

gleal-atlassian
published 1.2.0-rc-3 •

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