@forsakringskassan/vue-lib-template 1.0.4 → 1.2.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/files/Jenkinsfile +2 -0
- package/files/README.md +6 -5
- package/files/_editorconfig +3 -0
- package/files/_gitignore +3 -0
- package/files/_htmlvalidateignore +5 -0
- package/files/_prettierignore +4 -1
- package/files/api-extractor.lib.json +1 -1
- package/files/api-extractor.selectors.json +1 -1
- package/files/babel.config.js +2 -0
- package/files/cypress/support/common.ts +7 -6
- package/files/cypress/support/component.ts +5 -25
- package/files/cypress/support/main.scss +2 -0
- package/files/cypress/tsconfig.json +3 -3
- package/files/cypress.config.ts +14 -75
- package/files/docs/build.mts +16 -0
- package/files/docs/index.md +2 -0
- package/files/docs/kattinformation/index.md +28 -0
- package/files/docs/package.json +5 -2
- package/files/docs/src/bundle-mocks.mjs +22 -0
- package/files/docs/src/global.d.ts +7 -0
- package/files/docs/src/main.js +17 -0
- package/files/docs/src/main.scss +22 -0
- package/files/docs/src/setup.ts +6 -1
- package/files/docs/tsconfig.json +3 -0
- package/files/eslint.config.mjs +2 -0
- package/files/etc/lib.api.md +1 -1
- package/files/etc/selectors.api.md +13 -0
- package/files/package.json +47 -33
- package/files/renovate.json +2 -3
- package/files/src/CatInfoEdit.vue +57 -0
- package/files/src/CatInfoLogic.spec.ts +118 -0
- package/files/src/CatInfoShow.vue +27 -0
- package/files/src/FcCatInfoComponent.cy.ts +74 -0
- package/files/src/FcCatInfoComponent.vue +81 -0
- package/files/src/FcCatInfoComponentLiveExample.vue +42 -0
- package/files/src/cat-api-mock.spec.ts +27 -0
- package/files/src/cat-api.mock.mts +26 -0
- package/files/src/cat-api.spec.ts +65 -0
- package/files/src/cat-api.ts +15 -0
- package/files/src/cat-data.ts +40 -0
- package/files/src/cat-info-logic.ts +52 -0
- package/files/src/cat-types.ts +11 -0
- package/files/src/examples/CatInfoExample.vue +20 -0
- package/files/src/index.ts +3 -1
- package/files/src/local.ts +1 -1
- package/files/src/mocks.mts +6 -0
- package/files/src/selectors/FcCatInfoComponent.selectors.ts +74 -0
- package/files/src/selectors/index.ts +1 -1
- package/files/src/style.scss +1 -0
- package/files/src/vite-dev/app.vue +1 -1
- package/files/tsconfig.cypress.json +1 -1
- package/files/tsconfig.json +1 -1
- package/files/tsconfig.lib.json +8 -2
- package/files/tsconfig.selectors.json +1 -1
- package/files/vite.config.mts +5 -1
- package/hooks/install.mjs +9 -1
- package/index.js +1 -0
- package/package.json +25 -16
- package/files/cypress/support/commands/forced-colors.ts +0 -33
- package/files/cypress/support/component-index.html +0 -14
- package/files/cypress/types/cy-mount.d.ts +0 -9
- package/files/cypress/types/forced-colors.d.ts +0 -18
- package/files/docs/components/AwesomeComponent.md +0 -27
- package/files/docs/components/index.md +0 -5
- package/files/src/AwesomeComponent.cy.ts +0 -9
- package/files/src/AwesomeComponent.vue +0 -45
- package/files/src/AwesomeComponentLogic.spec.ts +0 -30
- package/files/src/awesome-component-logic.ts +0 -28
- package/files/src/examples/DummyExample.vue +0 -7
package/files/Jenkinsfile
CHANGED
package/files/README.md
CHANGED
|
@@ -80,9 +80,10 @@ Dokumentationen genereras med [`@forsakringskassan/docs-generator`](https://fors
|
|
|
80
80
|
- [x] npm run build
|
|
81
81
|
- [x] npm run build:docs
|
|
82
82
|
- [x] npm run start:docs
|
|
83
|
-
- [
|
|
84
|
-
- [
|
|
85
|
-
- [
|
|
86
|
-
- [
|
|
87
|
-
- [
|
|
83
|
+
- [x] apimock
|
|
84
|
+
- [x] bättre exempelkomponent
|
|
85
|
+
- [x] bättre enhetstest
|
|
86
|
+
- [x] bättre komponenttest
|
|
87
|
+
- [x] live exempel
|
|
88
88
|
- [ ] skill för att skapa live exempel
|
|
89
|
+
- [ ] skript för att rensa demo-filer
|
package/files/_editorconfig
CHANGED
package/files/_gitignore
CHANGED
package/files/_prettierignore
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* This file
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
2
|
|
|
3
3
|
{
|
|
4
4
|
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* This file
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
2
|
|
|
3
3
|
{
|
|
4
4
|
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
package/files/babel.config.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
2
|
|
|
3
|
+
import { configure } from "@forsakringskassan/cypress-config/support";
|
|
3
4
|
import "@forsakringskassan/cypress-visual-regression/commands";
|
|
4
|
-
import "@forsakringskassan/cypress-axe/support";
|
|
5
|
-
import "cypress-html-validate/dist/commands";
|
|
6
|
-
import "./commands/forced-colors";
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
await configure({
|
|
7
|
+
resetEmulatedMedia: true,
|
|
8
|
+
afterEach: {
|
|
9
|
+
htmlvalidate: true,
|
|
10
|
+
},
|
|
10
11
|
});
|
|
@@ -1,38 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
|
+
|
|
3
|
+
import { mount } from "@forsakringskassan/cypress-config/support";
|
|
3
4
|
import { injectSpritesheet } from "@fkui/icon-lib-default/dist/f/injectSpritesheet";
|
|
4
|
-
import {
|
|
5
|
-
config,
|
|
6
|
-
setRunningContext,
|
|
7
|
-
FormatPlugin,
|
|
8
|
-
TestPlugin,
|
|
9
|
-
TranslationPlugin,
|
|
10
|
-
ValidationPlugin,
|
|
11
|
-
} from "@fkui/vue";
|
|
12
5
|
import "@fkui/theme-default";
|
|
13
6
|
import "./main.scss";
|
|
14
7
|
import "./common";
|
|
15
8
|
|
|
16
|
-
config.teleportTarget = "#teleport";
|
|
17
|
-
|
|
18
9
|
Cypress.Commands.add("mount", (component, options = {}) => {
|
|
19
|
-
// Setup options object
|
|
20
10
|
options.global ??= {};
|
|
21
11
|
options.global.plugins ??= [];
|
|
22
|
-
options.global.config ??= {};
|
|
23
|
-
options.global.config.compilerOptions ??= {};
|
|
24
|
-
options.global.config.compilerOptions.whitespace = "preserve";
|
|
25
12
|
|
|
26
|
-
/*
|
|
13
|
+
/* handle warnings as errors */
|
|
27
14
|
options.global.plugins.push({
|
|
28
|
-
install(app
|
|
29
|
-
app.use(FormatPlugin);
|
|
30
|
-
app.use(ValidationPlugin);
|
|
31
|
-
app.use(TestPlugin);
|
|
32
|
-
app.use(TranslationPlugin);
|
|
33
|
-
setRunningContext(app);
|
|
34
|
-
|
|
35
|
-
/* handle warnings as errors */
|
|
15
|
+
install(app) {
|
|
36
16
|
app.config.warnHandler = (msg) => {
|
|
37
17
|
const mochaRunner = Cypress.mocha.getRunner();
|
|
38
18
|
const body = mochaRunner.test?.body ?? "";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
|
+
|
|
1
3
|
{
|
|
2
4
|
"extends": ["@fkui/tsconfig/recommended", "@fkui/tsconfig/cypress"],
|
|
3
5
|
"compilerOptions": {
|
|
@@ -6,10 +8,8 @@
|
|
|
6
8
|
"cypress",
|
|
7
9
|
"node",
|
|
8
10
|
"vite/client",
|
|
9
|
-
"
|
|
10
|
-
"cypress-html-validate/commands",
|
|
11
|
+
"@forsakringskassan/cypress-config/support",
|
|
11
12
|
"@forsakringskassan/cypress-visual-regression/commands",
|
|
12
|
-
"forced-colors",
|
|
13
13
|
"mocha"
|
|
14
14
|
],
|
|
15
15
|
"typeRoots": ["../node_modules", "../node_modules/@types", "./types"],
|
package/files/cypress.config.ts
CHANGED
|
@@ -1,89 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
axePlugin,
|
|
5
|
+
defineConfig,
|
|
6
|
+
htmlValidatePlugin,
|
|
7
|
+
} from "@forsakringskassan/cypress-config";
|
|
4
8
|
import getToMatchScreenshotsPlugin from "@forsakringskassan/cypress-visual-regression/plugin";
|
|
5
|
-
import htmlvalidate, {
|
|
6
|
-
CypressHtmlValidateOptions,
|
|
7
|
-
} from "cypress-html-validate/plugin";
|
|
8
|
-
import { type ConfigData } from "html-validate";
|
|
9
9
|
|
|
10
|
-
function installPlugins(
|
|
10
|
+
async function installPlugins(
|
|
11
11
|
on: Cypress.PluginEvents,
|
|
12
12
|
config: Cypress.PluginConfigOptions,
|
|
13
|
-
): Cypress.PluginConfigOptions {
|
|
13
|
+
): Promise<Cypress.PluginConfigOptions> {
|
|
14
14
|
getToMatchScreenshotsPlugin(on, config);
|
|
15
|
-
|
|
16
|
-
config =
|
|
17
|
-
context: {
|
|
18
|
-
include: [
|
|
19
|
-
[".code-preview"],
|
|
20
|
-
["[data-preview]"],
|
|
21
|
-
["[data-cy-root]"],
|
|
22
|
-
],
|
|
23
|
-
exclude: [
|
|
24
|
-
[".calendar__item--selected"],
|
|
25
|
-
[".file-selector input"],
|
|
26
|
-
[".wizard-step__header__title"],
|
|
27
|
-
[".live-example__code"],
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
});
|
|
15
|
+
config = await axePlugin(on, config);
|
|
16
|
+
config = await htmlValidatePlugin(on, config);
|
|
31
17
|
return config;
|
|
32
18
|
}
|
|
33
19
|
|
|
34
|
-
|
|
35
|
-
rules: {
|
|
36
|
-
/* some examples show how to use custom heading levels which often
|
|
37
|
-
* doesn't match the heading outline for the documentation */
|
|
38
|
-
"heading-level": ["off"],
|
|
39
|
-
|
|
40
|
-
/* prevents mismatches from disabled rules which does not trigger errors
|
|
41
|
-
* when Cypress tests are running but would yield errors during normal
|
|
42
|
-
* validation */
|
|
43
|
-
"no-unused-disable": "off",
|
|
44
|
-
|
|
45
|
-
/* we cannot use native progressbar element due to SLA */
|
|
46
|
-
"prefer-native-element": [
|
|
47
|
-
"error",
|
|
48
|
-
{
|
|
49
|
-
exclude: ["progressbar"],
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
|
|
53
|
-
/* sadly we dont use SRI at FK */
|
|
54
|
-
"require-sri": "off",
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
const htmlValidateOptions: CypressHtmlValidateOptions = {
|
|
59
|
-
include: [
|
|
60
|
-
/* Cypress component tests */
|
|
61
|
-
"#__cy_vue_root > div",
|
|
62
|
-
],
|
|
63
|
-
exclude,
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export default defineConfig({
|
|
67
|
-
allowCypressEnv: false,
|
|
20
|
+
export default defineConfig(import.meta.dirname, {
|
|
68
21
|
// Cypress may sometimes restart tests when it detects a changed file in the __screenshot__ folder.
|
|
69
22
|
watchForFileChanges: false,
|
|
70
|
-
/* disable video recording, it is to slow both on remote machines and on
|
|
71
|
-
* CI/CD testing. */
|
|
72
|
-
video: false,
|
|
73
|
-
reporter: require.resolve("mocha-multi-reporters"),
|
|
74
|
-
reporterOptions: {
|
|
75
|
-
reporterEnabled: "spec, mocha-junit-reporter",
|
|
76
|
-
mochaJunitReporterReporterOptions: {
|
|
77
|
-
mochaFile: "test-results/cypress-test-output_[hash].xml",
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
23
|
component: {
|
|
81
|
-
setupNodeEvents(on, config) {
|
|
82
|
-
return installPlugins(on, config);
|
|
83
|
-
},
|
|
84
|
-
devServer: {
|
|
85
|
-
framework: "vue",
|
|
86
|
-
bundler: "vite",
|
|
24
|
+
async setupNodeEvents(on, config) {
|
|
25
|
+
return await installPlugins(on, config);
|
|
87
26
|
},
|
|
88
27
|
},
|
|
89
28
|
defaultBrowser: "chrome",
|
package/files/docs/build.mts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
|
+
|
|
3
|
+
import { copyFileSync } from "node:fs";
|
|
1
4
|
import path from "node:path";
|
|
2
5
|
import {
|
|
3
6
|
Generator,
|
|
@@ -17,10 +20,18 @@ const docs = new Generator(import.meta.url, {
|
|
|
17
20
|
],
|
|
18
21
|
});
|
|
19
22
|
|
|
23
|
+
docs.compileScript("main", "./src/main.js", {
|
|
24
|
+
appendTo: "body",
|
|
25
|
+
});
|
|
26
|
+
|
|
20
27
|
docs.compileStyle("main", "./src/main.scss", {
|
|
21
28
|
appendTo: "head",
|
|
22
29
|
});
|
|
23
30
|
|
|
31
|
+
docs.compileScript("mocks", "./src/bundle-mocks.mjs", {
|
|
32
|
+
appendTo: "head",
|
|
33
|
+
});
|
|
34
|
+
|
|
24
35
|
await docs.build([
|
|
25
36
|
{
|
|
26
37
|
include: ["**/*.md"],
|
|
@@ -32,3 +43,8 @@ await docs.build([
|
|
|
32
43
|
fileReader: vueFileReader,
|
|
33
44
|
},
|
|
34
45
|
]);
|
|
46
|
+
|
|
47
|
+
copyFileSync(
|
|
48
|
+
"../node_modules/msw/lib/mockServiceWorker.js",
|
|
49
|
+
"./public/mock-service-worker.js",
|
|
50
|
+
);
|
package/files/docs/index.md
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Kattinformation
|
|
3
|
+
status: Draft
|
|
4
|
+
layout: component
|
|
5
|
+
component: FcCatInfoComponent
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Komponenten kan visa kattdata i visningsläge eller i ett redigerbart läge.
|
|
9
|
+
Den hämtar kattdata från ett mockat backend.
|
|
10
|
+
|
|
11
|
+
```import live-example
|
|
12
|
+
FcCatInfoComponentLiveExample.vue
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Tänk på att
|
|
16
|
+
|
|
17
|
+
- Detta är en exempelkomponent.
|
|
18
|
+
- Den ska inte användas i produktion.
|
|
19
|
+
|
|
20
|
+
## Copy
|
|
21
|
+
|
|
22
|
+
- Använd tydlig och begriplig text.
|
|
23
|
+
|
|
24
|
+
## API
|
|
25
|
+
|
|
26
|
+
::: api
|
|
27
|
+
vue:FcCatInfoComponent
|
|
28
|
+
:::
|
package/files/docs/package.json
CHANGED
|
@@ -7,11 +7,14 @@
|
|
|
7
7
|
"start": "http-server public"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@fkui/
|
|
11
|
-
"@
|
|
10
|
+
"@fkui/icon-lib-default": "6.57.1",
|
|
11
|
+
"@fkui/vue": "6.57.1",
|
|
12
|
+
"@forsakringskassan/apimock-express": "4.1.0",
|
|
13
|
+
"@forsakringskassan/docs-generator": "3.6.4",
|
|
12
14
|
"@tsconfig/node24": "24.0.5",
|
|
13
15
|
"@tsconfig/recommended": "1.0.13",
|
|
14
16
|
"http-server": "14.1.1",
|
|
17
|
+
"msw": "2.15.0",
|
|
15
18
|
"vue": "3.5.42"
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { matchRequest } from "@forsakringskassan/apimock-express/browser";
|
|
2
|
+
import { http } from "msw";
|
|
3
|
+
import { setupWorker } from "msw/browser";
|
|
4
|
+
import mocks from "../../src/mocks.mts";
|
|
5
|
+
|
|
6
|
+
const handlers = [
|
|
7
|
+
http.all("/api/*", async (req) => {
|
|
8
|
+
return await matchRequest(mocks, req.request);
|
|
9
|
+
}),
|
|
10
|
+
];
|
|
11
|
+
const worker = setupWorker(...handlers);
|
|
12
|
+
// eslint-disable-next-line no-undef -- technical debt
|
|
13
|
+
const rootUrl = document.documentElement.dataset["rootUrl"];
|
|
14
|
+
const url = `${rootUrl}/mock-service-worker.js`;
|
|
15
|
+
|
|
16
|
+
// Used in setup.ts
|
|
17
|
+
// eslint-disable-next-line unicorn/no-global-object-property-assignment, no-undef -- technical debt
|
|
18
|
+
window.bundleMocks = worker.start({
|
|
19
|
+
serviceWorker: {
|
|
20
|
+
url,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { config } from "@fkui/vue";
|
|
2
|
+
|
|
3
|
+
function importDefault(m) {
|
|
4
|
+
return m.default ?? m;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
async function importIcons() {
|
|
8
|
+
const icons = importDefault(await import(process.env.DOCS_ICON_LIB));
|
|
9
|
+
|
|
10
|
+
for (const entry of Object.values(icons)) {
|
|
11
|
+
entry.injectSpritesheet();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
config.teleportTarget = document.querySelector("#teleport-target");
|
|
16
|
+
|
|
17
|
+
await importIcons();
|
package/files/docs/src/main.scss
CHANGED
|
@@ -1 +1,23 @@
|
|
|
1
1
|
@use "@forsakringskassan/docs-generator/style.css";
|
|
2
|
+
@use "@fkui/theme-default" as theme with (
|
|
3
|
+
$global: false
|
|
4
|
+
);
|
|
5
|
+
@use "@fkui/font-default" as font with (
|
|
6
|
+
$global: false
|
|
7
|
+
);
|
|
8
|
+
@use "@fkui/design";
|
|
9
|
+
@use "@fkui/design/lib/fonts.css";
|
|
10
|
+
@use "@forsakringskassan/docs-live-example";
|
|
11
|
+
|
|
12
|
+
@include font.font-face;
|
|
13
|
+
|
|
14
|
+
:root {
|
|
15
|
+
@include theme.auto;
|
|
16
|
+
@include font.font-family;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
html,
|
|
20
|
+
body {
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
}
|
package/files/docs/src/setup.ts
CHANGED
|
@@ -10,8 +10,13 @@ import {
|
|
|
10
10
|
} from "@fkui/vue";
|
|
11
11
|
import { type SetupOptions } from "@forsakringskassan/docs-generator";
|
|
12
12
|
|
|
13
|
-
export function setup(options: SetupOptions): void {
|
|
13
|
+
export async function setup(options: SetupOptions): Promise<void> {
|
|
14
14
|
const { rootComponent, selector } = options;
|
|
15
|
+
|
|
16
|
+
// Set in bundle-mocks.mjs, wait on mock service worker to be ready.
|
|
17
|
+
if (window.bundleMocks) {
|
|
18
|
+
await window.bundleMocks;
|
|
19
|
+
}
|
|
15
20
|
const app = createApp({
|
|
16
21
|
render() {
|
|
17
22
|
return h(FErrorHandlingApp, { defaultComponent: rootComponent });
|
package/files/docs/tsconfig.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
/* This file is managed by @forsakringskassan/vue-lib-template. Changes will be overwritten! */
|
|
2
|
+
|
|
1
3
|
{
|
|
2
4
|
"extends": ["@tsconfig/recommended", "@tsconfig/node24"],
|
|
3
5
|
"compilerOptions": {
|
|
6
|
+
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
4
7
|
"types": ["node"]
|
|
5
8
|
},
|
|
6
9
|
"include": ["**/*.ts", "**/*.mts"],
|
package/files/eslint.config.mjs
CHANGED
package/files/etc/lib.api.md
CHANGED
|
@@ -12,7 +12,7 @@ import { PublicProps } from 'vue';
|
|
|
12
12
|
// Warning: (ae-forgotten-export) The symbol "__VLS_export" needs to be exported by the entry point index.d.ts
|
|
13
13
|
//
|
|
14
14
|
// @public (undocumented)
|
|
15
|
-
export const
|
|
15
|
+
export const FcCatInfoComponent: typeof __VLS_export;
|
|
16
16
|
|
|
17
17
|
// (No @packageDocumentation comment for this package)
|
|
18
18
|
|
|
@@ -4,6 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
+
// @public
|
|
8
|
+
export function FcCatInfoComponentSelectors(selector?: string): Readonly<{
|
|
9
|
+
readonly selector: string;
|
|
10
|
+
loadingContainer(): string;
|
|
11
|
+
viewContainer(): string;
|
|
12
|
+
editContainer(): string;
|
|
13
|
+
nameInput(): string;
|
|
14
|
+
ageInput(): string;
|
|
15
|
+
breedInput(): string;
|
|
16
|
+
colorInput(): string;
|
|
17
|
+
favoriteFoodInput(): string;
|
|
18
|
+
}>;
|
|
19
|
+
|
|
7
20
|
// (No @packageDocumentation comment for this package)
|
|
8
21
|
|
|
9
22
|
```
|
package/files/package.json
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "${name}",
|
|
3
3
|
"version": "${version}",
|
|
4
|
+
"description": "Vue library template based on Cloneman",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"template",
|
|
7
|
+
"vue",
|
|
8
|
+
"cloneman",
|
|
9
|
+
"library"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/Forsakringskassan/vue-lib-template#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Forsakringskassan/vue-lib-template/issues"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "Försäkringskassan",
|
|
4
17
|
"exports": {
|
|
5
18
|
".": {
|
|
6
19
|
"types": "./dist/types/index.d.ts",
|
|
@@ -66,51 +79,50 @@
|
|
|
66
79
|
"devDependencies": {
|
|
67
80
|
"@babel/core": "7.29.7",
|
|
68
81
|
"@babel/preset-env": "7.29.7",
|
|
69
|
-
"@fkui/design": "6.
|
|
70
|
-
"@fkui/font-default": "6.
|
|
71
|
-
"@fkui/icon-lib-default": "6.
|
|
72
|
-
"@fkui/logic": "6.
|
|
73
|
-
"@fkui/test-utils": "6.
|
|
74
|
-
"@fkui/theme-default": "6.
|
|
75
|
-
"@fkui/vue": "6.
|
|
82
|
+
"@fkui/design": "6.57.1",
|
|
83
|
+
"@fkui/font-default": "6.57.0",
|
|
84
|
+
"@fkui/icon-lib-default": "6.57.1",
|
|
85
|
+
"@fkui/logic": "6.57.1",
|
|
86
|
+
"@fkui/test-utils": "6.57.1",
|
|
87
|
+
"@fkui/theme-default": "6.57.1",
|
|
88
|
+
"@fkui/vue": "6.57.1",
|
|
89
|
+
"@forsakringskassan/apimock-express": "4.1.0",
|
|
76
90
|
"@forsakringskassan/commitlint-config": "4.2.8",
|
|
77
|
-
"@forsakringskassan/cypress-
|
|
78
|
-
"@forsakringskassan/cypress-visual-regression": "5.
|
|
79
|
-
"@forsakringskassan/docs-generator": "3.6.
|
|
80
|
-
"@forsakringskassan/docs-live-example": "3.0.
|
|
81
|
-
"@forsakringskassan/eslint-config": "15.9.
|
|
82
|
-
"@forsakringskassan/eslint-config-cli": "15.9.
|
|
83
|
-
"@forsakringskassan/eslint-config-cypress": "15.9.
|
|
84
|
-
"@forsakringskassan/eslint-config-jest": "15.9.
|
|
85
|
-
"@forsakringskassan/eslint-config-typescript": "15.9.
|
|
86
|
-
"@forsakringskassan/eslint-config-typescript-typeinfo": "15.9.
|
|
87
|
-
"@forsakringskassan/eslint-config-vitest": "15.9.
|
|
88
|
-
"@forsakringskassan/eslint-config-vue": "15.9.
|
|
91
|
+
"@forsakringskassan/cypress-config": "1.9.1",
|
|
92
|
+
"@forsakringskassan/cypress-visual-regression": "5.2.0",
|
|
93
|
+
"@forsakringskassan/docs-generator": "3.6.4",
|
|
94
|
+
"@forsakringskassan/docs-live-example": "3.0.2",
|
|
95
|
+
"@forsakringskassan/eslint-config": "15.9.7",
|
|
96
|
+
"@forsakringskassan/eslint-config-cli": "15.9.3",
|
|
97
|
+
"@forsakringskassan/eslint-config-cypress": "15.9.9",
|
|
98
|
+
"@forsakringskassan/eslint-config-jest": "15.9.2",
|
|
99
|
+
"@forsakringskassan/eslint-config-typescript": "15.9.8",
|
|
100
|
+
"@forsakringskassan/eslint-config-typescript-typeinfo": "15.9.8",
|
|
101
|
+
"@forsakringskassan/eslint-config-vitest": "15.9.4",
|
|
102
|
+
"@forsakringskassan/eslint-config-vue": "15.9.8",
|
|
89
103
|
"@forsakringskassan/prettier-config": "3.7.8",
|
|
90
|
-
"@forsakringskassan/stylelint-config": "3.4.
|
|
91
|
-
"@forsakringskassan/vite-lib-config": "5.
|
|
92
|
-
"@forsakringskassan/vitest-config-jsdom": "
|
|
93
|
-
"@forsakringskassan/vue-lib-template": "1.0
|
|
94
|
-
"@html-validate/release-scripts": "7.6.
|
|
95
|
-
"@types/node": "24.13.
|
|
104
|
+
"@forsakringskassan/stylelint-config": "3.4.6",
|
|
105
|
+
"@forsakringskassan/vite-lib-config": "5.11.1",
|
|
106
|
+
"@forsakringskassan/vitest-config-jsdom": "5.0.0",
|
|
107
|
+
"@forsakringskassan/vue-lib-template": "1.2.0",
|
|
108
|
+
"@html-validate/release-scripts": "7.6.11",
|
|
109
|
+
"@types/node": "24.13.4",
|
|
96
110
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
97
111
|
"@vue/server-renderer": "3.5.42",
|
|
98
112
|
"@vue/test-utils": "2.5.0",
|
|
99
|
-
"cloneman": "1.
|
|
113
|
+
"cloneman": "1.23.1",
|
|
100
114
|
"core-js": "3.50.0",
|
|
101
|
-
"cypress": "
|
|
102
|
-
"
|
|
103
|
-
"html-validate": "11.10.0",
|
|
115
|
+
"cypress": "16.0.0",
|
|
116
|
+
"html-validate": "11.15.0",
|
|
104
117
|
"html-validate-markdown": "6.0.0",
|
|
105
118
|
"html-validate-vue": "9.3.1",
|
|
106
119
|
"mocha-junit-reporter": "2.2.1",
|
|
107
|
-
"
|
|
108
|
-
"npm-pkg-lint": "5.2.4",
|
|
120
|
+
"npm-pkg-lint": "5.2.5",
|
|
109
121
|
"npm-run-all2": "9.0.3",
|
|
110
122
|
"rimraf": "6.1.3",
|
|
111
123
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
112
|
-
"vite": "8.
|
|
113
|
-
"vitest": "
|
|
124
|
+
"vite": "8.3.0",
|
|
125
|
+
"vitest": "5.0.0",
|
|
114
126
|
"vue": "3.5.42",
|
|
115
127
|
"vue-tsc": "3.3.11"
|
|
116
128
|
},
|
|
@@ -130,7 +142,9 @@
|
|
|
130
142
|
"cypress": true,
|
|
131
143
|
"esbuild": true,
|
|
132
144
|
"fsevents": false,
|
|
145
|
+
"msw": false,
|
|
133
146
|
"unrs-resolver": true
|
|
134
147
|
},
|
|
148
|
+
"cloneman": {},
|
|
135
149
|
"externalDependencies": []
|
|
136
150
|
}
|
package/files/renovate.json
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
"ignoreDeps": [
|
|
4
4
|
"@babel/core",
|
|
5
5
|
"@babel/preset-env",
|
|
6
|
+
"@forsakringskassan/apimock-express",
|
|
6
7
|
"@forsakringskassan/commitlint-config",
|
|
7
|
-
"@forsakringskassan/cypress-
|
|
8
|
+
"@forsakringskassan/cypress-config",
|
|
8
9
|
"@forsakringskassan/cypress-visual-regression",
|
|
9
10
|
"@forsakringskassan/docs-generator",
|
|
10
11
|
"@forsakringskassan/docs-live-example",
|
|
@@ -28,12 +29,10 @@
|
|
|
28
29
|
"cloneman",
|
|
29
30
|
"core-js",
|
|
30
31
|
"cypress",
|
|
31
|
-
"cypress-html-validate",
|
|
32
32
|
"html-validate",
|
|
33
33
|
"html-validate-markdown",
|
|
34
34
|
"html-validate-vue",
|
|
35
35
|
"mocha-junit-reporter",
|
|
36
|
-
"mocha-multi-reporters",
|
|
37
36
|
"npm-pkg-lint",
|
|
38
37
|
"npm-run-all2",
|
|
39
38
|
"rimraf",
|