Skip to content

Commit 22d1ecf

Browse files
author
Tomi Tavela
authored
Merge pull request #2 from pnp/dev
version update to 6.0.5
2 parents 2f260c0 + 355de4f commit 22d1ecf

27 files changed

+1642
-377
lines changed

package-lock.json

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

package.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{
22
"name": "sp-editor",
3-
"version": "6.0.4",
3+
"version": "6.0.5",
44
"private": true,
55
"dependencies": {
6-
"@ionic/react": "^5.0.7",
7-
"@ionic/react-router": "^5.0.7",
8-
"@uifabric/azure-themes": "^7.0.57",
6+
"@ionic/react": "^5.1.1",
7+
"@ionic/react-router": "^5.1.1",
8+
"@uifabric/theme-samples": "^7.0.77",
99
"gsap": "^3.2.6",
1010
"ionicons": "^5.0.1",
1111
"monaco-editor": "^0.20.0",
12-
"office-ui-fabric-react": "^7.106.0",
12+
"office-ui-fabric-react": "^7.114.1",
1313
"react": "^16.13.1",
1414
"react-dom": "^16.13.1",
1515
"react-redux": "^7.2.0",
16-
"react-router-dom": "^5.1.2",
16+
"react-router-dom": "^5.2.0",
1717
"react-scripts": "^3.4.1",
1818
"redux": "^4.0.5",
1919
"redux-thunk": "^2.3.0",
2020
"typesafe-actions": "^5.1.0",
21-
"typescript": "^3.8.3"
21+
"typescript": "^3.9.2"
2222
},
2323
"scripts": {
2424
"build": "INLINE_RUNTIME_CHUNK=false react-scripts build",
@@ -41,37 +41,37 @@
4141
]
4242
},
4343
"devDependencies": {
44-
"@pnp/common": "^2.0.4",
45-
"@pnp/config-store": "^2.0.4",
46-
"@pnp/graph": "^2.0.4",
47-
"@pnp/logging": "^2.0.4",
48-
"@pnp/nodejs": "^2.0.4",
49-
"@pnp/odata": "^2.0.4",
50-
"@pnp/pnpjs": "^2.0.4",
51-
"@pnp/sp": "^2.0.4",
52-
"@pnp/sp-addinhelpers": "^2.0.4",
44+
"@pnp/common": "^2.0.5",
45+
"@pnp/config-store": "^2.0.5",
46+
"@pnp/graph": "^2.0.5",
47+
"@pnp/logging": "^2.0.5",
48+
"@pnp/nodejs": "^2.0.5",
49+
"@pnp/odata": "^2.0.5",
50+
"@pnp/pnpjs": "^2.0.5",
51+
"@pnp/sp": "^2.0.5",
52+
"@pnp/sp-addinhelpers": "^2.0.5",
5353
"@pnp/sp-clientsvc": "^1.3.11",
5454
"@pnp/sp-taxonomy": "^1.3.11",
55-
"@types/chrome": "0.0.104",
56-
"@types/jest": "25.2.1",
57-
"@types/node": "13.11.1",
58-
"@types/react": "^16.9.34",
59-
"@types/react-dom": "16.9.6",
60-
"@types/react-redux": "^7.1.7",
55+
"@types/chrome": "0.0.112",
56+
"@types/jest": "25.2.2",
57+
"@types/node": "14.0.1",
58+
"@types/react": "^16.9.35",
59+
"@types/react-dom": "16.9.8",
60+
"@types/react-redux": "^7.1.8",
6161
"@types/react-resize-detector": "^4.2.0",
62-
"@types/react-router-dom": "^5.1.4",
62+
"@types/react-router-dom": "^5.1.5",
6363
"cra-build-watch": "^3.2.0",
6464
"del": "^5.1.0",
6565
"gulp": "^4.0.2",
6666
"gulp-rename": "^2.0.0",
6767
"gulp-replace": "^1.0.0",
6868
"redux-devtools-extension": "^2.13.8",
69-
"ts-loader": "^7.0.0",
70-
"tslint": "^6.1.1",
69+
"ts-loader": "^7.0.4",
70+
"tslint": "^6.1.2",
7171
"tslint-eslint-rules": "^5.4.0",
72-
"tslint-react": "^4.2.0",
72+
"tslint-react": "^5.0.0",
7373
"tslint-react-recommended": "^1.0.15",
74-
"webpack": "^4.42.1",
74+
"webpack": "^4.43.0",
7575
"webpack-cli": "^3.3.11"
7676
}
7777
}

public/@pnp/graph/directory-objects/types.d.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,19 @@ export declare class _DirectoryObject<GetType = IDirectoryObjectType> extends _G
1010
*
1111
* @param securityEnabledOnly
1212
*/
13-
getMemberObjects(securityEnabledOnly?: boolean): Promise<{
14-
value: string[];
15-
}>;
13+
getMemberObjects(securityEnabledOnly?: boolean): Promise<string[]>;
1614
/**
1715
* Returns all the groups that the specified Directory Object is a member of. The check is transitive
1816
*
1917
* @param securityEnabledOnly
2018
*/
21-
getMemberGroups(securityEnabledOnly?: boolean): Promise<{
22-
value: string[];
23-
}>;
19+
getMemberGroups(securityEnabledOnly?: boolean): Promise<string[]>;
2420
/**
2521
* Check for membership in a specified list of groups, and returns from that list those groups of which the specified user, group, or directory object is a member.
2622
* This function is transitive.
2723
* @param groupIds A collection that contains the object IDs of the groups in which to check membership. Up to 20 groups may be specified.
2824
*/
29-
checkMemberGroups(groupIds: String[]): Promise<{
30-
value: string[];
31-
}>;
25+
checkMemberGroups(groupIds: String[]): Promise<string[]>;
3226
}
3327
export interface IDirectoryObject<GetType = IDirectoryObjectType> extends _DirectoryObject, IDeleteable {
3428
}

public/@pnp/odata/queryable.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ export declare abstract class Queryable<DefaultActionType = any> implements IQue
5757
*/
5858
toUrl(): string;
5959
/**
60-
* Directly concatonates the supplied string to the current url, not normalizing "/" chars
60+
* Directly concatenates the supplied string to the current url, not normalizing "/" chars
6161
*
62-
* @param pathPart The string to concatonate to the url
62+
* @param pathPart The string to concatenate to the url
6363
*/
6464
concat(pathPart: string): this;
6565
/**

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { _SharePointQueryableInstance, _SharePointQueryableCollection } from "../sharepointqueryable";
1+
import { _SharePointQueryableInstance, _SharePointQueryableCollection, IDeleteable } from "../sharepointqueryable";
22
import { ITypedHash } from "@pnp/common";
33
export declare class _Fields extends _SharePointQueryableCollection<IFieldInfo[]> {
44
/**
@@ -164,11 +164,12 @@ export interface IFields extends _Fields {
164164
}
165165
export declare const Fields: import("../sharepointqueryable").ISPInvokableFactory<IFields>;
166166
export declare class _Field extends _SharePointQueryableInstance<IFieldInfo> {
167+
delete: (this: import("../sharepointqueryable").ISharePointQueryable<any>) => Promise<void>;
167168
/**
168169
* Updates this field instance with the supplied properties
169170
*
170171
* @param properties A plain object hash of values to update for the list
171-
* @param fieldType The type value, required to update child field type properties
172+
* @param fieldType The type value such as SP.FieldLookup. Optional, looked up from the field if not provided
172173
*/
173174
update(properties: Partial<IFieldInfo>, fieldType?: string): Promise<IFieldUpdateResult>;
174175
/**
@@ -184,7 +185,7 @@ export declare class _Field extends _SharePointQueryableInstance<IFieldInfo> {
184185
*/
185186
setShowInNewForm(show: boolean): Promise<void>;
186187
}
187-
export interface IField extends _Field {
188+
export interface IField extends _Field, IDeleteable {
188189
}
189190
export declare const Field: import("../sharepointqueryable").ISPInvokableFactory<IField>;
190191
/**

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ export declare class _Site extends _SharePointQueryableInstance {
6666
*/
6767
createCommunicationSite(title: string, lcid: number, shareByEmailEnabled: boolean, url: string, description?: string, classification?: string, siteDesignId?: string, hubSiteId?: string, owner?: string): Promise<ISiteCreationResponse>;
6868
createCommunicationSiteFromProps(props: ICreateCommSiteProps): Promise<ISiteCreationResponse>;
69+
/**
70+
*
71+
* @param url Site Url that you want to check if exists
72+
*/
73+
exists(url: string): Promise<boolean>;
6974
/**
7075
* Creates a Modern team site backed by Office 365 group. For use in SP Online only. This will not work with App-only tokens
7176
*

public/bundles/adaljsclient.es5.umd.bundle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ var PnPClientStorage = /** @class */ (function () {
10541054
*/
10551055
get: function () {
10561056
if (this._local === null) {
1057-
this._local = storage_PnPClientStorageWrapper.bind(localStorage);
1057+
this._local = new storage_PnPClientStorageWrapper(typeof (localStorage) === "undefined" ? new MemoryStorage() : localStorage);
10581058
}
10591059
return this._local;
10601060
},
@@ -1067,7 +1067,7 @@ var PnPClientStorage = /** @class */ (function () {
10671067
*/
10681068
get: function () {
10691069
if (this._session === null) {
1070-
this._session = storage_PnPClientStorageWrapper.bind(sessionStorage);
1070+
this._session = new storage_PnPClientStorageWrapper(typeof (sessionStorage) === "undefined" ? new MemoryStorage() : sessionStorage);
10711071
}
10721072
return this._session;
10731073
},

public/bundles/common.es5.umd.bundle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ var PnPClientStorage = /** @class */ (function () {
10741074
*/
10751075
get: function () {
10761076
if (this._local === null) {
1077-
this._local = storage_PnPClientStorageWrapper.bind(localStorage);
1077+
this._local = new storage_PnPClientStorageWrapper(typeof (localStorage) === "undefined" ? new MemoryStorage() : localStorage);
10781078
}
10791079
return this._local;
10801080
},
@@ -1087,7 +1087,7 @@ var PnPClientStorage = /** @class */ (function () {
10871087
*/
10881088
get: function () {
10891089
if (this._session === null) {
1090-
this._session = storage_PnPClientStorageWrapper.bind(sessionStorage);
1090+
this._session = new storage_PnPClientStorageWrapper(typeof (sessionStorage) === "undefined" ? new MemoryStorage() : sessionStorage);
10911091
}
10921092
return this._session;
10931093
},

public/bundles/config-store.es5.umd.bundle.js

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ var PnPClientStorage = /** @class */ (function () {
10481048
*/
10491049
get: function () {
10501050
if (this._local === null) {
1051-
this._local = storage_PnPClientStorageWrapper.bind(localStorage);
1051+
this._local = new storage_PnPClientStorageWrapper(typeof (localStorage) === "undefined" ? new MemoryStorage() : localStorage);
10521052
}
10531053
return this._local;
10541054
},
@@ -1061,7 +1061,7 @@ var PnPClientStorage = /** @class */ (function () {
10611061
*/
10621062
get: function () {
10631063
if (this._session === null) {
1064-
this._session = storage_PnPClientStorageWrapper.bind(sessionStorage);
1064+
this._session = new storage_PnPClientStorageWrapper(typeof (sessionStorage) === "undefined" ? new MemoryStorage() : sessionStorage);
10651065
}
10661066
return this._session;
10671067
},
@@ -1823,9 +1823,9 @@ var queryable_Queryable = /** @class */ (function () {
18231823
return this.data.url;
18241824
};
18251825
/**
1826-
* Directly concatonates the supplied string to the current url, not normalizing "/" chars
1826+
* Directly concatenates the supplied string to the current url, not normalizing "/" chars
18271827
*
1828-
* @param pathPart The string to concatonate to the url
1828+
* @param pathPart The string to concatenate to the url
18291829
*/
18301830
Queryable.prototype.concat = function (pathPart) {
18311831
this.data.url += pathPart;
@@ -2643,7 +2643,7 @@ var sphttpclient_SPHttpClient = /** @class */ (function () {
26432643
}
26442644
if (!headers.has("X-ClientService-ClientTag")) {
26452645
methodName = tag.getClientTag(headers);
2646-
clientTag = "PnPCoreJS:2.0.4:" + methodName;
2646+
clientTag = "PnPCoreJS:2.0.5:" + methodName;
26472647
if (clientTag.length > 32) {
26482648
clientTag = clientTag.substr(0, 32);
26492649
}
@@ -3417,7 +3417,7 @@ var batch_SPBatch = /** @class */ (function (_super) {
34173417
headers.append("Content-Type", "application/json;odata=verbose;charset=utf-8");
34183418
}
34193419
if (!headers.has("X-ClientService-ClientTag")) {
3420-
headers.append("X-ClientService-ClientTag", "PnPCoreJS:@pnp-2.0.4:batch");
3420+
headers.append("X-ClientService-ClientTag", "PnPCoreJS:@pnp-2.0.5:batch");
34213421
}
34223422
// write headers into batch body
34233423
headers.forEach(function (value, name) {
@@ -3783,6 +3783,25 @@ var types_Site = /** @class */ (function (_super) {
37833783
});
37843784
});
37853785
};
3786+
/**
3787+
*
3788+
* @param url Site Url that you want to check if exists
3789+
*/
3790+
_Site.prototype.exists = function (url) {
3791+
return __awaiter(this, void 0, void 0, function () {
3792+
var postBody, value;
3793+
return __generator(this, function (_a) {
3794+
switch (_a.label) {
3795+
case 0:
3796+
postBody = body({ url: url });
3797+
return [4 /*yield*/, spPost(Site(extractWebUrl(this.toUrl()), "/_api/SP.Site.Exists"), postBody)];
3798+
case 1:
3799+
value = _a.sent();
3800+
return [2 /*return*/, value];
3801+
}
3802+
});
3803+
});
3804+
};
37863805
/**
37873806
* Creates a Modern team site backed by Office 365 group. For use in SP Online only. This will not work with App-only tokens
37883807
*

public/bundles/graph.es5.umd.bundle.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ var PnPClientStorage = /** @class */ (function () {
11231123
*/
11241124
get: function () {
11251125
if (this._local === null) {
1126-
this._local = storage_PnPClientStorageWrapper.bind(localStorage);
1126+
this._local = new storage_PnPClientStorageWrapper(typeof (localStorage) === "undefined" ? new MemoryStorage() : localStorage);
11271127
}
11281128
return this._local;
11291129
},
@@ -1136,7 +1136,7 @@ var PnPClientStorage = /** @class */ (function () {
11361136
*/
11371137
get: function () {
11381138
if (this._session === null) {
1139-
this._session = storage_PnPClientStorageWrapper.bind(sessionStorage);
1139+
this._session = new storage_PnPClientStorageWrapper(typeof (sessionStorage) === "undefined" ? new MemoryStorage() : sessionStorage);
11401140
}
11411141
return this._session;
11421142
},
@@ -1747,9 +1747,9 @@ var queryable_Queryable = /** @class */ (function () {
17471747
return this.data.url;
17481748
};
17491749
/**
1750-
* Directly concatonates the supplied string to the current url, not normalizing "/" chars
1750+
* Directly concatenates the supplied string to the current url, not normalizing "/" chars
17511751
*
1752-
* @param pathPart The string to concatonate to the url
1752+
* @param pathPart The string to concatenate to the url
17531753
*/
17541754
Queryable.prototype.concat = function (pathPart) {
17551755
this.data.url += pathPart;
@@ -2656,7 +2656,7 @@ var graphhttpclient_GraphHttpClient = /** @class */ (function () {
26562656
}
26572657
if (!headers.has("SdkVersion")) {
26582658
// this marks the requests for understanding by the service
2659-
headers.append("SdkVersion", "PnPCoreJS/2.0.4");
2659+
headers.append("SdkVersion", "PnPCoreJS/2.0.5");
26602660
}
26612661
var opts = util_assign(options, { headers: headers });
26622662
return this.fetchRaw(url, opts);

0 commit comments

Comments
 (0)