chore: keep prod dependencies limited and simple

This commit is contained in:
Thijs Louisse 2022-05-30 17:27:14 +02:00 committed by Thomas Allmer
parent 6c0be8e45a
commit 27c86e71e8
17 changed files with 16 additions and 25 deletions

View file

@ -2,4 +2,4 @@
'@lion/input-tel': patch
---
Make use of awsome-phonenumber, remove local copy
Make use of awesome-phonenumber, remove local copy

View file

@ -1,5 +1,5 @@
---
'@lion/helpers': minor
'@lion/core': patch
'@lion/accordion': patch
'@lion/collapsible': patch
'@lion/form-core': patch

View file

@ -36,8 +36,7 @@
"lion-accordion.js"
],
"dependencies": {
"@lion/core": "^0.22.0",
"@lion/helpers": "^0.11.0"
"@lion/core": "^0.22.0"
},
"keywords": [
"accordion",

View file

@ -1,6 +1,6 @@
/* eslint-disable class-methods-use-this */
import { LitElement, css, html } from '@lion/core';
import { uuid } from '@lion/helpers';
import { LitElement, css, html, uuid } from '@lion/core';
/**
* @typedef {Object} StoreEntry
* @property {string} uid Unique ID for the entry

View file

@ -38,8 +38,7 @@
"demo/custom-collapsible.js"
],
"dependencies": {
"@lion/core": "^0.22.0",
"@lion/helpers": "^0.11.0"
"@lion/core": "^0.22.0"
},
"keywords": [
"collapsible",

View file

@ -1,5 +1,4 @@
import { LitElement, html, css } from '@lion/core';
import { uuid } from '@lion/helpers';
import { LitElement, html, css, uuid } from '@lion/core';
/**
* `LionCollapsible` is a class for custom collapsible element (`<lion-collapsible>` web component).
*

View file

@ -85,3 +85,4 @@ export { SlotMixin } from './src/SlotMixin.js';
export { UpdateStylesMixin } from './src/UpdateStylesMixin.js';
export { browserDetection } from './src/browserDetection.js';
export { EventTargetShim } from './src/EventTargetShim.js';
export { uuid } from './src/uuid.js';

View file

@ -76,3 +76,4 @@ export { SlotMixin } from './src/SlotMixin.js';
export { UpdateStylesMixin } from './src/UpdateStylesMixin.js';
export { browserDetection } from './src/browserDetection.js';
export { EventTargetShim } from './src/EventTargetShim.js';
export { uuid } from './src/uuid.js';

View file

@ -4,6 +4,6 @@
* @return {string} unique id
*/
export function uuid(prefix = '') {
const elementName = prefix.length > 1 ? `${prefix}-` : '';
const elementName = prefix.length > 0 ? `${prefix}-` : '';
return `${elementName}${Math.random().toString(36).substr(2, 10)}`;
}

View file

@ -40,7 +40,6 @@
],
"dependencies": {
"@lion/core": "^0.22.0",
"@lion/helpers": "^0.11.0",
"@lion/localize": "^0.24.0"
},
"keywords": [

View file

@ -1,5 +1,4 @@
import { css, dedupeMixin, html, nothing, SlotMixin, DisabledMixin } from '@lion/core';
import { uuid } from '@lion/helpers';
import { css, dedupeMixin, html, nothing, SlotMixin, DisabledMixin, uuid } from '@lion/core';
import { getAriaElementsInRightDomOrder } from './utils/getAriaElementsInRightDomOrder.js';
import { Unparseable } from './validate/Unparseable.js';
import { FormRegisteringMixin } from './registration/FormRegisteringMixin.js';

View file

@ -1,7 +1,6 @@
// Utilities
export { renderLitAsNode } from './renderLitAsNode/src/renderLitAsNode.js';
export { sortEachDepth } from './sortEachDepth/src/sortEachDepth.js';
export { uuid } from './uuid/uuid.js';
// Components
export { SbActionLogger } from './sb-action-logger/src/SbActionLogger.js';

View file

@ -40,8 +40,7 @@
],
"dependencies": {
"@lion/core": "^0.22.0",
"@lion/form-core": "^0.17.1",
"@lion/helpers": "^0.11.0"
"@lion/form-core": "^0.17.1"
},
"keywords": [
"form",

View file

@ -1,6 +1,5 @@
import { css, dedupeMixin, html, ScopedElementsMixin, SlotMixin } from '@lion/core';
import { css, dedupeMixin, html, ScopedElementsMixin, SlotMixin, uuid } from '@lion/core';
import { ChoiceGroupMixin, FormControlMixin, FormRegistrarMixin } from '@lion/form-core';
import { uuid } from '@lion/helpers';
import { LionOptions } from './LionOptions.js';
// TODO: extract ListNavigationWithActiveDescendantMixin that can be reused in [role="menu"]

View file

@ -39,8 +39,7 @@
],
"dependencies": {
"@lion/core": "^0.22.0",
"@lion/form-core": "^0.17.1",
"@lion/helpers": "^0.11.0"
"@lion/form-core": "^0.17.1"
},
"keywords": [
"lion",

View file

@ -36,8 +36,7 @@
"lion-tabs.js"
],
"dependencies": {
"@lion/core": "^0.22.0",
"@lion/helpers": "^0.11.0"
"@lion/core": "^0.22.0"
},
"keywords": [
"lion",

View file

@ -1,5 +1,4 @@
import { css, html, LitElement } from '@lion/core';
import { uuid } from '@lion/helpers';
import { css, html, LitElement, uuid } from '@lion/core';
/**
* @typedef {Object} StoreEntry