@razaman2/reactive-view 0.1.0-beta.3 → 0.1.0-beta.5
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/package.json +48 -48
package/dist/index.d.mts
CHANGED
|
@@ -124,7 +124,7 @@ declare function useSubscription(): {
|
|
|
124
124
|
subscriptions: any[];
|
|
125
125
|
subscription: Subscription;
|
|
126
126
|
};
|
|
127
|
-
declare const
|
|
127
|
+
declare const Prop: ({ default: value, type, validator, required }?: Partial<PropType>) => {
|
|
128
128
|
required: boolean | undefined;
|
|
129
129
|
validator: (value: any) => boolean;
|
|
130
130
|
default?: vue.Ref<any, any> | undefined;
|
|
@@ -145,4 +145,4 @@ declare const getData: (component: any, path: number | string, alternative: any)
|
|
|
145
145
|
declare const setData: (component: any, data: any, path?: string) => any;
|
|
146
146
|
declare const dataPath: (component: any, path: string | number) => any;
|
|
147
147
|
|
|
148
|
-
export { MergeStyles,
|
|
148
|
+
export { MergeStyles, Prop, StyleParser, access, dataPath, _default as default, defineReactiveView, extendVnode, getData, getDate, getProps, getReactiveViewComponent, safeRequest, setData, setup, showComponent, useSubscription };
|
package/dist/index.d.ts
CHANGED
|
@@ -124,7 +124,7 @@ declare function useSubscription(): {
|
|
|
124
124
|
subscriptions: any[];
|
|
125
125
|
subscription: Subscription;
|
|
126
126
|
};
|
|
127
|
-
declare const
|
|
127
|
+
declare const Prop: ({ default: value, type, validator, required }?: Partial<PropType>) => {
|
|
128
128
|
required: boolean | undefined;
|
|
129
129
|
validator: (value: any) => boolean;
|
|
130
130
|
default?: vue.Ref<any, any> | undefined;
|
|
@@ -145,4 +145,4 @@ declare const getData: (component: any, path: number | string, alternative: any)
|
|
|
145
145
|
declare const setData: (component: any, data: any, path?: string) => any;
|
|
146
146
|
declare const dataPath: (component: any, path: string | number) => any;
|
|
147
147
|
|
|
148
|
-
export { MergeStyles,
|
|
148
|
+
export { MergeStyles, Prop, StyleParser, access, dataPath, _default as default, defineReactiveView, extendVnode, getData, getDate, getProps, getReactiveViewComponent, safeRequest, setData, setup, showComponent, useSubscription };
|
package/dist/index.js
CHANGED
|
@@ -60,7 +60,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
60
60
|
var index_exports = {};
|
|
61
61
|
__export(index_exports, {
|
|
62
62
|
MergeStyles: () => MergeStyles,
|
|
63
|
-
|
|
63
|
+
Prop: () => Prop,
|
|
64
64
|
StyleParser: () => StyleParser,
|
|
65
65
|
access: () => access,
|
|
66
66
|
dataPath: () => dataPath,
|
|
@@ -178,7 +178,7 @@ var import_vue = require("vue");
|
|
|
178
178
|
|
|
179
179
|
// package.json
|
|
180
180
|
var name = "@razaman2/reactive-view";
|
|
181
|
-
var version = "0.1.0-beta.
|
|
181
|
+
var version = "0.1.0-beta.5";
|
|
182
182
|
|
|
183
183
|
// src/ReactiveView.ts
|
|
184
184
|
var setup = {
|
|
@@ -721,7 +721,7 @@ function useSubscription() {
|
|
|
721
721
|
subscription
|
|
722
722
|
};
|
|
723
723
|
}
|
|
724
|
-
var
|
|
724
|
+
var Prop = ({ default: value, type, validator, required } = {}) => {
|
|
725
725
|
const types1 = Array.isArray(type) ? type : [type != null ? type : Array];
|
|
726
726
|
const types2 = types1.includes(Object) ? types1 : types1.concat(Object);
|
|
727
727
|
return __spreadProps(__spreadValues({}, value ? { default: (0, import_vue2.ref)(value) } : {}), {
|
|
@@ -891,7 +891,7 @@ var dataPath = (component, path) => {
|
|
|
891
891
|
// Annotate the CommonJS export names for ESM import in node:
|
|
892
892
|
0 && (module.exports = {
|
|
893
893
|
MergeStyles,
|
|
894
|
-
|
|
894
|
+
Prop,
|
|
895
895
|
StyleParser,
|
|
896
896
|
access,
|
|
897
897
|
dataPath,
|
package/dist/index.mjs
CHANGED
|
@@ -131,7 +131,7 @@ import { ref, reactive, watch, isRef, isReactive, createVNode, getCurrentInstanc
|
|
|
131
131
|
|
|
132
132
|
// package.json
|
|
133
133
|
var name = "@razaman2/reactive-view";
|
|
134
|
-
var version = "0.1.0-beta.
|
|
134
|
+
var version = "0.1.0-beta.5";
|
|
135
135
|
|
|
136
136
|
// src/ReactiveView.ts
|
|
137
137
|
var setup = {
|
|
@@ -674,7 +674,7 @@ function useSubscription() {
|
|
|
674
674
|
subscription
|
|
675
675
|
};
|
|
676
676
|
}
|
|
677
|
-
var
|
|
677
|
+
var Prop = ({ default: value, type, validator, required } = {}) => {
|
|
678
678
|
const types1 = Array.isArray(type) ? type : [type != null ? type : Array];
|
|
679
679
|
const types2 = types1.includes(Object) ? types1 : types1.concat(Object);
|
|
680
680
|
return __spreadProps(__spreadValues({}, value ? { default: ref2(value) } : {}), {
|
|
@@ -843,7 +843,7 @@ var dataPath = (component, path) => {
|
|
|
843
843
|
};
|
|
844
844
|
export {
|
|
845
845
|
MergeStyles,
|
|
846
|
-
|
|
846
|
+
Prop,
|
|
847
847
|
StyleParser,
|
|
848
848
|
access,
|
|
849
849
|
dataPath,
|
package/package.json
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@razaman2/reactive-view",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
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
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"prepublishOnly": "npm run build",
|
|
10
|
-
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
11
|
-
"lint": "tsc",
|
|
12
|
-
"test": "cd tests/vue-ts && npm run dev",
|
|
13
|
-
"pr": "sh pr.sh"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"vue",
|
|
17
|
-
"vue-helper",
|
|
18
|
-
"reactive-view",
|
|
19
|
-
"vue-class-component",
|
|
20
|
-
"reactive-ui"
|
|
21
|
-
],
|
|
22
|
-
"author": "razaman2",
|
|
23
|
-
"license": "MIT",
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"@razaman2/data-manager": "^3.
|
|
26
|
-
"@razaman2/event-emitter": "^2.1.1",
|
|
27
|
-
"@razaman2/object-manager": "^3.4.7",
|
|
28
|
-
"date-fns": "^4.1.0",
|
|
29
|
-
"date-fns-tz": "^3.2.0",
|
|
30
|
-
"tailwind-merge": "^3.
|
|
31
|
-
"uuid": "^13.0.0"
|
|
32
|
-
},
|
|
33
|
-
"peerDependencies": {
|
|
34
|
-
"vue": ">=3.0.0"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@types/uuid": "^11.0.0",
|
|
38
|
-
"tsup": "^8.5.
|
|
39
|
-
"typescript": "^5.9.3",
|
|
40
|
-
"vitest": "^4.
|
|
41
|
-
},
|
|
42
|
-
"publishConfig": {
|
|
43
|
-
"access": "public"
|
|
44
|
-
},
|
|
45
|
-
"files": [
|
|
46
|
-
"dist"
|
|
47
|
-
]
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@razaman2/reactive-view",
|
|
3
|
+
"version": "0.1.0-beta.5",
|
|
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
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"prepublishOnly": "npm run build",
|
|
10
|
+
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
11
|
+
"lint": "tsc",
|
|
12
|
+
"test": "cd tests/vue-ts && npm run dev",
|
|
13
|
+
"pr": "sh pr.sh"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"vue",
|
|
17
|
+
"vue-helper",
|
|
18
|
+
"reactive-view",
|
|
19
|
+
"vue-class-component",
|
|
20
|
+
"reactive-ui"
|
|
21
|
+
],
|
|
22
|
+
"author": "razaman2",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@razaman2/data-manager": "^3.3.5",
|
|
26
|
+
"@razaman2/event-emitter": "^2.1.1",
|
|
27
|
+
"@razaman2/object-manager": "^3.4.7",
|
|
28
|
+
"date-fns": "^4.1.0",
|
|
29
|
+
"date-fns-tz": "^3.2.0",
|
|
30
|
+
"tailwind-merge": "^3.5.0",
|
|
31
|
+
"uuid": "^13.0.0"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"vue": ">=3.0.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/uuid": "^11.0.0",
|
|
38
|
+
"tsup": "^8.5.1",
|
|
39
|
+
"typescript": "^5.9.3",
|
|
40
|
+
"vitest": "^4.1.2"
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"dist"
|
|
47
|
+
]
|
|
48
|
+
}
|