Skip to content

Commit

Permalink
Merge pull request #2 from pnp/dev
Browse files Browse the repository at this point in the history
version update to 6.0.5
  • Loading branch information
Tomi Tavela authored May 15, 2020
2 parents 2f260c0 + 355de4f commit 22d1ecf
Show file tree
Hide file tree
Showing 27 changed files with 1,642 additions and 377 deletions.
1,247 changes: 965 additions & 282 deletions package-lock.json

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"name": "sp-editor",
"version": "6.0.4",
"version": "6.0.5",
"private": true,
"dependencies": {
"@ionic/react": "^5.0.7",
"@ionic/react-router": "^5.0.7",
"@uifabric/azure-themes": "^7.0.57",
"@ionic/react": "^5.1.1",
"@ionic/react-router": "^5.1.1",
"@uifabric/theme-samples": "^7.0.77",
"gsap": "^3.2.6",
"ionicons": "^5.0.1",
"monaco-editor": "^0.20.0",
"office-ui-fabric-react": "^7.106.0",
"office-ui-fabric-react": "^7.114.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-redux": "^7.2.0",
"react-router-dom": "^5.1.2",
"react-router-dom": "^5.2.0",
"react-scripts": "^3.4.1",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"typesafe-actions": "^5.1.0",
"typescript": "^3.8.3"
"typescript": "^3.9.2"
},
"scripts": {
"build": "INLINE_RUNTIME_CHUNK=false react-scripts build",
Expand All @@ -41,37 +41,37 @@
]
},
"devDependencies": {
"@pnp/common": "^2.0.4",
"@pnp/config-store": "^2.0.4",
"@pnp/graph": "^2.0.4",
"@pnp/logging": "^2.0.4",
"@pnp/nodejs": "^2.0.4",
"@pnp/odata": "^2.0.4",
"@pnp/pnpjs": "^2.0.4",
"@pnp/sp": "^2.0.4",
"@pnp/sp-addinhelpers": "^2.0.4",
"@pnp/common": "^2.0.5",
"@pnp/config-store": "^2.0.5",
"@pnp/graph": "^2.0.5",
"@pnp/logging": "^2.0.5",
"@pnp/nodejs": "^2.0.5",
"@pnp/odata": "^2.0.5",
"@pnp/pnpjs": "^2.0.5",
"@pnp/sp": "^2.0.5",
"@pnp/sp-addinhelpers": "^2.0.5",
"@pnp/sp-clientsvc": "^1.3.11",
"@pnp/sp-taxonomy": "^1.3.11",
"@types/chrome": "0.0.104",
"@types/jest": "25.2.1",
"@types/node": "13.11.1",
"@types/react": "^16.9.34",
"@types/react-dom": "16.9.6",
"@types/react-redux": "^7.1.7",
"@types/chrome": "0.0.112",
"@types/jest": "25.2.2",
"@types/node": "14.0.1",
"@types/react": "^16.9.35",
"@types/react-dom": "16.9.8",
"@types/react-redux": "^7.1.8",
"@types/react-resize-detector": "^4.2.0",
"@types/react-router-dom": "^5.1.4",
"@types/react-router-dom": "^5.1.5",
"cra-build-watch": "^3.2.0",
"del": "^5.1.0",
"gulp": "^4.0.2",
"gulp-rename": "^2.0.0",
"gulp-replace": "^1.0.0",
"redux-devtools-extension": "^2.13.8",
"ts-loader": "^7.0.0",
"tslint": "^6.1.1",
"ts-loader": "^7.0.4",
"tslint": "^6.1.2",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^4.2.0",
"tslint-react": "^5.0.0",
"tslint-react-recommended": "^1.0.15",
"webpack": "^4.42.1",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
}
}
12 changes: 3 additions & 9 deletions public/@pnp/graph/directory-objects/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,19 @@ export declare class _DirectoryObject<GetType = IDirectoryObjectType> extends _G
*
* @param securityEnabledOnly
*/
getMemberObjects(securityEnabledOnly?: boolean): Promise<{
value: string[];
}>;
getMemberObjects(securityEnabledOnly?: boolean): Promise<string[]>;
/**
* Returns all the groups that the specified Directory Object is a member of. The check is transitive
*
* @param securityEnabledOnly
*/
getMemberGroups(securityEnabledOnly?: boolean): Promise<{
value: string[];
}>;
getMemberGroups(securityEnabledOnly?: boolean): Promise<string[]>;
/**
* 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.
* This function is transitive.
* @param groupIds A collection that contains the object IDs of the groups in which to check membership. Up to 20 groups may be specified.
*/
checkMemberGroups(groupIds: String[]): Promise<{
value: string[];
}>;
checkMemberGroups(groupIds: String[]): Promise<string[]>;
}
export interface IDirectoryObject<GetType = IDirectoryObjectType> extends _DirectoryObject, IDeleteable {
}
Expand Down
4 changes: 2 additions & 2 deletions public/@pnp/odata/queryable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export declare abstract class Queryable<DefaultActionType = any> implements IQue
*/
toUrl(): string;
/**
* Directly concatonates the supplied string to the current url, not normalizing "/" chars
* Directly concatenates the supplied string to the current url, not normalizing "/" chars
*
* @param pathPart The string to concatonate to the url
* @param pathPart The string to concatenate to the url
*/
concat(pathPart: string): this;
/**
Expand Down
7 changes: 4 additions & 3 deletions public/@pnp/sp/fields/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { _SharePointQueryableInstance, _SharePointQueryableCollection } from "../sharepointqueryable";
import { _SharePointQueryableInstance, _SharePointQueryableCollection, IDeleteable } from "../sharepointqueryable";
import { ITypedHash } from "@pnp/common";
export declare class _Fields extends _SharePointQueryableCollection<IFieldInfo[]> {
/**
Expand Down Expand Up @@ -164,11 +164,12 @@ export interface IFields extends _Fields {
}
export declare const Fields: import("../sharepointqueryable").ISPInvokableFactory<IFields>;
export declare class _Field extends _SharePointQueryableInstance<IFieldInfo> {
delete: (this: import("../sharepointqueryable").ISharePointQueryable<any>) => Promise<void>;
/**
* Updates this field instance with the supplied properties
*
* @param properties A plain object hash of values to update for the list
* @param fieldType The type value, required to update child field type properties
* @param fieldType The type value such as SP.FieldLookup. Optional, looked up from the field if not provided
*/
update(properties: Partial<IFieldInfo>, fieldType?: string): Promise<IFieldUpdateResult>;
/**
Expand All @@ -184,7 +185,7 @@ export declare class _Field extends _SharePointQueryableInstance<IFieldInfo> {
*/
setShowInNewForm(show: boolean): Promise<void>;
}
export interface IField extends _Field {
export interface IField extends _Field, IDeleteable {
}
export declare const Field: import("../sharepointqueryable").ISPInvokableFactory<IField>;
/**
Expand Down
5 changes: 5 additions & 0 deletions public/@pnp/sp/sites/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ export declare class _Site extends _SharePointQueryableInstance {
*/
createCommunicationSite(title: string, lcid: number, shareByEmailEnabled: boolean, url: string, description?: string, classification?: string, siteDesignId?: string, hubSiteId?: string, owner?: string): Promise<ISiteCreationResponse>;
createCommunicationSiteFromProps(props: ICreateCommSiteProps): Promise<ISiteCreationResponse>;
/**
*
* @param url Site Url that you want to check if exists
*/
exists(url: string): Promise<boolean>;
/**
* Creates a Modern team site backed by Office 365 group. For use in SP Online only. This will not work with App-only tokens
*
Expand Down
4 changes: 2 additions & 2 deletions public/bundles/adaljsclient.es5.umd.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ var PnPClientStorage = /** @class */ (function () {
*/
get: function () {
if (this._local === null) {
this._local = storage_PnPClientStorageWrapper.bind(localStorage);
this._local = new storage_PnPClientStorageWrapper(typeof (localStorage) === "undefined" ? new MemoryStorage() : localStorage);
}
return this._local;
},
Expand All @@ -1067,7 +1067,7 @@ var PnPClientStorage = /** @class */ (function () {
*/
get: function () {
if (this._session === null) {
this._session = storage_PnPClientStorageWrapper.bind(sessionStorage);
this._session = new storage_PnPClientStorageWrapper(typeof (sessionStorage) === "undefined" ? new MemoryStorage() : sessionStorage);
}
return this._session;
},
Expand Down
4 changes: 2 additions & 2 deletions public/bundles/common.es5.umd.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ var PnPClientStorage = /** @class */ (function () {
*/
get: function () {
if (this._local === null) {
this._local = storage_PnPClientStorageWrapper.bind(localStorage);
this._local = new storage_PnPClientStorageWrapper(typeof (localStorage) === "undefined" ? new MemoryStorage() : localStorage);
}
return this._local;
},
Expand All @@ -1087,7 +1087,7 @@ var PnPClientStorage = /** @class */ (function () {
*/
get: function () {
if (this._session === null) {
this._session = storage_PnPClientStorageWrapper.bind(sessionStorage);
this._session = new storage_PnPClientStorageWrapper(typeof (sessionStorage) === "undefined" ? new MemoryStorage() : sessionStorage);
}
return this._session;
},
Expand Down
31 changes: 25 additions & 6 deletions public/bundles/config-store.es5.umd.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ var PnPClientStorage = /** @class */ (function () {
*/
get: function () {
if (this._local === null) {
this._local = storage_PnPClientStorageWrapper.bind(localStorage);
this._local = new storage_PnPClientStorageWrapper(typeof (localStorage) === "undefined" ? new MemoryStorage() : localStorage);
}
return this._local;
},
Expand All @@ -1061,7 +1061,7 @@ var PnPClientStorage = /** @class */ (function () {
*/
get: function () {
if (this._session === null) {
this._session = storage_PnPClientStorageWrapper.bind(sessionStorage);
this._session = new storage_PnPClientStorageWrapper(typeof (sessionStorage) === "undefined" ? new MemoryStorage() : sessionStorage);
}
return this._session;
},
Expand Down Expand Up @@ -1823,9 +1823,9 @@ var queryable_Queryable = /** @class */ (function () {
return this.data.url;
};
/**
* Directly concatonates the supplied string to the current url, not normalizing "/" chars
* Directly concatenates the supplied string to the current url, not normalizing "/" chars
*
* @param pathPart The string to concatonate to the url
* @param pathPart The string to concatenate to the url
*/
Queryable.prototype.concat = function (pathPart) {
this.data.url += pathPart;
Expand Down Expand Up @@ -2643,7 +2643,7 @@ var sphttpclient_SPHttpClient = /** @class */ (function () {
}
if (!headers.has("X-ClientService-ClientTag")) {
methodName = tag.getClientTag(headers);
clientTag = "PnPCoreJS:2.0.4:" + methodName;
clientTag = "PnPCoreJS:2.0.5:" + methodName;
if (clientTag.length > 32) {
clientTag = clientTag.substr(0, 32);
}
Expand Down Expand Up @@ -3417,7 +3417,7 @@ var batch_SPBatch = /** @class */ (function (_super) {
headers.append("Content-Type", "application/json;odata=verbose;charset=utf-8");
}
if (!headers.has("X-ClientService-ClientTag")) {
headers.append("X-ClientService-ClientTag", "PnPCoreJS:@pnp-2.0.4:batch");
headers.append("X-ClientService-ClientTag", "PnPCoreJS:@pnp-2.0.5:batch");
}
// write headers into batch body
headers.forEach(function (value, name) {
Expand Down Expand Up @@ -3783,6 +3783,25 @@ var types_Site = /** @class */ (function (_super) {
});
});
};
/**
*
* @param url Site Url that you want to check if exists
*/
_Site.prototype.exists = function (url) {
return __awaiter(this, void 0, void 0, function () {
var postBody, value;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
postBody = body({ url: url });
return [4 /*yield*/, spPost(Site(extractWebUrl(this.toUrl()), "/_api/SP.Site.Exists"), postBody)];
case 1:
value = _a.sent();
return [2 /*return*/, value];
}
});
});
};
/**
* Creates a Modern team site backed by Office 365 group. For use in SP Online only. This will not work with App-only tokens
*
Expand Down
10 changes: 5 additions & 5 deletions public/bundles/graph.es5.umd.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ var PnPClientStorage = /** @class */ (function () {
*/
get: function () {
if (this._local === null) {
this._local = storage_PnPClientStorageWrapper.bind(localStorage);
this._local = new storage_PnPClientStorageWrapper(typeof (localStorage) === "undefined" ? new MemoryStorage() : localStorage);
}
return this._local;
},
Expand All @@ -1136,7 +1136,7 @@ var PnPClientStorage = /** @class */ (function () {
*/
get: function () {
if (this._session === null) {
this._session = storage_PnPClientStorageWrapper.bind(sessionStorage);
this._session = new storage_PnPClientStorageWrapper(typeof (sessionStorage) === "undefined" ? new MemoryStorage() : sessionStorage);
}
return this._session;
},
Expand Down Expand Up @@ -1747,9 +1747,9 @@ var queryable_Queryable = /** @class */ (function () {
return this.data.url;
};
/**
* Directly concatonates the supplied string to the current url, not normalizing "/" chars
* Directly concatenates the supplied string to the current url, not normalizing "/" chars
*
* @param pathPart The string to concatonate to the url
* @param pathPart The string to concatenate to the url
*/
Queryable.prototype.concat = function (pathPart) {
this.data.url += pathPart;
Expand Down Expand Up @@ -2656,7 +2656,7 @@ var graphhttpclient_GraphHttpClient = /** @class */ (function () {
}
if (!headers.has("SdkVersion")) {
// this marks the requests for understanding by the service
headers.append("SdkVersion", "PnPCoreJS/2.0.4");
headers.append("SdkVersion", "PnPCoreJS/2.0.5");
}
var opts = util_assign(options, { headers: headers });
return this.fetchRaw(url, opts);
Expand Down
8 changes: 4 additions & 4 deletions public/bundles/odata.es5.umd.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ var PnPClientStorage = /** @class */ (function () {
*/
get: function () {
if (this._local === null) {
this._local = storage_PnPClientStorageWrapper.bind(localStorage);
this._local = new storage_PnPClientStorageWrapper(typeof (localStorage) === "undefined" ? new MemoryStorage() : localStorage);
}
return this._local;
},
Expand All @@ -1087,7 +1087,7 @@ var PnPClientStorage = /** @class */ (function () {
*/
get: function () {
if (this._session === null) {
this._session = storage_PnPClientStorageWrapper.bind(sessionStorage);
this._session = new storage_PnPClientStorageWrapper(typeof (sessionStorage) === "undefined" ? new MemoryStorage() : sessionStorage);
}
return this._session;
},
Expand Down Expand Up @@ -1698,9 +1698,9 @@ var queryable_Queryable = /** @class */ (function () {
return this.data.url;
};
/**
* Directly concatonates the supplied string to the current url, not normalizing "/" chars
* Directly concatenates the supplied string to the current url, not normalizing "/" chars
*
* @param pathPart The string to concatonate to the url
* @param pathPart The string to concatenate to the url
*/
Queryable.prototype.concat = function (pathPart) {
this.data.url += pathPart;
Expand Down
4 changes: 2 additions & 2 deletions public/bundles/pnpjs.es5.umd.bundle.js

Large diffs are not rendered by default.

Loading

0 comments on commit 22d1ecf

Please sign in to comment.