@qr-platform/qr-code.js 0.10.3 → 0.10.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @qr-platform/qr-code-js
2
2
 
3
+ ## 0.10.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 1692491: Add metadata support (id, name, description) in QRCodeJs and QRCodeBuilder for enhanced configuration options
8
+
3
9
  ## 0.10.3
4
10
 
5
11
  ### Patch Changes
@@ -30,6 +30,12 @@ export declare class QRCodeJs {
30
30
  private static _selectedDataOverride;
31
31
  private static _selectedOptions;
32
32
  private static _selectedOptionsOverride;
33
+ private static _selectedInfo;
34
+ private static _selectedMetadata;
35
+ id?: string;
36
+ name?: string;
37
+ description?: string;
38
+ metadata?: Record<string, any>;
33
39
  private options;
34
40
  private container?;
35
41
  private qr?;
@@ -123,6 +129,17 @@ export declare class QRCodeJs {
123
129
  static setTextId(textId: string | null, overrideOpts?: MethodOverrideOptions): typeof QRCodeJs;
124
130
  static setSettings(settings: SettingsOptions | null): typeof QRCodeJs;
125
131
  getOptions(): Options;
132
+ getId(): string | undefined;
133
+ getName(): string | undefined;
134
+ getDescription(): string | undefined;
135
+ getMetadata(): Record<string, any> | undefined;
136
+ getSettings(): SettingsOptions & {
137
+ options: Options;
138
+ };
139
+ setId(id?: string): this;
140
+ setName(name?: string): this;
141
+ setDescription(description?: string): this;
142
+ setMetadata(metadata?: Record<string, any>): this;
126
143
  update(options?: RecursivePartial<Options>): Promise<void>;
127
144
  append(container?: HTMLElement): this;
128
145
  applyExtension(extension: ExtensionFunction): Promise<void>;
package/lib/index.d.ts CHANGED
@@ -142,6 +142,10 @@ export declare class QRCodeBuilder {
142
142
  protected _optionsOverride: boolean;
143
143
  protected _dataSource: string | null;
144
144
  protected _dataOverride: boolean;
145
+ protected _idSource: string | null;
146
+ protected _nameSource: string | null;
147
+ protected _descriptionSource: string | null;
148
+ protected _metadataSource: Record<string, any> | null;
145
149
  protected _initialOptions: RecursivePartial<Options> | null;
146
150
  constructor(qrCodeConstructor: QRCodeJsConstructor, templateNameOrOptions?: string | RecursivePartial<Options>);
147
151
  useTemplate(templateName: string): this;
@@ -155,6 +159,10 @@ export declare class QRCodeBuilder {
155
159
  useText(textNameOrOptions: string | TextOptions, overrideOpts?: MethodOverrideOptions): this;
156
160
  useTextId(textId: string, overrideOpts?: MethodOverrideOptions): this;
157
161
  useOptions(options: RecursivePartial<Options>, overrideOpts?: MethodOverrideOptions): this;
162
+ useId(id: string): this;
163
+ useName(name: string): this;
164
+ useDescription(description: string): this;
165
+ useMetadata(metadata: Record<string, any>): this;
158
166
  useSettings(settings: SettingsOptions): this;
159
167
  private _resolveAndMergeConfig;
160
168
  options(options: RecursivePartial<Options>): QRCodeJs;