@aptre/flex-layout 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,7 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Aperture Robotics, LLC.
3
+ Copyright (c) 2023-2024 Aperture Robotics, LLC.
4
+ Copyright (c) 2023-2024 Christian Stewart <christian@aperture.us>
4
5
  Copyright (c) 2017 Caplin Systems Ltd
5
6
 
6
7
  Permission is hereby granted, free of charge, to any person obtaining a copy
package/dist/index.mjs CHANGED
@@ -1524,8 +1524,7 @@ function detectPRNG(root) {
1524
1524
  };
1525
1525
  } else if (typeof globalCrypto?.randomBytes === "function") {
1526
1526
  return () => globalCrypto.randomBytes(1).readUInt8() / 255;
1527
- } else
1528
- ;
1527
+ } else ;
1529
1528
  throw new Layerr({
1530
1529
  info: {
1531
1530
  code: "PRNG_DETECT",
@@ -2498,8 +2497,7 @@ function adjustSelectedIndexAfterFloat(node) {
2498
2497
  } else {
2499
2498
  if (!child.isFloating()) {
2500
2499
  newSelected = i;
2501
- if (found)
2502
- break;
2500
+ if (found) break;
2503
2501
  }
2504
2502
  }
2505
2503
  }
@@ -5290,8 +5288,7 @@ var Layout = class extends React16.Component {
5290
5288
  }
5291
5289
  /** @internal */
5292
5290
  onDragEnter(event) {
5293
- if (DragDrop.instance.isDragging())
5294
- return;
5291
+ if (DragDrop.instance.isDragging()) return;
5295
5292
  const drag = this.props.onExternalDrag(event);
5296
5293
  if (drag) {
5297
5294
  this.fnNewNodeDropped = drag.onDrop;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@aptre/flex-layout",
3
3
  "author": "Caplin Systems Ltd",
4
4
  "description": "A multi-tab docking layout manager",
5
- "version": "0.2.3",
5
+ "version": "0.2.4",
6
6
  "license": "ISC",
7
7
  "repository": {
8
8
  "type": "git",
@@ -67,6 +67,7 @@
67
67
  "build:style": "sass style/underline.scss style/underline.css && sass style/gray.scss style/gray.css && sass style/light.scss style/light.css && sass style/dark.scss style/dark.css",
68
68
  "build:types": "tsc --emitDeclarationOnly --declaration --outDir dist/",
69
69
  "test": "tsc --project tsconfig.json --noEmit",
70
+ "lint": "npm run lint:js",
70
71
  "lint:js": "ESLINT_USE_FLAT_CONFIG=false eslint -c .eslintrc.cjs ./",
71
72
  "format": "prettier --write './style/*.scss' './{src,declarations}/**/(*.ts|*.tsx|*.html)' package.json",
72
73
  "release:version": "npm version patch -m \"release: v%s\" --no-git-tag-version",
@@ -88,12 +89,12 @@
88
89
  "@types/react-dom": "^18.3.0",
89
90
  "@typescript-eslint/eslint-plugin": "^7.8.0",
90
91
  "@typescript-eslint/parser": "^7.8.0",
91
- "esbuild": "^0.20.2",
92
+ "esbuild": "^0.21.0",
92
93
  "eslint": "^8.0.0",
93
94
  "eslint-config-prettier": "^9.1.0",
94
95
  "eslint-plugin-react": "^7.34.1",
95
96
  "eslint-plugin-react-hooks": "^4.6.2",
96
- "eslint-plugin-unused-imports": "^3.1.0",
97
+ "eslint-plugin-unused-imports": "^4.0.0",
97
98
  "prettier": "^3.2.5",
98
99
  "prismjs": "^1.28.0",
99
100
  "react": "^18.3.1",