Gathering detailed insights and metrics for @uifabric/example-app-base
Gathering detailed insights and metrics for @uifabric/example-app-base
npm install @uifabric/example-app-base
Typescript
Module System
Node Version
NPM Version
@fluentui/react-monaco-editor v1.7.288
Published on 31 Jan 2025
@fluentui/react-docsite-components v8.13.170
Published on 31 Jan 2025
@fluentui/react-charting v5.23.50
Published on 31 Jan 2025
@fluentui/react-monaco-editor v1.7.287
Published on 30 Jan 2025
@fluentui/react-docsite-components v8.13.169
Published on 30 Jan 2025
@fluentui/react-charting v5.23.49
Published on 30 Jan 2025
TypeScript (95.72%)
JavaScript (1.81%)
MDX (1.6%)
SCSS (0.51%)
HTML (0.2%)
CSS (0.15%)
Shell (0.01%)
EJS (0.01%)
Total Downloads
374,968
Last Day
86
Last Week
599
Last Month
3,335
Last Year
36,155
18,800 Stars
18,997 Commits
2,762 Forks
289 Watching
95 Branches
897 Contributors
Latest Version
7.22.33
Package Id
@uifabric/example-app-base@7.22.33
Unpacked Size
3.85 MB
Size
591.04 kB
File Count
1,669
NPM Version
6.14.15
Node Version
14.18.1
Publised On
27 Jan 2023
Cumulative downloads
Total Downloads
Last day
-24.6%
86
Compared to previous day
Last week
-47.6%
599
Compared to previous week
Last month
22.3%
3,335
Compared to previous month
Last year
2.6%
36,155
Compared to previous year
14
4
Components and utilities used to build internal documentation sites and inner loops for various Fluent UI React (formerly Office UI Fabric React) packages.
This package is in maintenance mode while we work on a replacement. It should only be used in new projects if you must have a published documentation site that looks like the official Fluent UI React docs. If all you need is an inner loop for component development, please use Storybook instead. Storybook is a well-supported, well-documented platform for component development and documentation.
To set up the live code editor in the demo app for a package other than the @fluentui/react
package itself:
Follow the setup steps from the @uifabric/monaco-editor
readme (the helpers mentioned are also re-exported from @uifabric/tsx-editor
for convenience).
Set up a .d.ts
rollup file for your package using API Extractor.
Add a dependency on raw-loader
to the package containing your demo app.
Define the custom list of supported packages. For demonstration purposes, we'll assume:
my-package
my-package
re-exports another package called my-package-utilities
(it's not required that your package export anything else, but this is included to demonstrate setting it up).d.ts
rollup lives under <package-folder>/dist/<unscoped-package-name>.d.ts
1import { IPackageGroup } from '@uifabric/tsx-editor'; 2import { defaultSupportedPackages } from '@uifabric/tsx-editor/lib/utilities/defaultSupportedPackages'; 3 4export const editorSupportedPackages: IPackageGroup[] = [ 5 ...defaultSupportedPackages, 6 { 7 // Package's exports will be made available under this global name at runtime 8 globalName: 'MyPackage', 9 // Loader for the package's contents 10 loadGlobal: () => import('my-package'), 11 // Alternatively, for non-delayed loading: 12 // loadGlobal: () => require('my-package'), 13 // Or at the top of the file, `import * as MyPackage from 'my-package'`, then: 14 // loadGlobal: () => Promise.resolve(MyPackage) 15 packages: [ 16 { 17 packageName: 'my-package', 18 loadTypes: () => { 19 // Use import() so the types can potentially be split into a separate chunk and delay loaded. 20 // If you don't care about that, you could use require() instead. 21 // @ts-ignore: import is handled by webpack 22 return import('!raw-loader!my-package/dist/my-package.d.ts'); 23 }, 24 }, 25 { 26 // my-package re-exports my-package-utilities from its root, so it goes under the same global 27 packageName: 'my-package-utilities', 28 loadTypes: () => { 29 // @ts-ignore: import is handled by webpack 30 return import('!raw-loader!my-package-utilities/dist/my-package-utilities.d.ts'); 31 }, 32 }, 33 ], 34 }, 35];
ExampleCard
:1import { editorSupportedPackages } from '<file path>'; 2import { MyExample } from './MyExample.Example'; 3const MyExampleCode = require('!raw-loader!./MyExample.Example.tsx'); 4 5<ExampleCard title="My example" code={MyExampleCode} editorSupportedPackages={editorSupportedPackages}> 6 <MyExample /> 7</ExampleCard>;
ExampleCard
instances in your app:1import { editorSupportedPackages } from '<file path>'; 2import { IExampleCardProps, IAppDefinition } from '@uifabric/example-app-base'; 3 4const exampleCardProps: IExampleCardProps = { editorSupportedPackages }; 5 6// same applies with ISiteDefinition 7const appDefinition: IAppDefinition = { 8 // ... 9 customizations: { 10 scopedSettings: { 11 ExampleCard: exampleCardProps, 12 }, 13 }, 14};
No vulnerabilities found.
Reason
30 commit(s) out of 30 and 22 issue activity out of 30 found in the last 90 days -- score normalized to 10
Reason
no vulnerabilities detected
Reason
update tool detected
Details
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
GitHub code reviews found for 28 commits out of the last 30 -- score normalized to 9
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
no badge detected
Reason
dangerous workflow patterns detected
Details
Reason
non read-only tokens detected in GitHub workflows
Details
Reason
project is not fuzzed
Score
Last Scanned on 2022-08-15
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More