@dataverse-kit/export-engine 1.2.0 → 1.3.0
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/dist/index.cjs +25 -23
- package/dist/index.mjs +25 -23
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -22541,27 +22541,6 @@ function generatePcfProject(project, options) {
|
|
|
22541
22541
|
2
|
|
22542
22542
|
) + "\n"
|
|
22543
22543
|
});
|
|
22544
|
-
const platformLibraries = isV9 ? ` <platform-library name="React" version="18.2.0" />
|
|
22545
|
-
<platform-library name="Fluent" version="9.46.2" />` : ` <platform-library name="React" version="16.14.0" />
|
|
22546
|
-
<platform-library name="Fluent" version="8.29.0" />`;
|
|
22547
|
-
const nsAttr = escapeHtml(ns);
|
|
22548
|
-
const controlNameAttr = escapeHtml(controlName);
|
|
22549
|
-
files.push({
|
|
22550
|
-
path: `${controlName}/ControlManifest.Input.xml`,
|
|
22551
|
-
content: `<?xml version="1.0" encoding="utf-8" ?>
|
|
22552
|
-
<manifest>
|
|
22553
|
-
<control namespace="${nsAttr}" constructor="${controlNameAttr}" version="1.0.0" display-name-key="${controlNameAttr}" description-key="${controlNameAttr} PCF Control" control-type="virtual" >
|
|
22554
|
-
<external-service-usage enabled="false">
|
|
22555
|
-
</external-service-usage>
|
|
22556
|
-
<property name="value" display-name-key="Value" description-key="Primary value" of-type="SingleLine.Text" usage="bound" required="false" />
|
|
22557
|
-
<resources>
|
|
22558
|
-
<code path="index.ts" order="1"/>
|
|
22559
|
-
${platformLibraries}
|
|
22560
|
-
</resources>
|
|
22561
|
-
</control>
|
|
22562
|
-
</manifest>
|
|
22563
|
-
`
|
|
22564
|
-
});
|
|
22565
22544
|
const mainForm = project.forms.find((f) => f.type === "main") ?? project.forms[0];
|
|
22566
22545
|
const mainComponentName = mainForm ? toFormComponentName(mainForm.name) : "div";
|
|
22567
22546
|
const pcfIndexContent = isV9 ? `import { IInputs, IOutputs } from './generated/ManifestTypes';
|
|
@@ -22569,7 +22548,7 @@ import * as React from 'react';
|
|
|
22569
22548
|
import * as ReactDOM from 'react-dom';
|
|
22570
22549
|
import { initializeIcons } from '@fluentui/react';
|
|
22571
22550
|
import { FluentProvider, webLightTheme } from '@fluentui/react-components';
|
|
22572
|
-
import { ${mainComponentName} } from './components/${mainComponentName}';
|
|
22551
|
+
import { ${mainComponentName} } from './src/components/${mainComponentName}';
|
|
22573
22552
|
|
|
22574
22553
|
initializeIcons();
|
|
22575
22554
|
|
|
@@ -22609,7 +22588,7 @@ export class ${controlName} implements ComponentFramework.ReactControl<IInputs,
|
|
|
22609
22588
|
import * as React from 'react';
|
|
22610
22589
|
import * as ReactDOM from 'react-dom';
|
|
22611
22590
|
import { initializeIcons, ThemeProvider } from '@fluentui/react';
|
|
22612
|
-
import { ${mainComponentName} } from './components/${mainComponentName}';
|
|
22591
|
+
import { ${mainComponentName} } from './src/components/${mainComponentName}';
|
|
22613
22592
|
|
|
22614
22593
|
initializeIcons();
|
|
22615
22594
|
|
|
@@ -22662,6 +22641,29 @@ export class ${controlName} implements ComponentFramework.ReactControl<IInputs,
|
|
|
22662
22641
|
content: file.content
|
|
22663
22642
|
});
|
|
22664
22643
|
}
|
|
22644
|
+
const usesGridKit = formFiles.some((f) => f.path.startsWith("src/lib/grid-kit/"));
|
|
22645
|
+
const platformLibraries = isV9 ? ` <platform-library name="React" version="18.2.0" />
|
|
22646
|
+
<platform-library name="Fluent" version="9.46.2" />` : usesGridKit ? ` <platform-library name="React" version="18.2.0" />
|
|
22647
|
+
<platform-library name="Fluent" version="8.115.6" />` : ` <platform-library name="React" version="16.14.0" />
|
|
22648
|
+
<platform-library name="Fluent" version="8.29.0" />`;
|
|
22649
|
+
const nsAttr = escapeHtml(ns);
|
|
22650
|
+
const controlNameAttr = escapeHtml(controlName);
|
|
22651
|
+
files.push({
|
|
22652
|
+
path: `${controlName}/ControlManifest.Input.xml`,
|
|
22653
|
+
content: `<?xml version="1.0" encoding="utf-8" ?>
|
|
22654
|
+
<manifest>
|
|
22655
|
+
<control namespace="${nsAttr}" constructor="${controlNameAttr}" version="1.0.0" display-name-key="${controlNameAttr}" description-key="${controlNameAttr} PCF Control" control-type="virtual" >
|
|
22656
|
+
<external-service-usage enabled="false">
|
|
22657
|
+
</external-service-usage>
|
|
22658
|
+
<property name="value" display-name-key="Value" description-key="Primary value" of-type="SingleLine.Text" usage="bound" required="false" />
|
|
22659
|
+
<resources>
|
|
22660
|
+
<code path="index.ts" order="1"/>
|
|
22661
|
+
${platformLibraries}
|
|
22662
|
+
</resources>
|
|
22663
|
+
</control>
|
|
22664
|
+
</manifest>
|
|
22665
|
+
`
|
|
22666
|
+
});
|
|
22665
22667
|
if (includeDataAccessLayer) {
|
|
22666
22668
|
const dalFiles = generateDataAccessLayer(
|
|
22667
22669
|
project.forms,
|
package/dist/index.mjs
CHANGED
|
@@ -22521,27 +22521,6 @@ function generatePcfProject(project, options) {
|
|
|
22521
22521
|
2
|
|
22522
22522
|
) + "\n"
|
|
22523
22523
|
});
|
|
22524
|
-
const platformLibraries = isV9 ? ` <platform-library name="React" version="18.2.0" />
|
|
22525
|
-
<platform-library name="Fluent" version="9.46.2" />` : ` <platform-library name="React" version="16.14.0" />
|
|
22526
|
-
<platform-library name="Fluent" version="8.29.0" />`;
|
|
22527
|
-
const nsAttr = escapeHtml(ns);
|
|
22528
|
-
const controlNameAttr = escapeHtml(controlName);
|
|
22529
|
-
files.push({
|
|
22530
|
-
path: `${controlName}/ControlManifest.Input.xml`,
|
|
22531
|
-
content: `<?xml version="1.0" encoding="utf-8" ?>
|
|
22532
|
-
<manifest>
|
|
22533
|
-
<control namespace="${nsAttr}" constructor="${controlNameAttr}" version="1.0.0" display-name-key="${controlNameAttr}" description-key="${controlNameAttr} PCF Control" control-type="virtual" >
|
|
22534
|
-
<external-service-usage enabled="false">
|
|
22535
|
-
</external-service-usage>
|
|
22536
|
-
<property name="value" display-name-key="Value" description-key="Primary value" of-type="SingleLine.Text" usage="bound" required="false" />
|
|
22537
|
-
<resources>
|
|
22538
|
-
<code path="index.ts" order="1"/>
|
|
22539
|
-
${platformLibraries}
|
|
22540
|
-
</resources>
|
|
22541
|
-
</control>
|
|
22542
|
-
</manifest>
|
|
22543
|
-
`
|
|
22544
|
-
});
|
|
22545
22524
|
const mainForm = project.forms.find((f) => f.type === "main") ?? project.forms[0];
|
|
22546
22525
|
const mainComponentName = mainForm ? toFormComponentName(mainForm.name) : "div";
|
|
22547
22526
|
const pcfIndexContent = isV9 ? `import { IInputs, IOutputs } from './generated/ManifestTypes';
|
|
@@ -22549,7 +22528,7 @@ import * as React from 'react';
|
|
|
22549
22528
|
import * as ReactDOM from 'react-dom';
|
|
22550
22529
|
import { initializeIcons } from '@fluentui/react';
|
|
22551
22530
|
import { FluentProvider, webLightTheme } from '@fluentui/react-components';
|
|
22552
|
-
import { ${mainComponentName} } from './components/${mainComponentName}';
|
|
22531
|
+
import { ${mainComponentName} } from './src/components/${mainComponentName}';
|
|
22553
22532
|
|
|
22554
22533
|
initializeIcons();
|
|
22555
22534
|
|
|
@@ -22589,7 +22568,7 @@ export class ${controlName} implements ComponentFramework.ReactControl<IInputs,
|
|
|
22589
22568
|
import * as React from 'react';
|
|
22590
22569
|
import * as ReactDOM from 'react-dom';
|
|
22591
22570
|
import { initializeIcons, ThemeProvider } from '@fluentui/react';
|
|
22592
|
-
import { ${mainComponentName} } from './components/${mainComponentName}';
|
|
22571
|
+
import { ${mainComponentName} } from './src/components/${mainComponentName}';
|
|
22593
22572
|
|
|
22594
22573
|
initializeIcons();
|
|
22595
22574
|
|
|
@@ -22642,6 +22621,29 @@ export class ${controlName} implements ComponentFramework.ReactControl<IInputs,
|
|
|
22642
22621
|
content: file.content
|
|
22643
22622
|
});
|
|
22644
22623
|
}
|
|
22624
|
+
const usesGridKit = formFiles.some((f) => f.path.startsWith("src/lib/grid-kit/"));
|
|
22625
|
+
const platformLibraries = isV9 ? ` <platform-library name="React" version="18.2.0" />
|
|
22626
|
+
<platform-library name="Fluent" version="9.46.2" />` : usesGridKit ? ` <platform-library name="React" version="18.2.0" />
|
|
22627
|
+
<platform-library name="Fluent" version="8.115.6" />` : ` <platform-library name="React" version="16.14.0" />
|
|
22628
|
+
<platform-library name="Fluent" version="8.29.0" />`;
|
|
22629
|
+
const nsAttr = escapeHtml(ns);
|
|
22630
|
+
const controlNameAttr = escapeHtml(controlName);
|
|
22631
|
+
files.push({
|
|
22632
|
+
path: `${controlName}/ControlManifest.Input.xml`,
|
|
22633
|
+
content: `<?xml version="1.0" encoding="utf-8" ?>
|
|
22634
|
+
<manifest>
|
|
22635
|
+
<control namespace="${nsAttr}" constructor="${controlNameAttr}" version="1.0.0" display-name-key="${controlNameAttr}" description-key="${controlNameAttr} PCF Control" control-type="virtual" >
|
|
22636
|
+
<external-service-usage enabled="false">
|
|
22637
|
+
</external-service-usage>
|
|
22638
|
+
<property name="value" display-name-key="Value" description-key="Primary value" of-type="SingleLine.Text" usage="bound" required="false" />
|
|
22639
|
+
<resources>
|
|
22640
|
+
<code path="index.ts" order="1"/>
|
|
22641
|
+
${platformLibraries}
|
|
22642
|
+
</resources>
|
|
22643
|
+
</control>
|
|
22644
|
+
</manifest>
|
|
22645
|
+
`
|
|
22646
|
+
});
|
|
22645
22647
|
if (includeDataAccessLayer) {
|
|
22646
22648
|
const dalFiles = generateDataAccessLayer(
|
|
22647
22649
|
project.forms,
|