@stonecrop/stonecrop 0.2.67 → 0.3.1
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/composable.js +2 -2
- package/dist/plugins/index.js +3 -3
- package/dist/src/composable.d.ts +2 -2
- package/dist/src/doctype.d.ts +1 -1
- package/dist/src/registry.d.ts +1 -1
- package/dist/src/stonecrop.d.ts +4 -4
- package/dist/src/types/index.d.ts +1 -1
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/stonecrop.js.map +1 -1
- package/dist/stonecrop.umd.cjs.map +1 -1
- package/package.json +4 -4
- package/src/composable.ts +3 -3
- package/src/doctype.ts +1 -1
- package/src/plugins/index.ts +4 -4
- package/src/registry.ts +1 -1
- package/src/stonecrop.ts +5 -5
- package/src/types/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/stonecrop",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "schema helper",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"eslint-plugin-vue": "^9.11.1",
|
|
53
53
|
"typescript": "^5.6.3",
|
|
54
54
|
"vite": "^5.4.5",
|
|
55
|
-
"@stonecrop/
|
|
56
|
-
"
|
|
57
|
-
"stonecrop
|
|
55
|
+
"@stonecrop/atable": "0.3.1",
|
|
56
|
+
"stonecrop-rig": "0.2.22",
|
|
57
|
+
"@stonecrop/aform": "0.3.1"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
package/src/composable.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { inject, onBeforeMount, Ref, ref } from 'vue'
|
|
2
2
|
|
|
3
|
-
import Registry from '
|
|
4
|
-
import { Stonecrop } from '
|
|
5
|
-
import { useDataStore } from '
|
|
3
|
+
import Registry from './registry'
|
|
4
|
+
import { Stonecrop } from './stonecrop'
|
|
5
|
+
import { useDataStore } from './stores/data'
|
|
6
6
|
|
|
7
7
|
type StonecropReturn = {
|
|
8
8
|
stonecrop: Ref<Stonecrop>
|
package/src/doctype.ts
CHANGED
package/src/plugins/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { App, type Plugin } from 'vue'
|
|
2
2
|
|
|
3
|
-
import Registry from '
|
|
4
|
-
import router from '
|
|
5
|
-
import { pinia } from '
|
|
6
|
-
import type { InstallOptions } from '
|
|
3
|
+
import Registry from '../registry'
|
|
4
|
+
import router from '../router'
|
|
5
|
+
import { pinia } from '../stores'
|
|
6
|
+
import type { InstallOptions } from '../types'
|
|
7
7
|
|
|
8
8
|
const plugin: Plugin = {
|
|
9
9
|
install: (app: App, options?: InstallOptions) => {
|
package/src/registry.ts
CHANGED
package/src/stonecrop.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import DoctypeMeta from '
|
|
2
|
-
import { NotImplementedError } from '
|
|
3
|
-
import Registry from '
|
|
4
|
-
import { useDataStore } from '
|
|
5
|
-
import type { ImmutableDoctype, Schema } from '
|
|
1
|
+
import DoctypeMeta from './doctype'
|
|
2
|
+
import { NotImplementedError } from './exceptions'
|
|
3
|
+
import Registry from './registry'
|
|
4
|
+
import { useDataStore } from './stores/data'
|
|
5
|
+
import type { ImmutableDoctype, Schema } from './types'
|
|
6
6
|
|
|
7
7
|
export class Stonecrop {
|
|
8
8
|
/**
|
package/src/types/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Component } from 'vue'
|
|
|
4
4
|
import { Router } from 'vue-router'
|
|
5
5
|
import { MachineConfig, StateMachine } from 'xstate'
|
|
6
6
|
|
|
7
|
-
import DoctypeMeta from '
|
|
7
|
+
import DoctypeMeta from '../doctype'
|
|
8
8
|
|
|
9
9
|
export type ImmutableDoctype = {
|
|
10
10
|
// TODO: allow schema to be a function
|