@razaman2/reactive-view 0.0.25 → 0.0.26

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
@@ -45,9 +45,7 @@ declare const _default: {
45
45
  ReactiveView: {
46
46
  default: boolean;
47
47
  };
48
- instance: {
49
- default: vue.Ref<any, any>;
50
- };
48
+ instance: {};
51
49
  notifications: ObjectConstructor;
52
50
  subscriptions: ObjectConstructor;
53
51
  beforeSetData: FunctionConstructor;
package/dist/index.d.ts CHANGED
@@ -45,9 +45,7 @@ declare const _default: {
45
45
  ReactiveView: {
46
46
  default: boolean;
47
47
  };
48
- instance: {
49
- default: vue.Ref<any, any>;
50
- };
48
+ instance: {};
51
49
  notifications: ObjectConstructor;
52
50
  subscriptions: ObjectConstructor;
53
51
  beforeSetData: FunctionConstructor;
package/dist/index.js CHANGED
@@ -159,7 +159,7 @@ var import_vue = require("vue");
159
159
 
160
160
  // package.json
161
161
  var name = "@razaman2/reactive-view";
162
- var version = "0.0.25";
162
+ var version = "0.0.26";
163
163
 
164
164
  // src/ReactiveView.ts
165
165
  var setup = {
@@ -172,9 +172,7 @@ var ReactiveView_default = {
172
172
  ReactiveView: {
173
173
  default: true
174
174
  },
175
- instance: {
176
- default: (0, import_vue.ref)()
177
- },
175
+ instance: {},
178
176
  notifications: Object,
179
177
  subscriptions: Object,
180
178
  beforeSetData: Function,
@@ -317,7 +315,9 @@ var ReactiveView_default = {
317
315
  return options;
318
316
  }, component.value);
319
317
  }
320
- props.instance.value = component.value;
318
+ if (props.instance) {
319
+ props.instance.value = component.value;
320
+ }
321
321
  return (vue) => {
322
322
  if (ready.value) {
323
323
  return access(component).template(component, vue);
package/dist/index.mjs CHANGED
@@ -119,7 +119,7 @@ import { ref, reactive, watch, isRef, isReactive, createVNode, getCurrentInstanc
119
119
 
120
120
  // package.json
121
121
  var name = "@razaman2/reactive-view";
122
- var version = "0.0.25";
122
+ var version = "0.0.26";
123
123
 
124
124
  // src/ReactiveView.ts
125
125
  var setup = {
@@ -132,9 +132,7 @@ var ReactiveView_default = {
132
132
  ReactiveView: {
133
133
  default: true
134
134
  },
135
- instance: {
136
- default: ref()
137
- },
135
+ instance: {},
138
136
  notifications: Object,
139
137
  subscriptions: Object,
140
138
  beforeSetData: Function,
@@ -277,7 +275,9 @@ var ReactiveView_default = {
277
275
  return options;
278
276
  }, component.value);
279
277
  }
280
- props.instance.value = component.value;
278
+ if (props.instance) {
279
+ props.instance.value = component.value;
280
+ }
281
281
  return (vue) => {
282
282
  if (ready.value) {
283
283
  return access(component).template(component, vue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@razaman2/reactive-view",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "This library enables you to build vue apps in an object oriented way. It provides a convenient approach to extend and override ui components. It provides a built in eventing system along with component data management.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",