Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

vue3-fix Fix Vue 3 type inference #283

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = {
},
rules: {
"@typescript-eslint/unbound-method": "off",

"@typescript-eslint/no-unnecessary-type-assertion": "off",
//@todo Remove individiual rules and fix them
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-explicit-any": "off",
Expand Down
6 changes: 6 additions & 0 deletions packages/custom-elements-manifest-to-types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @ollion/custom-elements-manifest-to-types

## [2.0.5] - 2024-07-08

### Bug fixes

- `vue` type updated.

## [2.0.3] - 2024-01-05

### Bug fixes
Expand Down
12 changes: 8 additions & 4 deletions packages/custom-elements-manifest-to-types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ import {
import { UserOptions, validateOptions } from "./options";
import * as prettier from "prettier";

const camelToSnakeCase = (str: string) =>
str.replace(/[A-Z]/g, letter => `-${letter.toLowerCase()}`);
const camelToSnakeCase = (str: string) => {
if (str === "FMDEditor") {
return "-f-md-editor";
}
return str.replace(/[A-Z]/g, letter => `-${letter.toLowerCase()}`);
};

export async function transformSchema(
schema: Package,
Expand Down Expand Up @@ -103,9 +107,9 @@ function transformSchemaVue3(schema: Package, options: UserOptions, modulePath?:
const output = prettier.format(
`
/* eslint-disable */
import { DefineComponent } from "@vue/runtime-core";
import { DefineComponent } from "vue";
${allImports.join("\n")}
declare module "@vue/runtime-core" {
declare module "vue" {
export interface GlobalComponents {
${components.join("\n")}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/custom-elements-manifest-to-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ollion/custom-elements-manifest-to-types",
"version": "2.0.4",
"version": "2.0.5",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
Expand Down
6 changes: 6 additions & 0 deletions packages/flow-code-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Change Log

## [1.1.1] - 2024-07-08

### Patch Changes

- `vue` component types updated.

## [1.1.0] - 2023-11-27

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/flow-code-editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ollion/flow-code-editor",
"version": "1.1.0",
"version": "1.1.1",
"description": "Code editor component for flow library",
"module": "dist/flow-code-editor.es.js",
"main": "dist/flow-code-editor.es.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/flow-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Change Log

## [2.9.15] - 2024-07-08

### Patch Changes

- `vue` component types updated.

## [2.9.14] - 2024-06-14

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/flow-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ollion/flow-core",
"version": "2.9.14",
"version": "2.9.15",
"description": "Core package of flow design system",
"module": "dist/flow-core.es.js",
"main": "dist/flow-core.cjs.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/flow-form-builder/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Change Log

## [2.4.4] - 2024-07-08

### Patch Changes

- `vue` component types updated.

## [2.4.3] - 2024-06-14

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/flow-form-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ollion/flow-form-builder",
"version": "2.4.3",
"version": "2.4.4",
"description": "Form builder for the flow design system",
"module": "dist/flow-form-builder.es.js",
"main": "dist/flow-form-builder.cjs.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/flow-lineage/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Change Log

## [3.2.2] - 2024-07-08

### Patch Changes

- `vue` component types updated.

## [3.2.1] - 2024-03-19

### Improvements
Expand Down
2 changes: 1 addition & 1 deletion packages/flow-lineage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ollion/flow-lineage",
"version": "3.2.1",
"version": "3.2.2",
"description": "Lineage dependency for flow design system",
"module": "dist/flow-lineage.es.js",
"main": "dist/flow-lineage.cjs.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/flow-log/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Change Log

## [2.1.1] - 2024-07-08

### Patch Changes

- `vue` component types updated.

## [2.1.0] - 2024-03-28

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/flow-log/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ollion/flow-log",
"version": "2.1.0",
"version": "2.1.1",
"description": "Code editor component for flow library",
"module": "dist/flow-log.es.js",
"main": "dist/flow-log.es.js",
Expand Down
7 changes: 7 additions & 0 deletions packages/flow-md-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

# Change Log

## [2.1.1] - 2024-07-08

### Patch Changes

- `f-md-editor` type fixed.
- `vue` component types updated.

## [2.1.0] - 2023-11-27

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/flow-md-editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ollion/flow-md-editor",
"version": "2.1.0",
"version": "2.1.1",
"description": "Code editor component for flow library",
"module": "dist/flow-md-editor.es.js",
"main": "dist/flow-md-editor.es.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/flow-table/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Change Log

## [2.4.8] - 2024-07-08

### Patch Changes

- `vue` component types updated.

## [2.4.7] - 2024-06-11

### Improvements
Expand Down
2 changes: 1 addition & 1 deletion packages/flow-table/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ollion/flow-table",
"version": "2.4.7",
"version": "2.4.8",
"description": "Table component for flow library",
"module": "dist/flow-table.es.js",
"main": "dist/flow-table.cjs.js",
Expand Down
Loading