@drawnagency/primitives 0.1.60 → 0.1.61
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/chunk-4OX3Z7SB.js +1421 -0
- package/dist/{chunk-RFZNNCAS.js → chunk-53DKVAB6.js} +1 -61
- package/dist/chunk-677NTHAZ.js +27 -0
- package/dist/chunk-7EOSDFS3.js +10 -0
- package/dist/{chunk-Q5EEYBMJ.js → chunk-AM5LZD6Q.js} +0 -25
- package/dist/chunk-UQ4OYRW7.js +670 -0
- package/dist/chunk-WDSVHKAH.js +54 -0
- package/dist/chunk-WLMJCNU7.js +70 -0
- package/dist/components/editor/index.js +640 -0
- package/dist/components/primitives/index.d.ts +10 -0
- package/dist/components/primitives/index.d.ts.map +1 -0
- package/dist/components/primitives/index.js +166 -0
- package/dist/components/sections/register-schemas.js +350 -2416
- package/dist/index.js +20 -14
- package/dist/lib/index.js +14 -8
- package/dist/schemas/index.js +6 -6
- package/dist/schemas/link.js +13 -0
- package/package.json +9 -1
- package/src/components/primitives/index.ts +11 -0
- /package/dist/{chunk-ZU2MKPTG.js → chunk-3DCG4DNU.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -33,42 +33,48 @@ import {
|
|
|
33
33
|
MediaGridOptionsSchema,
|
|
34
34
|
slugifyAudienceName
|
|
35
35
|
} from "./chunk-ODCJQOVO.js";
|
|
36
|
-
import {
|
|
37
|
-
DEFAULT_LINK,
|
|
38
|
-
LinkTargetSchema,
|
|
39
|
-
LinkValueSchema,
|
|
40
|
-
isSafeHref
|
|
41
|
-
} from "./chunk-ZU2MKPTG.js";
|
|
42
36
|
import {
|
|
43
37
|
AudienceSchema,
|
|
44
38
|
RoleSchema,
|
|
45
39
|
SessionSchema,
|
|
46
40
|
SiteUserSchema
|
|
47
41
|
} from "./chunk-LZKVV4K2.js";
|
|
42
|
+
import {
|
|
43
|
+
DEFAULT_LINK,
|
|
44
|
+
LinkTargetSchema,
|
|
45
|
+
LinkValueSchema,
|
|
46
|
+
isSafeHref
|
|
47
|
+
} from "./chunk-3DCG4DNU.js";
|
|
48
48
|
import {
|
|
49
49
|
buildGoogleFontsUrl,
|
|
50
|
-
createEvent,
|
|
51
|
-
darkModeEvent,
|
|
52
50
|
deriveContrast,
|
|
53
|
-
editModeEvent,
|
|
54
51
|
formatTimestamp,
|
|
55
52
|
gridColsClass,
|
|
56
53
|
loadSiteContent,
|
|
57
54
|
loadStaticSiteContent,
|
|
58
55
|
mergeSiteContent,
|
|
59
|
-
navChangeEvent,
|
|
60
56
|
safeRedirect
|
|
61
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-AM5LZD6Q.js";
|
|
62
58
|
import "./chunk-TG43X7JO.js";
|
|
63
59
|
import {
|
|
64
|
-
cn,
|
|
65
60
|
curatedIcons,
|
|
61
|
+
getIcon
|
|
62
|
+
} from "./chunk-WDSVHKAH.js";
|
|
63
|
+
import {
|
|
64
|
+
createEvent,
|
|
65
|
+
darkModeEvent,
|
|
66
|
+
editModeEvent,
|
|
67
|
+
navChangeEvent
|
|
68
|
+
} from "./chunk-677NTHAZ.js";
|
|
69
|
+
import {
|
|
66
70
|
ensureSanitizer,
|
|
67
71
|
generateNavLinks,
|
|
68
|
-
getIcon,
|
|
69
72
|
sanitizeHtml,
|
|
70
73
|
toSectionId
|
|
71
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-53DKVAB6.js";
|
|
75
|
+
import {
|
|
76
|
+
cn
|
|
77
|
+
} from "./chunk-7EOSDFS3.js";
|
|
72
78
|
import {
|
|
73
79
|
isSameOriginRequest,
|
|
74
80
|
requireSessionSecret,
|
package/dist/lib/index.js
CHANGED
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildGoogleFontsUrl,
|
|
3
|
-
createEvent,
|
|
4
|
-
darkModeEvent,
|
|
5
3
|
deriveContrast,
|
|
6
|
-
editModeEvent,
|
|
7
4
|
formatTimestamp,
|
|
8
5
|
gridColsClass,
|
|
9
6
|
loadSiteContent,
|
|
10
7
|
loadStaticSiteContent,
|
|
11
8
|
mergeSiteContent,
|
|
12
|
-
navChangeEvent,
|
|
13
9
|
safeRedirect
|
|
14
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-AM5LZD6Q.js";
|
|
15
11
|
import "../chunk-TG43X7JO.js";
|
|
16
12
|
import {
|
|
17
|
-
cn,
|
|
18
13
|
curatedIcons,
|
|
14
|
+
getIcon
|
|
15
|
+
} from "../chunk-WDSVHKAH.js";
|
|
16
|
+
import {
|
|
17
|
+
createEvent,
|
|
18
|
+
darkModeEvent,
|
|
19
|
+
editModeEvent,
|
|
20
|
+
navChangeEvent
|
|
21
|
+
} from "../chunk-677NTHAZ.js";
|
|
22
|
+
import {
|
|
19
23
|
ensureSanitizer,
|
|
20
24
|
generateNavLinks,
|
|
21
|
-
getIcon,
|
|
22
25
|
sanitizeHtml,
|
|
23
26
|
toSectionId
|
|
24
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-53DKVAB6.js";
|
|
28
|
+
import {
|
|
29
|
+
cn
|
|
30
|
+
} from "../chunk-7EOSDFS3.js";
|
|
25
31
|
import "../chunk-S2L3BPLS.js";
|
|
26
32
|
import "../chunk-ZGFAYZWB.js";
|
|
27
33
|
import "../chunk-TZQPOR5A.js";
|
package/dist/schemas/index.js
CHANGED
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
MediaGridOptionsSchema,
|
|
5
5
|
slugifyAudienceName
|
|
6
6
|
} from "../chunk-ODCJQOVO.js";
|
|
7
|
-
import {
|
|
8
|
-
DEFAULT_LINK,
|
|
9
|
-
LinkTargetSchema,
|
|
10
|
-
LinkValueSchema,
|
|
11
|
-
isSafeHref
|
|
12
|
-
} from "../chunk-ZU2MKPTG.js";
|
|
13
7
|
import {
|
|
14
8
|
AudienceSchema,
|
|
15
9
|
RoleSchema,
|
|
16
10
|
SessionSchema,
|
|
17
11
|
SiteUserSchema
|
|
18
12
|
} from "../chunk-LZKVV4K2.js";
|
|
13
|
+
import {
|
|
14
|
+
DEFAULT_LINK,
|
|
15
|
+
LinkTargetSchema,
|
|
16
|
+
LinkValueSchema,
|
|
17
|
+
isSafeHref
|
|
18
|
+
} from "../chunk-3DCG4DNU.js";
|
|
19
19
|
import {
|
|
20
20
|
getSectionContentSchema,
|
|
21
21
|
getSectionSchema
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drawnagency/primitives",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.61",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./package.json": "./package.json",
|
|
@@ -52,6 +52,14 @@
|
|
|
52
52
|
"types": "./dist/components/sections/register-schemas.d.ts",
|
|
53
53
|
"default": "./dist/components/sections/register-schemas.js"
|
|
54
54
|
},
|
|
55
|
+
"./components/editor": {
|
|
56
|
+
"types": "./dist/components/editor/index.d.ts",
|
|
57
|
+
"default": "./dist/components/editor/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./components/primitives": {
|
|
60
|
+
"types": "./dist/components/primitives/index.d.ts",
|
|
61
|
+
"default": "./dist/components/primitives/index.js"
|
|
62
|
+
},
|
|
55
63
|
"./auth": {
|
|
56
64
|
"types": "./dist/auth/index.d.ts",
|
|
57
65
|
"default": "./dist/auth/index.js"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Public authoring surface for custom-section authors: the editable primitives
|
|
2
|
+
// and the heading-section factory. Browser-safe by construction (no node:* / Buffer).
|
|
3
|
+
export { EditableRichText } from "./EditableRichText";
|
|
4
|
+
export { EditablePlainText } from "./EditablePlainText";
|
|
5
|
+
export { EditableList } from "./EditableList";
|
|
6
|
+
export { EditableGrid } from "./EditableGrid";
|
|
7
|
+
export { ImageDropZone } from "./ImageDropZone";
|
|
8
|
+
export { ResolvedMedia } from "./ResolvedMedia";
|
|
9
|
+
export { LinkPopover } from "./LinkPopover";
|
|
10
|
+
export { defineHeadingSection } from "./defineHeadingSection";
|
|
11
|
+
export { MediaBlock } from "../sections/Media/MediaBlock";
|
|
File without changes
|