Merged #2215 manually
This commit is contained in:
parent
b3c4241e4f
commit
120045d287
|
@ -40,3 +40,4 @@ samples/react-find-parker/release/webpack-stats/react-find-parker.stats.json
|
|||
|
||||
# Include distributable workflow actions
|
||||
!.github/actions/**/dist
|
||||
samples/react-enhanced-powerapps/lib/*
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
// For more information on how to run this SPFx project in a VS Code Remote Container, please visit https://aka.ms/spfx-devcontainer
|
||||
{
|
||||
"name": "SPFx 1.13.1",
|
||||
"image": "docker.io/m365pnp/spfx:1.13.1",
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
"settings": {},
|
||||
// Add the IDs of extensions you want installed when the container is created.
|
||||
"extensions": [
|
||||
"editorconfig.editorconfig",
|
||||
"dbaeumer.vscode-eslint"
|
||||
],
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
"forwardPorts": [
|
||||
4321,
|
||||
35729
|
||||
],
|
||||
"portsAttributes": {
|
||||
"4321": {
|
||||
"protocol": "https",
|
||||
"label": "Manifest",
|
||||
"onAutoForward": "silent",
|
||||
"requireLocalPort": true
|
||||
},
|
||||
// Not needed for SPFx>= 1.12.1
|
||||
// "5432": {
|
||||
// "protocol": "https",
|
||||
// "label": "Workbench",
|
||||
// "onAutoForward": "silent"
|
||||
// },
|
||||
"35729": {
|
||||
"protocol": "https",
|
||||
"label": "LiveReload",
|
||||
"onAutoForward": "silent",
|
||||
"requireLocalPort": true
|
||||
}
|
||||
},
|
||||
"postCreateCommand": "bash .devcontainer/spfx-startup.sh",
|
||||
"remoteUser": "node"
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
echo
|
||||
echo -e "\e[1;94mInstalling Node dependencies\e[0m"
|
||||
npm install
|
||||
|
||||
## commands to create dev certificate and copy it to the root folder of the project
|
||||
echo
|
||||
echo -e "\e[1;94mGenerating dev certificate\e[0m"
|
||||
gulp trust-dev-cert
|
||||
|
||||
# Convert the generated PEM certificate to a CER certificate
|
||||
openssl x509 -inform PEM -in ~/.rushstack/rushstack-serve.pem -outform DER -out ./spfx-dev-cert.cer
|
||||
|
||||
# Copy the PEM ecrtificate for non-Windows hosts
|
||||
cp ~/.rushstack/rushstack-serve.pem ./spfx-dev-cert.pem
|
||||
|
||||
## add *.cer to .gitignore to prevent certificates from being saved in repo
|
||||
if ! grep -Fxq '*.cer' ./.gitignore
|
||||
then
|
||||
echo "# .CER Certificates" >> .gitignore
|
||||
echo "*.cer" >> .gitignore
|
||||
fi
|
||||
|
||||
## add *.pem to .gitignore to prevent certificates from being saved in repo
|
||||
if ! grep -Fxq '*.pem' ./.gitignore
|
||||
then
|
||||
echo "# .PEM Certificates" >> .gitignore
|
||||
echo "*.pem" >> .gitignore
|
||||
fi
|
||||
|
||||
echo
|
||||
echo -e "\e[1;92mReady!\e[0m"
|
||||
|
||||
echo -e "\n\e[1;94m**********\nOptional: if you plan on using gulp serve, don't forget to add the container certificate to your local machine. Please visit https://aka.ms/spfx-devcontainer for more information\n**********"
|
|
@ -2,103 +2,37 @@
|
|||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
# Dependency directories
|
||||
node_modules
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
# Build generated files
|
||||
dist
|
||||
lib
|
||||
release
|
||||
solution
|
||||
temp
|
||||
*.sppkg
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
# OSX
|
||||
.DS_Store
|
||||
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
# Visual Studio files
|
||||
.ntvs_analysis.dat
|
||||
.vs
|
||||
bin
|
||||
obj
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
# Resx Generated Code
|
||||
*.resx.ts
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
# Styles Generated Code
|
||||
*.scss.ts
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# TypeScript v1 declaration files
|
||||
typings/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Microbundle cache
|
||||
.rpt2_cache/
|
||||
.rts2_cache_cjs/
|
||||
.rts2_cache_es/
|
||||
.rts2_cache_umd/
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
.env.test
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
|
||||
# Next.js build output
|
||||
.next
|
||||
|
||||
# Nuxt.js build / generate output
|
||||
.nuxt
|
||||
dist
|
||||
|
||||
# Gatsby files
|
||||
.cache/
|
||||
# Comment in the public line in if your project uses Gatsby and *not* Next.js
|
||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||
# public
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
# .CER Certificates
|
||||
*.cer
|
||||
# .PEM Certificates
|
||||
*.pem
|
||||
|
|
|
@ -11,8 +11,8 @@ It also resizes the app to fit the web part dimension:
|
|||
|
||||
## Compatibility
|
||||
|
||||
![SPFx 1.11](https://img.shields.io/badge/SPFx-1.11.0-green.svg)
|
||||
![Node.js v10](https://img.shields.io/badge/Node.js-v10-green.svg)
|
||||
![SPFx 1.13.1](https://img.shields.io/badge/SPFx-1.13.1-green.svg)
|
||||
![Node.js v14](https://img.shields.io/badge/Node.js-v14-green.svg)
|
||||
![Compatible with SharePoint Online](https://img.shields.io/badge/SharePoint%20Online-Compatible-green.svg)
|
||||
![Does not work with SharePoint 2019](https://img.shields.io/badge/SharePoint%20Server%202019-Incompatible-red.svg "SharePoint Server 2019 requires SPFx 1.4.1 or lower")
|
||||
![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1")
|
||||
|
@ -41,6 +41,7 @@ Version|Date|Comments
|
|||
-------|----|--------
|
||||
1.0|July 27, 2020|Initial release
|
||||
1.1|August 15, 2020|Added improved resize event handler
|
||||
1.2|January 20, 2022|Update to SPFx v1.13.1
|
||||
|
||||
## Minimal Path to Awesome
|
||||
|
||||
|
@ -49,6 +50,9 @@ Version|Date|Comments
|
|||
* `npm install`
|
||||
* `gulp serve`
|
||||
|
||||
> This sample can also be opened with [VS Code Remote Development](https://code.visualstudio.com/docs/remote/remote-overview). Visit https://aka.ms/spfx-devcontainer for more information.
|
||||
|
||||
|
||||
### To Use
|
||||
|
||||
* Create a Power App
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
"source": "pnp",
|
||||
"title": "Enhanced Power Apps",
|
||||
"shortDescription": "Adds dynamic resizing, theme awareness, and dynamic data to embedded Power Apps",
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-enhanced-powerapps",
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/tree/master/samples/react-enhanced-powerapps",
|
||||
"longDescription": [
|
||||
"Adds dynamic resizing, theme awareness, and dynamic data to embedded Power Apps"
|
||||
],
|
||||
"creationDateTime": "2020-07-26",
|
||||
"updateDateTime": "2020-07-26",
|
||||
"updateDateTime": "2022-01-29",
|
||||
"products": [
|
||||
"SharePoint"
|
||||
],
|
||||
|
@ -20,57 +20,51 @@
|
|||
},
|
||||
{
|
||||
"key": "SPFX-VERSION",
|
||||
"value": "1.11.0"
|
||||
"value": "1.13.1"
|
||||
}
|
||||
],
|
||||
"thumbnails": [
|
||||
{
|
||||
"type": "image",
|
||||
"order": 100,
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/raw/main/samples/react-enhanced-powerapps/assets/enhanced-power-apps.gif",
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/raw/master/samples/react-enhanced-powerapps/assets/enhanced-power-apps.gif",
|
||||
"alt": "Enhanced Power Apps"
|
||||
},
|
||||
{
|
||||
"type": "image",
|
||||
"order": 101,
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/blob/main/samples/react-enhanced-powerapps/assets/dpstep1.png?raw=true",
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/blob/master/samples/react-enhanced-powerapps/assets/dpstep1.png?raw=true",
|
||||
"alt": "Enhanced Power Apps"
|
||||
},
|
||||
{
|
||||
"type": "image",
|
||||
"order": 102,
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/blob/main/samples/react-enhanced-powerapps/assets/resize.gif?raw=true",
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/blob/master/samples/react-enhanced-powerapps/assets/resize.gif?raw=true",
|
||||
"alt": "Enhanced Power Apps"
|
||||
},
|
||||
{
|
||||
"type": "image",
|
||||
"order": 103,
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/blob/main/samples/react-enhanced-powerapps/assets/sizeoptions.png?raw=true",
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/blob/master/samples/react-enhanced-powerapps/assets/sizeoptions.png?raw=true",
|
||||
"alt": "Enhanced Power Apps"
|
||||
},
|
||||
{
|
||||
"type": "image",
|
||||
"order": 104,
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/blob/main/samples/react-enhanced-powerapps/assets/step1-5.png?raw=true",
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/blob/master/samples/react-enhanced-powerapps/assets/step1-5.png?raw=true",
|
||||
"alt": "Enhanced Power Apps"
|
||||
},
|
||||
{
|
||||
"type": "image",
|
||||
"order": 105,
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/blob/main/samples/react-enhanced-powerapps/assets/step1.png?raw=true",
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/blob/master/samples/react-enhanced-powerapps/assets/step1.png?raw=true",
|
||||
"alt": "Enhanced Power Apps"
|
||||
},
|
||||
{
|
||||
"type": "image",
|
||||
"order": 106,
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/blob/main/samples/react-enhanced-powerapps/assets/step2.png?raw=true",
|
||||
"url": "https://github.com/pnp/sp-dev-fx-webparts/blob/master/samples/react-enhanced-powerapps/assets/step2.png?raw=true",
|
||||
"alt": "Enhanced Power Apps"
|
||||
},
|
||||
{
|
||||
"type": "video",
|
||||
"order": 107,
|
||||
"url": "https://www.youtube.com/embed/L_ArTxSQKgo",
|
||||
"alt": "Community demo of the web part"
|
||||
}
|
||||
],
|
||||
"authors": [
|
||||
|
@ -80,6 +74,11 @@
|
|||
"pictureUrl": "https://github.com/hugoabernier.png",
|
||||
"name": "Hugo Bernier",
|
||||
"twitter": "bernierh"
|
||||
},
|
||||
{
|
||||
"gitHubAccount": "kunj-sangani",
|
||||
"pictureUrl": "https://github.com/kunj-sangani.png",
|
||||
"name": "Kunj Balkrishna Sangani"
|
||||
}
|
||||
],
|
||||
"references": [
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
{
|
||||
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
|
||||
"solution": {
|
||||
"name": "react-enhanced-powerapps-client-side-solution",
|
||||
"id": "601b7688-1e9c-468c-b9a3-e4bb4e14edcd",
|
||||
"version": "1.1.0.0",
|
||||
"includeClientSideAssets": true,
|
||||
"isDomainIsolated": false,
|
||||
"developer": {
|
||||
"name": "",
|
||||
"websiteUrl": "",
|
||||
"privacyUrl": "",
|
||||
"termsOfUseUrl": "",
|
||||
"mpnId": "m365pnp"
|
||||
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
|
||||
"solution": {
|
||||
"name": "react-enhanced-powerapps-client-side-solution",
|
||||
"id": "601b7688-1e9c-468c-b9a3-e4bb4e14edcd",
|
||||
"version": "1.2.0.0",
|
||||
"includeClientSideAssets": true,
|
||||
"isDomainIsolated": false,
|
||||
"developer": {
|
||||
"name": "",
|
||||
"websiteUrl": "",
|
||||
"privacyUrl": "",
|
||||
"termsOfUseUrl": "",
|
||||
"mpnId": "m365pnp"
|
||||
}
|
||||
},
|
||||
"paths": {
|
||||
"zippedPackage": "solution/react-enhanced-powerapps.sppkg"
|
||||
}
|
||||
},
|
||||
"paths": {
|
||||
"zippedPackage": "solution/react-enhanced-powerapps.sppkg"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,83 +1,16 @@
|
|||
'use strict';
|
||||
|
||||
// check if gulp dist was called
|
||||
if (process.argv.indexOf('dist') !== -1) {
|
||||
// add ship options to command call
|
||||
process.argv.push('--ship');
|
||||
}
|
||||
|
||||
const path = require('path');
|
||||
const gulp = require('gulp');
|
||||
const build = require('@microsoft/sp-build-web');
|
||||
const gulpSequence = require('gulp-sequence');
|
||||
|
||||
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);
|
||||
|
||||
// Create clean distrubution package
|
||||
gulp.task('dist', gulpSequence('clean', 'bundle', 'package-solution'));
|
||||
// Create clean development package
|
||||
gulp.task('dev', gulpSequence('clean', 'bundle', 'package-solution'));
|
||||
var getTasks = build.rig.getTasks;
|
||||
build.rig.getTasks = function () {
|
||||
var result = getTasks.call(build.rig);
|
||||
|
||||
result.set('serve', result.get('serve-deprecated'));
|
||||
|
||||
|
||||
/**
|
||||
* Webpack Bundle Anlayzer
|
||||
* Reference and gulp task
|
||||
*/
|
||||
if (process.argv.indexOf('--analyze') !== -1 ||
|
||||
process.argv.indexOf('dist') !== -1 ||
|
||||
process.argv.indexOf('dev') !== -1) {
|
||||
|
||||
const bundleAnalyzer = require('webpack-bundle-analyzer');
|
||||
|
||||
build.configureWebpack.mergeConfig({
|
||||
|
||||
additionalConfiguration: (generatedConfiguration) => {
|
||||
const lastDirName = path.basename(__dirname);
|
||||
const dropPath = path.join(__dirname, 'temp', 'stats');
|
||||
generatedConfiguration.plugins.push(new bundleAnalyzer.BundleAnalyzerPlugin({
|
||||
openAnalyzer: false,
|
||||
analyzerMode: 'static',
|
||||
reportFilename: path.join(dropPath, `${lastDirName}.stats.html`),
|
||||
generateStatsFile: true,
|
||||
statsFilename: path.join(dropPath, `${lastDirName}.stats.json`),
|
||||
logLevel: 'error'
|
||||
}));
|
||||
|
||||
return generatedConfiguration;
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* StyleLinter configuration
|
||||
* Reference and custom gulp task
|
||||
*/
|
||||
const stylelint = require('gulp-stylelint');
|
||||
|
||||
/* Stylelinter sub task */
|
||||
let styleLintSubTask = build.subTask('stylelint', (gulp) => {
|
||||
|
||||
|
||||
return gulp
|
||||
.src('src/**/*.scss')
|
||||
.pipe(stylelint({
|
||||
failAfterError: false,
|
||||
reporters: [{
|
||||
formatter: 'string',
|
||||
console: true
|
||||
}]
|
||||
}));
|
||||
});
|
||||
/* end sub task */
|
||||
|
||||
build.rig.addPreBuildTask(styleLintSubTask);
|
||||
|
||||
/**
|
||||
* Custom Framework Specific gulp tasks
|
||||
*/
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
build.initialize(gulp);
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
import { IPropertyPaneCustomFieldProps } from "@microsoft/sp-property-pane";
|
||||
import { IMarkdownProps } from 'markdown-to-jsx';
|
||||
export interface IPropertyPaneMarkdownContentProps {
|
||||
/**
|
||||
* Property field label displayed on top
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
* Optional CSS style to apply to markdown
|
||||
*/
|
||||
className?: string;
|
||||
/**
|
||||
* An UNIQUE key indicates the identity of this control
|
||||
*/
|
||||
key: string;
|
||||
/**
|
||||
* The markdown text you wish to display
|
||||
*/
|
||||
markdown: string;
|
||||
/**
|
||||
* Allows you to override the markdown behavior,
|
||||
* such as overriding CSS styles and elements for
|
||||
* markdown elements.
|
||||
*/
|
||||
markdownProps?: IMarkdownProps;
|
||||
}
|
||||
export interface IPropertyPaneMarkdownContentPropsInternal extends IPropertyPaneMarkdownContentProps, IPropertyPaneCustomFieldProps {
|
||||
}
|
||||
//# sourceMappingURL=IPropertyPaneMarkdownContent.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"IPropertyPaneMarkdownContent.d.ts","sourceRoot":"","sources":["../../../src/controls/PropertyPaneMarkdownContent/IPropertyPaneMarkdownContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,cAAc,CAAC;CAChC;AAED,MAAM,WAAW,yCAA0C,SAAQ,iCAAiC,EAAE,6BAA6B;CAClI"}
|
|
@ -1 +0,0 @@
|
|||
//# sourceMappingURL=IPropertyPaneMarkdownContent.js.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"IPropertyPaneMarkdownContent.js","sourceRoot":"","sources":["../../../src/controls/PropertyPaneMarkdownContent/IPropertyPaneMarkdownContent.ts"],"names":[],"mappings":""}
|
|
@ -1,8 +0,0 @@
|
|||
import { IMarkdownProps } from 'markdown-to-jsx';
|
||||
export interface IPropertyPaneMarkdownContentHostProps {
|
||||
className?: string;
|
||||
description?: string;
|
||||
markdown: string;
|
||||
markdownProps: IMarkdownProps;
|
||||
}
|
||||
//# sourceMappingURL=IPropertyPaneMarkdownContentHost.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"IPropertyPaneMarkdownContentHost.d.ts","sourceRoot":"","sources":["../../../src/controls/PropertyPaneMarkdownContent/IPropertyPaneMarkdownContentHost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,WAAW,qCAAqC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,cAAc,CAAC;CAE/B"}
|
|
@ -1 +0,0 @@
|
|||
//# sourceMappingURL=IPropertyPaneMarkdownContentHost.js.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"IPropertyPaneMarkdownContentHost.js","sourceRoot":"","sources":["../../../src/controls/PropertyPaneMarkdownContent/IPropertyPaneMarkdownContentHost.ts"],"names":[],"mappings":""}
|
|
@ -1,11 +0,0 @@
|
|||
import { IPropertyPaneMarkdownContentProps } from "./IPropertyPaneMarkdownContent";
|
||||
import { IPropertyPaneField } from "@microsoft/sp-property-pane";
|
||||
/**
|
||||
* Creates a property pane section that displays read-only markdown content.
|
||||
* Use this property pane control to display additional instructions, help
|
||||
* screens, etc.
|
||||
*
|
||||
* @param properties
|
||||
*/
|
||||
export declare function PropertyPaneMarkdownContent(properties: IPropertyPaneMarkdownContentProps): IPropertyPaneField<IPropertyPaneMarkdownContentProps>;
|
||||
//# sourceMappingURL=PropertyPaneMarkdownContent.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"PropertyPaneMarkdownContent.d.ts","sourceRoot":"","sources":["../../../src/controls/PropertyPaneMarkdownContent/PropertyPaneMarkdownContent.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iCAAiC,EAA6C,MAAM,gCAAgC,CAAC;AAG9H,OAAO,EAAE,kBAAkB,EAAyB,MAAM,6BAA6B,CAAC;AAyCxF;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,iCAAiC,GAAG,kBAAkB,CAAC,iCAAiC,CAAC,CAEhJ"}
|
|
@ -1,45 +0,0 @@
|
|||
import * as React from 'react';
|
||||
import * as ReactDom from 'react-dom';
|
||||
import PropertyPaneMarkdownContentHost from './PropertyPaneMarkdownContentHost';
|
||||
import { PropertyPaneFieldType } from "@microsoft/sp-property-pane";
|
||||
var PropertyPaneMarkdownContentBuilder = /** @class */ (function () {
|
||||
function PropertyPaneMarkdownContentBuilder(_properties) {
|
||||
this.type = PropertyPaneFieldType.Custom;
|
||||
this.properties = {
|
||||
key: _properties.key,
|
||||
label: _properties.label,
|
||||
markdown: _properties.markdown,
|
||||
markdownProps: _properties.markdownProps,
|
||||
onRender: this.onRender.bind(this),
|
||||
};
|
||||
}
|
||||
PropertyPaneMarkdownContentBuilder.prototype.render = function () {
|
||||
if (!this.elem) {
|
||||
return;
|
||||
}
|
||||
this.onRender(this.elem);
|
||||
};
|
||||
PropertyPaneMarkdownContentBuilder.prototype.onRender = function (elem, ctx, changeCallback) {
|
||||
if (!this.elem) {
|
||||
this.elem = elem;
|
||||
}
|
||||
var element = React.createElement(PropertyPaneMarkdownContentHost, {
|
||||
description: this.properties.label,
|
||||
markdown: this.properties.markdown,
|
||||
markdownProps: this.properties.markdownProps
|
||||
});
|
||||
ReactDom.render(element, elem);
|
||||
};
|
||||
return PropertyPaneMarkdownContentBuilder;
|
||||
}());
|
||||
/**
|
||||
* Creates a property pane section that displays read-only markdown content.
|
||||
* Use this property pane control to display additional instructions, help
|
||||
* screens, etc.
|
||||
*
|
||||
* @param properties
|
||||
*/
|
||||
export function PropertyPaneMarkdownContent(properties) {
|
||||
return new PropertyPaneMarkdownContentBuilder(properties);
|
||||
}
|
||||
//# sourceMappingURL=PropertyPaneMarkdownContent.js.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"PropertyPaneMarkdownContent.js","sourceRoot":"","sources":["../../../src/controls/PropertyPaneMarkdownContent/PropertyPaneMarkdownContent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AAItC,OAAO,+BAA+B,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAsB,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAExF;IAQC,4CAAmB,WAA8C;QAL1D,SAAI,GAA0B,qBAAqB,CAAC,MAAM,CAAC;QAMjE,IAAI,CAAC,UAAU,GAAG;YACjB,GAAG,EAAE,WAAW,CAAC,GAAG;YACjB,KAAK,EAAE,WAAW,CAAC,KAAK;YACxB,QAAQ,EAAE,WAAW,CAAC,QAAQ;YAC9B,aAAa,EAAE,WAAW,CAAC,aAAa;YACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;SACrC,CAAC;IACH,CAAC;IAEM,mDAAM,GAAb;QACC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACf,OAAO;SACP;QACD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEO,qDAAQ,GAAhB,UAAiB,IAAiB,EAAE,GAAS,EAAE,cAAkE;QAChH,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;SACjB;QAED,IAAM,OAAO,GAA8D,KAAK,CAAC,aAAa,CAAC,+BAA+B,EAAE;YAC5H,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK;YAClC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ;YAClC,aAAa,EAAE,IAAI,CAAC,UAAU,CAAC,aAAa;SAC/C,CAAC,CAAC;QACH,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IACF,yCAAC;AAAD,CAAC,AArCD,IAqCC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,2BAA2B,CAAC,UAA6C;IACxF,OAAO,IAAI,kCAAkC,CAAC,UAAU,CAAC,CAAC;AAC3D,CAAC"}
|
|
@ -1,6 +0,0 @@
|
|||
import * as React from 'react';
|
||||
import { IPropertyPaneMarkdownContentHostProps } from './IPropertyPaneMarkdownContentHost';
|
||||
export default class PropertyPaneMarkdownContentHost extends React.Component<IPropertyPaneMarkdownContentHostProps> {
|
||||
render(): JSX.Element;
|
||||
}
|
||||
//# sourceMappingURL=PropertyPaneMarkdownContentHost.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"PropertyPaneMarkdownContentHost.d.ts","sourceRoot":"","sources":["../../../src/controls/PropertyPaneMarkdownContent/PropertyPaneMarkdownContentHost.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAG3F,MAAM,CAAC,OAAO,OAAO,+BAAgC,SAAQ,KAAK,CAAC,SAAS,CAAC,qCAAqC,CAAC;IAE1G,MAAM,IAAI,GAAG,CAAC,OAAO;CAa7B"}
|
|
@ -1,30 +0,0 @@
|
|||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
import * as React from 'react';
|
||||
import Markdown from 'markdown-to-jsx';
|
||||
var PropertyPaneMarkdownContentHost = /** @class */ (function (_super) {
|
||||
__extends(PropertyPaneMarkdownContentHost, _super);
|
||||
function PropertyPaneMarkdownContentHost() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
PropertyPaneMarkdownContentHost.prototype.render = function () {
|
||||
return (React.createElement("div", { className: this.props.className },
|
||||
this.props.description && this.props.description !== '' &&
|
||||
React.createElement("div", { dangerouslySetInnerHTML: { __html: this.props.description } }),
|
||||
React.createElement(Markdown, { options: this.props.markdownProps }, this.props.markdown)));
|
||||
};
|
||||
return PropertyPaneMarkdownContentHost;
|
||||
}(React.Component));
|
||||
export default PropertyPaneMarkdownContentHost;
|
||||
//# sourceMappingURL=PropertyPaneMarkdownContentHost.js.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"PropertyPaneMarkdownContentHost.js","sourceRoot":"","sources":["../../../src/controls/PropertyPaneMarkdownContent/PropertyPaneMarkdownContentHost.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAEvC;IAA6D,mDAAsD;IAAnH;;IAeA,CAAC;IAbQ,gDAAM,GAAb;QACE,OAAO,CACL,6BAAK,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS;YAChC,IAAI,CAAC,KAAK,CAAC,WAAW,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,KAAK,EAAE;gBACvD,6BAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,GAAQ;YAG1E,oBAAC,QAAQ,IACP,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,IACjC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAY,CAC7B,CACP,CAAC;IACJ,CAAC;IACH,sCAAC;AAAD,CAAC,AAfD,CAA6D,KAAK,CAAC,SAAS,GAe3E"}
|
|
@ -1,5 +0,0 @@
|
|||
export * from './IPropertyPaneMarkdownContent';
|
||||
export * from './PropertyPaneMarkdownContent';
|
||||
export * from './IPropertyPaneMarkdownContentHost';
|
||||
export * from './PropertyPaneMarkdownContentHost';
|
||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/controls/PropertyPaneMarkdownContent/index.ts"],"names":[],"mappings":"AACA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC"}
|
|
@ -1,3 +0,0 @@
|
|||
export * from './PropertyPaneMarkdownContent';
|
||||
export * from './PropertyPaneMarkdownContentHost';
|
||||
//# sourceMappingURL=index.js.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/PropertyPaneMarkdownContent/index.ts"],"names":[],"mappings":"AAEA,cAAc,+BAA+B,CAAC;AAE9C,cAAc,mCAAmC,CAAC"}
|
|
@ -1 +1,2 @@
|
|||
.enhancedPowerApps_e02a5fc2{color:inherit}.enhancedPowerApps_e02a5fc2 span[class^=placeholderText_]{font-size:20px!important;font-weight:600!important;color:#323130}.enhancedPowerApps_e02a5fc2 span[class^=placeholderDescriptionText_]{color:#605e5c!important;margin:20px 0 28px;line-height:23px;font-size:16px!important}
|
||||
.enhancedPowerApps_466fc2fc{color:inherit}.enhancedPowerApps_466fc2fc span[class^=placeholderText_]{font-size:20px!important;font-weight:600!important;color:#323130}.enhancedPowerApps_466fc2fc span[class^=placeholderDescriptionText_]{color:#605e5c!important;margin:20px 0 28px;line-height:23px;font-size:16px!important}
|
||||
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbGU6Ly8vd29ya3NwYWNlcy9zcC1kZXYtZngtd2VicGFydHMvc2FtcGxlcy9yZWFjdC1lbmhhbmNlZC1wb3dlcmFwcHMvc3JjL3dlYnBhcnRzL2VuaGFuY2VkUG93ZXJBcHBzL2NvbXBvbmVudHMvRW5oYW5jZWRQb3dlckFwcHMubW9kdWxlLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsNEJBQ0UsTUFBQSxRQU9BLDBEQUNFLFVBQUEsZUFDQSxZQUFBLGNBQ0EsTUFBQSxRQUdGLHFFQUNFLE1BQUEsa0JBQ0EsT0FBQSxLQUFBLEVBQUEsS0FDQSxZQUFBLEtBQ0EsVUFBQSJ9 */
|
|
@ -1,7 +1,7 @@
|
|||
/* tslint:disable */
|
||||
require("./EnhancedPowerApps.module.css");
|
||||
var styles = {
|
||||
enhancedPowerApps: 'enhancedPowerApps_e02a5fc2'
|
||||
enhancedPowerApps: 'enhancedPowerApps_466fc2fc'
|
||||
};
|
||||
export default styles;
|
||||
/* tslint:enable */
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,53 +1,52 @@
|
|||
{
|
||||
"name": "react-enhanced-powerapps",
|
||||
"version": "1.1.0",
|
||||
"private": true,
|
||||
"main": "lib/index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "gulp bundle",
|
||||
"clean": "gulp clean",
|
||||
"test": "gulp test",
|
||||
"preversion": "node ./tools/pre-version.js",
|
||||
"postversion": "gulp dist"
|
||||
},
|
||||
"dependencies": {
|
||||
"@microsoft/sp-core-library": "1.11.0",
|
||||
"@microsoft/sp-lodash-subset": "1.11.0",
|
||||
"@microsoft/sp-office-ui-fabric-core": "1.11.0",
|
||||
"@microsoft/sp-property-pane": "1.11.0",
|
||||
"@microsoft/sp-webpart-base": "1.11.0",
|
||||
"@pnp/spfx-controls-react": "1.19.0",
|
||||
"@pnp/spfx-property-controls": "1.19.0",
|
||||
"office-ui-fabric-react": "6.214.0",
|
||||
"react": "16.8.5",
|
||||
"react-dom": "16.8.5",
|
||||
"lodash": ">=4.17.19",
|
||||
"serialize-javascript": ">=2.1.1",
|
||||
"lodash.template": ">=4.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||
"@microsoft/sp-build-web": "1.11.0",
|
||||
"@microsoft/sp-module-interfaces": "1.11.0",
|
||||
"@microsoft/sp-tslint-rules": "1.11.0",
|
||||
"@microsoft/sp-webpart-workbench": "1.11.0",
|
||||
"@types/chai": "3.4.34",
|
||||
"@types/es6-promise": "0.0.33",
|
||||
"@types/mocha": "2.2.38",
|
||||
"@types/react": "16.8.8",
|
||||
"@types/react-dom": "16.8.3",
|
||||
"@types/webpack-env": "1.13.1",
|
||||
"ajv": "~5.2.2",
|
||||
"gulp": "~3.9.1",
|
||||
"gulp-sequence": "1.0.0",
|
||||
"gulp-stylelint": "^13.0.0",
|
||||
"stylelint": "^13.6.1",
|
||||
"stylelint-config-css-modules": "^2.2.0",
|
||||
"stylelint-config-standard": "^20.0.0",
|
||||
"stylelint-scss": "^3.18.0",
|
||||
"webpack-bundle-analyzer": "^3.8.0"
|
||||
}
|
||||
"name": "react-enhanced-powerapps",
|
||||
"version": "1.1.0",
|
||||
"private": true,
|
||||
"main": "lib/index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "gulp bundle",
|
||||
"clean": "gulp clean",
|
||||
"test": "gulp test",
|
||||
"preversion": "node ./tools/pre-version.js",
|
||||
"postversion": "gulp dist"
|
||||
},
|
||||
"dependencies": {
|
||||
"@microsoft/sp-core-library": "1.13.1",
|
||||
"@microsoft/sp-lodash-subset": "1.13.1",
|
||||
"@microsoft/sp-office-ui-fabric-core": "1.13.1",
|
||||
"@microsoft/sp-property-pane": "1.13.1",
|
||||
"@microsoft/sp-webpart-base": "1.13.1",
|
||||
"@pnp/spfx-controls-react": "1.19.0",
|
||||
"@pnp/spfx-property-controls": "1.19.0",
|
||||
"office-ui-fabric-react": "6.214.0",
|
||||
"react": "16.8.5",
|
||||
"react-dom": "16.8.5",
|
||||
"lodash": ">=4.17.19",
|
||||
"serialize-javascript": ">=2.1.1",
|
||||
"lodash.template": ">=4.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@microsoft/rush-stack-compiler-3.3": "0.3.5",
|
||||
"@microsoft/sp-build-web": "1.13.1",
|
||||
"@microsoft/sp-module-interfaces": "1.13.1",
|
||||
"@microsoft/sp-tslint-rules": "1.13.1",
|
||||
"@types/chai": "3.4.34",
|
||||
"@types/es6-promise": "0.0.33",
|
||||
"@types/mocha": "2.2.38",
|
||||
"@types/react": "16.8.8",
|
||||
"@types/react-dom": "16.8.3",
|
||||
"@types/webpack-env": "1.13.1",
|
||||
"ajv": "~5.2.2",
|
||||
"gulp": "~4.0.2",
|
||||
"gulp-sequence": "1.0.0",
|
||||
"gulp-stylelint": "^13.0.0",
|
||||
"stylelint": "^13.6.1",
|
||||
"stylelint-config-css-modules": "^2.2.0",
|
||||
"stylelint-config-standard": "^20.0.0",
|
||||
"stylelint-scss": "^3.18.0",
|
||||
"webpack-bundle-analyzer": "^3.8.0"
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
/* tslint:disable */
|
||||
require("./EnhancedPowerApps.module.css");
|
||||
const styles = {
|
||||
enhancedPowerApps: 'enhancedPowerApps_e02a5fc2'
|
||||
enhancedPowerApps: 'enhancedPowerApps_466fc2fc'
|
||||
};
|
||||
|
||||
export default styles;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,444 +0,0 @@
|
|||
{
|
||||
"name": "@microsoft/sp-webpart-workbench",
|
||||
"entries": [
|
||||
{
|
||||
"version": "1.11.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v1.11.0",
|
||||
"date": "Thu, 16 Jul 2020 04:33:35 GMT",
|
||||
"comments": {
|
||||
"none": [
|
||||
{
|
||||
"comment": "Use RequireJS loader"
|
||||
}
|
||||
],
|
||||
"dependency": [
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-a11y\" from `~0.2.23` to `~0.2.24`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/i18n-utilities\" from `~0.1.23` to `~0.1.24`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-build-internal-web\" from `~0.29.31` to `~0.29.32`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-build-internal-tasks\" from `~0.14.23` to `~0.14.24`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-component-utilities\" from `~4.0.18` to `~4.0.19`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-telemetry\" from `~0.8.23` to `~0.8.24`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-pagepicker\" from `~1.3.23` to `~1.3.24`"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "1.10.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v1.10.0",
|
||||
"date": "Mon, 06 Jan 2020 18:14:53 GMT",
|
||||
"comments": {
|
||||
"none": [
|
||||
{
|
||||
"comment": "Fix local workbench not loading its manifests"
|
||||
},
|
||||
{
|
||||
"comment": "Upgrade Fabric React to 7."
|
||||
},
|
||||
{
|
||||
"comment": "Fixing local workbench"
|
||||
},
|
||||
{
|
||||
"comment": "update @types/jest to match current jest version"
|
||||
}
|
||||
],
|
||||
"dependency": [
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-a11y\" from `~0.2.15` to `~0.2.16`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/i18n-utilities\" from `~0.1.15` to `~0.1.16`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-build-internal-web\" from `~0.29.23` to `~0.29.24`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-build-internal-tasks\" from `~0.14.15` to `~0.14.16`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-component-utilities\" from `~4.0.10` to `~4.0.11`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-telemetry\" from `~0.8.15` to `~0.8.16`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-pagepicker\" from `~1.3.15` to `~1.3.16`"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "1.7.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v1.7.0",
|
||||
"date": "Thu, 08 Nov 2018 17:05:51 GMT",
|
||||
"comments": {
|
||||
"none": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "1.6.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v1.6.0",
|
||||
"date": "Mon, 27 Aug 2018 18:06:28 GMT",
|
||||
"comments": {
|
||||
"none": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "1.5.1",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v1.5.1",
|
||||
"date": "Tue, 26 Jun 2018 14:50:55 GMT",
|
||||
"comments": {
|
||||
"dependency": [
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-build-internal-web\" from `~0.16.15` to `~0.16.16`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-build-internal-tasks\" from `~0.7.29` to `~0.7.30`"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "1.5.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v1.5.0",
|
||||
"date": "Fri, 01 Jun 2018 18:13:37 GMT",
|
||||
"comments": {
|
||||
"none": [],
|
||||
"dependency": [
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-build-internal-web\" from `~0.16.12` to `~0.16.13`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-build-internal-tasks\" from `~0.7.26` to `~0.7.27`"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "1.4.1",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v1.4.1",
|
||||
"date": "Thu, 15 Feb 2018 01:56:14 GMT",
|
||||
"comments": {
|
||||
"none": [],
|
||||
"dependency": [
|
||||
{
|
||||
"comment": "Dependency @microsoft/office-ui-fabric-react-bundle version bump from 1.4.1-pr.2 to 1.4.1."
|
||||
},
|
||||
{
|
||||
"comment": "Dependency @microsoft/sp-application-base version bump from 1.4.1-pr.2 to 1.4.1."
|
||||
},
|
||||
{
|
||||
"comment": "Dependency @microsoft/sp-build-core-tasks version bump from 1.4.1-pr.2 to 1.4.1."
|
||||
},
|
||||
{
|
||||
"comment": "Dependency @microsoft/sp-client-preview version bump from 1.4.1-pr.2 to 1.4.1."
|
||||
},
|
||||
{
|
||||
"comment": "Dependency @microsoft/sp-core-library version bump from 1.4.1-pr.2 to 1.4.1."
|
||||
},
|
||||
{
|
||||
"comment": "Dependency @microsoft/sp-loader version bump from 1.4.1-pr.2 to 1.4.1."
|
||||
},
|
||||
{
|
||||
"comment": "Dependency @microsoft/sp-lodash-subset version bump from 1.4.1-pr.2 to 1.4.1."
|
||||
},
|
||||
{
|
||||
"comment": "Dependency @microsoft/sp-module-interfaces version bump from 1.4.1-pr.2 to 1.4.1."
|
||||
},
|
||||
{
|
||||
"comment": "Dependency @microsoft/sp-webpart-base version bump from 1.4.1-pr.2 to 1.4.1."
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-build-internal-web\" from `~0.9.5` to `~0.9.6`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-build-internal-tasks\" from `~0.4.11` to `~0.4.12`"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "1.4.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v1.4.0",
|
||||
"date": "Mon, 04 Dec 2017 18:15:58 GMT",
|
||||
"comments": {
|
||||
"patch": [
|
||||
{
|
||||
"comment": "Replace @types/es6-collections with the typescript compiler's built-in es2015.collection library"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "1.3.4",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v1.3.4",
|
||||
"date": "Thu, 26 Oct 2017 17:35:39 GMT",
|
||||
"comments": {}
|
||||
},
|
||||
{
|
||||
"version": "1.3.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v1.3.0",
|
||||
"date": "Fri, 22 Sep 2017 20:19:09 GMT",
|
||||
"comments": {}
|
||||
},
|
||||
{
|
||||
"version": "1.2.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v1.2.0",
|
||||
"date": "Fri, 25 Aug 2017 20:31:17 GMT",
|
||||
"comments": {
|
||||
"minor": [
|
||||
{
|
||||
"comment": "Update to Fabric React 4.32.0"
|
||||
},
|
||||
{
|
||||
"comment": "Use lockstep version for all SPFx packages"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "1.1.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v1.1.0",
|
||||
"date": "Thu, 25 May 2017 21:09:42 GMT",
|
||||
"comments": {
|
||||
"minor": [
|
||||
{
|
||||
"comment": "Upgraded office-ui-fabric-react to 2.31.0"
|
||||
},
|
||||
{
|
||||
"comment": "Upgraded to TypeScript 2.2"
|
||||
},
|
||||
{
|
||||
"comment": "Added a view to the workbench to allow for viewing serialized data about Web Parts"
|
||||
},
|
||||
{
|
||||
"comment": "Upgraded to Webpack 2.0"
|
||||
},
|
||||
{
|
||||
"comment": "Improved workbench accessibility"
|
||||
},
|
||||
{
|
||||
"comment": "Applied flex layout to page chrome"
|
||||
}
|
||||
],
|
||||
"dependency": [
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-core-library\" from `~1.0.0` to `~1.1.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-webpart-base\" from `~1.0.0` to `~1.1.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-client-preview\" from `~1.0.0` to `~1.1.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-application-base\" from `~1.0.0` to `~1.1.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-build-core-tasks\" from `~1.0.1` to `~1.1.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-lodash-subset\" from `~1.0.0` to `~1.1.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-loader\" from `~1.0.0` to `~1.1.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-module-interfaces\" from `~1.0.0` to `~1.1.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/office-ui-fabric-react-bundle\" from `~1.0.1` to `~1.1.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-canvas\" from `~1.0.7` to `~1.1.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-build-internal-web\" from `~0.5.3` to `~0.6.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@ms/sp-build-internal-tasks\" from `~0.0.5` to `~0.1.0`"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v1.0.0",
|
||||
"date": "Fri, 17 Feb 2017 23:09:23 GMT",
|
||||
"comments": {
|
||||
"major": [
|
||||
{
|
||||
"comment": "General availability"
|
||||
}
|
||||
],
|
||||
"patch": [
|
||||
{
|
||||
"comment": "Upgraded React to 15.4.1"
|
||||
},
|
||||
{
|
||||
"comment": "Bumped up office-ui-fabric-react version to 0.83.0"
|
||||
},
|
||||
{
|
||||
"comment": "Locked version numbers for @types packages"
|
||||
},
|
||||
{
|
||||
"comment": "Ensured world readiness"
|
||||
},
|
||||
{
|
||||
"comment": "Updated .npmignore"
|
||||
}
|
||||
],
|
||||
"minor": [
|
||||
{
|
||||
"comment": "Updated to TypeScript 2.1"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "0.8.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v0.8.0",
|
||||
"date": "Tue, 03 Jan 2017 21:52:49 GMT",
|
||||
"comments": {
|
||||
"minor": [
|
||||
{
|
||||
"comment": "More changes for RC0 release."
|
||||
}
|
||||
],
|
||||
"dependency": [
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-core-library\" from `~0.1.1` to `~0.1.2`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-webpart-base\" from `~0.3.0` to `~0.4.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-client-preview\" from `~0.8.0` to `~0.9.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-build-core-tasks\" from `~0.6.0` to `~0.7.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-lodash-subset\" from `~0.6.0` to `~0.6.1`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-loader\" from `~0.6.0` to `~0.7.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-module-interfaces\" from `~0.6.0` to `~0.7.0`"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "0.7.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v0.7.0",
|
||||
"date": "Tue, 06 Dec 2016 20:44:26 GMT",
|
||||
"comments": {
|
||||
"minor": [
|
||||
{
|
||||
"comment": "Changes for RC0 release."
|
||||
}
|
||||
],
|
||||
"dependency": [
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-core-library\" from `~0.1.0` to `~0.1.1`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-client-base\" from `~0.5.1` to `~0.6.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-webpart-base\" from `~0.2.1` to `~0.3.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-client-preview\" from `~0.7.1` to `~0.8.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-build-core-tasks\" from `~0.5.1` to `~0.6.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-lodash-subset\" from `~0.5.1` to `~0.6.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-loader\" from `~0.5.1` to `~0.6.0`"
|
||||
},
|
||||
{
|
||||
"comment": "Updating dependency \"@microsoft/sp-module-interfaces\" from `~0.5.1` to `~0.6.0`"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "0.6.1",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v0.6.1",
|
||||
"comments": {
|
||||
"minor": [
|
||||
{
|
||||
"comment": "Updating the logic that resolves the module loader to support a localized path."
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "0.5.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v0.5.0",
|
||||
"comments": {
|
||||
"minor": [
|
||||
{
|
||||
"comment": "Utilize new version of Office UI Fabric, necessitating updates to buttons"
|
||||
}
|
||||
],
|
||||
"patch": [
|
||||
{
|
||||
"comment": "Fixed mobile preview dimension input"
|
||||
},
|
||||
{
|
||||
"comment": "Added more fields to the Workbench page context"
|
||||
},
|
||||
{
|
||||
"comment": "Changing redirect logic to point to `localhost` instead of to the local hostname."
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "0.4.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v0.4.0",
|
||||
"comments": {}
|
||||
},
|
||||
{
|
||||
"version": "0.3.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v0.3.0",
|
||||
"comments": {
|
||||
"minor": [
|
||||
{
|
||||
"comment": "Minor bump of `@microsoft/sp-client-preview`"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v0.2.0",
|
||||
"comments": {}
|
||||
},
|
||||
{
|
||||
"version": "0.1.12",
|
||||
"tag": "@microsoft/sp-webpart-workbench_v0.1.12",
|
||||
"comments": {}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,156 +0,0 @@
|
|||
# Change Log - @microsoft/sp-webpart-workbench
|
||||
|
||||
This log was last generated on Thu, 16 Jul 2020 04:33:35 GMT and should not be manually modified.
|
||||
|
||||
## 1.11.0
|
||||
Thu, 16 Jul 2020 04:33:35 GMT
|
||||
|
||||
### Updates
|
||||
|
||||
- Use RequireJS loader
|
||||
|
||||
## 1.10.0
|
||||
Mon, 06 Jan 2020 18:14:53 GMT
|
||||
|
||||
### Updates
|
||||
|
||||
- Fix local workbench not loading its manifests
|
||||
- Upgrade Fabric React to 7.
|
||||
- Fixing local workbench
|
||||
- update @types/jest to match current jest version
|
||||
|
||||
## 1.7.0
|
||||
Thu, 08 Nov 2018 17:05:51 GMT
|
||||
|
||||
### Updates
|
||||
|
||||
|
||||
## 1.6.0
|
||||
Mon, 27 Aug 2018 18:06:28 GMT
|
||||
|
||||
### Updates
|
||||
|
||||
|
||||
## 1.5.1
|
||||
Tue, 26 Jun 2018 14:50:55 GMT
|
||||
|
||||
*Version update only*
|
||||
|
||||
## 1.5.0
|
||||
Fri, 01 Jun 2018 18:13:37 GMT
|
||||
|
||||
### Updates
|
||||
|
||||
|
||||
## 1.4.1
|
||||
Thu, 15 Feb 2018 01:56:14 GMT
|
||||
|
||||
### Updates
|
||||
|
||||
|
||||
## 1.4.0
|
||||
Mon, 04 Dec 2017 18:15:58 GMT
|
||||
|
||||
### Patches
|
||||
|
||||
- Replace @types/es6-collections with the typescript compiler's built-in es2015.collection library
|
||||
|
||||
## 1.3.4
|
||||
Thu, 26 Oct 2017 17:35:39 GMT
|
||||
|
||||
*Version update only*
|
||||
|
||||
## 1.3.0
|
||||
Fri, 22 Sep 2017 20:19:09 GMT
|
||||
|
||||
*Version update only*
|
||||
|
||||
## 1.2.0
|
||||
Fri, 25 Aug 2017 20:31:17 GMT
|
||||
|
||||
### Minor changes
|
||||
|
||||
- Update to Fabric React 4.32.0
|
||||
- Use lockstep version for all SPFx packages
|
||||
|
||||
## 1.1.0
|
||||
Thu, 25 May 2017 21:09:42 GMT
|
||||
|
||||
### Minor changes
|
||||
|
||||
- Upgraded office-ui-fabric-react to 2.31.0
|
||||
- Upgraded to TypeScript 2.2
|
||||
- Added a view to the workbench to allow for viewing serialized data about Web Parts
|
||||
- Upgraded to Webpack 2.0
|
||||
- Improved workbench accessibility
|
||||
- Applied flex layout to page chrome
|
||||
|
||||
## 1.0.0
|
||||
Fri, 17 Feb 2017 23:09:23 GMT
|
||||
|
||||
### Breaking changes
|
||||
|
||||
- General availability
|
||||
|
||||
### Minor changes
|
||||
|
||||
- Updated to TypeScript 2.1
|
||||
|
||||
### Patches
|
||||
|
||||
- Upgraded React to 15.4.1
|
||||
- Bumped up office-ui-fabric-react version to 0.83.0
|
||||
- Locked version numbers for @types packages
|
||||
- Ensured world readiness
|
||||
- Updated .npmignore
|
||||
|
||||
## 0.8.0
|
||||
Tue, 03 Jan 2017 21:52:49 GMT
|
||||
|
||||
### Minor changes
|
||||
|
||||
- More changes for RC0 release.
|
||||
|
||||
## 0.7.0
|
||||
Tue, 06 Dec 2016 20:44:26 GMT
|
||||
|
||||
### Minor changes
|
||||
|
||||
- Changes for RC0 release.
|
||||
|
||||
## 0.6.1
|
||||
|
||||
### Minor changes
|
||||
|
||||
- Updating the logic that resolves the module loader to support a localized path.
|
||||
|
||||
## 0.5.0
|
||||
|
||||
### Minor changes
|
||||
|
||||
- Utilize new version of Office UI Fabric, necessitating updates to buttons
|
||||
|
||||
### Patches
|
||||
|
||||
- Fixed mobile preview dimension input
|
||||
- Added more fields to the Workbench page context
|
||||
- Changing redirect logic to point to `localhost` instead of to the local hostname.
|
||||
|
||||
## 0.4.0
|
||||
|
||||
*Version update only*
|
||||
|
||||
## 0.3.0
|
||||
|
||||
### Minor changes
|
||||
|
||||
- Minor bump of `@microsoft/sp-client-preview`
|
||||
|
||||
## 0.2.0
|
||||
|
||||
*Version update only*
|
||||
|
||||
## 0.1.12
|
||||
|
||||
*Initial release*
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,9 +0,0 @@
|
|||
# sp-webpart-workbench
|
||||
|
||||
The workbench is a standalone environment for testing and debugging client-side web parts.
|
||||
|
||||
*This package is part of the [SharePoint Framework](http://aka.ms/spfx),
|
||||
which is a collection of NPM packages that empower developers to create client-side experiences
|
||||
for [Microsoft SharePoint](https://products.office.com/en-us/sharepoint/collaboration).
|
||||
For more information, including complete API documentation and code samples, please visit
|
||||
the [SharePoint Framework](http://aka.ms/spfx) web site.*
|
|
@ -1,122 +0,0 @@
|
|||
|
||||
|
||||
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
|
||||
Do Not Translate or Localize
|
||||
|
||||
This file provides information regarding components that are being relicensed to you by Microsoft under Microsoft's software licensing terms. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise.
|
||||
|
||||
Microsoft is offering you a license to use the following components with SharePoint Framework subject to the terms of the Microsoft software license terms for SharePoint Framework software products (the <20>Microsoft Program<61>).
|
||||
|
||||
1. mweststrate-mobservable (mweststrate-mobservable)
|
||||
2. mobxjs-mobx-react (mobxjs-mobx-react)
|
||||
3. facebook-react (facebook-react)
|
||||
4. facebook-ract-dom (facebook-react-dom)
|
||||
|
||||
|
||||
%% mweststrate-mobservable NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
Copyright (c) 2015 Michel Weststrate
|
||||
MIT License
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
---LICENSE--------------------------------------------
|
||||
MIT License
|
||||
=========================================
|
||||
END OF mweststrate-mobservable NOTICES AND INFORMATION
|
||||
|
||||
%% mobxjs-mobx-react NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
Copyright (c) 2015 Michel Weststrate
|
||||
MIT License
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
---LICENSE--------------------------------------------
|
||||
MIT License
|
||||
=========================================
|
||||
END OF mobxjs-mobx-react NOTICES AND INFORMATION
|
||||
|
||||
%% facebook-react NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
MIT License
|
||||
|
||||
Copyright (c) Facebook, Inc. and its affiliates.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
=========================================
|
||||
END OF facebook-react NOTICES AND INFORMATION
|
||||
|
||||
%% facebook-react-dom NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
MIT License
|
||||
|
||||
Copyright (c) Facebook, Inc. and its affiliates.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
=========================================
|
||||
END OF facebook-react-dom NOTICES AND INFORMATION
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
|
||||
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9 */
|
|
@ -1,3 +0,0 @@
|
|||
declare const styles: {};
|
||||
export default styles;
|
||||
//# sourceMappingURL=Consts.module.scss.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"Consts.module.scss.d.ts","sourceRoot":"../../../../src/","sources":["Consts.module.scss.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM,IAEX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@ -1,6 +0,0 @@
|
|||
/* tslint:disable */
|
||||
require("./Consts.module.css");
|
||||
var styles = {};
|
||||
export default styles;
|
||||
/* tslint:enable */
|
||||
//# sourceMappingURL=Consts.module.scss.js.map
|
|
@ -1,36 +0,0 @@
|
|||
export declare class WorkbenchPage {
|
||||
private _packageNameSymlinks;
|
||||
private _projectRootPath;
|
||||
private _tempFolderPath;
|
||||
private _workbenchPackagesTempPath;
|
||||
private _workbenchRootPath;
|
||||
private _cachedServeConfig;
|
||||
private _localWorkbenchManifests;
|
||||
constructor();
|
||||
handleWorkbenchRequest(request: any, response: any): void;
|
||||
private readonly _localWorkbenchPath;
|
||||
private _populateLocalWorkbenchManifests;
|
||||
private _generateWorkbenchPageContent;
|
||||
/**
|
||||
* Generate a favicon URL. Chrome will request one if we don't give a URL, so in order to avoid an error in the
|
||||
* console we'll give a URL.
|
||||
*/
|
||||
private readonly _faviconUrl;
|
||||
/**
|
||||
* Find the assembly.
|
||||
*/
|
||||
private readonly _assemblyUrl;
|
||||
/**
|
||||
* Get the running project's serve.json
|
||||
*/
|
||||
private readonly _serveConfig;
|
||||
private _getErrorBody;
|
||||
private _getPageWithBodyAndHead;
|
||||
private _getManifestById;
|
||||
private _getModuleConfigPath;
|
||||
private _getLocalAssemblyPath;
|
||||
private _disambiguateManifestPath;
|
||||
private _getUrlForWorkbenchPackagePath;
|
||||
private _getUrlForPath;
|
||||
}
|
||||
//# sourceMappingURL=WorkbenchPage.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"WorkbenchPage.d.ts","sourceRoot":"../../../../src/","sources":["WorkbenchPage.ts"],"names":[],"mappings":"AAkBA,qBAAa,aAAa;IACxB,OAAO,CAAC,oBAAoB,CAAkD;IAC9E,OAAO,CAAC,gBAAgB,CAAyB;IACjD,OAAO,CAAC,eAAe,CAAoD;IAC3E,OAAO,CAAC,0BAA0B,CAAiE;IACnG,OAAO,CAAC,kBAAkB,CAA+C;IACzE,OAAO,CAAC,kBAAkB,CAAmB;IAC7C,OAAO,CAAC,wBAAwB,CAA+B;;IAYxD,sBAAsB,CAAC,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,GAAG,IAAI;qBASpD,mBAAmB;IAI/B,OAAO,CAAC,gCAAgC;IAgDxC,OAAO,CAAC,6BAA6B;IAyCrC;;;OAGG;qBACS,WAAW;IAOvB;;OAEG;qBACS,YAAY;IAmBxB;;OAEG;qBACS,YAAY;IAgBxB,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,uBAAuB;IAoB/B,OAAO,CAAC,gBAAgB;IAOxB,OAAO,CAAC,oBAAoB;IAoB5B,OAAO,CAAC,qBAAqB;IAM7B,OAAO,CAAC,yBAAyB;IAQjC,OAAO,CAAC,8BAA8B;IAiBtC,OAAO,CAAC,cAAc;CAKvB"}
|
|
@ -1,220 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const path = require("path");
|
||||
const fsx = require("fs-extra");
|
||||
const node_core_library_1 = require("@microsoft/node-core-library");
|
||||
const Resolve_1 = require("@microsoft/sp-build-core-tasks/lib/utilities/Resolve");
|
||||
const ASSEMBLY_MANIFEST_ID = '5dae53c4-db1e-4d0b-b8b2-88c874dabf83'; // workbench assembly
|
||||
const CONTAINER_FOLDER_NAME = 'local-workbench';
|
||||
const DEFAULT_MANIFEST_FILE_NAME_PATTERN = /(^[^\.\\\/]+)\.manifest\.json$/;
|
||||
class WorkbenchPage {
|
||||
constructor() {
|
||||
this._packageNameSymlinks = new Map();
|
||||
this._projectRootPath = process.cwd();
|
||||
this._tempFolderPath = path.join(this._projectRootPath, 'temp');
|
||||
this._workbenchPackagesTempPath = path.join(this._tempFolderPath, 'workbench-packages');
|
||||
this._workbenchRootPath = path.resolve(__dirname, '..', '..');
|
||||
this.handleWorkbenchRequest = this.handleWorkbenchRequest.bind(this);
|
||||
fsx.ensureDirSync(this._workbenchPackagesTempPath);
|
||||
fsx.emptyDirSync(this._workbenchPackagesTempPath);
|
||||
this._localWorkbenchManifests = this._populateLocalWorkbenchManifests();
|
||||
}
|
||||
/* tslint:disable-next-line:no-any */
|
||||
handleWorkbenchRequest(request, response) {
|
||||
const workbenchFilePath = path.join(this._tempFolderPath, 'workbench.html');
|
||||
fsx.ensureDirSync(path.dirname(workbenchFilePath));
|
||||
fsx.writeFileSync(workbenchFilePath, this._generateWorkbenchPageContent());
|
||||
const redirectPath = this._getUrlForPath(workbenchFilePath);
|
||||
response.redirect(redirectPath);
|
||||
}
|
||||
get _localWorkbenchPath() {
|
||||
return path.resolve(this._workbenchRootPath, CONTAINER_FOLDER_NAME);
|
||||
}
|
||||
_populateLocalWorkbenchManifests() {
|
||||
const manifests = [];
|
||||
try {
|
||||
const localWorkbenchManifestPaths = fsx.readdirSync(this._localWorkbenchPath);
|
||||
for (let i = 0; i < localWorkbenchManifestPaths.length; i++) {
|
||||
const targetFilename = localWorkbenchManifestPaths[i];
|
||||
const manifestIdMatches = targetFilename.match(DEFAULT_MANIFEST_FILE_NAME_PATTERN);
|
||||
if (manifestIdMatches) {
|
||||
const manifestId = manifestIdMatches[1];
|
||||
const manifest = this._getManifestById(manifestId);
|
||||
if (manifest.loaderConfig && manifest.loaderConfig.scriptResources) {
|
||||
// tslint:disable-next-line:forin
|
||||
for (const scriptResourceName in manifest.loaderConfig.scriptResources) {
|
||||
const moduleConfig = manifest.loaderConfig.scriptResources[scriptResourceName];
|
||||
switch (moduleConfig.type) {
|
||||
case 'path':
|
||||
moduleConfig.path =
|
||||
this._getUrlForWorkbenchPackagePath('@microsoft/sp-webpart-workbench', this._getLocalAssemblyPath(moduleConfig));
|
||||
break;
|
||||
case 'localizedPath':
|
||||
moduleConfig.defaultPath =
|
||||
this._getUrlForWorkbenchPackagePath('@microsoft/sp-webpart-workbench', this._getLocalAssemblyPath(moduleConfig));
|
||||
break;
|
||||
}
|
||||
}
|
||||
manifests.push(manifest);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
console.error(`Exception while reading local-workbench manifests ${e.errorMessage}`);
|
||||
}
|
||||
return manifests;
|
||||
}
|
||||
_generateWorkbenchPageContent() {
|
||||
// Get the manifests.js URL.
|
||||
const manifestsJsPath = path.join(this._tempFolderPath, 'manifests.js');
|
||||
const manifestJsUrl = this._getUrlForPath(manifestsJsPath);
|
||||
const workbenchInitUrl = this._getUrlForWorkbenchPackagePath('@microsoft/sp-webpart-workbench', path.join('lib', 'api', 'workbenchInit.js'));
|
||||
const assemblyUrl = this._assemblyUrl;
|
||||
let head;
|
||||
let body;
|
||||
if (!assemblyUrl) {
|
||||
// This doesn't need to be localized because this string can only show up when the workbench
|
||||
// has been NPM installed, and we only ship English modules to NPM
|
||||
body = this._getErrorBody('The script containing the initialization code could not be resolved. Unable to load workbench');
|
||||
}
|
||||
else {
|
||||
head = `
|
||||
<script type="text/javascript" src="${manifestJsUrl}"></script>
|
||||
<script type="text/javascript" src="${assemblyUrl}"></script>
|
||||
<script type="text/javascript">
|
||||
// The workbenchInit.js script is commonJS and expects an "exports" object
|
||||
var exports = {};
|
||||
var localWorkbenchManifests = ${JSON.stringify(this._localWorkbenchManifests)};
|
||||
</script>
|
||||
<script type="text/javascript" src="${workbenchInitUrl}"></script>
|
||||
<script type="text/javascript">
|
||||
// Clean up the "exports" object
|
||||
exports = undefined;
|
||||
</script>`;
|
||||
body = `
|
||||
<script type="text/javascript">
|
||||
window.spModuleLoader.start(window.preloadedData);
|
||||
</script>`;
|
||||
}
|
||||
return this._getPageWithBodyAndHead(body, head);
|
||||
}
|
||||
/**
|
||||
* Generate a favicon URL. Chrome will request one if we don't give a URL, so in order to avoid an error in the
|
||||
* console we'll give a URL.
|
||||
*/
|
||||
get _faviconUrl() {
|
||||
return this._getUrlForWorkbenchPackagePath('@microsoft/sp-webpart-workbench', path.join('lib', 'api', 'assets', 'server-icon.png'));
|
||||
}
|
||||
/**
|
||||
* Find the assembly.
|
||||
*/
|
||||
get _assemblyUrl() {
|
||||
try {
|
||||
const assemblyManifest = this._getManifestById(ASSEMBLY_MANIFEST_ID);
|
||||
const entryModuleConfig = assemblyManifest.loaderConfig.scriptResources[assemblyManifest.loaderConfig.entryModuleId];
|
||||
if (!entryModuleConfig) {
|
||||
throw `Unable to find assembly id: ${assemblyManifest.loaderConfig.entryModuleId} entrypoint`;
|
||||
}
|
||||
const assemblyPath = this._getLocalAssemblyPath(entryModuleConfig);
|
||||
return this._getUrlForWorkbenchPackagePath('@microsoft/sp-webpart-workbench', assemblyPath);
|
||||
}
|
||||
catch (e) {
|
||||
// Unable to get the assembly URL. We'll inform the user if they try to load the workbench page.
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Get the running project's serve.json
|
||||
*/
|
||||
get _serveConfig() {
|
||||
if (!this._cachedServeConfig) {
|
||||
try {
|
||||
this._cachedServeConfig = node_core_library_1.JsonFile.load(path.join(this._projectRootPath, 'config', 'serve.json'));
|
||||
}
|
||||
catch (e) {
|
||||
// Could not load serve config, setting defaults.
|
||||
this._cachedServeConfig = {
|
||||
port: 4321,
|
||||
initialPage: ''
|
||||
};
|
||||
}
|
||||
}
|
||||
return this._cachedServeConfig;
|
||||
}
|
||||
_getErrorBody(errorMessage) {
|
||||
return `
|
||||
<span style="font-weight:bold;color:red;font-size:20px;">
|
||||
${errorMessage}
|
||||
</span>`;
|
||||
}
|
||||
_getPageWithBodyAndHead(body, head) {
|
||||
return `<!doctype html>
|
||||
<html dir="ltr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<title>SharePoint Web Part Workbench</title>
|
||||
|
||||
<link rel="shortcut icon" href="${this._faviconUrl}" />
|
||||
${head || ''}
|
||||
</head>
|
||||
<body>
|
||||
${body}
|
||||
</body>
|
||||
</html>
|
||||
`;
|
||||
}
|
||||
_getManifestById(id) {
|
||||
const assemblyManifestPath = path.join(this._localWorkbenchPath, `${id}.manifest.json`);
|
||||
const assemblyManifest = node_core_library_1.JsonFile.load(assemblyManifestPath);
|
||||
return assemblyManifest;
|
||||
}
|
||||
_getModuleConfigPath(assemblyModuleConfig) {
|
||||
let foundPath = undefined;
|
||||
switch (assemblyModuleConfig.type) {
|
||||
case 'path':
|
||||
foundPath = this._disambiguateManifestPath(assemblyModuleConfig.path);
|
||||
break;
|
||||
case 'localizedPath':
|
||||
foundPath = this._disambiguateManifestPath(assemblyModuleConfig.defaultPath);
|
||||
break;
|
||||
}
|
||||
return foundPath;
|
||||
}
|
||||
_getLocalAssemblyPath(moduleConfig) {
|
||||
const foundPath = this._getModuleConfigPath(moduleConfig);
|
||||
const assemblyFilename = foundPath.substr(foundPath.lastIndexOf('/') + 1);
|
||||
return `${CONTAINER_FOLDER_NAME}/${assemblyFilename}`;
|
||||
}
|
||||
_disambiguateManifestPath(pathToDisambiguate) {
|
||||
if (typeof pathToDisambiguate === 'string') {
|
||||
return pathToDisambiguate;
|
||||
}
|
||||
else {
|
||||
return pathToDisambiguate.debug || pathToDisambiguate.default;
|
||||
}
|
||||
}
|
||||
_getUrlForWorkbenchPackagePath(packageName, pathInsidePackage) {
|
||||
const normalizedPackageName = packageName.toUpperCase();
|
||||
if (!this._packageNameSymlinks.has(normalizedPackageName)) {
|
||||
const packagePath = Resolve_1.resolvePackage(packageName, this._workbenchRootPath);
|
||||
const symlinkPath = path.join(this._workbenchPackagesTempPath, packageName.replace(/\//g, '_') // Replace slashes with underscores so we don't create nested directories
|
||||
);
|
||||
fsx.symlinkSync(packagePath, symlinkPath, 'junction');
|
||||
this._packageNameSymlinks.set(normalizedPackageName, symlinkPath);
|
||||
}
|
||||
const linkedPackagePath = this._packageNameSymlinks.get(normalizedPackageName);
|
||||
const filePath = path.join(linkedPackagePath, pathInsidePackage);
|
||||
return this._getUrlForPath(filePath);
|
||||
}
|
||||
_getUrlForPath(filePath) {
|
||||
const relativePath = path.relative(this._projectRootPath, filePath);
|
||||
return (this._serveConfig.https ? 'https' : 'http') +
|
||||
`://localhost:${this._serveConfig.port}/${relativePath.replace(/\\/g, '/')}`;
|
||||
}
|
||||
}
|
||||
exports.WorkbenchPage = WorkbenchPage;
|
||||
//# sourceMappingURL=WorkbenchPage.js.map
|
Binary file not shown.
Before Width: | Height: | Size: 8.9 KiB |
|
@ -1,2 +0,0 @@
|
|||
export default function getPublic(req: any, res: any): void;
|
||||
//# sourceMappingURL=getPublic.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"getPublic.d.ts","sourceRoot":"../../../../src/","sources":["getPublic.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,IAAI,CAkD1D"}
|
|
@ -1,65 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const rootDir = process.cwd();
|
||||
/* tslint:disable:no-any */
|
||||
function enableCORS(req, res) {
|
||||
/* tslint:enable:no-any */
|
||||
'use strict';
|
||||
// add support for CORS by any caller
|
||||
res.set('Access-Control-Allow-Origin', req.headers.origin);
|
||||
res.set('Access-Control-Allow-Credentials', 'true');
|
||||
}
|
||||
/*
|
||||
* Return files of various mime content types.
|
||||
*/
|
||||
/* tslint:disable:no-any */
|
||||
function getPublic(req, res) {
|
||||
/* tslint:enable:no-any */
|
||||
'use strict';
|
||||
const parts = req.originalUrl.split('.');
|
||||
let ext;
|
||||
let filePath = path.join(rootDir, 'dist/public' + req.originalUrl);
|
||||
if (parts.length > 1) {
|
||||
ext = parts[parts.length - 1];
|
||||
}
|
||||
else {
|
||||
// assume a service call that returns JSON
|
||||
ext = 'json';
|
||||
filePath += '.json';
|
||||
}
|
||||
const stat = fs.statSync(filePath); // tslint:disable-line:typedef
|
||||
enableCORS(req, res);
|
||||
let contentType;
|
||||
switch (ext) {
|
||||
case 'hbs':
|
||||
contentType = 'text/x-handlebars-template';
|
||||
break;
|
||||
case 'json':
|
||||
contentType = 'application/json';
|
||||
break;
|
||||
case 'htm':
|
||||
case 'html':
|
||||
contentType = 'text/html';
|
||||
break;
|
||||
case 'md':
|
||||
contentType = 'text/x-markdown-template';
|
||||
break;
|
||||
case 'mst':
|
||||
contentType = 'text/x-mustache-template';
|
||||
break;
|
||||
case 'png':
|
||||
contentType = 'image/png';
|
||||
break;
|
||||
}
|
||||
res.writeHead(200, {
|
||||
'Content-Type': contentType,
|
||||
'Content-Length': stat.size,
|
||||
'Cache-Control': 'public, max-age=1440' // cache for 4 hours
|
||||
});
|
||||
const rs = fs.createReadStream(filePath); // tslint:disable-line:typedef
|
||||
rs.pipe(res);
|
||||
}
|
||||
exports.default = getPublic;
|
||||
//# sourceMappingURL=getPublic.js.map
|
|
@ -1,7 +0,0 @@
|
|||
import getPublic from './getPublic';
|
||||
declare const _default: {
|
||||
'/workbench': (request: any, response: any) => void;
|
||||
'*/*': typeof getPublic;
|
||||
};
|
||||
export default _default;
|
||||
//# sourceMappingURL=index.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"../../../../src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;;;;;AAKpC,wBAGE"}
|
|
@ -1,11 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const getPublic_1 = require("./getPublic");
|
||||
const WorkbenchPage_1 = require("./WorkbenchPage");
|
||||
const workbenchPage = new WorkbenchPage_1.WorkbenchPage();
|
||||
// tslint:disable-next-line:export-name
|
||||
exports.default = {
|
||||
'/workbench': workbenchPage.handleWorkbenchRequest,
|
||||
'*/*': getPublic_1.default
|
||||
};
|
||||
//# sourceMappingURL=index.js.map
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"outDir": "../../lib/api"
|
||||
},
|
||||
"include": [
|
||||
"**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"../../node_modules",
|
||||
"../../dist",
|
||||
"../../lib"
|
||||
]
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
export {};
|
||||
//# sourceMappingURL=workbenchInit.d.ts.map
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"file":"workbenchInit.d.ts","sourceRoot":"../../../../src/","sources":["workbenchInit.ts"],"names":[],"mappings":""}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue