@types/scrivito 1.22.2 → 1.22.4
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.
- scrivito/LICENSE +0 -0
- scrivito/README.md +1 -2
- scrivito/index.d.ts +11 -12
- scrivito/package.json +7 -7
scrivito/LICENSE
CHANGED
|
File without changes
|
scrivito/README.md
CHANGED
|
@@ -8,9 +8,8 @@ This package contains type definitions for scrivito (https://www.scrivito.com/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scrivito.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 18 Oct 2023 11:45:06 GMT
|
|
12
12
|
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
|
|
13
|
-
* Global values: none
|
|
14
13
|
|
|
15
14
|
# Credits
|
|
16
15
|
These definitions were written by [ Julian Krieger](https://github.com/juliankrieger), and [Eric Eifler](https://github.com/eric-the-viking).
|
scrivito/index.d.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
// Type definitions for scrivito 1.22
|
|
2
|
-
// Project: https://www.scrivito.com/
|
|
3
|
-
// Definitions by: Julian Krieger <https://github.com/juliankrieger>
|
|
4
|
-
// Eric Eifler <https://github.com/eric-the-viking>
|
|
5
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
6
|
-
// Minimum TypeScript Version: 3.8
|
|
7
|
-
|
|
8
1
|
import * as React from "react";
|
|
9
2
|
|
|
10
3
|
/**
|
|
@@ -137,7 +130,7 @@ export class ContentTag extends React.Component<ContentTagProps, any> {}
|
|
|
137
130
|
|
|
138
131
|
export class CurrentPage extends React.Component<{}, any> {}
|
|
139
132
|
|
|
140
|
-
interface ImageTagProps extends Omit<React.HTMLAttributes<HTMLImageElement>,
|
|
133
|
+
interface ImageTagProps extends Omit<React.HTMLAttributes<HTMLImageElement>, "content"> {
|
|
141
134
|
attribute?: string | undefined;
|
|
142
135
|
content: Binary | Obj | Widget;
|
|
143
136
|
alt?: string | undefined;
|
|
@@ -583,7 +576,10 @@ export function getClass(name: string): ObjClass | WidgetClass | null;
|
|
|
583
576
|
export function isEditorLoggedIn(): boolean;
|
|
584
577
|
export function isInPlaceEditingActive(): boolean;
|
|
585
578
|
export function load<T>(functionToLoad: () => T): Promise<T>;
|
|
586
|
-
export function navigateTo(
|
|
579
|
+
export function navigateTo(
|
|
580
|
+
target: (() => Obj | Link) | Obj | Link,
|
|
581
|
+
options?: { hash?: string | undefined; params?: any },
|
|
582
|
+
): void;
|
|
587
583
|
export function openDialog(name: string): void;
|
|
588
584
|
export function preload(preloadDump: any): Promise<{ dumpLoaded: boolean }>;
|
|
589
585
|
export function provideComponent(className: string, component: WidgetComponent | ObjComponent): void;
|
|
@@ -601,7 +597,10 @@ export function renderPage(page: Obj, renderFunction: () => void): Promise<{ res
|
|
|
601
597
|
export function setVisitorIdToken(idToken: string): void;
|
|
602
598
|
export function updateContent(): void;
|
|
603
599
|
export function updateMenuExtensions(): void;
|
|
604
|
-
export function urlFor(
|
|
600
|
+
export function urlFor(
|
|
601
|
+
target: Obj | Binary | Link,
|
|
602
|
+
options?: { query?: string | undefined; hash?: string | undefined },
|
|
603
|
+
): string;
|
|
605
604
|
export function useHistory(history: History): void;
|
|
606
605
|
export function validationResultsFor(model: Obj | Widget, attribute: string): ValidationResult[];
|
|
607
606
|
export function isComparisonActive(): boolean;
|
|
@@ -617,10 +616,10 @@ type AttributeKeys<T extends WidgetClassOptions | ObjClassOptions> = {
|
|
|
617
616
|
};
|
|
618
617
|
|
|
619
618
|
export type {
|
|
619
|
+
AttributeKeys,
|
|
620
620
|
AttributeOptions,
|
|
621
621
|
AttributeProps,
|
|
622
622
|
AttributeValue,
|
|
623
|
-
AttributeKeys,
|
|
624
623
|
BackgroundImageBackgroundProp,
|
|
625
624
|
BackgroundImageTagProps,
|
|
626
625
|
ChildListTagProps,
|
|
@@ -640,10 +639,10 @@ export type {
|
|
|
640
639
|
ObjComponentProps,
|
|
641
640
|
OptimizeDefinition,
|
|
642
641
|
PropertiesGroup,
|
|
642
|
+
SiteContext,
|
|
643
643
|
WidgetClassOptions,
|
|
644
644
|
WidgetComponentProps,
|
|
645
645
|
WidgetTagProps,
|
|
646
|
-
SiteContext,
|
|
647
646
|
};
|
|
648
647
|
|
|
649
648
|
// Disables automatic exports
|
scrivito/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/scrivito",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.4",
|
|
4
4
|
"description": "TypeScript definitions for scrivito",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scrivito",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"contributors": [
|
|
8
8
|
{
|
|
9
9
|
"name": " Julian Krieger",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"githubUsername": "juliankrieger",
|
|
11
|
+
"url": "https://github.com/juliankrieger"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"name": "Eric Eifler",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"githubUsername": "eric-the-viking",
|
|
16
|
+
"url": "https://github.com/eric-the-viking"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
19
|
"main": "",
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@types/react": "*"
|
|
29
29
|
},
|
|
30
|
-
"typesPublisherContentHash": "
|
|
31
|
-
"typeScriptVersion": "4.
|
|
30
|
+
"typesPublisherContentHash": "53fbf658c69059a34ab63bd94de1e441057f4194d36e34362fb24e53b1193e25",
|
|
31
|
+
"typeScriptVersion": "4.5"
|
|
32
32
|
}
|