@builder.io/sdk-qwik 0.0.25 → 0.0.26

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.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -35,11 +35,12 @@ import { useLocation } from "@builder.io/qwik-city";
35
35
  import { getContent, RenderContent, getBuilderSearchParams } from "@builder.io/sdk-qwik";
36
36
 
37
37
  export const BUILDER_PUBLIC_API_KEY = "YOUR_API_KEY_GOES_HERE"; // ggignore
38
+ export const BUILDER_MODEL = "page";
38
39
  export default component$(() => {
39
40
  const location = useLocation();
40
41
  const builderContentRsrc = useResource$<any>(() => {
41
42
  return getContent({
42
- model: "page",
43
+ model: BUILDER_MODEL,
43
44
  apiKey: BUILDER_PUBLIC_API_KEY,
44
45
  options: getBuilderSearchParams(location.query),
45
46
  userAttributes: {
@@ -50,11 +51,11 @@ export default component$(() => {
50
51
 
51
52
  return (
52
53
  <Resource
53
- resource={builderContentRsrc}
54
+ value={builderContentRsrc}
54
55
  onPending={() => <div>Loading...</div>}
55
56
  onResolved={(content) => (
56
57
  <RenderContent
57
- model="page"
58
+ model={BUILDER_MODEL}
58
59
  content={content}
59
60
  apiKey={BUILDER_PUBLIC_API_KEY}
60
61
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "Builder.io Qwik SDK",
5
5
  "type": "module",
6
6
  "main": "./lib/index.qwik.cjs",