pict-section-formeditor 1.0.1 → 1.0.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pict-section-formeditor",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Pict visual editor for pict-section-form configurations",
5
5
  "main": "source/Pict-Section-FormEditor.js",
6
6
  "scripts": {
@@ -1737,18 +1737,21 @@ class PictViewFormEditorPropertiesPanel extends libPictView
1737
1737
  */
1738
1738
  _ensureExpressionParser()
1739
1739
  {
1740
- let tmpChildManager = this.pict.providers['FormEditor-ChildPictManager'];
1740
+ let tmpChildManager = this._ParentFormEditor._ChildPictManager;
1741
1741
  if (!tmpChildManager)
1742
1742
  {
1743
1743
  return null;
1744
1744
  }
1745
1745
 
1746
- if (!tmpChildManager.childApplicationExists('Simple Form'))
1746
+ if (!tmpChildManager.childApplicationExists('ExpressionParser'))
1747
1747
  {
1748
- tmpChildManager.initializeChildApplication('Simple Form', this.pict.AppData.FormConfig);
1748
+ // Deep clone the manifest so the child pict does not mutate
1749
+ // the live editor manifest (e.g. adding InputIndex, GroupIndex, etc.)
1750
+ let tmpManifestClone = JSON.parse(JSON.stringify(this._ParentFormEditor._resolveManifestData() || {}));
1751
+ tmpChildManager.initializeChildApplication('ExpressionParser', tmpManifestClone);
1749
1752
  }
1750
1753
 
1751
- let tmpChildApp = tmpChildManager.childApplication('Simple Form');
1754
+ let tmpChildApp = tmpChildManager.childApplication('ExpressionParser');
1752
1755
  if (!tmpChildApp || !tmpChildApp.ExpressionParser)
1753
1756
  {
1754
1757
  return null;