@platforma-open/milaboratories.redefine-clonotypes.model 1.3.0 → 1.3.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.
@@ -1,6 +1,6 @@
1
1
   WARN  Issue while reading "/home/runner/work/redefine-clonotypes/redefine-clonotypes/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.redefine-clonotypes.model@1.3.0 build /home/runner/work/redefine-clonotypes/redefine-clonotypes/model
3
+ > @platforma-open/milaboratories.redefine-clonotypes.model@1.3.1 build /home/runner/work/redefine-clonotypes/redefine-clonotypes/model
4
4
  > ts-builder build --target block-model && block-tools build-model
5
5
 
6
6
  Building block-model project...
@@ -11,6 +11,6 @@ Building block-model project...
11
11
  
12
12
  ./src/index.ts → dist...
13
13
  (!) Circular dependency
14
- ../node_modules/.pnpm/@platforma-sdk+model@1.53.2/node_modules/@platforma-sdk/model/dist/components/PFrameForGraphs.js -> ../node_modules/.pnpm/@platforma-sdk+model@1.53.2/node_modules/@platforma-sdk/model/dist/pframe_utils/columns.js -> ../node_modules/.pnpm/@platforma-sdk+model@1.53.2/node_modules/@platforma-sdk/model/dist/components/PFrameForGraphs.js
15
- created dist in 2.2s
14
+ ../node_modules/.pnpm/@platforma-sdk+model@1.53.3/node_modules/@platforma-sdk/model/dist/components/PFrameForGraphs.js -> ../node_modules/.pnpm/@platforma-sdk+model@1.53.3/node_modules/@platforma-sdk/model/dist/pframe_utils/columns.js -> ../node_modules/.pnpm/@platforma-sdk+model@1.53.3/node_modules/@platforma-sdk/model/dist/components/PFrameForGraphs.js
15
+ created dist in 2.1s
16
16
  Build completed successfully
@@ -1,5 +1,5 @@
1
1
   WARN  Issue while reading "/home/runner/work/redefine-clonotypes/redefine-clonotypes/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.redefine-clonotypes.model@1.3.0 lint /home/runner/work/redefine-clonotypes/redefine-clonotypes/model
3
+ > @platforma-open/milaboratories.redefine-clonotypes.model@1.3.1 lint /home/runner/work/redefine-clonotypes/redefine-clonotypes/model
4
4
  > eslint .
5
5
 
@@ -1,6 +1,6 @@
1
1
   WARN  Issue while reading "/home/runner/work/redefine-clonotypes/redefine-clonotypes/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @platforma-open/milaboratories.redefine-clonotypes.model@1.3.0 type-check /home/runner/work/redefine-clonotypes/redefine-clonotypes/model
3
+ > @platforma-open/milaboratories.redefine-clonotypes.model@1.3.1 type-check /home/runner/work/redefine-clonotypes/redefine-clonotypes/model
4
4
  > ts-builder types --target block-model
5
5
 
6
6
  ↳ tsc --noEmit --project ./tsconfig.json --customConditions ,
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @platforma-open/milaboratories.redefine-clonotypes.model
2
2
 
3
+ ## 1.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 7469b2a: Improve block label generation
8
+
3
9
  ## 1.3.0
4
10
 
5
11
  ### Minor Changes
package/dist/bundle.js CHANGED
@@ -7512,7 +7512,7 @@
7512
7512
  }
7513
7513
  }
7514
7514
 
7515
- var version = "1.53.2";
7515
+ var version = "1.53.3";
7516
7516
 
7517
7517
  const PlatformaSDKVersion = version;
7518
7518
 
@@ -8095,9 +8095,27 @@
8095
8095
  errors: z.lazy(() => ErrorShape.array()).optional(),
8096
8096
  });
8097
8097
 
8098
+ var titles = {
8099
+ main: "Main"};
8100
+ var strings = {
8101
+ titles: titles
8102
+ };
8103
+
8104
+ function getDefaultBlockLabel(data) {
8105
+ const parts = [];
8106
+ if (data.clonotypeDefinitionLabels.length > 0) {
8107
+ // Join labels with dash, removing unnecessary words like "InFrame"
8108
+ const cleanLabels = data.clonotypeDefinitionLabels
8109
+ .map((label) => label.replace('InFrame', '').trim())
8110
+ .filter(Boolean);
8111
+ parts.push(cleanLabels.join('-'));
8112
+ }
8113
+ return parts.filter(Boolean).join(' ') || 'Select Clonotype Definition';
8114
+ }
8115
+
8098
8116
  const model = BlockModel.create()
8099
8117
  .withArgs({
8100
- defaultBlockLabel: 'Select Clonotype Definition',
8118
+ defaultBlockLabel: getDefaultBlockLabel({ clonotypeDefinitionLabels: [] }),
8101
8119
  customBlockLabel: '',
8102
8120
  clonotypeDefinition: [],
8103
8121
  })
@@ -8266,9 +8284,10 @@
8266
8284
  .output('isRunning', (ctx) => ctx.outputs?.getIsReadyOrError() === false)
8267
8285
  .title(() => 'Redefine Clonotypes')
8268
8286
  .subtitle((ctx) => ctx.args.customBlockLabel || ctx.args.defaultBlockLabel)
8269
- .sections((_ctx) => [{ type: 'link', href: '/', label: 'Main' }])
8287
+ .sections((_ctx) => [{ type: 'link', href: '/', label: strings.titles.main }])
8270
8288
  .done(2);
8271
8289
 
8290
+ exports.getDefaultBlockLabel = getDefaultBlockLabel;
8272
8291
  exports.model = model;
8273
8292
 
8274
8293
  }));