@stonecrop/stonecrop 0.2.67 → 0.3.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/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/dist/composable.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inject, onBeforeMount, ref } from 'vue';
|
|
2
|
-
import { Stonecrop } from '
|
|
3
|
-
import { useDataStore } from '
|
|
2
|
+
import { Stonecrop } from './stonecrop';
|
|
3
|
+
import { useDataStore } from './stores/data';
|
|
4
4
|
export function useStonecrop(registry) {
|
|
5
5
|
if (!registry) {
|
|
6
6
|
registry = inject('$registry');
|
package/dist/plugins/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Registry from '
|
|
2
|
-
import router from '
|
|
3
|
-
import { pinia } from '
|
|
1
|
+
import Registry from '../registry';
|
|
2
|
+
import router from '../router';
|
|
3
|
+
import { pinia } from '../stores';
|
|
4
4
|
const plugin = {
|
|
5
5
|
install: (app, options) => {
|
|
6
6
|
const appRouter = options?.router || router;
|
package/dist/src/composable.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import Registry from '
|
|
3
|
-
import { Stonecrop } from '
|
|
2
|
+
import Registry from './registry';
|
|
3
|
+
import { Stonecrop } from './stonecrop';
|
|
4
4
|
type StonecropReturn = {
|
|
5
5
|
stonecrop: Ref<Stonecrop>;
|
|
6
6
|
isReady: Ref<boolean>;
|
package/dist/src/doctype.d.ts
CHANGED
package/dist/src/registry.d.ts
CHANGED
package/dist/src/stonecrop.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import DoctypeMeta from '
|
|
2
|
-
import Registry from '
|
|
3
|
-
import { useDataStore } from '
|
|
4
|
-
import type { ImmutableDoctype, Schema } from '
|
|
1
|
+
import DoctypeMeta from './doctype';
|
|
2
|
+
import Registry from './registry';
|
|
3
|
+
import { useDataStore } from './stores/data';
|
|
4
|
+
import type { ImmutableDoctype, Schema } from './types';
|
|
5
5
|
export declare class Stonecrop {
|
|
6
6
|
/**
|
|
7
7
|
* @property {Stonecrop} _root
|
|
@@ -3,7 +3,7 @@ import { List, Map } from 'immutable';
|
|
|
3
3
|
import { Component } from 'vue';
|
|
4
4
|
import { Router } from 'vue-router';
|
|
5
5
|
import { MachineConfig, StateMachine } from 'xstate';
|
|
6
|
-
import DoctypeMeta from '
|
|
6
|
+
import DoctypeMeta from '../doctype';
|
|
7
7
|
export type ImmutableDoctype = {
|
|
8
8
|
readonly schema?: List<SchemaTypes>;
|
|
9
9
|
readonly workflow: StateMachine<unknown, unknown, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAEpD,OAAO,WAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.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