@firecms/schema_inference 3.0.0-alpha.14 → 3.0.0-alpha.16
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/dist/builders/reference_property_builder.d.ts +3 -0
- package/dist/builders/string_property_builder.d.ts +3 -0
- package/dist/builders/validation_builder.d.ts +3 -0
- package/dist/collection_builder.d.ts +5 -0
- package/dist/index.es.js +231 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/strings.d.ts +5 -0
- package/dist/test_schemas/test_schema.d.ts +1 -0
- package/{src/types.ts → dist/types.d.ts} +9 -17
- package/dist/util.d.ts +4 -0
- package/package.json +6 -3
- package/src/builders/reference_property_builder.ts +0 -16
- package/src/builders/string_property_builder.ts +0 -107
- package/src/builders/validation_builder.ts +0 -18
- package/src/collection_builder.ts +0 -324
- package/src/strings.ts +0 -47
- package/src/test_schemas/test_schema.ts +0 -28
- package/src/test_schemas/usage.json +0 -36341
- package/src/util.ts +0 -8
- package/tsconfig.json +0 -53
- package/tsconfig.prod.json +0 -12
- package/vite.config.ts +0 -32
- /package/{src/index.ts → dist/index.d.ts} +0 -0
package/src/util.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { unslugify } from "@firecms/core";
|
|
2
|
-
|
|
3
|
-
export function extractEnumFromValues(values: string[]) {
|
|
4
|
-
const enumValues = values
|
|
5
|
-
.map((value) => ({ id: value, label: unslugify(value) }));
|
|
6
|
-
enumValues.sort((a, b) => a.label.localeCompare(b.label));
|
|
7
|
-
return enumValues;
|
|
8
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"outDir": "dist",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"target": "esnext",
|
|
6
|
-
"lib": [
|
|
7
|
-
"dom",
|
|
8
|
-
"dom.iterable",
|
|
9
|
-
"esnext"
|
|
10
|
-
],
|
|
11
|
-
"moduleResolution": "node",
|
|
12
|
-
"jsx": "react-jsx",
|
|
13
|
-
"noFallthroughCasesInSwitch": true,
|
|
14
|
-
"sourceMap": false,
|
|
15
|
-
"declaration": true,
|
|
16
|
-
"esModuleInterop": true,
|
|
17
|
-
"noImplicitReturns": true,
|
|
18
|
-
"noImplicitThis": true,
|
|
19
|
-
"noImplicitAny": true,
|
|
20
|
-
"strictNullChecks": true,
|
|
21
|
-
"allowSyntheticDefaultImports": true,
|
|
22
|
-
"allowJs": true,
|
|
23
|
-
"skipLibCheck": true,
|
|
24
|
-
"strict": true,
|
|
25
|
-
"forceConsistentCasingInFileNames": true,
|
|
26
|
-
"resolveJsonModule": true,
|
|
27
|
-
"isolatedModules": true,
|
|
28
|
-
"types": [
|
|
29
|
-
"vite/client",
|
|
30
|
-
"node",
|
|
31
|
-
"jest"
|
|
32
|
-
],
|
|
33
|
-
"baseUrl": ".",
|
|
34
|
-
"paths": {
|
|
35
|
-
"@firecms/core": [
|
|
36
|
-
"../firecms_core/src/index.ts"
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"include": [
|
|
41
|
-
"src",
|
|
42
|
-
"./src/**/*.ts"
|
|
43
|
-
],
|
|
44
|
-
"exclude": [
|
|
45
|
-
"node_modules",
|
|
46
|
-
"dist",
|
|
47
|
-
"src/test"
|
|
48
|
-
],
|
|
49
|
-
"ts-node": {
|
|
50
|
-
"esm": true,
|
|
51
|
-
"experimentalSpecifierResolution": "node"
|
|
52
|
-
}
|
|
53
|
-
}
|
package/tsconfig.prod.json
DELETED
package/vite.config.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
import path from "path";
|
|
3
|
-
|
|
4
|
-
import { defineConfig } from "vite";
|
|
5
|
-
import react from "@vitejs/plugin-react"
|
|
6
|
-
|
|
7
|
-
const isExternal = (id: string) => !id.startsWith(".") && !path.isAbsolute(id);
|
|
8
|
-
|
|
9
|
-
export default defineConfig(() => ({
|
|
10
|
-
esbuild: {
|
|
11
|
-
logOverride: { "this-is-undefined-in-esm": "silent" }
|
|
12
|
-
},
|
|
13
|
-
build: {
|
|
14
|
-
lib: {
|
|
15
|
-
entry: path.resolve(__dirname, "src/index.ts"),
|
|
16
|
-
name: "FireCMS",
|
|
17
|
-
fileName: (format) => `index.${format}.js`
|
|
18
|
-
},
|
|
19
|
-
target: "esnext",
|
|
20
|
-
sourcemap: true,
|
|
21
|
-
rollupOptions: {
|
|
22
|
-
external: isExternal
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
resolve: {
|
|
26
|
-
alias: {
|
|
27
|
-
"@firecms/core": path.resolve(__dirname, "../firecms_core/src"),
|
|
28
|
-
"@firecms/schema_inference": path.resolve(__dirname, "../schema_inference/src"),
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
plugins: [react({})]
|
|
32
|
-
}));
|
|
File without changes
|