@razaman2/reactive-view 0.0.24 → 0.0.25

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.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.24";
162
+ var version = "0.0.25";
163
163
 
164
164
  // src/ReactiveView.ts
165
165
  var setup = {
@@ -300,11 +300,11 @@ var ReactiveView_default = {
300
300
  const component = (0, import_vue.ref)({ parent: { self: instance.proxy }, self: { template, model, isValid } });
301
301
  if (access(component).ReactiveView) {
302
302
  component.value = [access(component)].reduce((options, parent) => {
303
- var _a2;
303
+ var _a2, _b2;
304
304
  while (parent) {
305
305
  if (typeof parent.setup === "function") {
306
- options = { parent: options, self: (_a2 = parent.setup(component, options)) != null ? _a2 : {} };
307
- console.log("log options:", options);
306
+ const ups = parent.setup(component, options);
307
+ options = { parent: options, self: (_b2 = (_a2 = ups.value) != null ? _a2 : ups) != null ? _b2 : {} };
308
308
  if (access(parent.$parent).ReactiveView) {
309
309
  break;
310
310
  } else {
@@ -317,9 +317,7 @@ var ReactiveView_default = {
317
317
  return options;
318
318
  }, component.value);
319
319
  }
320
- console.log("component before:", component.value);
321
320
  props.instance.value = component.value;
322
- console.log("component after:", component.value, props.instance.value);
323
321
  return (vue) => {
324
322
  if (ready.value) {
325
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.24";
122
+ var version = "0.0.25";
123
123
 
124
124
  // src/ReactiveView.ts
125
125
  var setup = {
@@ -260,11 +260,11 @@ var ReactiveView_default = {
260
260
  const component = ref({ parent: { self: instance.proxy }, self: { template, model, isValid } });
261
261
  if (access(component).ReactiveView) {
262
262
  component.value = [access(component)].reduce((options, parent) => {
263
- var _a2;
263
+ var _a2, _b2;
264
264
  while (parent) {
265
265
  if (typeof parent.setup === "function") {
266
- options = { parent: options, self: (_a2 = parent.setup(component, options)) != null ? _a2 : {} };
267
- console.log("log options:", options);
266
+ const ups = parent.setup(component, options);
267
+ options = { parent: options, self: (_b2 = (_a2 = ups.value) != null ? _a2 : ups) != null ? _b2 : {} };
268
268
  if (access(parent.$parent).ReactiveView) {
269
269
  break;
270
270
  } else {
@@ -277,9 +277,7 @@ var ReactiveView_default = {
277
277
  return options;
278
278
  }, component.value);
279
279
  }
280
- console.log("component before:", component.value);
281
280
  props.instance.value = component.value;
282
- console.log("component after:", component.value, props.instance.value);
283
281
  return (vue) => {
284
282
  if (ready.value) {
285
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.24",
3
+ "version": "0.0.25",
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",