slint-ui 1.1.0 → 1.2.0

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
@@ -1,8 +1,10 @@
1
+ <!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial -->
2
+
1
3
  # Slint License
2
4
 
3
5
  You can use Slint under ***any*** of the following licenses, at your choice:
4
6
 
5
- 1. [Royalty-free license](LICENSES/LicenseRef-Slint-Royalty-free-1.0.md),
7
+ 1. [Royalty-free license](LICENSES/LicenseRef-Slint-Royalty-free-1.1.md),
6
8
  2. [GNU GPLv3](LICENSES/GPL-3.0-only.txt),
7
9
  3. [Paid license](https://slint.dev/pricing.html).
8
10
 
@@ -0,0 +1,121 @@
1
+ Creative Commons Legal Code
2
+
3
+ CC0 1.0 Universal
4
+
5
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12
+ HEREUNDER.
13
+
14
+ Statement of Purpose
15
+
16
+ The laws of most jurisdictions throughout the world automatically confer
17
+ exclusive Copyright and Related Rights (defined below) upon the creator
18
+ and subsequent owner(s) (each and all, an "owner") of an original work of
19
+ authorship and/or a database (each, a "Work").
20
+
21
+ Certain owners wish to permanently relinquish those rights to a Work for
22
+ the purpose of contributing to a commons of creative, cultural and
23
+ scientific works ("Commons") that the public can reliably and without fear
24
+ of later claims of infringement build upon, modify, incorporate in other
25
+ works, reuse and redistribute as freely as possible in any form whatsoever
26
+ and for any purposes, including without limitation commercial purposes.
27
+ These owners may contribute to the Commons to promote the ideal of a free
28
+ culture and the further production of creative, cultural and scientific
29
+ works, or to gain reputation or greater distribution for their Work in
30
+ part through the use and efforts of others.
31
+
32
+ For these and/or other purposes and motivations, and without any
33
+ expectation of additional consideration or compensation, the person
34
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35
+ is an owner of Copyright and Related Rights in the Work, voluntarily
36
+ elects to apply CC0 to the Work and publicly distribute the Work under its
37
+ terms, with knowledge of his or her Copyright and Related Rights in the
38
+ Work and the meaning and intended legal effect of CC0 on those rights.
39
+
40
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
41
+ protected by copyright and related or neighboring rights ("Copyright and
42
+ Related Rights"). Copyright and Related Rights include, but are not
43
+ limited to, the following:
44
+
45
+ i. the right to reproduce, adapt, distribute, perform, display,
46
+ communicate, and translate a Work;
47
+ ii. moral rights retained by the original author(s) and/or performer(s);
48
+ iii. publicity and privacy rights pertaining to a person's image or
49
+ likeness depicted in a Work;
50
+ iv. rights protecting against unfair competition in regards to a Work,
51
+ subject to the limitations in paragraph 4(a), below;
52
+ v. rights protecting the extraction, dissemination, use and reuse of data
53
+ in a Work;
54
+ vi. database rights (such as those arising under Directive 96/9/EC of the
55
+ European Parliament and of the Council of 11 March 1996 on the legal
56
+ protection of databases, and under any national implementation
57
+ thereof, including any amended or successor version of such
58
+ directive); and
59
+ vii. other similar, equivalent or corresponding rights throughout the
60
+ world based on applicable law or treaty, and any national
61
+ implementations thereof.
62
+
63
+ 2. Waiver. To the greatest extent permitted by, but not in contravention
64
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
65
+ irrevocably and unconditionally waives, abandons, and surrenders all of
66
+ Affirmer's Copyright and Related Rights and associated claims and causes
67
+ of action, whether now known or unknown (including existing as well as
68
+ future claims and causes of action), in the Work (i) in all territories
69
+ worldwide, (ii) for the maximum duration provided by applicable law or
70
+ treaty (including future time extensions), (iii) in any current or future
71
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
72
+ including without limitation commercial, advertising or promotional
73
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74
+ member of the public at large and to the detriment of Affirmer's heirs and
75
+ successors, fully intending that such Waiver shall not be subject to
76
+ revocation, rescission, cancellation, termination, or any other legal or
77
+ equitable action to disrupt the quiet enjoyment of the Work by the public
78
+ as contemplated by Affirmer's express Statement of Purpose.
79
+
80
+ 3. Public License Fallback. Should any part of the Waiver for any reason
81
+ be judged legally invalid or ineffective under applicable law, then the
82
+ Waiver shall be preserved to the maximum extent permitted taking into
83
+ account Affirmer's express Statement of Purpose. In addition, to the
84
+ extent the Waiver is so judged Affirmer hereby grants to each affected
85
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
86
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
87
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
88
+ maximum duration provided by applicable law or treaty (including future
89
+ time extensions), (iii) in any current or future medium and for any number
90
+ of copies, and (iv) for any purpose whatsoever, including without
91
+ limitation commercial, advertising or promotional purposes (the
92
+ "License"). The License shall be deemed effective as of the date CC0 was
93
+ applied by Affirmer to the Work. Should any part of the License for any
94
+ reason be judged legally invalid or ineffective under applicable law, such
95
+ partial invalidity or ineffectiveness shall not invalidate the remainder
96
+ of the License, and in such case Affirmer hereby affirms that he or she
97
+ will not (i) exercise any of his or her remaining Copyright and Related
98
+ Rights in the Work or (ii) assert any associated claims and causes of
99
+ action with respect to the Work, in either case contrary to Affirmer's
100
+ express Statement of Purpose.
101
+
102
+ 4. Limitations and Disclaimers.
103
+
104
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
105
+ surrendered, licensed or otherwise affected by this document.
106
+ b. Affirmer offers the Work as-is and makes no representations or
107
+ warranties of any kind concerning the Work, express, implied,
108
+ statutory or otherwise, including without limitation warranties of
109
+ title, merchantability, fitness for a particular purpose, non
110
+ infringement, or the absence of latent or other defects, accuracy, or
111
+ the present or absence of errors, whether or not discoverable, all to
112
+ the greatest extent permissible under applicable law.
113
+ c. Affirmer disclaims responsibility for clearing rights of other persons
114
+ that may apply to the Work or any use thereof, including without
115
+ limitation any person's Copyright and Related Rights in the Work.
116
+ Further, Affirmer disclaims responsibility for obtaining any necessary
117
+ consents, permissions or other rights required for any use of the
118
+ Work.
119
+ d. Affirmer understands and acknowledges that Creative Commons is not a
120
+ party to this document and has no duty or obligation with respect to
121
+ this CC0 or use of the Work.
@@ -1,4 +1,4 @@
1
- # Slint Royalty-free Desktop and Web Applications License, version 1.0
1
+ # Slint Royalty-free Desktop and Web Applications License, version 1.1
2
2
 
3
3
  ## Preamble
4
4
 
@@ -28,8 +28,6 @@ You may distribute the Software as part of an Application, modified or unmodifie
28
28
 
29
29
  (c) You may not remove or alter any license notices (including copyright notices, disclaimers of warranty, or limitations of liability) contained within the source code form of the Software.
30
30
 
31
- (d) You allow SixtyFPS to show your Application on <https://madewithslint.com> and in advertising materials of SixtyFPS as a reference and to display your logo and trademark for this purpose.
32
-
33
31
  ### 4. Warranty and Liability
34
32
 
35
33
  SixtyFPS is only liable for conflicting rights of third parties if SixtyFPS was aware of these rights without informing you. Unless required by applicable law or agreed to in writing, SixtyFPS provides the SOFTWARE on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.
@@ -49,10 +49,10 @@ The Licensed Software includes
49
49
  Licensed Software delivery as a convenience for development and testing
50
50
  only. You acknowledge:
51
51
 
52
- 1. that some Third-Party Libraries may require additional licensing of
52
+ (a) that some Third-Party Libraries may require additional licensing of
53
53
  copyright and/or patents from the owners of such, and
54
54
 
55
- 2. that distribution of any of the Licensed Software referencing any portion
55
+ (b) that distribution of any of the Licensed Software referencing any portion
56
56
  of a Third-Party Library may require appropriate licensing from such
57
57
  third parties. All such Third-Party Libraries, along with applicable
58
58
  copyright notices and licenses, will be listed and made available to
@@ -61,11 +61,11 @@ The Licensed Software includes
61
61
  3. As part of the license grant, a Slint Software License Certificate
62
62
  (**License Certificate**) will be issued containing details of
63
63
 
64
- 1. the license grant,
64
+ (a) the license grant,
65
65
 
66
- 2. the permitted scope of your use of the Licensed Software, and
66
+ (b) the permitted scope of your use of the Licensed Software, and
67
67
 
68
- 3. your contact details.
68
+ (c) your contact details.
69
69
 
70
70
  4. In case of any changes or deviations to the information noted in the License
71
71
  Certificate, you are obliged to notify us in writing, not later than 7 days
@@ -184,20 +184,20 @@ The Licensed Software includes
184
184
  Confidential Information shall remain the sole property of each respective
185
185
  Party. Information will not be considered as Confidential Information if
186
186
 
187
- 1. available to the public other than by a breach of this Agreement;
187
+ (a) available to the public other than by a breach of this Agreement;
188
188
 
189
- 2. rightfully received from a third Party not in breach of any obligation of
189
+ (b) rightfully received from a third Party not in breach of any obligation of
190
190
  confidentiality;
191
191
 
192
- 3. independently developed by a Party without access to Confidential
192
+ (c) independently developed by a Party without access to Confidential
193
193
  Information of the other Party;
194
194
 
195
- 4. known to the other Party at the time of disclosure;
195
+ (d) known to the other Party at the time of disclosure;
196
196
 
197
- 5. produced in compliance with applicable law or a court order, provided the
197
+ (e) produced in compliance with applicable law or a court order, provided the
198
198
  other Party is given notice and opportunity to intervene; or
199
199
 
200
- 6. it does not constitute a trade secret and more than five (5) years have
200
+ (f) it does not constitute a trade secret and more than five (5) years have
201
201
  elapsed from the date of disclosure. In addition to any other rights or
202
202
  remedies available, each Party shall be entitled to enforcement of such
203
203
  obligations by court injunction.
package/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ <!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial -->
1
2
  # Slint-node (Beta)
2
3
 
3
4
  [![npm](https://img.shields.io/npm/v/slint-ui)](https://www.npmjs.com/package/slint-ui)
package/cover.md CHANGED
@@ -1,3 +1,4 @@
1
+ <!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
1
2
  # Slint-node (Beta)
2
3
 
3
4
  [![npm](https://img.shields.io/npm/v/slint-ui)](https://www.npmjs.com/package/slint-ui)
package/lib/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // Copyright © SixtyFPS GmbH <info@slint.dev>
2
- // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
2
+ // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
3
3
 
4
4
  // Load the native library with `process.dlopen` instead of with `require`.
5
5
  // This is only done for autotest that do not require nom or neon_cli to
package/loader.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // Copyright © SixtyFPS GmbH <info@slint.dev>
2
- // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
2
+ // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
3
3
 
4
4
  import { URL, pathToFileURL } from 'url';
5
5
 
package/native/Cargo.toml CHANGED
@@ -1,15 +1,15 @@
1
1
  # Copyright © SixtyFPS GmbH <info@slint.dev>
2
- # SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
2
+ # SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
3
3
 
4
4
  [package]
5
5
  name = "slint-node"
6
- version = "1.1.0"
6
+ version = "1.2.0"
7
7
  authors = ["Slint Developers <info@slint.dev>"]
8
8
  edition = "2021"
9
9
  build = "build.rs"
10
10
  # This is not meant to be used as a library from crate.io
11
11
  publish = false
12
- license = "GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial"
12
+ license = "GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial"
13
13
  repository = "https://github.com/slint-ui/slint"
14
14
  homepage = "https://slint.dev"
15
15
 
@@ -20,9 +20,9 @@ crate-type = ["cdylib"]
20
20
  name = "slint_node_native"
21
21
 
22
22
  [dependencies]
23
- i-slint-compiler = { version = "=1.1.0"}
24
- i-slint-core = { version = "=1.1.0"}
25
- slint-interpreter = { version = "=1.1.0", features = ["display-diagnostics"] }
23
+ i-slint-compiler = { version = "=1.2.0"}
24
+ i-slint-core = { version = "=1.2.0"}
25
+ slint-interpreter = { version = "=1.2.0", features = ["display-diagnostics"] }
26
26
 
27
27
  vtable = { version = "0.1.6"}
28
28
 
package/native/build.rs CHANGED
@@ -1,5 +1,5 @@
1
1
  // Copyright © SixtyFPS GmbH <info@slint.dev>
2
- // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
2
+ // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
3
3
 
4
4
  fn main() {
5
5
  neon_build::setup();
@@ -1,5 +1,5 @@
1
1
  // Copyright © SixtyFPS GmbH <info@slint.dev>
2
- // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
2
+ // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
3
3
 
4
4
  use i_slint_compiler::langtype::Type;
5
5
  use i_slint_core::model::Model;
package/native/lib.rs CHANGED
@@ -1,5 +1,5 @@
1
1
  // Copyright © SixtyFPS GmbH <info@slint.dev>
2
- // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
2
+ // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
3
3
 
4
4
  use core::cell::RefCell;
5
5
  use i_slint_compiler::langtype::Type;
@@ -232,6 +232,7 @@ fn to_eval_value<'cx>(
232
232
  | Type::Function { .. }
233
233
  | Type::Model
234
234
  | Type::Callback { .. }
235
+ | Type::ComponentFactory { .. }
235
236
  | Type::Easing
236
237
  | Type::PathData
237
238
  | Type::LayoutCache
@@ -491,9 +492,7 @@ declare_types! {
491
492
  let this = cx.this();
492
493
  let window = cx.borrow(&this, |x| x.0.as_ref().cloned());
493
494
  let window_adapter = window.ok_or(()).or_else(|()| cx.throw_error("Invalid type"))?;
494
- if let Some(window_adapter) = window_adapter.internal(i_slint_core::InternalToken) {
495
- window_adapter.show().unwrap();
496
- }
495
+ window_adapter.window().show().unwrap();
497
496
  Ok(JsUndefined::new().as_value(&mut cx))
498
497
  }
499
498
 
@@ -501,9 +500,7 @@ declare_types! {
501
500
  let this = cx.this();
502
501
  let window = cx.borrow(&this, |x| x.0.as_ref().cloned());
503
502
  let window_adapter = window.ok_or(()).or_else(|()| cx.throw_error("Invalid type"))?;
504
- if let Some(window_adapter) = window_adapter.internal(i_slint_core::InternalToken) {
505
- window_adapter.hide().unwrap();
506
- }
503
+ window_adapter.window().hide().unwrap();
507
504
  Ok(JsUndefined::new().as_value(&mut cx))
508
505
  }
509
506
 
@@ -1,5 +1,5 @@
1
1
  // Copyright © SixtyFPS GmbH <info@slint.dev>
2
- // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
2
+ // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
3
3
 
4
4
  /*!
5
5
  Since neon does not allow to have a persistent handle, use this hack.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slint-ui",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "homepage": "https://github.com/slint-ui/slint",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "repository": {