@forsakringskassan/vue-lib-template 1.2.8 → 1.2.10

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,6 +2,7 @@
2
2
  # Changes will be overwritten!
3
3
 
4
4
  # generated files
5
+ dist/
5
6
  docs/public/
6
7
  docs/node_modules/
7
8
  docs/temp/
@@ -7,10 +7,10 @@
7
7
  "start": "http-server public"
8
8
  },
9
9
  "devDependencies": {
10
- "@fkui/icon-lib-default": "6.57.1",
11
- "@fkui/vue": "6.57.1",
10
+ "@fkui/icon-lib-default": "6.58.0",
11
+ "@fkui/vue": "6.58.0",
12
12
  "@forsakringskassan/apimock-express": "4.1.0",
13
- "@forsakringskassan/docs-generator": "3.8.0",
13
+ "@forsakringskassan/docs-generator": "3.9.0",
14
14
  "@tsconfig/node24": "24.0.5",
15
15
  "@tsconfig/recommended": "1.0.13",
16
16
  "http-server": "14.1.1",
@@ -12,6 +12,7 @@
12
12
  "bugs": {
13
13
  "url": "https://github.com/Forsakringskassan/vue-lib-template/issues"
14
14
  },
15
+ "repository": "${repository}",
15
16
  "license": "MIT",
16
17
  "author": "Försäkringskassan",
17
18
  "exports": {
@@ -79,18 +80,18 @@
79
80
  "devDependencies": {
80
81
  "@babel/core": "7.29.7",
81
82
  "@babel/preset-env": "7.29.7",
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",
83
+ "@fkui/design": "6.58.0",
84
+ "@fkui/font-default": "6.58.0",
85
+ "@fkui/icon-lib-default": "6.58.0",
86
+ "@fkui/logic": "6.58.0",
87
+ "@fkui/test-utils": "6.58.0",
88
+ "@fkui/theme-default": "6.58.0",
89
+ "@fkui/vue": "6.58.0",
89
90
  "@forsakringskassan/apimock-express": "4.1.0",
90
91
  "@forsakringskassan/commitlint-config": "4.2.8",
91
- "@forsakringskassan/cypress-config": "1.9.1",
92
+ "@forsakringskassan/cypress-config": "1.9.2",
92
93
  "@forsakringskassan/cypress-visual-regression": "5.2.0",
93
- "@forsakringskassan/docs-generator": "3.8.0",
94
+ "@forsakringskassan/docs-generator": "3.9.0",
94
95
  "@forsakringskassan/docs-live-example": "3.0.2",
95
96
  "@forsakringskassan/eslint-config": "15.9.10",
96
97
  "@forsakringskassan/eslint-config-cli": "15.9.3",
@@ -104,13 +105,13 @@
104
105
  "@forsakringskassan/stylelint-config": "3.4.6",
105
106
  "@forsakringskassan/vite-lib-config": "5.12.1",
106
107
  "@forsakringskassan/vitest-config-jsdom": "5.0.0",
107
- "@forsakringskassan/vue-lib-template": "1.2.8",
108
+ "@forsakringskassan/vue-lib-template": "1.2.10",
108
109
  "@html-validate/release-scripts": "7.6.11",
109
110
  "@types/node": "24.13.4",
110
111
  "@typescript/native": "npm:typescript@7.0.2",
111
112
  "@vue/server-renderer": "3.5.42",
112
113
  "@vue/test-utils": "2.5.0",
113
- "cloneman": "1.23.1",
114
+ "cloneman": "1.24.0",
114
115
  "core-js": "3.50.0",
115
116
  "cypress": "16.0.0",
116
117
  "html-validate": "11.15.0",
@@ -1,5 +1,8 @@
1
1
  {
2
- "extends": ["local>forsakringskassan/renovate-config"],
2
+ "extends": ["local>npm-packages/renovate-config-fk:lib"],
3
+ "lockFileMaintenance": {
4
+ "enabled": true
5
+ },
3
6
  "ignoreDeps": [
4
7
  "@babel/core",
5
8
  "@babel/preset-env",
@@ -1 +1,6 @@
1
- export { default } from "./guide/index.mts";
1
+ import { type Mock } from "@forsakringskassan/apimock-express";
2
+ import guideMocks from "./guide/index.mts";
3
+
4
+ const mocks: Mock[] = [...guideMocks];
5
+
6
+ export default mocks;
package/hooks/install.mjs CHANGED
@@ -1,24 +1,15 @@
1
- /**
2
- * @param {import("cloneman").InstallContext} context
3
- */
4
- export default async (context) => {
5
- const { getParameter, updateJsonFile, getApplicationName, replaceInFile } =
6
- context;
1
+
2
+
3
+ export async function install(context ) {
4
+ const { updateJsonFile, getApplicationName, replaceInFile } = context;
7
5
  const scopedName = getApplicationName();
8
6
  const unscopedName = getApplicationName({ unscoped: true });
9
7
 
10
- /* write repository url to "package.json" */
11
- const repoUrl = getParameter("repo-url");
12
- await updateJsonFile("package.json", {
13
- repository: {
14
- type: "git",
15
- url: repoUrl,
16
- },
17
- });
18
-
19
8
  /* update placeholder names with the real application name (from package.json) */
20
9
  const placeholder = /"@forsakringskassan\/vue-lib-template(\/[^"]+)?"/g;
21
- const quotedName = `"${scopedName}$1"`;
10
+ const quotedName = (_ , subpath ) => {
11
+ return `"${scopedName}${subpath ?? ""}"`;
12
+ };
22
13
  await replaceInFile("cypress/tsconfig.json", placeholder, quotedName);
23
14
  await replaceInFile("tsconfig.lib.json", placeholder, quotedName);
24
15
  await replaceInFile("tsconfig.cypress.json", placeholder, quotedName);
@@ -30,4 +21,4 @@ export default async (context) => {
30
21
  "./style.css": `./dist/esm/${unscopedName}.css`,
31
22
  },
32
23
  });
33
- };
24
+ }
package/index.js CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  const options = {
9
9
  ...packageJson.cloneman,
10
- fileHash: "e4aaaa0c08eff907d5ea58b8b630e330fce568982371f4b7be92c6786484f514",
10
+ fileHash: "2ee3be5e7c82414646fd3310bff404d2d9441920ddcdc0c78457e8f783479049",
11
11
  filesDir: path.join(import.meta.dirname, "files"),
12
12
  hooksDir: path.join(import.meta.dirname, "hooks"),
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vue-lib-template",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "description": "Vue library template based on Cloneman",
5
5
  "keywords": [
6
6
  "template",
@@ -108,6 +108,7 @@
108
108
  ".editorconfig",
109
109
  ".gitignore",
110
110
  ".htmlvalidate.json",
111
+ ".htmlvalidateignore",
111
112
  ".prettierignore",
112
113
  ".vscode/extensions.json",
113
114
  ".vscode/settings.json",
@@ -170,14 +171,6 @@
170
171
  "!@fkui/tsconfig",
171
172
  "@forsakringskassan/*-api",
172
173
  "fk-icons"
173
- ],
174
- "parameters": [
175
- {
176
- "key": "repo-url",
177
- "description": "URL to repository",
178
- "help": null,
179
- "required": true
180
- }
181
174
  ]
182
175
  }
183
176
  }