@flowgram.ai/select-box-plugin 0.2.15 → 0.2.17

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 +1 @@
1
- {"version":3,"sources":["../../src/create-select-box-plugin.ts"],"sourcesContent":["import {\n FlowSelectorBoundsLayer,\n FlowSelectorBoundsLayerOptions,\n FlowSelectorBoxLayer,\n FlowSelectorBoxOptions,\n type SelectorBoxPopoverProps,\n} from '@flowgram.ai/renderer';\nimport { definePluginCreator } from '@flowgram.ai/core';\n\n// import { SelectorBounds } from './selector-bounds';\n\nexport { type SelectorBoxPopoverProps };\nexport interface SelectBoxPluginOptions\n extends FlowSelectorBoundsLayerOptions,\n FlowSelectorBoxOptions {\n enable?: boolean;\n}\n\nexport const createSelectBoxPlugin = definePluginCreator<SelectBoxPluginOptions>({\n onInit(ctx, opts): void {\n // 默认可用,所以强制判断 false\n if (opts.enable !== false) {\n ctx.playground.registerLayer<FlowSelectorBoundsLayer>(FlowSelectorBoundsLayer, opts);\n ctx.playground.registerLayer<FlowSelectorBoxLayer>(FlowSelectorBoxLayer, {\n canSelect: opts.canSelect,\n });\n }\n },\n});\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EAEA;AAAA,OAGK;AACP,SAAS,2BAA2B;AAW7B,IAAM,wBAAwB,oBAA4C;AAAA,EAC/E,OAAO,KAAK,MAAY;AAEtB,QAAI,KAAK,WAAW,OAAO;AACzB,UAAI,WAAW,cAAuC,yBAAyB,IAAI;AACnF,UAAI,WAAW,cAAoC,sBAAsB;AAAA,QACvE,WAAW,KAAK;AAAA,MAClB,CAAC;AAAA,IACH;AAAA,EACF;AACF,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/create-select-box-plugin.ts"],"sourcesContent":["/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport {\n FlowSelectorBoundsLayer,\n FlowSelectorBoundsLayerOptions,\n FlowSelectorBoxLayer,\n FlowSelectorBoxOptions,\n type SelectorBoxPopoverProps,\n} from '@flowgram.ai/renderer';\nimport { definePluginCreator } from '@flowgram.ai/core';\n\n// import { SelectorBounds } from './selector-bounds';\n\nexport { type SelectorBoxPopoverProps };\nexport interface SelectBoxPluginOptions\n extends FlowSelectorBoundsLayerOptions,\n FlowSelectorBoxOptions {\n enable?: boolean;\n}\n\nexport const createSelectBoxPlugin = definePluginCreator<SelectBoxPluginOptions>({\n onInit(ctx, opts): void {\n // 默认可用,所以强制判断 false\n if (opts.enable !== false) {\n ctx.playground.registerLayer<FlowSelectorBoundsLayer>(FlowSelectorBoundsLayer, opts);\n ctx.playground.registerLayer<FlowSelectorBoxLayer>(FlowSelectorBoxLayer, {\n canSelect: opts.canSelect,\n });\n }\n },\n});\n"],"mappings":";AAKA;AAAA,EACE;AAAA,EAEA;AAAA,OAGK;AACP,SAAS,2BAA2B;AAW7B,IAAM,wBAAwB,oBAA4C;AAAA,EAC/E,OAAO,KAAK,MAAY;AAEtB,QAAI,KAAK,WAAW,OAAO;AACzB,UAAI,WAAW,cAAuC,yBAAyB,IAAI;AACnF,UAAI,WAAW,cAAoC,sBAAsB;AAAA,QACvE,WAAW,KAAK;AAAA,MAClB,CAAC;AAAA,IACH;AAAA,EACF;AACF,CAAC;","names":[]}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/create-select-box-plugin.ts"],"sourcesContent":["export * from './create-select-box-plugin';\n","import {\n FlowSelectorBoundsLayer,\n FlowSelectorBoundsLayerOptions,\n FlowSelectorBoxLayer,\n FlowSelectorBoxOptions,\n type SelectorBoxPopoverProps,\n} from '@flowgram.ai/renderer';\nimport { definePluginCreator } from '@flowgram.ai/core';\n\n// import { SelectorBounds } from './selector-bounds';\n\nexport { type SelectorBoxPopoverProps };\nexport interface SelectBoxPluginOptions\n extends FlowSelectorBoundsLayerOptions,\n FlowSelectorBoxOptions {\n enable?: boolean;\n}\n\nexport const createSelectBoxPlugin = definePluginCreator<SelectBoxPluginOptions>({\n onInit(ctx, opts): void {\n // 默认可用,所以强制判断 false\n if (opts.enable !== false) {\n ctx.playground.registerLayer<FlowSelectorBoundsLayer>(FlowSelectorBoundsLayer, opts);\n ctx.playground.registerLayer<FlowSelectorBoxLayer>(FlowSelectorBoxLayer, {\n canSelect: opts.canSelect,\n });\n }\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAMO;AACP,kBAAoC;AAW7B,IAAM,4BAAwB,iCAA4C;AAAA,EAC/E,OAAO,KAAK,MAAY;AAEtB,QAAI,KAAK,WAAW,OAAO;AACzB,UAAI,WAAW,cAAuC,yCAAyB,IAAI;AACnF,UAAI,WAAW,cAAoC,sCAAsB;AAAA,QACvE,WAAW,KAAK;AAAA,MAClB,CAAC;AAAA,IACH;AAAA,EACF;AACF,CAAC;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/create-select-box-plugin.ts"],"sourcesContent":["/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nexport * from './create-select-box-plugin';\n","/**\n * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates\n * SPDX-License-Identifier: MIT\n */\n\nimport {\n FlowSelectorBoundsLayer,\n FlowSelectorBoundsLayerOptions,\n FlowSelectorBoxLayer,\n FlowSelectorBoxOptions,\n type SelectorBoxPopoverProps,\n} from '@flowgram.ai/renderer';\nimport { definePluginCreator } from '@flowgram.ai/core';\n\n// import { SelectorBounds } from './selector-bounds';\n\nexport { type SelectorBoxPopoverProps };\nexport interface SelectBoxPluginOptions\n extends FlowSelectorBoundsLayerOptions,\n FlowSelectorBoxOptions {\n enable?: boolean;\n}\n\nexport const createSelectBoxPlugin = definePluginCreator<SelectBoxPluginOptions>({\n onInit(ctx, opts): void {\n // 默认可用,所以强制判断 false\n if (opts.enable !== false) {\n ctx.playground.registerLayer<FlowSelectorBoundsLayer>(FlowSelectorBoundsLayer, opts);\n ctx.playground.registerLayer<FlowSelectorBoxLayer>(FlowSelectorBoxLayer, {\n canSelect: opts.canSelect,\n });\n }\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKA,sBAMO;AACP,kBAAoC;AAW7B,IAAM,4BAAwB,iCAA4C;AAAA,EAC/E,OAAO,KAAK,MAAY;AAEtB,QAAI,KAAK,WAAW,OAAO;AACzB,UAAI,WAAW,cAAuC,yCAAyB,IAAI;AACnF,UAAI,WAAW,cAAoC,sCAAsB;AAAA,QACvE,WAAW,KAAK;AAAA,MAClB,CAAC;AAAA,IACH;AAAA,EACF;AACF,CAAC;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowgram.ai/select-box-plugin",
3
- "version": "0.2.15",
3
+ "version": "0.2.17",
4
4
  "homepage": "https://flowgram.ai/",
5
5
  "repository": "https://github.com/bytedance/flowgram.ai",
6
6
  "license": "MIT",
@@ -18,8 +18,8 @@
18
18
  "dependencies": {
19
19
  "inversify": "^6.0.1",
20
20
  "reflect-metadata": "~0.2.2",
21
- "@flowgram.ai/core": "0.2.15",
22
- "@flowgram.ai/renderer": "0.2.15"
21
+ "@flowgram.ai/core": "0.2.17",
22
+ "@flowgram.ai/renderer": "0.2.17"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/react": "^18",
@@ -29,8 +29,8 @@
29
29
  "tsup": "^8.0.1",
30
30
  "typescript": "^5.0.4",
31
31
  "vitest": "^0.34.6",
32
- "@flowgram.ai/eslint-config": "0.2.15",
33
- "@flowgram.ai/ts-config": "0.2.15"
32
+ "@flowgram.ai/eslint-config": "0.2.17",
33
+ "@flowgram.ai/ts-config": "0.2.17"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react": ">=16.8",