@builder.io/sdk-react 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.
- package/dist/sdk/constants/sdk-version.d.ts +1 -1
- package/dist/sdk/constants/sdk-version.js +1 -1
- package/dist/sdk/functions/get-builder-search-params/index.d.ts +6 -0
- package/dist/sdk/functions/get-builder-search-params/index.js +6 -0
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.js +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.4.
|
|
1
|
+
export declare const SDK_VERSION = "0.4.1";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.4.
|
|
1
|
+
export 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;
|
|
@@ -8,6 +8,12 @@ export const convertSearchParamsToQueryObject = (searchParams) => {
|
|
|
8
8
|
});
|
|
9
9
|
return options;
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Receives a `URLSearchParams` object or a regular query object, and returns the subset of query params that are
|
|
13
|
+
* relevant to the Builder SDK.
|
|
14
|
+
*
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
11
17
|
export const getBuilderSearchParams = (_options) => {
|
|
12
18
|
if (!_options) {
|
|
13
19
|
return {};
|
package/dist/sdk/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';
|
package/dist/sdk/index.js
CHANGED
|
@@ -6,4 +6,5 @@ export { createRegisterComponentMessage } from './functions/register-component.j
|
|
|
6
6
|
export { register } from './functions/register.js';
|
|
7
7
|
export { setEditorSettings } from './functions/set-editor-settings.js';
|
|
8
8
|
export { getAllContent, getContent, processContentResult, } from './functions/get-content/index.js';
|
|
9
|
+
export { getBuilderSearchParams } from './functions/get-builder-search-params/index.js';
|
|
9
10
|
export { track } from './functions/track/index.js';
|