jupyterlab_vscode_icons_extension 1.1.53 → 1.1.55

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/lib/index.js CHANGED
@@ -363,6 +363,11 @@ const fileTypeConfigs = [
363
363
  iconName: 'custom-drawio',
364
364
  group: 'enableConfigIcons'
365
365
  },
366
+ {
367
+ extensions: ['.bpmn'],
368
+ iconName: 'custom-bpmn',
369
+ group: 'enableConfigIcons'
370
+ },
366
371
  // Images
367
372
  {
368
373
  extensions: ['.png', '.jpg', '.jpeg', '.gif', '.ico', '.webp', '.bmp'],
@@ -1154,6 +1159,28 @@ const plugin = {
1154
1159
  icon: drawioIcon
1155
1160
  });
1156
1161
  }
1162
+ // Register BPMN files with custom process notation icon
1163
+ if (settings.enableConfigIcons) {
1164
+ const bpmnSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
1165
+ <path fill="#fc5d0d" d="M80.472 0c10.785 0 19.528 8.743 19.528 19.528v60.944c0 10.785-8.743 19.528-19.528 19.528H19.528C8.743 100 0 91.257 0 80.472V19.528C0 8.743 8.743 0 19.528 0h60.944z"/>
1166
+ <circle cx="20.86" cy="50" r="8.5" fill="#fff"/>
1167
+ <circle cx="79.08" cy="50" r="8.5" fill="#fff"/>
1168
+ <rect x="32.46" y="43.45" width="13.18" height="13.14" fill="#fff"/>
1169
+ <path fill="#fff" d="M58.95 40.7l-9.3 9.29 9.3 9.3 9.3-9.3z"/>
1170
+ </svg>`;
1171
+ const bpmnIcon = new LabIcon({
1172
+ name: 'bpmn-icon',
1173
+ svgstr: bpmnSvg
1174
+ });
1175
+ docRegistry.addFileType({
1176
+ name: 'vscode-bpmn',
1177
+ displayName: 'BPMN Diagram',
1178
+ extensions: ['.bpmn'],
1179
+ fileFormat: 'text',
1180
+ contentType: 'file',
1181
+ icon: bpmnIcon
1182
+ });
1183
+ }
1157
1184
  // Register MCP config files with custom icon
1158
1185
  if (settings.enableConfigIcons) {
1159
1186
  const mcpSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab_vscode_icons_extension",
3
- "version": "1.1.53",
3
+ "version": "1.1.55",
4
4
  "description": "Jupyterlab extension with a shameless rip-off of the vscode-icons into our beloved environment",
5
5
  "keywords": [
6
6
  "jupyter",
package/src/index.ts CHANGED
@@ -399,6 +399,11 @@ const fileTypeConfigs: IFileTypeConfig[] = [
399
399
  iconName: 'custom-drawio',
400
400
  group: 'enableConfigIcons'
401
401
  },
402
+ {
403
+ extensions: ['.bpmn'],
404
+ iconName: 'custom-bpmn',
405
+ group: 'enableConfigIcons'
406
+ },
402
407
 
403
408
  // Images
404
409
  {
@@ -1281,6 +1286,31 @@ const plugin: JupyterFrontEndPlugin<void> = {
1281
1286
  });
1282
1287
  }
1283
1288
 
1289
+ // Register BPMN files with custom process notation icon
1290
+ if (settings.enableConfigIcons) {
1291
+ const bpmnSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
1292
+ <path fill="#fc5d0d" d="M80.472 0c10.785 0 19.528 8.743 19.528 19.528v60.944c0 10.785-8.743 19.528-19.528 19.528H19.528C8.743 100 0 91.257 0 80.472V19.528C0 8.743 8.743 0 19.528 0h60.944z"/>
1293
+ <circle cx="20.86" cy="50" r="8.5" fill="#fff"/>
1294
+ <circle cx="79.08" cy="50" r="8.5" fill="#fff"/>
1295
+ <rect x="32.46" y="43.45" width="13.18" height="13.14" fill="#fff"/>
1296
+ <path fill="#fff" d="M58.95 40.7l-9.3 9.29 9.3 9.3 9.3-9.3z"/>
1297
+ </svg>`;
1298
+
1299
+ const bpmnIcon = new LabIcon({
1300
+ name: 'bpmn-icon',
1301
+ svgstr: bpmnSvg
1302
+ });
1303
+
1304
+ docRegistry.addFileType({
1305
+ name: 'vscode-bpmn',
1306
+ displayName: 'BPMN Diagram',
1307
+ extensions: ['.bpmn'],
1308
+ fileFormat: 'text',
1309
+ contentType: 'file',
1310
+ icon: bpmnIcon
1311
+ });
1312
+ }
1313
+
1284
1314
  // Register MCP config files with custom icon
1285
1315
  if (settings.enableConfigIcons) {
1286
1316
  const mcpSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">