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

atom-ide-base

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-ide-base - npm Package Compare versions

Comparing version 2.5.0 to 2.6.0

commons-atom/editor-largeness.d.ts

16

CHANGELOG.md

@@ -0,1 +1,17 @@

### 2.6.0
Added new utility functions:
- commons-ui:
- isItemVisible
- getItemElement
- isElementVisible
- commons-atom:
- editor largeness
- editor lineCountIfLarge
- editor lineLengthIfLong
- notifyError
Fixed bugs in ViewContainer, scrollIntoView.
### 2.5.0

@@ -2,0 +18,0 @@

2

commons-ui/float-pane/ViewContainer.d.ts

@@ -41,5 +41,5 @@ import { Props as MarkdownViewProps } from "./MarkdownView";

updateChildren(): void;
ActionClick(action: string, actionTitle: string): JSX.Element | undefined;
ActionClick(action: string | undefined, actionTitle: string | undefined): JSX.Element | undefined;
destroy(): Promise<void>;
}
export {};

@@ -80,6 +80,7 @@ "use strict";

let actionButton = undefined;
if (action != null && IconsForAction[action] != null) {
if (action !== undefined && IconsForAction[action] != null) {
const actionIcon = IconsForAction[action];
actionButton = (React.createElement("div", { className: `datatip-pin-button icon-${actionIcon}`, onClick: (event) => {
this.props.onActionClick();
actionButton = (React.createElement("div", { className: `datatip-pin-button icon-${actionIcon}`, onClick: () => {
var _a, _b;
(_b = (_a = this.props).onActionClick) === null || _b === void 0 ? void 0 : _b.call(_a, event);
}, title: actionTitle }));

@@ -94,2 +95,2 @@ }

exports.ViewContainer = ViewContainer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVmlld0NvbnRhaW5lci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy1jb21tb25zLXVpL2Zsb2F0LXBhbmUvVmlld0NvbnRhaW5lci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncy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T0gdW5kZWZpbmVkICYmIEljb25zRm9yQWN0aW9uW2FjdGlvbl0gIT0gbnVsbCkge1xuICAgICAgY29uc3QgYWN0aW9uSWNvbiA9IEljb25zRm9yQWN0aW9uW2FjdGlvbl1cbiAgICAgIGFjdGlvbkJ1dHRvbiA9IChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIGNsYXNzTmFtZT17YGRhdGF0aXAtcGluLWJ1dHRvbiBpY29uLSR7YWN0aW9uSWNvbn1gfVxuICAgICAgICAgIG9uQ2xpY2s9eygpID0+IHtcbiAgICAgICAgICAgIHRoaXMucHJvcHMub25BY3Rpb25DbGljaz8uKGV2ZW50KVxuICAgICAgICAgIH19XG4gICAgICAgICAgdGl0bGU9e2FjdGlvblRpdGxlfVxuICAgICAgICAvPlxuICAgICAgKVxuICAgIH1cbiAgICByZXR1cm4gYWN0aW9uQnV0dG9uXG4gIH1cblxuICBhc3luYyBkZXN0cm95KCkge1xuICAgIHJldHVybiAvLyB0aGlzLmNvbXBvbmVudFdpbGxVbm1vdW50KClcbiAgfVxufVxuIl19

@@ -30,2 +30,6 @@ /**

export declare function scrollIntoView(el: Element, alignToTop?: boolean): void;
export declare type ElementExtended = Element & {
scrollIntoViewIfNeeded?: (shouldCenter: boolean) => void;
};
export declare function scrollIntoViewIfNeeded(el: Element, center?: boolean): void;
export declare function isOverflowHidden(el: HTMLElement | SVGElement | Element): boolean;
"use strict";
/* globals getComputedStyle */
Object.defineProperty(exports, "__esModule", { value: true });
exports.scrollIntoViewIfNeeded = exports.scrollIntoView = void 0;
exports.isOverflowHidden = exports.scrollIntoViewIfNeeded = exports.scrollIntoView = void 0;
/**

@@ -39,6 +39,6 @@ * Use these functions instead of `Element::scrollIntoView()` and

exports.scrollIntoView = scrollIntoView;
function scrollIntoViewIfNeeded(el, center) {
var _a;
function scrollIntoViewIfNeeded(el, center = true) {
var _a, _b, _c;
const scrollTops = getScrollTops(el);
(_a = el === null || el === void 0 ? void 0 : el.scrollIntoViewIfNeeded(center)) !== null && _a !== void 0 ? _a : el.scrollIntoView(center);
(_c = (_b = (_a = el).scrollIntoViewIfNeeded) === null || _b === void 0 ? void 0 : _b.call(_a, center)) !== null && _c !== void 0 ? _c : el.scrollIntoView(center);
restoreOverflowHiddenScrollTops(scrollTops);

@@ -50,3 +50,3 @@ }

const scrollTops = new Map();
while (el != null) {
while (el !== null) {
scrollTops.set(el, el.scrollTop);

@@ -65,7 +65,8 @@ el = el.parentElement;

function isOverflowHidden(el) {
//@ts-ignore
const overflowStyle = el === null || el === void 0 ? void 0 : el.style.overflow;
var _a;
const overflowStyle = (_a = el) === null || _a === void 0 ? void 0 : _a.style.overflow;
const overflow = overflowStyle !== null && overflowStyle !== void 0 ? overflowStyle : getComputedStyle(el).overflow;
return overflow === "hidden";
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Nyb2xsSW50b1ZpZXcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMtY29tbW9ucy11aS9zY3JvbGxJbnRvVmlldy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsOEJBQThCOzs7QUFFOUI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQTJCRztBQUVILFNBQWdCLGNBQWMsQ0FBQyxFQUFXLEVBQUUsVUFBb0I7SUFDOUQsTUFBTSxVQUFVLEdBQUcsYUFBYSxDQUFDLEVBQUUsQ0FBQyxDQUFBO0lBQ3BDLEVBQUUsQ0FBQyxjQUFjLENBQUMsVUFBVSxDQUFDLENBQUE7SUFDN0IsK0JBQStCLENBQUMsVUFBVSxDQUFDLENBQUE7QUFDN0MsQ0FBQztBQUpELHdDQUlDO0FBRUQsU0FBZ0Isc0JBQXNCLENBQUMsRUFBVyxFQUFFLE1BQWdCOztJQUNsRSxNQUFNLFVBQVUsR0FBRyxhQUFhLENBQUMsRUFBRSxDQUFDLENBQUE7SUFDcEMsTUFBQSxF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tYmVyPiB7XG4gIGxldCBlbDogRWxlbWVudCB8IG51bGwgPSBlbF9cbiAgY29uc3Qgc2Nyb2xsVG9wcyA9IG5ldyBNYXA8RWxlbWVudCwgbnVtYmVyPigpXG4gIHdoaWxlIChlbCAhPT0gbnVsbCkge1xuICAgIHNjcm9sbFRvcHMuc2V0KGVsLCBlbC5zY3JvbGxUb3ApXG4gICAgZWwgPSBlbC5wYXJlbnRFbGVtZW50XG4gIH1cbiAgcmV0dXJuIHNjcm9sbFRvcHNcbn1cblxuZnVuY3Rpb24gcmVzdG9yZU92ZXJmbG93SGlkZGVuU2Nyb2xsVG9wcyhzY3JvbGxUb3BzOiBNYXA8RWxlbWVudCwgbnVtYmVyPik6IHZvaWQge1xuICBzY3JvbGxUb3BzLmZvckVhY2goKHNjcm9sbFRvcCwgZWwpID0+IHtcbiAgICBpZiAoZWwuc2Nyb2xsVG9wICE9PSBzY3JvbGxUb3AgJiYgaXNPdmVyZmxvd0hpZGRlbihlbCkpIHtcbiAgICAgIGVsLnNjcm9sbFRvcCA9IHNjcm9sbFRvcFxuICAgIH1cbiAgfSlcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGlzT3ZlcmZsb3dIaWRkZW4oZWw6IEhUTUxFbGVtZW50IHwgU1ZHRWxlbWVudCB8IEVsZW1lbnQpOiBib29sZWFuIHtcbiAgY29uc3Qgb3ZlcmZsb3dTdHlsZSA9IChlbCBhcyBIVE1MRWxlbWVudCk/LnN0eWxlLm92ZXJmbG93XG4gIGNvbnN0IG92ZXJmbG93ID0gb3ZlcmZsb3dTdHlsZSA/PyBnZXRDb21wdXRlZFN0eWxlKGVsKS5vdmVyZmxvd1xuICByZXR1cm4gb3ZlcmZsb3cgPT09IFwiaGlkZGVuXCJcbn1cbiJdfQ==
{
"name": "atom-ide-base",
"version": "2.5.0",
"version": "2.6.0",
"main": "package/main.js",

@@ -33,9 +33,9 @@ "types": "./types-packages/main.d.ts",

"clean": "shx rm -rf package commons-atom commons-ui commons",
"tsc.commons-ui": "tsc -p src-commons-ui/tsconfig.json || echo done",
"tsc.commons-ui": "tsc -p src-commons-ui/tsconfig.json",
"dev.commons-ui": "tsc -w -p src-commons-ui/tsconfig.json",
"build.commons-ui": "npm run tsc.commons-ui",
"tsc.commons-atom": "tsc -p src-commons-atom/tsconfig.json || echo done",
"tsc.commons-atom": "tsc -p src-commons-atom/tsconfig.json",
"dev.commons-atom": "tsc -w -p src-commons-atom/tsconfig.json",
"build.commons-atom": "npm run tsc.commons-atom",
"tsc.package": "tsc -p src-package/tsconfig.json || echo done",
"tsc.package": "tsc -p src-package/tsconfig.json",
"dev.package": "npm run clean && cross-env NODE_ENV=development cross-env BABEL_KEEP_MODULES=true rollup -c -w",

@@ -83,29 +83,32 @@ "build.package": "npm run clean && cross-env NODE_ENV=production cross-env BABEL_KEEP_MODULES=true rollup -c",

"@types/atom": "^1.40.10",
"@types/node": "^14.14.35",
"@types/dompurify": "^2.2.1",
"@types/node": "^14.14.37",
"@types/react": "^17.0.3",
"@types/react-dom": "^17.0.2",
"@types/dompurify": "^2.2.1",
"@types/react-dom": "^17.0.3",
"atom-ide-markdown-service": "^2.1.0",
"atom-package-deps": "^7.2.2",
"classnames": "^2.2.6",
"dompurify": "^2.2.6",
"atom-package-deps": "^7.2.3",
"classnames": "^2.3.1",
"dompurify": "^2.2.7",
"etch": "^0.14.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"rxjs": "^6.6.3"
"react": "^17.0.2",
"react-dom": "^17.0.2",
"rxjs": "^6.6.7"
},
"devDependencies": {
"@babel/cli": "7.13.10",
"@babel/core": "7.13.10",
"@babel/cli": "7.13.14",
"@babel/core": "7.13.14",
"@jest-runner/nuclide-e2e": "^2.0",
"@types/chance": "^1.1.1",
"@types/classnames": "^2.2.11",
"@types/jasmine": "^3.6.7",
"@types/jasmine": "^3.6.9",
"@types/temp": "^0.8.34",
"atom-jasmine3-test-runner": "^5.2.2",
"babel-jest": "^26.6.3",
"babel-preset-atomic": "^3.0.2",
"babel-preset-atomic": "^4.0.0",
"build-commit": "0.1.4",
"chance": "^1.1.7",
"cross-env": "7.0.3",
"csstype": "^3.0.7",
"eslint": "7.22.0",
"eslint-config-atomic": "^1.12.2",
"eslint": "7.23.0",
"eslint-config-atomic": "^1.12.5",
"jest": "^26.6.3",

@@ -122,5 +125,6 @@ "jest-circus": "^26.6.3",

"prettier": "^2.2.1",
"rollup": "2.41.5",
"rollup-plugin-atomic": "^2.1.0",
"rollup": "2.44.0",
"rollup-plugin-atomic": "^2.2.0",
"shx": "0.3.3",
"temp": "^0.9.4",
"typescript": "^4.2.3"

@@ -127,0 +131,0 @@ },

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("atom");let a;exports.activate=function(){a=new e.CompositeDisposable,async function(){atom.packages.isPackageLoaded("intentions")&&atom.packages.disablePackage("intentions");const e=["atom-ide-markdown-service","atom-ide-datatip","atom-ide-signature-help","atom-ide-hyperclick","atom-ide-definitions","atom-ide-outline","linter","linter-ui-default"];e.some((e=>!atom.packages.isPackageLoaded(e)))&&(require("atom-package-deps").install("atom-ide-base",!0),e.filter((e=>!atom.packages.isPackageLoaded(e))).forEach((e=>{atom.notifications.addInfo(`Enabling package ${e} that is needed for "atom-ide-base"`),atom.packages.enablePackage(e)})))}().then((()=>{}))},exports.deactivate=function(){a&&a.dispose(),a=null};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("atom");let t;exports.activate=function(){t=new e.CompositeDisposable,async function(){atom.packages.isPackageLoaded("intentions")&&atom.packages.disablePackage("intentions");const e=["atom-ide-markdown-service","atom-ide-datatip","atom-ide-signature-help","atom-ide-hyperclick","atom-ide-definitions","atom-ide-outline","linter","linter-ui-default"];e.some((e=>!atom.packages.isPackageLoaded(e)))&&(require("atom-package-deps").install("atom-ide-base",!0),e.filter((e=>!atom.packages.isPackageLoaded(e))).forEach((e=>{atom.notifications.addInfo(`Enabling package ${e} that is needed for "atom-ide-base"`),atom.packages.enablePackage(e)})))}().then((()=>{}))},exports.config={longLineLength:{title:"Long Line Length",description:"If an editor has a line with a length more than this number, the editor will reduce the expensive operations to help the performance.",type:"number",default:4e3,order:10},largeLineCount:{title:"Large File Line Count",description:"If an editor more line numbers than this number, the editor will reduce the expensive operations to help the performance.",type:"number",default:4e3,order:11}},exports.deactivate=function(){t&&t.dispose(),t=null};
//# sourceMappingURL=main.js.map

@@ -38,5 +38,8 @@ /* globals getComputedStyle */

export function scrollIntoViewIfNeeded(el: Element, center?: boolean): void {
export type ElementExtended = Element & { scrollIntoViewIfNeeded?: (shouldCenter: boolean) => void }
export function scrollIntoViewIfNeeded(el: Element, center: boolean = true): void {
const scrollTops = getScrollTops(el)
el?.scrollIntoViewIfNeeded(center) ?? el.scrollIntoView(center)
// eslint-disable-next-line no-unused-expressions
;(el as ElementExtended).scrollIntoViewIfNeeded?.(center) ?? el.scrollIntoView(center)
restoreOverflowHiddenScrollTops(scrollTops)

@@ -47,4 +50,4 @@ }

let el: Element | null = el_
const scrollTops = new Map()
while (el != null) {
const scrollTops = new Map<Element, number>()
while (el !== null) {
scrollTops.set(el, el.scrollTop)

@@ -64,7 +67,6 @@ el = el.parentElement

function isOverflowHidden(el: HTMLElement | SVGElement | Element): boolean {
//@ts-ignore
const overflowStyle = el?.style.overflow
export function isOverflowHidden(el: HTMLElement | SVGElement | Element): boolean {
const overflowStyle = (el as HTMLElement)?.style.overflow
const overflow = overflowStyle ?? getComputedStyle(el).overflow
return overflow === "hidden"
}

@@ -59,1 +59,20 @@ import { CompositeDisposable } from "atom"

}
export const config = {
longLineLength: {
title: "Long Line Length",
description:
"If an editor has a line with a length more than this number, the editor will reduce the expensive operations to help the performance.",
type: "number",
default: 4000,
order: 10,
},
largeLineCount: {
title: "Large File Line Count",
description:
"If an editor more line numbers than this number, the editor will reduce the expensive operations to help the performance.",
type: "number",
default: 4000,
order: 11,
},
}

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