@builder.io/sdk-qwik 0.4.0 → 0.4.1

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.
@@ -2671,7 +2671,7 @@ const getInteractionPropertiesForEvent = (event) => {
2671
2671
  }
2672
2672
  };
2673
2673
  };
2674
- const SDK_VERSION = "0.4.0";
2674
+ const SDK_VERSION = "0.4.1";
2675
2675
  const registry = {};
2676
2676
  function register(type, info) {
2677
2677
  let typeList = registry[type];
@@ -3655,6 +3655,7 @@ exports.Text = Text;
3655
3655
  exports.Video = Video;
3656
3656
  exports.createRegisterComponentMessage = createRegisterComponentMessage;
3657
3657
  exports.getAllContent = getAllContent;
3658
+ exports.getBuilderSearchParams = getBuilderSearchParams;
3658
3659
  exports.getContent = getContent;
3659
3660
  exports.isEditing = isEditing;
3660
3661
  exports.isPreviewing = isPreviewing;
@@ -2669,7 +2669,7 @@ const getInteractionPropertiesForEvent = (event) => {
2669
2669
  }
2670
2670
  };
2671
2671
  };
2672
- const SDK_VERSION = "0.4.0";
2672
+ const SDK_VERSION = "0.4.1";
2673
2673
  const registry = {};
2674
2674
  function register(type, info) {
2675
2675
  let typeList = registry[type];
@@ -3654,6 +3654,7 @@ export {
3654
3654
  Video,
3655
3655
  createRegisterComponentMessage,
3656
3656
  getAllContent,
3657
+ getBuilderSearchParams,
3657
3658
  getContent,
3658
3659
  isEditing,
3659
3660
  isPreviewing,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Builder.io Qwik SDK",
5
5
  "type": "module",
6
6
  "main": "./lib/index.qwik.cjs",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.4.0";
1
+ export declare const SDK_VERSION = "0.4.1";
@@ -1,5 +1,11 @@
1
1
  type QueryObject = Record<string, string | string[]>;
2
2
  export declare const convertSearchParamsToQueryObject: (searchParams: URLSearchParams) => QueryObject;
3
+ /**
4
+ * Receives a `URLSearchParams` object or a regular query object, and returns the subset of query params that are
5
+ * relevant to the Builder SDK.
6
+ *
7
+ * @returns
8
+ */
3
9
  export declare const getBuilderSearchParams: (_options: QueryObject | URLSearchParams | undefined) => QueryObject;
4
10
  export declare const getBuilderSearchParamsFromWindow: () => QueryObject;
5
11
  export declare const normalizeSearchParams: (searchParams: QueryObject | URLSearchParams) => QueryObject;
package/types/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export type { InsertMenuConfig, InsertMenuItem } from './functions/register.js';
8
8
  export { setEditorSettings } from './functions/set-editor-settings.js';
9
9
  export type { Settings } from './functions/set-editor-settings.js';
10
10
  export { getAllContent, getContent, processContentResult, } from './functions/get-content/index.js';
11
+ export { getBuilderSearchParams } from './functions/get-builder-search-params/index.js';
11
12
  export { track } from './functions/track/index.js';
12
13
  export type { RegisteredComponent } from './context/types';
13
14
  export type { ComponentInfo } from './types/components';