@sitecore-jss/sitecore-jss-vue 22.3.0-canary.6 → 22.3.0-canary.8
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/cjs/components/PlaceholderCommon.js +4 -4
- package/dist/cjs/enhancers/providePlaceholders.js +1 -2
- package/package.json +7 -8
- package/types/components/Date.d.ts +5 -5
- package/types/components/EditFrame.d.ts +6 -6
- package/types/components/File.d.ts +4 -4
- package/types/components/HiddenRendering.d.ts +1 -1
- package/types/components/Image.d.ts +8 -8
- package/types/components/Link.d.ts +9 -9
- package/types/components/MissingComponent.d.ts +4 -4
- package/types/components/Placeholder.d.ts +7 -7
- package/types/components/PlaceholderCommon.d.ts +1 -3
- package/types/components/RichText.d.ts +7 -7
- package/types/components/SitecoreContext.d.ts +5 -5
- package/types/components/Text.d.ts +6 -6
|
@@ -11,7 +11,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
14
|
+
exports.getPlaceholderDataFromRenderingData = void 0;
|
|
15
|
+
exports.getVNodesForRenderingData = getVNodesForRenderingData;
|
|
16
|
+
exports.getDynamicComponentsFromRenderingData = getDynamicComponentsFromRenderingData;
|
|
17
|
+
exports.convertVNodesToDynamicComponents = convertVNodesToDynamicComponents;
|
|
15
18
|
const editing_1 = require("@sitecore-jss/sitecore-jss/editing");
|
|
16
19
|
const sitecore_jss_1 = require("@sitecore-jss/sitecore-jss");
|
|
17
20
|
const vue_1 = require("vue");
|
|
@@ -73,7 +76,6 @@ function getVNodesForRenderingData(placeholderData, placeholderProps, componentF
|
|
|
73
76
|
})
|
|
74
77
|
.filter((element) => element); // remove nulls;
|
|
75
78
|
}
|
|
76
|
-
exports.getVNodesForRenderingData = getVNodesForRenderingData;
|
|
77
79
|
/**
|
|
78
80
|
* Convenience method that calls {@link getVNodesForRenderingData} and {@link convertVNodesToDynamicComponents}
|
|
79
81
|
* to return "renderable" components, i.e. components that can be rendered in a Vue template, a.k.a. dynamic components.
|
|
@@ -85,7 +87,6 @@ exports.getVNodesForRenderingData = getVNodesForRenderingData;
|
|
|
85
87
|
function getDynamicComponentsFromRenderingData(placeholderData, placeholderProps, componentFactory) {
|
|
86
88
|
return convertVNodesToDynamicComponents(getVNodesForRenderingData(placeholderData, placeholderProps, componentFactory));
|
|
87
89
|
}
|
|
88
|
-
exports.getDynamicComponentsFromRenderingData = getDynamicComponentsFromRenderingData;
|
|
89
90
|
/**
|
|
90
91
|
* Converts VNodes to components that render the vnode.
|
|
91
92
|
* Also evaluates VNodes to determine if they are Experience Editor components/elements and if so,
|
|
@@ -109,7 +110,6 @@ function convertVNodesToDynamicComponents(vnodes) {
|
|
|
109
110
|
return component;
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
|
-
exports.convertVNodesToDynamicComponents = convertVNodesToDynamicComponents;
|
|
113
113
|
/**
|
|
114
114
|
* @param {any} elem
|
|
115
115
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.providePlaceholders =
|
|
3
|
+
exports.providePlaceholders = providePlaceholders;
|
|
4
4
|
const PlaceholderCommon_1 = require("../components/PlaceholderCommon");
|
|
5
5
|
/**
|
|
6
6
|
* @param {Vue} vm
|
|
@@ -44,4 +44,3 @@ function providePlaceholders(vm, componentFactory) {
|
|
|
44
44
|
}, {});
|
|
45
45
|
vm.$options.computed = Object.assign(Object.assign({}, vm.$options.computed), computedProps);
|
|
46
46
|
}
|
|
47
|
-
exports.providePlaceholders = providePlaceholders;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-vue",
|
|
3
|
-
"version": "22.3.0-canary.
|
|
3
|
+
"version": "22.3.0-canary.8",
|
|
4
4
|
"description": "A library for building Sitecore JSS apps using Vue.js",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/jest": "^29.2.6",
|
|
31
31
|
"@types/node": "^20.14.2",
|
|
32
|
-
"@vue/compiler-dom": "^3.
|
|
32
|
+
"@vue/compiler-dom": "^3.5.12",
|
|
33
33
|
"@vue/test-utils": "2.2.7",
|
|
34
34
|
"@vue/vue3-jest": "^29.2.2",
|
|
35
35
|
"babel-jest": "^29.5.0",
|
|
@@ -40,19 +40,18 @@
|
|
|
40
40
|
"jest-environment-jsdom": "^29.3.1",
|
|
41
41
|
"jest-serializer-html": "^7.1.0",
|
|
42
42
|
"ts-jest": "29.0.5",
|
|
43
|
-
"typescript": "~
|
|
44
|
-
"vue": "^3.
|
|
43
|
+
"typescript": "~5.6.0",
|
|
44
|
+
"vue": "^3.5.12",
|
|
45
45
|
"vue-class-component": "^7.2.6"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"vue": "^3.
|
|
48
|
+
"vue": "^3.5.12"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@sitecore-jss/sitecore-jss": "^22.3.0-canary.
|
|
52
|
-
"@vue/compiler-sfc": "^3.0.11"
|
|
51
|
+
"@sitecore-jss/sitecore-jss": "^22.3.0-canary.8"
|
|
53
52
|
},
|
|
54
53
|
"types": "./types/index.d.ts",
|
|
55
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "af8edb136f2218cd6c0674bb0c4640ff3346df6a",
|
|
56
55
|
"files": [
|
|
57
56
|
"dist",
|
|
58
57
|
"types",
|
|
@@ -7,7 +7,7 @@ export type FormatterFunction = (date: Date | null) => any;
|
|
|
7
7
|
export interface DateProps {
|
|
8
8
|
formatter?: FormatterFunction;
|
|
9
9
|
}
|
|
10
|
-
export declare const DateField: import("@vue/runtime-core").DefineComponent<{
|
|
10
|
+
export declare const DateField: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
11
11
|
/** The date field data. */
|
|
12
12
|
field: {
|
|
13
13
|
type: PropType<FieldShape>;
|
|
@@ -39,7 +39,7 @@ export declare const DateField: import("@vue/runtime-core").DefineComponent<{
|
|
|
39
39
|
type: PropType<FormatterFunction>;
|
|
40
40
|
default: any;
|
|
41
41
|
};
|
|
42
|
-
}
|
|
42
|
+
}>, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
43
43
|
/** The date field data. */
|
|
44
44
|
field: {
|
|
45
45
|
type: PropType<FieldShape>;
|
|
@@ -71,9 +71,9 @@ export declare const DateField: import("@vue/runtime-core").DefineComponent<{
|
|
|
71
71
|
type: PropType<FormatterFunction>;
|
|
72
72
|
default: any;
|
|
73
73
|
};
|
|
74
|
-
}
|
|
74
|
+
}>> & Readonly<{}>, {
|
|
75
|
+
field: FieldShape;
|
|
75
76
|
editable: boolean;
|
|
76
77
|
tag: string;
|
|
77
|
-
field: FieldShape;
|
|
78
78
|
formatter: FormatterFunction;
|
|
79
|
-
}, {}>;
|
|
79
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { EditFrameDataSource, EditButtonTypes } from '@sitecore-jss/sitecore-jss/editing';
|
|
3
3
|
import { RouteData } from '@sitecore-jss/sitecore-jss/layout';
|
|
4
|
-
export declare const EditFrame: import("@vue/runtime-core").DefineComponent<{
|
|
4
|
+
export declare const EditFrame: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
5
5
|
dataSource: {
|
|
6
6
|
type: PropType<EditFrameDataSource>;
|
|
7
7
|
default: any;
|
|
@@ -23,7 +23,7 @@ export declare const EditFrame: import("@vue/runtime-core").DefineComponent<{
|
|
|
23
23
|
default: any;
|
|
24
24
|
};
|
|
25
25
|
parameters: {
|
|
26
|
-
type: PropType<Record<string, string | number | boolean>>;
|
|
26
|
+
type: PropType<Record<string, string | number | boolean | undefined | null>>;
|
|
27
27
|
default: any;
|
|
28
28
|
};
|
|
29
29
|
context: {
|
|
@@ -34,7 +34,7 @@ export declare const EditFrame: import("@vue/runtime-core").DefineComponent<{
|
|
|
34
34
|
type: () => RouteData;
|
|
35
35
|
default: any;
|
|
36
36
|
};
|
|
37
|
-
}
|
|
37
|
+
}>, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
38
38
|
dataSource: {
|
|
39
39
|
type: PropType<EditFrameDataSource>;
|
|
40
40
|
default: any;
|
|
@@ -56,7 +56,7 @@ export declare const EditFrame: import("@vue/runtime-core").DefineComponent<{
|
|
|
56
56
|
default: any;
|
|
57
57
|
};
|
|
58
58
|
parameters: {
|
|
59
|
-
type: PropType<Record<string, string | number | boolean>>;
|
|
59
|
+
type: PropType<Record<string, string | number | boolean | undefined | null>>;
|
|
60
60
|
default: any;
|
|
61
61
|
};
|
|
62
62
|
context: {
|
|
@@ -67,7 +67,7 @@ export declare const EditFrame: import("@vue/runtime-core").DefineComponent<{
|
|
|
67
67
|
type: () => RouteData;
|
|
68
68
|
default: any;
|
|
69
69
|
};
|
|
70
|
-
}
|
|
70
|
+
}>> & Readonly<{}>, {
|
|
71
71
|
buttons: EditButtonTypes[];
|
|
72
72
|
title: string;
|
|
73
73
|
parameters: Record<string, string | number | boolean>;
|
|
@@ -76,4 +76,4 @@ export declare const EditFrame: import("@vue/runtime-core").DefineComponent<{
|
|
|
76
76
|
cssClass: string;
|
|
77
77
|
context: Record<string, any>;
|
|
78
78
|
routeData: RouteData<Record<string, import("@sitecore-jss/sitecore-jss/layout").Field<import("@sitecore-jss/sitecore-jss/layout").GenericFieldValue> | import("@sitecore-jss/sitecore-jss/layout").Item | import("@sitecore-jss/sitecore-jss/layout").Item[]>>;
|
|
79
|
-
}, {}>;
|
|
79
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
@@ -8,20 +8,20 @@ export interface FileFieldValue {
|
|
|
8
8
|
export interface FileField {
|
|
9
9
|
value: FileFieldValue;
|
|
10
10
|
}
|
|
11
|
-
export declare const File: import("@vue/runtime-core").DefineComponent<{
|
|
11
|
+
export declare const File: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
12
12
|
/** The file field data. */
|
|
13
13
|
field: {
|
|
14
14
|
type: PropType<FileFieldValue | FileField>;
|
|
15
15
|
default(): FileFieldValue | FileField;
|
|
16
16
|
required: true;
|
|
17
17
|
};
|
|
18
|
-
}
|
|
18
|
+
}>, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
19
19
|
/** The file field data. */
|
|
20
20
|
field: {
|
|
21
21
|
type: PropType<FileFieldValue | FileField>;
|
|
22
22
|
default(): FileFieldValue | FileField;
|
|
23
23
|
required: true;
|
|
24
24
|
};
|
|
25
|
-
}
|
|
25
|
+
}>> & Readonly<{}>, {
|
|
26
26
|
field: FileFieldValue | FileField;
|
|
27
|
-
}, {}>;
|
|
27
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HiddenRendering: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").
|
|
1
|
+
export declare const HiddenRendering: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
@@ -7,11 +7,11 @@ export interface ImageField {
|
|
|
7
7
|
value?: ImageFieldValue;
|
|
8
8
|
editable?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const Image: import("@vue/runtime-core").DefineComponent<{
|
|
10
|
+
export declare const Image: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
11
11
|
/** The image field data. */
|
|
12
12
|
media: {
|
|
13
|
-
type: PropType<
|
|
14
|
-
default():
|
|
13
|
+
type: PropType<ImageField | ImageFieldValue>;
|
|
14
|
+
default(): ImageField | ImageFieldValue;
|
|
15
15
|
required: true;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
@@ -43,11 +43,11 @@ export declare const Image: import("@vue/runtime-core").DefineComponent<{
|
|
|
43
43
|
type: RegExpConstructor;
|
|
44
44
|
default: any;
|
|
45
45
|
};
|
|
46
|
-
}
|
|
46
|
+
}>, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
47
47
|
/** The image field data. */
|
|
48
48
|
media: {
|
|
49
|
-
type: PropType<
|
|
50
|
-
default():
|
|
49
|
+
type: PropType<ImageField | ImageFieldValue>;
|
|
50
|
+
default(): ImageField | ImageFieldValue;
|
|
51
51
|
required: true;
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
@@ -79,11 +79,11 @@ export declare const Image: import("@vue/runtime-core").DefineComponent<{
|
|
|
79
79
|
type: RegExpConstructor;
|
|
80
80
|
default: any;
|
|
81
81
|
};
|
|
82
|
-
}
|
|
82
|
+
}>> & Readonly<{}>, {
|
|
83
83
|
media: ImageFieldValue | ImageField;
|
|
84
84
|
editable: boolean;
|
|
85
85
|
imageParams: {
|
|
86
86
|
[paramName: string]: string;
|
|
87
87
|
};
|
|
88
88
|
mediaUrlPrefix: RegExp;
|
|
89
|
-
}, {}>;
|
|
89
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
@@ -13,11 +13,11 @@ export interface LinkField {
|
|
|
13
13
|
editableFirstPart?: string;
|
|
14
14
|
editableLastPart?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare const Link: import("@vue/runtime-core").DefineComponent<{
|
|
16
|
+
export declare const Link: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
17
17
|
/** The link field data. */
|
|
18
18
|
field: {
|
|
19
|
-
type: PropType<
|
|
20
|
-
default():
|
|
19
|
+
type: PropType<LinkField | LinkFieldValue>;
|
|
20
|
+
default(): LinkField | LinkFieldValue;
|
|
21
21
|
required: true;
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
@@ -38,11 +38,11 @@ export declare const Link: import("@vue/runtime-core").DefineComponent<{
|
|
|
38
38
|
type: BooleanConstructor;
|
|
39
39
|
default: boolean;
|
|
40
40
|
};
|
|
41
|
-
}
|
|
41
|
+
}>, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
42
42
|
/** The link field data. */
|
|
43
43
|
field: {
|
|
44
|
-
type: PropType<
|
|
45
|
-
default():
|
|
44
|
+
type: PropType<LinkField | LinkFieldValue>;
|
|
45
|
+
default(): LinkField | LinkFieldValue;
|
|
46
46
|
required: true;
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
@@ -63,8 +63,8 @@ export declare const Link: import("@vue/runtime-core").DefineComponent<{
|
|
|
63
63
|
type: BooleanConstructor;
|
|
64
64
|
default: boolean;
|
|
65
65
|
};
|
|
66
|
-
}
|
|
67
|
-
editable: boolean;
|
|
66
|
+
}>> & Readonly<{}>, {
|
|
68
67
|
field: LinkFieldValue | LinkField;
|
|
68
|
+
editable: boolean;
|
|
69
69
|
showLinkTextWithChildrenPresent: boolean;
|
|
70
|
-
}, {}>;
|
|
70
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
export declare const MissingComponent: import("@vue/runtime-core").DefineComponent<{
|
|
2
|
+
export declare const MissingComponent: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
3
3
|
rendering: {
|
|
4
4
|
type: PropType<{
|
|
5
5
|
componentName?: string;
|
|
@@ -8,7 +8,7 @@ export declare const MissingComponent: import("@vue/runtime-core").DefineCompone
|
|
|
8
8
|
componentName?: string;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
12
12
|
rendering: {
|
|
13
13
|
type: PropType<{
|
|
14
14
|
componentName?: string;
|
|
@@ -17,8 +17,8 @@ export declare const MissingComponent: import("@vue/runtime-core").DefineCompone
|
|
|
17
17
|
componentName?: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
}
|
|
20
|
+
}>> & Readonly<{}>, {
|
|
21
21
|
rendering: {
|
|
22
22
|
componentName?: string;
|
|
23
23
|
};
|
|
24
|
-
}, {}>;
|
|
24
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
@@ -2,7 +2,7 @@ import { ComponentRendering, RouteData, Field, Item } from '@sitecore-jss/siteco
|
|
|
2
2
|
import { PlaceholderProps } from './PlaceholderCommon';
|
|
3
3
|
import { ComponentFactory } from './sharedTypes';
|
|
4
4
|
export { PlaceholderProps };
|
|
5
|
-
export declare const Placeholder: import("@vue/runtime-core").DefineComponent<{
|
|
5
|
+
export declare const Placeholder: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
6
6
|
name: {
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
required: true;
|
|
@@ -17,7 +17,7 @@ export declare const Placeholder: import("@vue/runtime-core").DefineComponent<{
|
|
|
17
17
|
};
|
|
18
18
|
fields: {
|
|
19
19
|
type: () => {
|
|
20
|
-
[name: string]: Field
|
|
20
|
+
[name: string]: Field | Item[];
|
|
21
21
|
};
|
|
22
22
|
default: any;
|
|
23
23
|
};
|
|
@@ -39,11 +39,11 @@ export declare const Placeholder: import("@vue/runtime-core").DefineComponent<{
|
|
|
39
39
|
type: ObjectConstructor;
|
|
40
40
|
default: any;
|
|
41
41
|
};
|
|
42
|
-
}
|
|
42
|
+
}>, (() => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
43
43
|
[key: string]: any;
|
|
44
44
|
}>) | (() => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
45
45
|
[key: string]: any;
|
|
46
|
-
}>[]),
|
|
46
|
+
}>[]), {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
47
47
|
name: {
|
|
48
48
|
type: StringConstructor;
|
|
49
49
|
required: true;
|
|
@@ -58,7 +58,7 @@ export declare const Placeholder: import("@vue/runtime-core").DefineComponent<{
|
|
|
58
58
|
};
|
|
59
59
|
fields: {
|
|
60
60
|
type: () => {
|
|
61
|
-
[name: string]: Field
|
|
61
|
+
[name: string]: Field | Item[];
|
|
62
62
|
};
|
|
63
63
|
default: any;
|
|
64
64
|
};
|
|
@@ -80,7 +80,7 @@ export declare const Placeholder: import("@vue/runtime-core").DefineComponent<{
|
|
|
80
80
|
type: ObjectConstructor;
|
|
81
81
|
default: any;
|
|
82
82
|
};
|
|
83
|
-
}
|
|
83
|
+
}>> & Readonly<{}>, {
|
|
84
84
|
fields: {
|
|
85
85
|
[name: string]: Field<import("@sitecore-jss/sitecore-jss/layout").GenericFieldValue> | Item[];
|
|
86
86
|
};
|
|
@@ -91,4 +91,4 @@ export declare const Placeholder: import("@vue/runtime-core").DefineComponent<{
|
|
|
91
91
|
missingComponentComponent: Record<string, any>;
|
|
92
92
|
hiddenRenderingComponent: Record<string, any>;
|
|
93
93
|
errorComponent: Record<string, any>;
|
|
94
|
-
}, {}>;
|
|
94
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
@@ -55,9 +55,7 @@ export declare const getPlaceholderDataFromRenderingData: (rendering: ComponentR
|
|
|
55
55
|
* @param {ComponentFactory} [componentFactory]
|
|
56
56
|
* @returns {VNode[]} vnodes
|
|
57
57
|
*/
|
|
58
|
-
export declare function getVNodesForRenderingData(placeholderData: Array<ComponentRendering | HtmlElementRendering>, placeholderProps: PlaceholderProps, componentFactory?: ComponentFactory): VNode
|
|
59
|
-
[key: string]: any;
|
|
60
|
-
}>[];
|
|
58
|
+
export declare function getVNodesForRenderingData(placeholderData: Array<ComponentRendering | HtmlElementRendering>, placeholderProps: PlaceholderProps, componentFactory?: ComponentFactory): VNode[];
|
|
61
59
|
/**
|
|
62
60
|
* Convenience method that calls {@link getVNodesForRenderingData} and {@link convertVNodesToDynamicComponents}
|
|
63
61
|
* to return "renderable" components, i.e. components that can be rendered in a Vue template, a.k.a. dynamic components.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
export declare const RichText: import("@vue/runtime-core").DefineComponent<{
|
|
2
|
+
export declare const RichText: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
3
3
|
/** The rich text field data. */
|
|
4
4
|
field: {
|
|
5
5
|
type: PropType<{
|
|
@@ -29,7 +29,7 @@ export declare const RichText: import("@vue/runtime-core").DefineComponent<{
|
|
|
29
29
|
type: BooleanConstructor;
|
|
30
30
|
default: boolean;
|
|
31
31
|
};
|
|
32
|
-
}
|
|
32
|
+
}>, {}, {}, {}, {
|
|
33
33
|
/**
|
|
34
34
|
* Click handler for links.
|
|
35
35
|
* @param {MouseEvent} event - event emmited by clicking the link
|
|
@@ -40,7 +40,7 @@ export declare const RichText: import("@vue/runtime-core").DefineComponent<{
|
|
|
40
40
|
* listener to prevent page refresh.
|
|
41
41
|
*/
|
|
42
42
|
bindRouteLinks(): void;
|
|
43
|
-
}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").
|
|
43
|
+
}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
44
44
|
/** The rich text field data. */
|
|
45
45
|
field: {
|
|
46
46
|
type: PropType<{
|
|
@@ -70,11 +70,11 @@ export declare const RichText: import("@vue/runtime-core").DefineComponent<{
|
|
|
70
70
|
type: BooleanConstructor;
|
|
71
71
|
default: boolean;
|
|
72
72
|
};
|
|
73
|
-
}
|
|
74
|
-
editable: boolean;
|
|
75
|
-
tag: string;
|
|
73
|
+
}>> & Readonly<{}>, {
|
|
76
74
|
field: {
|
|
77
75
|
value?: string;
|
|
78
76
|
editable?: string;
|
|
79
77
|
};
|
|
80
|
-
|
|
78
|
+
editable: boolean;
|
|
79
|
+
tag: string;
|
|
80
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
@@ -3,18 +3,18 @@ import { ComponentFactory } from './sharedTypes';
|
|
|
3
3
|
export interface SitecoreContextProps {
|
|
4
4
|
componentFactory: ComponentFactory;
|
|
5
5
|
}
|
|
6
|
-
export declare const SitecoreContext: import("@vue/runtime-core").DefineComponent<{
|
|
6
|
+
export declare const SitecoreContext: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
7
7
|
componentFactory: {
|
|
8
8
|
type: PropType<ComponentFactory>;
|
|
9
9
|
default: any;
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
12
12
|
[key: string]: any;
|
|
13
|
-
}>[],
|
|
13
|
+
}>[], {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
14
14
|
componentFactory: {
|
|
15
15
|
type: PropType<ComponentFactory>;
|
|
16
16
|
default: any;
|
|
17
17
|
};
|
|
18
|
-
}
|
|
18
|
+
}>> & Readonly<{}>, {
|
|
19
19
|
componentFactory: ComponentFactory;
|
|
20
|
-
}, {}>;
|
|
20
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
export declare const Text: import("@vue/runtime-core").DefineComponent<{
|
|
2
|
+
export declare const Text: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
|
|
3
3
|
/** The text field data. */
|
|
4
4
|
field: {
|
|
5
5
|
type: PropType<{
|
|
@@ -35,7 +35,7 @@ export declare const Text: import("@vue/runtime-core").DefineComponent<{
|
|
|
35
35
|
type: BooleanConstructor;
|
|
36
36
|
default: boolean;
|
|
37
37
|
};
|
|
38
|
-
}
|
|
38
|
+
}>, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
39
39
|
/** The text field data. */
|
|
40
40
|
field: {
|
|
41
41
|
type: PropType<{
|
|
@@ -71,12 +71,12 @@ export declare const Text: import("@vue/runtime-core").DefineComponent<{
|
|
|
71
71
|
type: BooleanConstructor;
|
|
72
72
|
default: boolean;
|
|
73
73
|
};
|
|
74
|
-
}
|
|
75
|
-
editable: boolean;
|
|
76
|
-
tag: string;
|
|
74
|
+
}>> & Readonly<{}>, {
|
|
77
75
|
field: {
|
|
78
76
|
value?: string | number;
|
|
79
77
|
editable?: string;
|
|
80
78
|
};
|
|
79
|
+
editable: boolean;
|
|
80
|
+
tag: string;
|
|
81
81
|
encode: boolean;
|
|
82
|
-
}, {}>;
|
|
82
|
+
}, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
|