Skip to content

Commit

Permalink
Remove cash-dom
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-leamon committed May 29, 2024
1 parent c67f61e commit f72e9e2
Show file tree
Hide file tree
Showing 21 changed files with 46 additions and 28 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"version": "1.0.131",
"version": "1.0.133",
"description": "Formation is a comprehensive component library powered by React, Styled Components, and CSS variables for creating apps and websites that demand responsive, unified cross-platform experiences.",
"resolutions": {
"string-width": "^4",
Expand Down Expand Up @@ -75,6 +75,7 @@
"@storybook/theming": "^7.6.15",
"@testing-library/react": "^13.3.0",
"@types/jest": "^28.1.6",
"@types/jquery": "^3",
"@types/lodash.union": "^4.6.7",
"@types/lodash.xor": "^4.5.7",
"@types/marked": "^4.0.6",
Expand Down Expand Up @@ -132,11 +133,11 @@
"@fortawesome/free-solid-svg-icons": "^6.5.2",
"@fortawesome/react-fontawesome": "^0.2.2",
"@gsap/react": "^2.1.0",
"cash-dom": "^8.1.5",
"gsap": "^3.12.5",
"html2plaintext": "^2.1.4",
"isomorphic-dompurify": "^0.21.0",
"javascript-time-ago": "^2.5.9",
"jquery": "^3.7.1",
"lodash.union": "^4.6.0",
"lodash.xor": "^4.5.0",
"marked": "^4.0.19",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Docking/src/js_es6/LayoutManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import TransitionIndicator from './controls/TransitionIndicator';
import ConfigurationError from './errors/ConfigurationError';
import defaultConfig from './config/defaultConfig';
import { fnBind, objectKeys, copy, getUniqueId, indexOf, isFunction, stripTags, getQueryStringParam } from './utils/utils';
import $ from 'cash-dom';
import $ from 'jquery';
export var REACT_COMPONENT_ID = 'lm-react-component';
/**
* The main class that will be exposed as GoldenLayout.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

import EventEmitter from '../utils/EventEmitter';
import $ from 'cash-dom';
import $ from 'jquery';

var ItemContainer = /*#__PURE__*/function (_EventEmitter) {
_inherits(ItemContainer, _EventEmitter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
import EventEmitter from '../utils/EventEmitter';
import ConfigMinifier from '../utils/ConfigMinifier';
import { fnBind, getUniqueId } from '../utils/utils';
import $ from 'cash-dom';
import $ from 'jquery';
/**
* Pops a content item out into a new browser window.
* This is achieved by
Expand Down
2 changes: 1 addition & 1 deletion src/components/Docking/src/js_es6/controls/DragProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g

import EventEmitter from '../utils/EventEmitter';
import { stripTags, getTouchEvent } from '../utils/utils';
import $ from 'cash-dom';
import $ from 'jquery';

var _template = '<div class="lm_dragProxy">' + '<div class="lm_header">' + '<ul class="lm_tabs">' + '<li class="lm_tab lm_active"><i class="lm_left"></i>' + '<span class="lm_title"></span>' + '<i class="lm_right"></i></li>' + '</ul>' + '</div>' + '<div class="lm_content"></div>' + '</div>';
/**
Expand Down
2 changes: 1 addition & 1 deletion src/components/Docking/src/js_es6/controls/DragSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
import DragListener from '../utils/DragListener';
import DragProxy from './DragProxy';
import { isFunction } from '../utils/utils';
import $ from 'cash-dom';
import $ from 'jquery';
/**
* Allows for any DOM item to create a component on drag
* start tobe dragged into the Layout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

import $ from 'cash-dom';
import $ from 'jquery';
var _template = '<div class="lm_dropTargetIndicator"><div class="lm_inner"></div></div>';

var DropTargetIndicator = /*#__PURE__*/function () {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Docking/src/js_es6/controls/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import EventEmitter from '../utils/EventEmitter';
import Tab from './Tab';
import HeaderButton from './HeaderButton';
import { fnBind } from '../utils/utils';
import $ from 'cash-dom';
import $ from 'jquery';

var _template = ['<div class="lm_header">', '<ul class="lm_tabs"></ul>', '<ul class="lm_controls"></ul>', '<ul class="lm_tabdropdown_list"></ul>', '</div>'].join('');
/**
Expand Down
2 changes: 1 addition & 1 deletion src/components/Docking/src/js_es6/controls/HeaderButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

import $ from 'cash-dom';
import $ from 'jquery';

var HeaderButton = /*#__PURE__*/function () {
function HeaderButton(header, label, cssClass, action) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Docking/src/js_es6/controls/Splitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

import DragListener from '../utils/DragListener';
import $ from 'cash-dom';
import $ from 'jquery';

var Splitter = /*#__PURE__*/function () {
function Splitter(isVertical, size, grabSize) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Docking/src/js_es6/controls/Tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
import DragListener from '../utils/DragListener';
import DragProxy from './DragProxy';
import { fnBind, stripTags } from '../utils/utils';
import $ from 'cash-dom';
import $ from 'jquery';
/**
* Represents an individual tab within a Stack's header
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

import { now, animFrame, fnBind } from '../utils/utils';
import $ from 'cash-dom';
import $ from 'jquery';

var TransitionIndicator = /*#__PURE__*/function () {
function TransitionIndicator() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Docking/src/js_es6/items/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
import AbstractContentItem from './AbstractContentItem';
import ItemContainer from '../container/ItemContainer';
import ReactComponentHandler from '../utils/ReactComponentHandler';
import $ from 'cash-dom';
import $ from 'jquery';
/**
* @param {[type]} layoutManager [description]
* @param {[type]} config [description]
Expand Down
2 changes: 1 addition & 1 deletion src/components/Docking/src/js_es6/items/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g

import AbstractContentItem from './AbstractContentItem';
import RowOrColumn from './RowOrColumn';
import $ from 'cash-dom';
import $ from 'jquery';

var Root = /*#__PURE__*/function (_AbstractContentItem) {
_inherits(Root, _AbstractContentItem);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Docking/src/js_es6/items/RowOrColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import AbstractContentItem from './AbstractContentItem';
import Stack from './Stack';
import Splitter from '../controls/Splitter';
import { fnBind, animFrame, indexOf } from '../utils/utils';
import $ from 'cash-dom';
import $ from 'jquery';

var RowOrColumn = /*#__PURE__*/function (_AbstractContentItem) {
_inherits(RowOrColumn, _AbstractContentItem);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Docking/src/js_es6/items/Stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import AbstractContentItem from "./AbstractContentItem";
import RowOrColumn from "./RowOrColumn";
import Header from "../controls/Header";
import { fnBind, copy, indexOf } from "../utils/utils";
import $ from "cash-dom";
import $ from "jquery";

var Stack = /*#__PURE__*/function (_AbstractContentItem) {
_inherits(Stack, _AbstractContentItem);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Docking/src/js_es6/utils/EventHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
import EventEmitter from './EventEmitter';
import { ALL_EVENT } from './EventEmitter';
import { fnBind } from './utils';
import $ from 'cash-dom';
import $ from 'jquery';
/**
* An EventEmitter singleton that propagates events
* across multiple windows. This is a little bit trickier since
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

import $ from "cash-dom";
import $ from "jquery";
import React from 'react';
/**
* A specialised GoldenLayout component that binds GoldenLayout container
Expand Down
2 changes: 1 addition & 1 deletion src/components/Docking/src/js_es6/utils/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

import $ from 'cash-dom';
import $ from 'jquery';
export function F() {}
export function getTouchEvent(event) {
if ($.zepto) {
Expand Down
33 changes: 25 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ __metadata:
"@storybook/theming": "npm:^7.6.15"
"@testing-library/react": "npm:^13.3.0"
"@types/jest": "npm:^28.1.6"
"@types/jquery": "npm:^3"
"@types/lodash.union": "npm:^4.6.7"
"@types/lodash.xor": "npm:^4.5.7"
"@types/marked": "npm:^4.0.6"
Expand All @@ -63,7 +64,6 @@ __metadata:
babel-jest: "npm:^27.3.1"
babel-loader: "npm:^8.2.3"
babel-plugin-styled-components: "npm:^2.0.7"
cash-dom: "npm:^8.1.5"
cross-env: "npm:^7.0.3"
css-loader: "npm:5.2.7"
gh-pages: "npm:^4.0.0"
Expand All @@ -75,6 +75,7 @@ __metadata:
javascript-time-ago: "npm:^2.5.9"
jest: "npm:^28.1.3"
jest-environment-jsdom: "npm:^28.1.3"
jquery: "npm:^3.7.1"
lodash.union: "npm:^4.6.0"
lodash.xor: "npm:^4.5.0"
marked: "npm:^4.0.19"
Expand Down Expand Up @@ -4562,6 +4563,15 @@ __metadata:
languageName: node
linkType: hard

"@types/jquery@npm:^3":
version: 3.5.30
resolution: "@types/jquery@npm:3.5.30"
dependencies:
"@types/sizzle": "npm:*"
checksum: 10c0/7355b2b2cb44eba7a2afa4a1c653157e4bc055be1f14a4c8874e349e6860dd36ca237e538294c2d709f1ffa0d5b12a39ea97be179f3f7fb445e17e12949ccb33
languageName: node
linkType: hard

"@types/jsdom@npm:^16.2.4":
version: 16.2.15
resolution: "@types/jsdom@npm:16.2.15"
Expand Down Expand Up @@ -4840,6 +4850,13 @@ __metadata:
languageName: node
linkType: hard

"@types/sizzle@npm:*":
version: 2.3.8
resolution: "@types/sizzle@npm:2.3.8"
checksum: 10c0/ab5460147ae6680cc20c2223a8f17d9f7c97144b70f00a222a1c32d68b5207696d48177ab9784dda88c74d93ed5a78dd31f74d271b15382520b423c81b4aac89
languageName: node
linkType: hard

"@types/stack-utils@npm:^2.0.0":
version: 2.0.3
resolution: "@types/stack-utils@npm:2.0.3"
Expand Down Expand Up @@ -5813,13 +5830,6 @@ __metadata:
languageName: node
linkType: hard

"cash-dom@npm:^8.1.5":
version: 8.1.5
resolution: "cash-dom@npm:8.1.5"
checksum: 10c0/6eb86cc69724a967f8ea1392680a352f0998d81671297110403d8b24d38f13db2c6a6dc6ab33c68d0c0771deb685d33a5126b7a53b7a1fecc51afd02685de585
languageName: node
linkType: hard

"chalk@npm:^2.4.2":
version: 2.4.2
resolution: "chalk@npm:2.4.2"
Expand Down Expand Up @@ -9936,6 +9946,13 @@ __metadata:
languageName: node
linkType: hard

"jquery@npm:^3.7.1":
version: 3.7.1
resolution: "jquery@npm:3.7.1"
checksum: 10c0/808cfbfb758438560224bf26e17fcd5afc7419170230c810dd11f5c1792e2263e2970cca8d659eb84fcd9acc301edb6d310096e450277d54be4f57071b0c82d9
languageName: node
linkType: hard

"js-cleanup@npm:^1.2.0":
version: 1.2.0
resolution: "js-cleanup@npm:1.2.0"
Expand Down

0 comments on commit f72e9e2

Please sign in to comment.