@girs/appstreamcompose-1.0 1.0.0-4.0.0-beta.3 → 1.0.0-4.0.0-beta.4

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.
@@ -266,6 +266,18 @@ export namespace AppStreamCompose {
266
266
  * @param enabled
267
267
  */
268
268
  function globals_set_use_optipng(enabled: boolean): void;
269
+ /**
270
+ * Converts the text representation to an enumerated value.
271
+ * @param state_str the string.
272
+ * @returns a #AscIconState
273
+ */
274
+ function icon_state_from_string(state_str: string): IconState;
275
+ /**
276
+ * Converts the enumerated value to an text representation.
277
+ * @param istate the #AscIconState.
278
+ * @returns string version of @istate
279
+ */
280
+ function icon_state_to_string(istate: IconState): string;
269
281
  function image_error_quark(): GLib.Quark;
270
282
  /**
271
283
  * Returns the image format type based on the given file's filename.
@@ -310,6 +322,7 @@ export namespace AppStreamCompose {
310
322
  PROPAGATE_CUSTOM,
311
323
  PROPAGATE_ARTIFACTS,
312
324
  NO_FINAL_CHECK,
325
+ NO_PARTIAL_URLS,
313
326
  }
314
327
  /**
315
328
  * The flags used for loading images.
@@ -496,7 +509,7 @@ export namespace AppStreamCompose {
496
509
  get_max_screenshot_size(): number;
497
510
  /**
498
511
  * Get the media base URL to be used for the generated data,
499
- * or %NULL if this feature is not used.
512
+ * or %NULL if no media is cached.
500
513
  */
501
514
  get_media_baseurl(): string;
502
515
  /**
@@ -608,7 +621,8 @@ export namespace AppStreamCompose {
608
621
  */
609
622
  set_max_screenshot_size(size_bytes: number): void;
610
623
  /**
611
- * Set the media base URL for the generated metadata. Can be %NULL.
624
+ * Set the media base URL for the generated metadata. Can be %NULL if no media
625
+ * should be cached and the original URLs should be kept.
612
626
  * @param url the media base URL.
613
627
  */
614
628
  set_media_baseurl(url?: string | null): void;
@@ -757,6 +771,11 @@ export namespace AppStreamCompose {
757
771
 
758
772
  // Own methods of AppStreamCompose.IconPolicy
759
773
 
774
+ /**
775
+ * Loads the icon policy from a textual representation.
776
+ * @param serialized_policy A policy string as returned by %asc_icon_policy_to_string
777
+ */
778
+ from_string(serialized_policy: string): boolean;
760
779
  /**
761
780
  * Sets a designated state for an icon of the given size.
762
781
  * @param icon_size the size of the icon to set policy for (e.g. 64 for 64x64px icons)
@@ -764,6 +783,11 @@ export namespace AppStreamCompose {
764
783
  * @param state the designated #AscIconState
765
784
  */
766
785
  set_policy(icon_size: number, icon_scale: number, state: IconState): void;
786
+ /**
787
+ * Converts the current icon policy into a textual representation.
788
+ * @returns The icon policy serialized into a string. Free with g_free()
789
+ */
790
+ to_string(): string;
767
791
  }
768
792
 
769
793
  module Image {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/appstreamcompose-1.0",
3
- "version": "1.0.0-4.0.0-beta.3",
3
+ "version": "1.0.0-4.0.0-beta.4",
4
4
  "description": "GJS TypeScript type definitions for AppStreamCompose-1.0, generated from library version 1.0.0",
5
5
  "type": "module",
6
6
  "module": "appstreamcompose-1.0.js",
@@ -26,13 +26,13 @@
26
26
  "test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit appstreamcompose-1.0.d.ts"
27
27
  },
28
28
  "dependencies": {
29
- "@girs/appstream-1.0": "^0.16.1-4.0.0-beta.3",
30
- "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.3",
31
- "@girs/gio-2.0": "^2.80.0-4.0.0-beta.3",
32
- "@girs/gjs": "^4.0.0-beta.3",
33
- "@girs/glib-2.0": "^2.80.0-4.0.0-beta.3",
34
- "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.3",
35
- "@girs/gobject-2.0": "^2.80.0-4.0.0-beta.3"
29
+ "@girs/appstream-1.0": "^1.0.0-4.0.0-beta.4",
30
+ "@girs/gdkpixbuf-2.0": "^2.0.0-4.0.0-beta.4",
31
+ "@girs/gio-2.0": "^2.80.0-4.0.0-beta.4",
32
+ "@girs/gjs": "^4.0.0-beta.4",
33
+ "@girs/glib-2.0": "^2.80.0-4.0.0-beta.4",
34
+ "@girs/gmodule-2.0": "^2.0.0-4.0.0-beta.4",
35
+ "@girs/gobject-2.0": "^2.80.0-4.0.0-beta.4"
36
36
  },
37
37
  "devDependencies": {
38
38
  "typescript": "*"