@simple-builder/react 1.3.3 → 1.3.6

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 (39) hide show
  1. package/dist/build-container-client-5QC5KVS3.mjs +3 -0
  2. package/dist/build-container-client-7Z6WZVBX.js +3 -0
  3. package/dist/build-container-client-DWKVE65B.mjs +3 -0
  4. package/dist/build-container-client-FN3PZMM7.mjs +3 -0
  5. package/dist/build-container-client-FVDRMOZ7.mjs +2254 -0
  6. package/dist/build-container-client-GV52F5RP.js +3 -0
  7. package/dist/build-container-client-J56NWFBF.mjs +3 -0
  8. package/dist/build-container-client-L3WD4CG7.mjs +3 -0
  9. package/dist/build-container-client-NXIMV3RF.js +3 -0
  10. package/dist/build-container-client-RSJ4H3SB.js +2289 -0
  11. package/dist/build-container-client-THZHNQ5S.mjs +3 -0
  12. package/dist/build-container-client-WHIUDBOZ.mjs +3 -0
  13. package/dist/build-container-client-WN35X6JD.js +2290 -0
  14. package/dist/build-container-client-WYIHRPSW.js +3 -0
  15. package/dist/build-container-client-XAQDWWKB.mjs +2253 -0
  16. package/dist/build-container-client-XOHYMPBB.js +3 -0
  17. package/dist/build-container-client-YDRPPWCU.js +3 -0
  18. package/dist/build-container-client-ZXO66OL5.js +3 -0
  19. package/dist/builder-content-3HENFCB5.js +42 -0
  20. package/dist/builder-content-4ZNXUE7D.mjs +20 -0
  21. package/dist/builder-content-6PIBXDPE.mjs +20 -0
  22. package/dist/builder-content-GBSIY2Z7.js +42 -0
  23. package/dist/chunk-5OV6KPTF.mjs +244 -0
  24. package/dist/chunk-6GCUWI4L.mjs +135 -0
  25. package/dist/chunk-7X5S5JRE.js +42 -0
  26. package/dist/chunk-F5JWY4CM.mjs +20 -0
  27. package/dist/chunk-LEIASP7E.js +153 -0
  28. package/dist/chunk-NUDE6YTK.js +165 -0
  29. package/dist/chunk-NZ4ZQMIS.js +42 -0
  30. package/dist/chunk-RGBUK5SR.js +269 -0
  31. package/dist/chunk-RNGHWAPZ.js +269 -0
  32. package/dist/chunk-TQQ4WVQU.mjs +123 -0
  33. package/dist/chunk-X5GVLHI2.mjs +20 -0
  34. package/dist/chunk-XLE7GSYM.mjs +244 -0
  35. package/dist/index.d.mts +12 -6
  36. package/dist/index.d.ts +12 -6
  37. package/dist/index.js +6 -6
  38. package/dist/index.mjs +2 -2
  39. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { createElement } from 'react';
2
3
  import * as _simple_builder_server from '@simple-builder/server';
3
4
  import { BuilderContent as BuilderContent$1, ContentItem } from '@simple-builder/server';
4
5
 
@@ -36,12 +37,17 @@ type BuildContainerProps$1 = {
36
37
  };
37
38
  };
38
39
 
39
- declare const builder: {
40
- register: (component: any, config: Omit<Component, "component">) => void;
41
- getComponents: () => Component[];
42
- getComponent: (name: string) => Component | undefined;
43
- bindComponent: ({ content, ...block }: ContentItem, edit?: boolean) => React.FunctionComponentElement<any>;
44
- };
40
+ declare class Builder {
41
+ private static instance;
42
+ private components;
43
+ private constructor();
44
+ static getInstance(): Builder;
45
+ register(component: Component["component"], config: Omit<Component, "component">): void;
46
+ getComponents(): Component[];
47
+ getComponent(name: string): Component | undefined;
48
+ bindComponent({ content, ...block }: ContentItem, edit?: boolean): ReturnType<typeof createElement>;
49
+ }
50
+ declare const builder: Builder;
45
51
 
46
52
  type StaticContentProps = {
47
53
  content?: BuilderContent$1;
package/dist/index.js CHANGED
@@ -1,23 +1,23 @@
1
1
  'use strict';
2
2
 
3
- var chunkCJNSRJNF_js = require('./chunk-CJNSRJNF.js');
4
- var chunkTMDKQB2L_js = require('./chunk-TMDKQB2L.js');
3
+ var chunkNZ4ZQMIS_js = require('./chunk-NZ4ZQMIS.js');
4
+ var chunkNUDE6YTK_js = require('./chunk-NUDE6YTK.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "BuilderContent", {
9
9
  enumerable: true,
10
- get: function () { return chunkCJNSRJNF_js.BuilderContent; }
10
+ get: function () { return chunkNZ4ZQMIS_js.BuilderContent; }
11
11
  });
12
12
  Object.defineProperty(exports, "StaticContent", {
13
13
  enumerable: true,
14
- get: function () { return chunkCJNSRJNF_js.StaticContent; }
14
+ get: function () { return chunkNZ4ZQMIS_js.StaticContent; }
15
15
  });
16
16
  Object.defineProperty(exports, "BuildContainer", {
17
17
  enumerable: true,
18
- get: function () { return chunkTMDKQB2L_js.BuildContainer; }
18
+ get: function () { return chunkNUDE6YTK_js.BuildContainer; }
19
19
  });
20
20
  Object.defineProperty(exports, "builder", {
21
21
  enumerable: true,
22
- get: function () { return chunkTMDKQB2L_js.builder; }
22
+ get: function () { return chunkNUDE6YTK_js.builder; }
23
23
  });
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export { BuilderContent, StaticContent } from './chunk-PADTJYXB.mjs';
2
- export { BuildContainer, builder } from './chunk-SLWJHIVH.mjs';
1
+ export { BuilderContent, StaticContent } from './chunk-F5JWY4CM.mjs';
2
+ export { BuildContainer, builder } from './chunk-6GCUWI4L.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-builder/react",
3
- "version": "1.3.3",
3
+ "version": "1.3.6",
4
4
  "private": false,
5
5
  "description": "React package for the simple builder package.",
6
6
  "repository": "https://github.com/pieter-berkel/simple-builder.git",
@@ -59,7 +59,7 @@
59
59
  "tailwind-merge": "^2.2.0",
60
60
  "tailwind-variants": "^0.1.20",
61
61
  "zod": "^3.22.4",
62
- "@simple-builder/server": "1.3.3"
62
+ "@simple-builder/server": "1.3.6"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "react": ">=16.8.0",