@razaman2/reactive-view 0.0.34-beta.9 → 0.1.0-beta.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/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { SetupContext, ComponentPublicInstance, UnwrapRef } from 'vue';
2
+ import { SetupContext, ComponentPublicInstance, UnwrapRef, defineComponent } from 'vue';
3
3
 
4
4
  type ComponentExtension = {
5
5
  parent?: ComponentExtension;
@@ -43,18 +43,19 @@ declare const setup: {
43
43
  declare const _default: {
44
44
  props: {
45
45
  setup: {};
46
+ beta: (BooleanConstructor | StringConstructor)[];
46
47
  ReactiveView: {
47
48
  type: BooleanConstructor;
48
49
  default: boolean;
49
50
  };
50
51
  instance: {
51
- default: () => vue.Ref<any, any>;
52
+ default: vue.Ref<any, any>;
52
53
  };
53
54
  notifications: ObjectConstructor;
54
55
  subscriptions: ObjectConstructor;
55
56
  beforeSetData: FunctionConstructor;
56
57
  data: {
57
- default: () => {};
58
+ default: {};
58
59
  };
59
60
  defaultData: {};
60
61
  getDefaultData: {
@@ -74,7 +75,9 @@ declare const _default: {
74
75
  type: BooleanConstructor;
75
76
  default: boolean;
76
77
  };
77
- state: {};
78
+ state: {
79
+ default: {};
80
+ };
78
81
  };
79
82
  setup(props: Record<string, any>, context: SetupContext): (vue: ComponentPublicInstance) => any;
80
83
  };
@@ -118,8 +121,17 @@ declare function useSubscription(): {
118
121
  declare function StyleParser(styles?: Array<string> | Record<string, boolean> | string): {};
119
122
  declare function MergeStyles(...params: any): any;
120
123
  declare const extendVnode: (component: Record<string, any>, element: any) => Record<string, (props?: Record<string, any>, slots?: Record<string, any> | ((slots: Record<string, any>) => Record<string, any>)) => any>;
124
+ declare function defineReactiveView(): ReturnType<typeof defineComponent>;
125
+ declare function defineReactiveView(options: Record<string, any>): ReturnType<typeof defineComponent>;
126
+ declare function defineReactiveView(options: Record<string, any>, component: typeof _default): ReturnType<typeof defineComponent>;
127
+ declare function showComponent(component: any, options?: {
128
+ container?: string;
129
+ key?: string;
130
+ router?: any;
131
+ plugins?: Array<any>;
132
+ }): any;
121
133
  declare const getData: (component: any, path: number | string, alternative: any) => any;
122
- declare const setData: (component: any, data: any) => any;
134
+ declare const setData: (component: any, data: any, path?: string) => any;
123
135
  declare const dataPath: (component: any, path: string | number) => any;
124
136
 
125
- export { MergeStyles, StyleParser, access, dataPath, _default as default, extendVnode, getData, getDate, getProps, getReactiveViewComponent, safeRequest, setData, setup, useSubscription };
137
+ export { MergeStyles, StyleParser, access, dataPath, _default as default, defineReactiveView, extendVnode, getData, getDate, getProps, getReactiveViewComponent, safeRequest, setData, setup, showComponent, useSubscription };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { SetupContext, ComponentPublicInstance, UnwrapRef } from 'vue';
2
+ import { SetupContext, ComponentPublicInstance, UnwrapRef, defineComponent } from 'vue';
3
3
 
4
4
  type ComponentExtension = {
5
5
  parent?: ComponentExtension;
@@ -43,18 +43,19 @@ declare const setup: {
43
43
  declare const _default: {
44
44
  props: {
45
45
  setup: {};
46
+ beta: (BooleanConstructor | StringConstructor)[];
46
47
  ReactiveView: {
47
48
  type: BooleanConstructor;
48
49
  default: boolean;
49
50
  };
50
51
  instance: {
51
- default: () => vue.Ref<any, any>;
52
+ default: vue.Ref<any, any>;
52
53
  };
53
54
  notifications: ObjectConstructor;
54
55
  subscriptions: ObjectConstructor;
55
56
  beforeSetData: FunctionConstructor;
56
57
  data: {
57
- default: () => {};
58
+ default: {};
58
59
  };
59
60
  defaultData: {};
60
61
  getDefaultData: {
@@ -74,7 +75,9 @@ declare const _default: {
74
75
  type: BooleanConstructor;
75
76
  default: boolean;
76
77
  };
77
- state: {};
78
+ state: {
79
+ default: {};
80
+ };
78
81
  };
79
82
  setup(props: Record<string, any>, context: SetupContext): (vue: ComponentPublicInstance) => any;
80
83
  };
@@ -118,8 +121,17 @@ declare function useSubscription(): {
118
121
  declare function StyleParser(styles?: Array<string> | Record<string, boolean> | string): {};
119
122
  declare function MergeStyles(...params: any): any;
120
123
  declare const extendVnode: (component: Record<string, any>, element: any) => Record<string, (props?: Record<string, any>, slots?: Record<string, any> | ((slots: Record<string, any>) => Record<string, any>)) => any>;
124
+ declare function defineReactiveView(): ReturnType<typeof defineComponent>;
125
+ declare function defineReactiveView(options: Record<string, any>): ReturnType<typeof defineComponent>;
126
+ declare function defineReactiveView(options: Record<string, any>, component: typeof _default): ReturnType<typeof defineComponent>;
127
+ declare function showComponent(component: any, options?: {
128
+ container?: string;
129
+ key?: string;
130
+ router?: any;
131
+ plugins?: Array<any>;
132
+ }): any;
121
133
  declare const getData: (component: any, path: number | string, alternative: any) => any;
122
- declare const setData: (component: any, data: any) => any;
134
+ declare const setData: (component: any, data: any, path?: string) => any;
123
135
  declare const dataPath: (component: any, path: string | number) => any;
124
136
 
125
- export { MergeStyles, StyleParser, access, dataPath, _default as default, extendVnode, getData, getDate, getProps, getReactiveViewComponent, safeRequest, setData, setup, useSubscription };
137
+ export { MergeStyles, StyleParser, access, dataPath, _default as default, defineReactiveView, extendVnode, getData, getDate, getProps, getReactiveViewComponent, safeRequest, setData, setup, showComponent, useSubscription };