@startinblox/boilerplate 3.0.6 → 4.0.0

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.
@@ -2,14 +2,12 @@ import type { StorybookConfig } from "@storybook/web-components-vite";
2
2
 
3
3
  const config: StorybookConfig = {
4
4
  stories: ["../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
5
- addons: ["@storybook/addon-essentials"],
5
+ addons: ["@storybook/addon-docs"],
6
+
6
7
  framework: {
7
8
  name: "@storybook/web-components-vite",
8
9
  options: {},
9
- },
10
- docs: {
11
- autodocs: "tag",
12
- },
10
+ }
13
11
  };
14
12
 
15
13
  export default config;
@@ -1,4 +1,4 @@
1
- import type { Preview } from "@storybook/web-components";
1
+ import type { Preview } from "@storybook/web-components-vite";
2
2
 
3
3
  import "@styles/index.scss";
4
4
 
package/biome.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
2
+ "root": false,
3
+ "$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
3
4
  "vcs": {
4
5
  "enabled": true,
5
6
  "clientKind": "git",
@@ -7,15 +8,13 @@
7
8
  },
8
9
  "files": {
9
10
  "ignoreUnknown": false,
10
- "ignore": []
11
+ "includes": ["**"]
11
12
  },
12
13
  "formatter": {
13
14
  "enabled": true,
14
15
  "indentStyle": "space"
15
16
  },
16
- "organizeImports": {
17
- "enabled": true
18
- },
17
+ "assist": { "actions": { "source": { "organizeImports": "on" } } },
19
18
  "linter": {
20
19
  "enabled": true,
21
20
  "rules": {
@@ -25,6 +24,18 @@
25
24
  },
26
25
  "suspicious": {
27
26
  "noExplicitAny": "off"
27
+ },
28
+ "style": {
29
+ "noParameterAssign": "error",
30
+ "useAsConstAssertion": "error",
31
+ "useDefaultParameterLast": "error",
32
+ "useEnumInitializers": "error",
33
+ "useSelfClosingElements": "error",
34
+ "useSingleVarDeclarator": "error",
35
+ "noUnusedTemplateLiteral": "error",
36
+ "useNumberNamespace": "error",
37
+ "noInferrableTypes": "error",
38
+ "noUselessElse": "error"
28
39
  }
29
40
  }
30
41
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/boilerplate",
3
- "version": "3.0.6",
3
+ "version": "4.0.0",
4
4
  "description": "Startin'blox Boilerplate",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -69,24 +69,22 @@
69
69
  "@lit/localize": "^0.12.2",
70
70
  "@lit/task": "^1.0.2",
71
71
  "autoprefixer": "^10.4.21",
72
- "cssnano": "^7.0.6",
73
- "lit": "^3.2.1",
74
- "postcss": "^8.5.3",
75
- "postcss-preset-env": "^9.6.0",
72
+ "cssnano": "^7.0.7",
73
+ "lit": "^3.3.0",
74
+ "postcss": "^8.5.6",
75
+ "postcss-preset-env": "^10.2.3",
76
76
  "postcss-scss": "^4.0.9",
77
- "sass": "^1.86.0",
78
- "unplugin-icons": "^0.19.3",
79
- "vite": "^6.2.2"
77
+ "sass": "^1.89.2",
78
+ "unplugin-icons": "^22.1.0",
79
+ "vite": "^6.3.5"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@lit/localize-tools": "^0.8.0",
83
- "@storybook/addon-essentials": "^8.6.7",
84
- "@storybook/blocks": "^8.5.8",
85
- "@storybook/web-components": "^8.5.8",
86
- "@storybook/web-components-vite": "^8.6.7",
87
- "cypress": "^14.2.0",
83
+ "@storybook/web-components-vite": "^9.0.12",
84
+ "cypress": "^14.5.0",
88
85
  "cypress-ct-lit": "^1.0.0",
89
86
  "lorem-ipsum": "^2.0.8",
90
- "storybook": "^8.6.7"
87
+ "storybook": "^9.0.12",
88
+ "@storybook/addon-docs": "^9.0.12"
91
89
  }
92
90
  }
@@ -93,11 +93,11 @@ export interface LiveOrbit extends Orbit {
93
93
  defaultRoute: string;
94
94
  }
95
95
 
96
- type Context = Record<string, string | { "@id": string }>;
97
- type Permission = "add" | "delete" | "change" | "control" | "view" | string;
98
- type DateTime = string;
96
+ export type Context = Record<string, string | { "@id": string }>;
97
+ export type Permission = "add" | "delete" | "change" | "control" | "view" | string;
98
+ export type DateTime = string;
99
99
 
100
- interface LimitedResource {
100
+ export interface LimitedResource {
101
101
  "@id": string;
102
102
  "@type"?: string | string[] | Promise<string | string[]>;
103
103
  _originalResource?: Resource;
@@ -107,11 +107,11 @@ interface LimitedResource {
107
107
  serverContext?: Context | Promise<Context>;
108
108
  }
109
109
 
110
- interface Resource extends LimitedResource {
110
+ export interface Resource extends LimitedResource {
111
111
  [key: string]: any;
112
112
  }
113
113
 
114
- interface UnknownResource {
114
+ export interface UnknownResource {
115
115
  [key: string]: any;
116
116
  }
117
117
 
@@ -121,7 +121,7 @@ interface Container<T> extends Resource {
121
121
 
122
122
  type ProxyValue<T> = T extends Array<infer U> ? U[] : Resource & T;
123
123
 
124
- interface User extends Resource {
124
+ export interface User extends Resource {
125
125
  account?: Account;
126
126
  first_name?: string;
127
127
  last_name?: string;
@@ -130,18 +130,18 @@ interface User extends Resource {
130
130
  email?: string;
131
131
  }
132
132
 
133
- interface Account extends Resource {
133
+ export interface Account extends Resource {
134
134
  picture?: string | null;
135
135
  }
136
136
 
137
- interface PropertiesPicker {
137
+ export interface PropertiesPicker {
138
138
  key: string;
139
139
  value: string;
140
140
  cast?: function;
141
141
  expand?: boolean;
142
142
  }
143
143
 
144
- type TemplateResultOrSymbol = TemplateResult | symbol;
144
+ export type TemplateResultOrSymbol = TemplateResult | symbol;
145
145
 
146
146
  export declare global {
147
147
  interface Window {
@@ -1,6 +1,6 @@
1
1
  import { html } from "lit";
2
2
 
3
- import type { Meta, StoryObj } from "@storybook/web-components";
3
+ import type { Meta, StoryObj } from "@storybook/web-components-vite";
4
4
 
5
5
  import {
6
6
  SampleObjects,