@sealpixel/element 1.0.0-rc.1 → 1.0.0-rc.10

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/LICENSE.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  **Licensor:** nine feet UG (haftungsbeschränkt), Germany (https://9feet.io)
6
6
 
7
- **Licensed Work:** Sealpixel, in every version the Licensor publishes: the source code, the npm packages under the `@sealpixel` scope and `create-sealpixel-plugin`, the Rust crates, the WebAssembly binaries, the documentation and the example projects. The Licensed Work is (c) 2026 nine feet UG (haftungsbeschränkt).
7
+ **Licensed Work:** Sealpixel, in every version the Licensor publishes: the source code, the npm packages under the `@sealpixel` scope and the unscoped `sealpixel` package, the Rust crates, the WebAssembly binaries, the documentation and the example projects. The Licensed Work is (c) 2026 nine feet UG (haftungsbeschränkt).
8
8
 
9
9
  **Additional Use Grant:** You may make production use of the Licensed Work if you are a Small User. You are a Small User if you are a natural person acting for yourself, or if the organization you act for had less than EUR 1,000,000 of gross revenue in its most recent completed financial year. Revenue is counted across the whole group: the organization, everything that controls it, everything it controls, and everything under common control with it. Where the work is done for a client, the client's revenue decides.
10
10
 
@@ -16,7 +16,7 @@ This Additional Use Grant does not permit offering the Licensed Work, or a work
16
16
 
17
17
  For information about alternative licensing arrangements for the Licensed Work, please visit: https://sealpixel.dev/pricing
18
18
 
19
- Organizations, and anyone who develops with the Licensed Work for an organization, obtain the commercial license this License refers to as developer seats under the Sealpixel Developer Seat License (`LICENSE-COMMERCIAL.md`).
19
+ Organizations, and anyone who develops with the Licensed Work for an organization, obtain the commercial license this License refers to as developer seats under the Sealpixel Developer Seat License, published at https://sealpixel.dev/license#seats and as `LICENSE-COMMERCIAL.md` in the source repository.
20
20
 
21
21
  ## Notice
22
22
 
package/dist/index.d.ts CHANGED
@@ -10,10 +10,11 @@ import '@sealpixel/ui/define';
10
10
  export * from '@sealpixel/ui';
11
11
  export { allPlugins, defaultPlugins };
12
12
  /**
13
- * Starts the bundled worker when the plugin list is the default one, with or
14
- * without options; options never reach the renderer. A custom
15
- * plugin list needs a custom worker (see `startSealpixelWorker`), so it falls
16
- * back to rendering inline.
13
+ * Starts the bundled worker when the plugin list renders like the default one,
14
+ * with or without options; options never reach the renderer, and neither does
15
+ * a plugin without operations (`assist`), so those are ignored in the
16
+ * comparison. A custom plugin list needs a custom worker (see
17
+ * `startSealpixelWorker`), so it falls back to rendering inline.
17
18
  */
18
19
  export declare function createDefaultRenderer(plugins?: readonly AnyPlugin[]): Renderer;
19
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,SAAS,EAAkB,KAAK,QAAQ,EAAkB,MAAM,iBAAiB,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,sBAAsB,CAAC;AAE9B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC;AAEtC;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,GAAE,SAAS,SAAS,EAAmB,GAAG,QAAQ,CAe9F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,SAAS,EAAkB,KAAK,QAAQ,EAAkB,MAAM,iBAAiB,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,cAAc,EAAoB,MAAM,oBAAoB,CAAC;AAElF,OAAO,sBAAsB,CAAC;AAE9B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC;AAEtC;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,GAAE,SAAS,SAAS,EAAmB,GAAG,QAAQ,CAe9F"}
package/dist/index.js CHANGED
@@ -5,20 +5,23 @@
5
5
  * webpack 5, esbuild with the worker plugin, Parcel) emit the worker chunk.
6
6
  */
7
7
  import { InlineRenderer, WorkerRenderer } from '@sealpixel/core';
8
- import { allPlugins, defaultPlugins } from '@sealpixel/plugins';
8
+ import { allPlugins, defaultPlugins, renderingPlugins } from '@sealpixel/plugins';
9
9
  import { SealpixelEditor } from '@sealpixel/ui';
10
10
  import '@sealpixel/ui/define';
11
11
  export * from '@sealpixel/ui';
12
12
  export { allPlugins, defaultPlugins };
13
13
  /**
14
- * Starts the bundled worker when the plugin list is the default one, with or
15
- * without options; options never reach the renderer. A custom
16
- * plugin list needs a custom worker (see `startSealpixelWorker`), so it falls
17
- * back to rendering inline.
14
+ * Starts the bundled worker when the plugin list renders like the default one,
15
+ * with or without options; options never reach the renderer, and neither does
16
+ * a plugin without operations (`assist`), so those are ignored in the
17
+ * comparison. A custom plugin list needs a custom worker (see
18
+ * `startSealpixelWorker`), so it falls back to rendering inline.
18
19
  */
19
20
  export function createDefaultRenderer(plugins = defaultPlugins) {
20
- const sameAsDefault = plugins.length === defaultPlugins.length &&
21
- plugins.every((p, i) => p.id === defaultPlugins[i]?.id && p.version === defaultPlugins[i]?.version);
21
+ const wanted = renderingPlugins(plugins);
22
+ const bundled = renderingPlugins(defaultPlugins);
23
+ const sameAsDefault = wanted.length === bundled.length &&
24
+ wanted.every((p, i) => p.id === bundled[i]?.id && p.version === bundled[i]?.version);
22
25
  if (sameAsDefault && typeof Worker !== 'undefined') {
23
26
  try {
24
27
  const worker = new Worker(new URL('./worker.js', import.meta.url), { type: 'module' });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAkB,cAAc,EAAiB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC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
  "description": "Drop-in <sealpixel-editor> with all first-party plugins and a bundled render worker. Import once, use the tag.",
5
5
  "license": "BUSL-1.1",
6
6
  "repository": {
@@ -28,15 +28,15 @@
28
28
  "./package.json": "./package.json"
29
29
  },
30
30
  "dependencies": {
31
- "@sealpixel/plugins": "1.0.0-rc.1",
32
- "@sealpixel/ui": "1.0.0-rc.1",
33
- "@sealpixel/wasm": "1.0.0-rc.1",
34
- "@sealpixel/core": "1.0.0-rc.1"
31
+ "@sealpixel/core": "1.0.0-rc.10",
32
+ "@sealpixel/plugins": "1.0.0-rc.10",
33
+ "@sealpixel/ui": "1.0.0-rc.10",
34
+ "@sealpixel/wasm": "1.0.0-rc.10"
35
35
  },
36
36
  "devDependencies": {
37
+ "@sealpixel/config": "0.0.0",
37
38
  "@types/node": "^24.0.0",
38
- "typescript": "^5.9.0",
39
- "@sealpixel/config": "0.0.0"
39
+ "typescript": "^6.0.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsc -p tsconfig.build.json",