Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@phase2/outline-controller-light-dom-styles-controller

Package Overview
Dependencies
Maintainers
9
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phase2/outline-controller-light-dom-styles-controller

Deprecated controller to manage styles via Light DOM.

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
29
increased by123.08%
Maintainers
9
Weekly downloads
 
Created
Source

Latest version for outline-controller-light-dom-styles-controller

LightDomStyles Controller

This controller is deprecated, and the StyleController from @phase2/outline-controller-style-controller should be utilized in its place when possible.

Using the LightDomStyles Controller

If you are using the LightDomStyles Controller, it is assumed you were likely using the original version supplied via the @phase2/outline-core package. In that case, the following should help you upgrade any components from the version of light-dom-style.ts from outline-core, to the newly packaged version.

This version will remain an active, but deprecated package to support legacy applications utilizing this method and controller.

Installing the LightDomStyles Controller

Install the new package:

yarn add @phase2/outline-controller-light-dom-styles-controller --dev

Upgrade outline-core to @phase2/outline-core@^2.0.0 to remove the original controller. @phase2/outline-form should also be updated.

yarn upgrade @phase2/outline-core @phase2/outline-form

Upgrading existing components

In current components that are using the LightDomStyles controller, you may see a line such as this:

import { OutlineElement, LightDomStyles } from '@phase2/outline-core';

This would be replaced with the following:

import { OutlineElement } from '@phase2/outline-core';
import { LightDomStyles } from '@phase2/outline-controller-light-dom-styles-controller';

Beyond that, the typical implementation looks as follows:

lightDomStyles = new LightDomStyles(this, globalStyles);

This line, implementing the reactive controller should not need to be changed on any application that is not upgrading to the StyleController.

Keywords

FAQs

Package last updated on 06 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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