@khester/create-dynamics-app 3.8.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/templates/starter-page/_variants/App.dashboard.v9.tsx +6 -2
- package/templates/starter-page/_variants/App.form.v9.tsx +6 -2
- package/templates/starter-page/_variants/App.master-detail.v9.tsx +6 -2
- package/templates/starter-page/_variants/App.panel.v9.tsx +6 -1
- package/templates/starter-page/public/index.html +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khester/create-dynamics-app",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Unified CLI to scaffold Dynamics 365 / Power Platform artifacts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"check:published-templates": "node scripts/check-published-template-drift.mjs"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@dataverse-kit/export-engine": "^1.38.
|
|
30
|
+
"@dataverse-kit/export-engine": "^1.38.4",
|
|
31
31
|
"@khester/dynamics-ui-components": "^1.0.0",
|
|
32
32
|
"chalk": "^5.3.0",
|
|
33
33
|
"commander": "^11.1.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { FluentProvider, IdPrefixProvider, Text } from '@fluentui/react-components';
|
|
2
|
+
import { FluentProvider, IdPrefixProvider, Text, tokens } from '@fluentui/react-components';
|
|
3
3
|
import { Add20Regular, ArrowClockwise20Regular } from '@fluentui/react-icons';
|
|
4
4
|
import {
|
|
5
5
|
FormSurface,
|
|
@@ -44,7 +44,11 @@ export const App: React.FC = () => {
|
|
|
44
44
|
|
|
45
45
|
return (
|
|
46
46
|
<IdPrefixProvider value="{{idPrefix}}-">
|
|
47
|
-
|
|
47
|
+
{/* The page canvas. FluentProvider paints colorNeutralBackground1 (white) and FormSurface look="ce"
|
|
48
|
+
paints nothing, so the Dynamics page grey (colorNeutralBackground2, #fafafa measured) is set
|
|
49
|
+
here, full height. minHeight 100vh relies on `body { margin: 0 }` in public/index.html: host
|
|
50
|
+
this bundle in your own HTML without that reset and the page overflows by 16px. */}
|
|
51
|
+
<FluentProvider theme={dynamicsCeTheme} style={{ minHeight: '100vh', backgroundColor: tokens.colorNeutralBackground2 }}>
|
|
48
52
|
<FormSurface look="ce">
|
|
49
53
|
<CommandSurface look="ce" items={[{ id: 'refresh', label: 'Refresh', icon: <ArrowClockwise20Regular /> }]} />
|
|
50
54
|
<div style={{ padding: BODY_PADDING }}>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { FluentProvider, IdPrefixProvider, Input } from '@fluentui/react-components';
|
|
2
|
+
import { FluentProvider, IdPrefixProvider, Input, tokens } from '@fluentui/react-components';
|
|
3
3
|
import { Save20Regular, Dismiss20Regular } from '@fluentui/react-icons';
|
|
4
4
|
import {
|
|
5
5
|
FormSurface,
|
|
@@ -46,7 +46,11 @@ export const App: React.FC = () => {
|
|
|
46
46
|
// IdPrefixProvider: one per Fluent v9 root, so this page's ids never collide with another v9
|
|
47
47
|
// root on the same form/page (and anything it portals keeps its theme).
|
|
48
48
|
<IdPrefixProvider value="{{idPrefix}}-">
|
|
49
|
-
|
|
49
|
+
{/* The page canvas. FluentProvider paints colorNeutralBackground1 (white) and FormSurface look="ce"
|
|
50
|
+
paints nothing, so the Dynamics page grey (colorNeutralBackground2, #fafafa measured) is set
|
|
51
|
+
here, full height. minHeight 100vh relies on `body { margin: 0 }` in public/index.html: host
|
|
52
|
+
this bundle in your own HTML without that reset and the page overflows by 16px. */}
|
|
53
|
+
<FluentProvider theme={dynamicsCeTheme} style={{ minHeight: '100vh', backgroundColor: tokens.colorNeutralBackground2 }}>
|
|
50
54
|
<FormSurface look="ce">
|
|
51
55
|
<CommandSurface
|
|
52
56
|
look="ce"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { FluentProvider, IdPrefixProvider, Input, Text } from '@fluentui/react-components';
|
|
2
|
+
import { FluentProvider, IdPrefixProvider, Input, Text, tokens } from '@fluentui/react-components';
|
|
3
3
|
import { ArrowClockwise20Regular } from '@fluentui/react-icons';
|
|
4
4
|
import {
|
|
5
5
|
FormSurface,
|
|
@@ -40,7 +40,11 @@ export const App: React.FC = () => {
|
|
|
40
40
|
|
|
41
41
|
return (
|
|
42
42
|
<IdPrefixProvider value="{{idPrefix}}-">
|
|
43
|
-
|
|
43
|
+
{/* The page canvas. FluentProvider paints colorNeutralBackground1 (white) and FormSurface look="ce"
|
|
44
|
+
paints nothing, so the Dynamics page grey (colorNeutralBackground2, #fafafa measured) is set
|
|
45
|
+
here, full height. minHeight 100vh relies on `body { margin: 0 }` in public/index.html: host
|
|
46
|
+
this bundle in your own HTML without that reset and the page overflows by 16px. */}
|
|
47
|
+
<FluentProvider theme={dynamicsCeTheme} style={{ minHeight: '100vh', backgroundColor: tokens.colorNeutralBackground2 }}>
|
|
44
48
|
<FormSurface look="ce">
|
|
45
49
|
<CommandSurface look="ce" items={[{ id: 'refresh', label: 'Refresh', icon: <ArrowClockwise20Regular /> }]} />
|
|
46
50
|
<div style={{ padding: BODY_PADDING }}>
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
TableHeaderCell,
|
|
11
11
|
TableBody,
|
|
12
12
|
TableCell,
|
|
13
|
+
tokens,
|
|
13
14
|
} from '@fluentui/react-components';
|
|
14
15
|
import { Add20Regular } from '@fluentui/react-icons';
|
|
15
16
|
import {
|
|
@@ -64,7 +65,11 @@ export const App: React.FC = () => {
|
|
|
64
65
|
|
|
65
66
|
return (
|
|
66
67
|
<IdPrefixProvider value="{{idPrefix}}-">
|
|
67
|
-
|
|
68
|
+
{/* The page canvas. FluentProvider paints colorNeutralBackground1 (white) and FormSurface look="ce"
|
|
69
|
+
paints nothing, so the Dynamics page grey (colorNeutralBackground2, #fafafa measured) is set
|
|
70
|
+
here, full height. minHeight 100vh relies on `body { margin: 0 }` in public/index.html: host
|
|
71
|
+
this bundle in your own HTML without that reset and the page overflows by 16px. */}
|
|
72
|
+
<FluentProvider theme={dynamicsCeTheme} style={{ minHeight: '100vh', backgroundColor: tokens.colorNeutralBackground2 }}>
|
|
68
73
|
<FormSurface look="ce">
|
|
69
74
|
<CommandSurface look="ce" items={[{ id: 'new', label: 'New record', icon: <Add20Regular />, onClick: () => setOpen(true) }]} />
|
|
70
75
|
<div style={{ padding: BODY_PADDING }}>
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<title>{{projectName}}</title>
|
|
7
|
+
<!-- A Dynamics page has no body margin; the browser default (8px) leaves a white edge. -->
|
|
8
|
+
<style>body { margin: 0; }</style>
|
|
7
9
|
</head>
|
|
8
10
|
<body>
|
|
9
11
|
<div id="root"></div>
|