@milaboratories/milaboratories.pool-explorer.model 1.0.83 → 1.0.85

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 CHANGED
@@ -2,11 +2,14 @@
2
2
 
3
3
  var model = require('@platforma-sdk/model');
4
4
 
5
- // src/index.ts
6
- var platforma = model.BlockModel.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
7
- return [{ type: "link", href: "/", label: "Main" }];
8
- }).title((ctx) => "Pool explorer").done();
5
+ const platforma = model.BlockModel.create('Heavy')
6
+ .withArgs({ titleArg: 'The title' })
7
+ .output('allSpecs', (ctx) => ctx.resultPool.getSpecs())
8
+ .sections((ctx) => {
9
+ return [{ type: 'link', href: '/', label: 'Main' }];
10
+ })
11
+ .title((ctx) => 'Pool explorer')
12
+ .done();
9
13
 
10
14
  exports.platforma = platforma;
11
15
  //# sourceMappingURL=index.cjs.map
12
- //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":["BlockModel"],"mappings":";;;;;AAMa,IAAA,SAAA,GAAYA,iBAAW,MAAO,CAAA,OAAO,EAE/C,QAAoB,CAAA,EAAE,QAAU,EAAA,WAAA,EAAa,CAAA,CAE7C,OAAO,UAAY,EAAA,CAAC,QAAQ,GAAI,CAAA,UAAA,CAAW,UAAU,CAAA,CAErD,QAAS,CAAA,CAAC,GAAQ,KAAA;AACjB,EAAO,OAAA,CAAC,EAAE,IAAM,EAAA,MAAA,EAAQ,MAAM,GAAK,EAAA,KAAA,EAAO,QAAQ,CAAA;AACpD,CAAC,EAEA,KAAM,CAAA,CAAC,GAAQ,KAAA,eAAe,EAE9B,IAAK","file":"index.cjs","sourcesContent":["import { BlockModel, InferHrefType, InferOutputsType } from '@platforma-sdk/model';\n\nexport type BlockArgs = {\n titleArg: string;\n};\n\nexport const platforma = BlockModel.create('Heavy')\n\n .withArgs<BlockArgs>({ titleArg: 'The title' })\n\n .output('allSpecs', (ctx) => ctx.resultPool.getSpecs())\n\n .sections((ctx) => {\n return [{ type: 'link', href: '/', label: 'Main' }];\n })\n\n .title((ctx) => 'Pool explorer')\n\n .done();\n\nexport type BlockOutputs = InferOutputsType<typeof platforma>;\nexport type Href = InferHrefType<typeof platforma>;\n"]}
1
+ {"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import { BlockModel, InferHrefType, InferOutputsType } from '@platforma-sdk/model';\n\nexport type BlockArgs = {\n titleArg: string;\n};\n\nexport const platforma = BlockModel.create('Heavy')\n\n .withArgs<BlockArgs>({ titleArg: 'The title' })\n\n .output('allSpecs', (ctx) => ctx.resultPool.getSpecs())\n\n .sections((ctx) => {\n return [{ type: 'link', href: '/', label: 'Main' }];\n })\n\n .title((ctx) => 'Pool explorer')\n\n .done();\n\nexport type BlockOutputs = InferOutputsType<typeof platforma>;\nexport type Href = InferHrefType<typeof platforma>;\n"],"names":["BlockModel"],"mappings":";;;;MAMa,SAAS,GAAGA,gBAAU,CAAC,MAAM,CAAC,OAAO;AAE/C,KAAA,QAAQ,CAAY,EAAE,QAAQ,EAAE,WAAW,EAAE;AAE7C,KAAA,MAAM,CAAC,UAAU,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,CAAC,QAAQ,EAAE;AAErD,KAAA,QAAQ,CAAC,CAAC,GAAG,KAAI;AAChB,IAAA,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AACrD,CAAC;AAEA,KAAA,KAAK,CAAC,CAAC,GAAG,KAAK,eAAe;AAE9B,KAAA,IAAI;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,11 +1,9 @@
1
- import * as _platforma_sdk_model from '@platforma-sdk/model';
2
- import { InferOutputsType, InferHrefType } from '@platforma-sdk/model';
3
-
4
- type BlockArgs = {
1
+ import { InferHrefType, InferOutputsType } from '@platforma-sdk/model';
2
+ export type BlockArgs = {
5
3
  titleArg: string;
6
4
  };
7
- declare const platforma: _platforma_sdk_model.PlatformaV1<BlockArgs, {
8
- allSpecs: _platforma_sdk_model.ValueOrErrors<{
5
+ export declare const platforma: import('@platforma-sdk/model').PlatformaV1<BlockArgs, {
6
+ allSpecs: import('@milaboratories/pl-model-common').ValueOrErrors<{
9
7
  readonly entries: {
10
8
  readonly ref: {
11
9
  readonly __isRef: true;
@@ -29,7 +27,5 @@ declare const platforma: _platforma_sdk_model.PlatformaV1<BlockArgs, {
29
27
  }, {
30
28
  [x: string]: never;
31
29
  }, "/">;
32
- type BlockOutputs = InferOutputsType<typeof platforma>;
33
- type Href = InferHrefType<typeof platforma>;
34
-
35
- export { type BlockArgs, type BlockOutputs, type Href, platforma };
30
+ export type BlockOutputs = InferOutputsType<typeof platforma>;
31
+ export type Href = InferHrefType<typeof platforma>;
package/dist/index.js CHANGED
@@ -1,10 +1,13 @@
1
1
  import { BlockModel } from '@platforma-sdk/model';
2
2
 
3
- // src/index.ts
4
- var platforma = BlockModel.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
5
- return [{ type: "link", href: "/", label: "Main" }];
6
- }).title((ctx) => "Pool explorer").done();
3
+ const platforma = BlockModel.create('Heavy')
4
+ .withArgs({ titleArg: 'The title' })
5
+ .output('allSpecs', (ctx) => ctx.resultPool.getSpecs())
6
+ .sections((ctx) => {
7
+ return [{ type: 'link', href: '/', label: 'Main' }];
8
+ })
9
+ .title((ctx) => 'Pool explorer')
10
+ .done();
7
11
 
8
12
  export { platforma };
9
13
  //# sourceMappingURL=index.js.map
10
- //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAMa,IAAA,SAAA,GAAY,WAAW,MAAO,CAAA,OAAO,EAE/C,QAAoB,CAAA,EAAE,QAAU,EAAA,WAAA,EAAa,CAAA,CAE7C,OAAO,UAAY,EAAA,CAAC,QAAQ,GAAI,CAAA,UAAA,CAAW,UAAU,CAAA,CAErD,QAAS,CAAA,CAAC,GAAQ,KAAA;AACjB,EAAO,OAAA,CAAC,EAAE,IAAM,EAAA,MAAA,EAAQ,MAAM,GAAK,EAAA,KAAA,EAAO,QAAQ,CAAA;AACpD,CAAC,EAEA,KAAM,CAAA,CAAC,GAAQ,KAAA,eAAe,EAE9B,IAAK","file":"index.js","sourcesContent":["import { BlockModel, InferHrefType, InferOutputsType } from '@platforma-sdk/model';\n\nexport type BlockArgs = {\n titleArg: string;\n};\n\nexport const platforma = BlockModel.create('Heavy')\n\n .withArgs<BlockArgs>({ titleArg: 'The title' })\n\n .output('allSpecs', (ctx) => ctx.resultPool.getSpecs())\n\n .sections((ctx) => {\n return [{ type: 'link', href: '/', label: 'Main' }];\n })\n\n .title((ctx) => 'Pool explorer')\n\n .done();\n\nexport type BlockOutputs = InferOutputsType<typeof platforma>;\nexport type Href = InferHrefType<typeof platforma>;\n"]}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { BlockModel, InferHrefType, InferOutputsType } from '@platforma-sdk/model';\n\nexport type BlockArgs = {\n titleArg: string;\n};\n\nexport const platforma = BlockModel.create('Heavy')\n\n .withArgs<BlockArgs>({ titleArg: 'The title' })\n\n .output('allSpecs', (ctx) => ctx.resultPool.getSpecs())\n\n .sections((ctx) => {\n return [{ type: 'link', href: '/', label: 'Main' }];\n })\n\n .title((ctx) => 'Pool explorer')\n\n .done();\n\nexport type BlockOutputs = InferOutputsType<typeof platforma>;\nexport type Href = InferHrefType<typeof platforma>;\n"],"names":[],"mappings":";;MAMa,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO;AAE/C,KAAA,QAAQ,CAAY,EAAE,QAAQ,EAAE,WAAW,EAAE;AAE7C,KAAA,MAAM,CAAC,UAAU,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,UAAU,CAAC,QAAQ,EAAE;AAErD,KAAA,QAAQ,CAAC,CAAC,GAAG,KAAI;AAChB,IAAA,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AACrD,CAAC;AAEA,KAAA,KAAK,CAAC,CAAC,GAAG,KAAK,eAAe;AAE9B,KAAA,IAAI;;;;"}