@mohsinonxrm/pptb-fetchxml-studio 1.3.1 → 1.4.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.
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="4 8 56 48" width="56" height="48">
2
+ <!-- Variant K — "Clean hex split" / FXS
3
+ Same chassis; tool glyph is < /> (angle brackets + tag-slash). -->
4
+
5
+ <path d="M 18 8 L 46 8 L 60 32 L 46 56 L 18 56 L 4 32 Z" fill="#0E5A9C"/>
6
+ <polygon points="46,8 60,32 46,56 18,56" fill="#2B8FD9"/>
7
+
8
+ <!-- Tool glyph — < /> in white -->
9
+ <polyline points="24,22 16,33 24,44" stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
10
+ <polyline points="40,22 48,33 40,44" stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
11
+ <line x1="35" y1="22" x2="29" y2="44" stroke="#fff" stroke-width="2.5" stroke-linecap="round"/>
12
+ </svg>
package/dist/index.html CHANGED
@@ -62,7 +62,7 @@
62
62
  scrollbar-color: rgba(128, 128, 128, 0.4) transparent;
63
63
  }
64
64
  </style>
65
- <script type="module" crossorigin src="/assets/index-pm_Z7bpf.js"></script>
65
+ <script type="module" crossorigin src="/assets/index-BQgTOj7B.js"></script>
66
66
  <link rel="modulepreload" crossorigin href="/assets/monaco-editor-CSKh0Kpy.js">
67
67
  <link rel="stylesheet" crossorigin href="/assets/monaco-editor-BhPcksyq.css">
68
68
  </head>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mohsinonxrm/pptb-fetchxml-studio",
3
- "version": "1.3.1",
3
+ "version": "1.4.1",
4
4
  "type": "module",
5
5
  "displayName": "FetchXML Studio",
6
6
  "description": "A powerful, modern FetchXML query builder and data explorer for Microsoft Dataverse and Dynamics 365.",
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "features": {
37
37
  "multiConnection": "none",
38
- "minAPI": "1.2.0"
38
+ "minAPI": "1.2.2"
39
39
  },
40
40
  "bugs": {
41
41
  "url": "https://github.com/mohsinonxrm/pptb-mxrm-fetchxml-studio/issues"
@@ -47,23 +47,31 @@
47
47
  },
48
48
  "files": [
49
49
  "dist",
50
- "npm-shrinkwrap.json"
50
+ "index.html",
51
+ "LICENSE",
52
+ "README.md",
53
+ "CHANGELOG.md",
54
+ "SECURITY.md",
55
+ "pptb.config.json"
51
56
  ],
52
57
  "scripts": {
53
58
  "dev": "vite",
54
59
  "build": "tsc -b && vite build",
55
60
  "validate": "pptb-validate",
56
- "lint": "eslint .",
61
+ "lint": "eslint . --max-warnings=0",
62
+ "test": "vitest run",
63
+ "test:watch": "vitest",
64
+ "coverage": "vitest run --coverage",
57
65
  "preview": "vite preview",
58
- "finalize-package": "npm run validate && npm run build && npm shrinkwrap"
66
+ "finalize-package": "npm run validate && npm run build"
59
67
  },
60
68
  "dependencies": {
61
- "@fluentui-contrib/react-data-grid-react-window": "^1.4.1",
62
- "@fluentui/react-calendar-compat": "^0.3.14",
63
- "@fluentui/react-components": "^9.72.4",
64
- "@fluentui/react-datepicker-compat": "^0.6.19",
65
- "@fluentui/react-icons": "^2.0.313",
66
- "@fluentui/react-timepicker-compat": "^0.4.24",
69
+ "@fluentui-contrib/react-data-grid-react-window": "^1.4.2",
70
+ "@fluentui/react-calendar-compat": "^0.4.7",
71
+ "@fluentui/react-components": "^9.74.9",
72
+ "@fluentui/react-datepicker-compat": "^0.6.39",
73
+ "@fluentui/react-icons": "2.0.343",
74
+ "@fluentui/react-timepicker-compat": "^0.4.41",
67
75
  "@monaco-editor/react": "^4.7.0",
68
76
  "exceljs": "^4.4.0",
69
77
  "react": "^18.3.1",
@@ -72,19 +80,23 @@
72
80
  },
73
81
  "devDependencies": {
74
82
  "@eslint/js": "^9.36.0",
75
- "@pptb/types": "^1.2.0",
83
+ "@pptb/types": "^1.2.3",
76
84
  "@types/node": "^24.10.4",
77
85
  "@types/react": "^18.3.27",
78
86
  "@types/react-dom": "^18.3.7",
79
87
  "@types/react-window": "^1.8.8",
80
88
  "@vitejs/plugin-react": "^5.1.0",
89
+ "@vitest/coverage-v8": "^5.0.4",
81
90
  "eslint": "^9.36.0",
82
91
  "eslint-plugin-react-hooks": "^5.2.0",
83
92
  "eslint-plugin-react-refresh": "^0.4.22",
84
93
  "globals": "^16.4.0",
94
+ "jsdom": "^30.1.2",
85
95
  "monaco-editor": "^0.54.0",
96
+ "scheduler": "^0.27.0",
86
97
  "typescript": "~5.9.3",
87
98
  "typescript-eslint": "^8.45.0",
88
- "vite": "^7.3.0"
99
+ "vite": "^7.3.0",
100
+ "vitest": "^5.0.4"
89
101
  }
90
102
  }
@@ -0,0 +1,46 @@
1
+ {
2
+ "invocation": {
3
+ "version": "1.0.0",
4
+ "capabilities": ["fetchxml"],
5
+ "prefill": {
6
+ "description": "Pass 'fetchXml' (the root entity is derived from the FetchXML itself), a 'viewRef' to an existing view, or just 'entityLogicalName' to start a fresh query on that entity. All fields are optional; with no prefill the tool opens empty.",
7
+ "properties": {
8
+ "fetchXml": {
9
+ "type": "string",
10
+ "description": "Serialized FetchXML query string. The root entity is parsed from this — no separate entity name is required."
11
+ },
12
+ "entityLogicalName": {
13
+ "type": "string",
14
+ "description": "Root entity logical name, e.g. 'account'. Used to start a fresh query when no 'fetchXml' or 'viewRef' is supplied. Ignored when 'fetchXml' is present, since the root entity is then taken from the FetchXML."
15
+ },
16
+ "viewRef": {
17
+ "type": "object",
18
+ "description": "EntityReference to an existing view. When provided, the FetchXML is retrieved from the view record. Use instead of 'fetchXml'.",
19
+ "required": ["id", "entityLogicalName"],
20
+ "additionalProperties": false,
21
+ "properties": {
22
+ "id": {
23
+ "type": "string",
24
+ "format": "uuid",
25
+ "description": "GUID of the view record."
26
+ },
27
+ "entityLogicalName": {
28
+ "type": "string",
29
+ "enum": ["savedquery", "userquery"],
30
+ "description": "Dataverse entity logical name: savedquery = system/public view; userquery = personal view."
31
+ }
32
+ }
33
+ }
34
+ }
35
+ },
36
+ "returnTopic": {
37
+ "description": "Returns the current FetchXML query back to the invoking tool.",
38
+ "properties": {
39
+ "fetchXml": {
40
+ "type": "string",
41
+ "description": "Serialized FetchXML query currently shown in the FetchXML pane."
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }