Skip to content

Commit 14cdfa5

Browse files
authored
Merge pull request #5 from pnp/dev
new feature, version update 6.2.0, ready to ship
2 parents ffd007a + 969ed64 commit 14cdfa5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1411
-599
lines changed

package-lock.json

Lines changed: 250 additions & 185 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
22
"name": "sp-editor",
3-
"version": "6.1.0",
3+
"version": "6.2.0",
44
"private": true,
55
"dependencies": {
6-
"@ionic/react": "^5.4.1",
7-
"@ionic/react-router": "^5.4.1",
8-
"@uifabric/theme-samples": "^7.1.33",
9-
"cra-build-watch": "^3.3.0",
6+
"@ionic/react": "^5.4.4",
7+
"@ionic/react-router": "^5.4.4",
8+
"@uifabric/theme-samples": "^7.1.42",
9+
"cra-build-watch": "^3.4.0",
1010
"gsap": "^3.5.1",
1111
"ionicons": "^5.2.3",
1212
"monaco-editor": "^0.21.2",
13-
"office-ui-fabric-react": "^7.147.1",
13+
"office-ui-fabric-react": "^7.150.0",
1414
"react": "^17.0.1",
1515
"react-dom": "^17.0.1",
16-
"react-redux": "^7.2.1",
16+
"react-redux": "^7.2.2",
1717
"react-router-dom": "^5.2.0",
1818
"react-scripts": "^4.0.0",
1919
"redux": "^4.0.5",
2020
"redux-thunk": "^2.3.0",
2121
"textarea-caret": "^3.1.0",
2222
"typesafe-actions": "^5.1.0",
23-
"typescript": "^4.0.3"
23+
"typescript": "^4.0.5"
2424
},
2525
"scripts": {
2626
"build": "INLINE_RUNTIME_CHUNK=false react-scripts build",
@@ -43,36 +43,36 @@
4343
]
4444
},
4545
"devDependencies": {
46-
"@pnp/common": "^2.0.11",
47-
"@pnp/config-store": "^2.0.11",
48-
"@pnp/graph": "^2.0.11",
49-
"@pnp/logging": "^2.0.11",
50-
"@pnp/nodejs": "^2.0.11",
51-
"@pnp/odata": "^2.0.11",
52-
"@pnp/pnpjs": "^2.0.11",
53-
"@pnp/sp": "^2.0.11",
54-
"@pnp/sp-addinhelpers": "^2.0.11",
46+
"@pnp/common": "^2.0.12",
47+
"@pnp/config-store": "^2.0.12",
48+
"@pnp/graph": "^2.0.12",
49+
"@pnp/logging": "^2.0.12",
50+
"@pnp/nodejs": "^2.0.12",
51+
"@pnp/odata": "^2.0.12",
52+
"@pnp/pnpjs": "^2.0.12",
53+
"@pnp/sp": "^2.0.12",
54+
"@pnp/sp-addinhelpers": "^2.0.12",
5555
"@pnp/sp-clientsvc": "^1.3.11",
5656
"@pnp/sp-taxonomy": "^1.3.11",
57-
"@types/chrome": "0.0.125",
57+
"@types/chrome": "0.0.126",
5858
"@types/jest": "26.0.15",
59-
"@types/node": "14.14.2",
60-
"@types/react": "^16.9.53",
61-
"@types/react-dom": "16.9.8",
62-
"@types/react-redux": "^7.1.9",
59+
"@types/node": "14.14.7",
60+
"@types/react": "^16.9.56",
61+
"@types/react-dom": "16.9.9",
62+
"@types/react-redux": "^7.1.11",
6363
"@types/react-router-dom": "^5.1.6",
6464
"@types/textarea-caret": "^3.0.0",
6565
"del": "^6.0.0",
6666
"gulp": "^4.0.2",
6767
"gulp-rename": "^2.0.0",
6868
"gulp-replace": "^1.0.0",
6969
"redux-devtools-extension": "^2.13.8",
70-
"ts-loader": "^8.0.7",
70+
"ts-loader": "^8.0.11",
7171
"tslint": "^6.1.3",
7272
"tslint-eslint-rules": "^5.4.0",
7373
"tslint-react": "^5.0.0",
7474
"tslint-react-recommended": "^1.0.15",
75-
"webpack": "^4.20.2",
76-
"webpack-cli": "4.1.0"
75+
"webpack": "^4.44.2",
76+
"webpack-cli": "4.2.0"
7777
}
7878
}

public/@pnp/graph/graphqueryable.d.ts

Lines changed: 10 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IFetchOptions } from "@pnp/common";
2-
import { Queryable, IInvokable, IQueryable } from "@pnp/odata";
2+
import { Queryable, IInvokable } from "@pnp/odata";
33
export interface IGraphQueryableConstructor<T> {
44
new (baseUrl: string | IGraphQueryable, path?: string): T;
55
}
@@ -37,52 +37,26 @@ export declare class _GraphQueryable<GetType = any> extends Queryable<GetType> i
3737
*/
3838
toUrlAndQuery(): string;
3939
setEndpoint(endpoint: "beta" | "v1.0"): this;
40-
/**
41-
* Gets a parent for this instance as specified
42-
*
43-
* @param factory The contructor for the class to create
44-
*/
45-
protected getParent<T extends _GraphQueryable>(factory: IGraphQueryableConstructor<T>, baseUrl?: string | IGraphQueryable, path?: string): T;
4640
/**
4741
* Clones this queryable into a new queryable instance of T
4842
* @param factory Constructor used to create the new instance
4943
* @param additionalPath Any additional path to include in the clone
5044
* @param includeBatch If true this instance's batch will be added to the cloned instance
5145
* @param includeQuery If true all of the query values will be copied to the cloned instance
5246
*/
53-
protected clone<T extends IGraphQueryable>(factory: (...args: any[]) => T, additionalPath?: string, includeBatch?: boolean, includeQuery?: boolean): T;
54-
}
55-
export interface IGraphQueryable<GetType = any> extends IInvokable, IQueryable<GetType> {
56-
/**
57-
* Choose which fields to return
58-
*
59-
* @param selects One or more fields to return
60-
*/
61-
select(...selects: string[]): this;
62-
/**
63-
* Expands fields such as lookups to get additional data
64-
*
65-
* @param expands The Fields for which to expand the values
66-
*/
67-
expand(...expands: string[]): this;
47+
clone<T extends IGraphQueryable>(factory: (...args: any[]) => T, additionalPath?: string, includeBatch?: boolean, includeQuery?: boolean): T;
6848
/**
49+
* Gets a parent for this instance as specified
6950
*
70-
* @param options
71-
*/
72-
defaultAction(options?: IFetchOptions): Promise<GetType>;
73-
/**
74-
* Allows you to set the graph endpoint version string
75-
*
76-
* @param endpoint The string either beta of v1.0
77-
*/
78-
setEndpoint(endpoint: "beta" | "v1.0"): this;
79-
/**
80-
* Gets the full url with query information
81-
*
51+
* @param factory The contructor for the class to create
8252
*/
83-
toUrlAndQuery(): string;
53+
protected getParent<T extends _GraphQueryable>(factory: IGraphQueryableConstructor<T>, baseUrl?: string | IGraphQueryable, path?: string): T;
54+
}
55+
export interface IGraphQueryable<GetType = any> extends _GraphQueryable<GetType>, IInvokable<GetType> {
56+
}
57+
export interface _SharePointQueryable<GetType = any> extends IInvokable<GetType> {
8458
}
85-
export interface _GraphQueryable extends IInvokable {
59+
export interface _GraphQueryable<GetType = any> extends IInvokable<GetType> {
8660
}
8761
export declare const GraphQueryable: (baseUrl: string | IGraphQueryable, path?: string) => IGraphQueryable<any>;
8862
/**
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import "./web";
2-
export { IClientsidePage, ClientsidePageFromFile, CreateClientsidePage, CanvasColumn, CanvasColumnFactor, CanvasSection, IClientsidePageComponent, ClientsidePageLayoutType, ClientsideText, ClientsideWebpart, ColumnControl, ICanvasControlBaseData, IClientControlEmphasis, IClientsideControlBaseData, IClientsidePageColumnData, IClientsidePageSettingsSlice, IClientsideTextData, IClientsideWebPartData, IPageData, LayoutType, PromotedState, TextAlignment, } from "./types";
2+
export { IClientsidePage, ClientsidePageFromFile, CreateClientsidePage, CanvasColumn, CanvasColumnFactor, CanvasSection, IClientsidePageComponent, ClientsidePageLayoutType, ClientsideText, ClientsideWebpart, ColumnControl, ICanvasControlBaseData, IClientControlEmphasis, IClientsideControlBaseData, IClientsidePageColumnData, IClientsidePageSettingsSlice, IClientsideTextData, IClientsideWebPartData, IPageData, LayoutType, PromotedState, TextAlignment, IBannerImageProps, } from "./types";
33
//# sourceMappingURL=index.d.ts.map

public/@pnp/sp/clientside-pages/types.d.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,14 @@ export declare class _ClientsidePage extends _SharePointQueryable implements ICl
132132
* @param altText Alt text to describe the image
133133
* @param bannerProps Additional properties to control display of the banner
134134
*/
135-
setBannerImage(url: string, props?: {
136-
altText?: string;
137-
imageSourceType?: number;
138-
translateX?: number;
139-
translateY?: number;
140-
}): void;
135+
setBannerImage(url: string, props?: IBannerImageProps): void;
136+
/**
137+
* Sets the banner image url from an external source. You must call save to persist the changes
138+
*
139+
* @param url absolute url of the external file
140+
* @param props optional set of properties to control display of the banner image
141+
*/
142+
setBannerImageFromExternalUrl(url: string, props?: IBannerImageProps): Promise<void>;
141143
/**
142144
* Sets the authors for this page from the supplied list of user integer ids
143145
*
@@ -434,5 +436,11 @@ export interface IClientControlEmphasis {
434436
}
435437
export declare type LayoutType = "FullWidthImage" | "NoImage" | "ColorBlock" | "CutInShape";
436438
export declare type TextAlignment = "Left" | "Center";
439+
export interface IBannerImageProps {
440+
altText?: string;
441+
imageSourceType?: number;
442+
translateX?: number;
443+
translateY?: number;
444+
}
437445
export {};
438446
//# sourceMappingURL=types.d.ts.map

public/@pnp/sp/files/types.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,16 +379,19 @@ export interface IFileInfo {
379379
Level: number;
380380
LinkingUri: string | null;
381381
LinkingUrl: string;
382+
ListId: string;
382383
MajorVersion: number;
383384
MinorVersion: number;
384385
Name: string;
385386
ServerRelativeUrl: string;
387+
SiteId: string;
386388
TimeCreated: string;
387389
TimeLastModified: string;
388390
Title: string | null;
389391
UIVersion: number;
390392
UIVersionLabel: string;
391393
UniqueId: string;
394+
WebId: string;
392395
}
393396
export interface IFileDeleteParams {
394397
/**

public/@pnp/sp/folders/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import "./item";
22
import "./list";
33
import "./web";
4-
export { Folder, IFolderAddResult, IFolderUpdateResult, Folders, IFolder, IFolders, IFolderInfo, } from "./types";
4+
export { Folder, IFolderAddResult, IFolderUpdateResult, Folders, IFolder, IFolders, IFolderInfo, IFolderDeleteParams, IFolderParentInfos, } from "./types";
55
//# sourceMappingURL=index.d.ts.map

public/@pnp/sp/folders/types.d.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ export declare class _Folder extends _SharePointQueryableInstance<IFolderInfo> {
116116
* @param leafPath leafName of the new folder
117117
*/
118118
addSubFolderUsingPath(leafPath: string): Promise<IFolder>;
119+
/**
120+
* Gets the parent information for this folder's list and web
121+
*/
122+
getParentInfos(): Promise<IFolderParentInfos>;
119123
/**
120124
* Gets the shareable item associated with this folder
121125
*/
@@ -184,4 +188,21 @@ export interface IFolderDeleteParams {
184188
*/
185189
DeleteIfEmpty: boolean;
186190
}
191+
export interface IFolderParentInfos {
192+
Folder: {
193+
ServerRelativeUrl: string;
194+
};
195+
ParentList: {
196+
Id: string;
197+
RootFolderServerRelativePath: IResourcePath;
198+
RootFolderServerRelativeUrl: string;
199+
RootFolderUniqueId: string;
200+
};
201+
ParentWeb: {
202+
Id: string;
203+
ServerRelativePath: IResourcePath;
204+
ServerRelativeUrl: string;
205+
Url: string;
206+
};
207+
}
187208
//# sourceMappingURL=types.d.ts.map

public/@pnp/sp/items/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import "./list";
2-
export { Item, Items, IItem, IItems, ItemVersion, ItemVersions, IItemVersion, IItemVersions, IItemAddResult, IItemUpdateResult, IItemUpdateResultData, PagedItemCollection, } from "./types";
2+
export { Item, Items, IItem, IItems, ItemVersion, ItemVersions, IItemVersion, IItemVersions, IItemAddResult, IItemUpdateResult, IItemUpdateResultData, PagedItemCollection, IItemDeleteParams, IItemParentInfos, } from "./types";
33
//# sourceMappingURL=index.d.ts.map

public/@pnp/sp/items/types.d.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { _SharePointQueryableInstance, ISharePointQueryableInstance, _SharePoint
22
import { ITypedHash } from "@pnp/common";
33
import { IListItemFormUpdateValue } from "../lists/types";
44
import { IList } from "../lists";
5+
import { IResourcePath } from '../utils/toResourcePath';
56
/**
67
* Describes a collection of Item objects
78
*
@@ -123,6 +124,10 @@ export declare class _Item extends _SharePointQueryableInstance {
123124
* @param bNewDocumentUpdate true if the list item is a document being updated after upload; otherwise false.
124125
*/
125126
validateUpdateListItem(formValues: IListItemFormUpdateValue[], bNewDocumentUpdate?: boolean): Promise<IListItemFormUpdateValue[]>;
127+
/**
128+
* Gets the parent information for this item's list and web
129+
*/
130+
getParentInfos(): Promise<IItemParentInfos>;
126131
/**
127132
* Ensures we have the proper list item entity type name, either from the value provided or from the list
128133
*
@@ -195,4 +200,21 @@ export interface IItemDeleteParams {
195200
*/
196201
BypassSharedLock: boolean;
197202
}
203+
export interface IItemParentInfos {
204+
Item: {
205+
Id: string;
206+
};
207+
ParentList: {
208+
Id: string;
209+
RootFolderServerRelativePath: IResourcePath;
210+
RootFolderServerRelativeUrl: string;
211+
RootFolderUniqueId: string;
212+
};
213+
ParentWeb: {
214+
Id: string;
215+
ServerRelativePath: IResourcePath;
216+
ServerRelativeUrl: string;
217+
Url: string;
218+
};
219+
}
198220
//# sourceMappingURL=types.d.ts.map

0 commit comments

Comments
 (0)