@startinblox/boilerplate 3.1.0 → 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.
- package/.storybook/main.ts +3 -5
- package/.storybook/preview.ts +1 -1
- package/package.json +12 -14
- package/src/component.d.ts +10 -10
- package/stories/sample-objects.stories.ts +1 -1
package/.storybook/main.ts
CHANGED
|
@@ -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-
|
|
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;
|
package/.storybook/preview.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startinblox/boilerplate",
|
|
3
|
-
"version": "
|
|
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.
|
|
73
|
-
"lit": "^3.
|
|
74
|
-
"postcss": "^8.5.
|
|
75
|
-
"postcss-preset-env": "^
|
|
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.
|
|
78
|
-
"unplugin-icons": "^
|
|
79
|
-
"vite": "^6.
|
|
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/
|
|
84
|
-
"
|
|
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": "^
|
|
87
|
+
"storybook": "^9.0.12",
|
|
88
|
+
"@storybook/addon-docs": "^9.0.12"
|
|
91
89
|
}
|
|
92
90
|
}
|
package/src/component.d.ts
CHANGED
|
@@ -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 {
|