@atomicsmash/blocks-helpers 4.0.0-beta.9 → 4.0.0

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 (42) hide show
  1. package/dist/block-supports.d.ts +71 -0
  2. package/dist/block-supports.d.ts.map +1 -0
  3. package/dist/block-supports.js +1 -0
  4. package/dist/default-attributes/align.d.ts +15 -0
  5. package/dist/default-attributes/align.d.ts.map +1 -0
  6. package/dist/default-attributes/align.js +1 -0
  7. package/dist/default-attributes/align.test.d.ts +2 -0
  8. package/dist/default-attributes/align.test.d.ts.map +1 -0
  9. package/dist/default-attributes/align.test.js +84 -0
  10. package/dist/default-attributes/className.d.ts +7 -0
  11. package/dist/default-attributes/className.d.ts.map +1 -0
  12. package/dist/default-attributes/className.js +1 -0
  13. package/dist/default-attributes/className.test.d.ts +2 -0
  14. package/dist/default-attributes/className.test.d.ts.map +1 -0
  15. package/dist/default-attributes/className.test.js +12 -0
  16. package/dist/default-attributes/index.d.ts +8 -0
  17. package/dist/default-attributes/index.d.ts.map +1 -0
  18. package/dist/default-attributes/index.js +1 -0
  19. package/dist/default-attributes/layout.d.ts +8 -0
  20. package/dist/default-attributes/layout.d.ts.map +1 -0
  21. package/dist/default-attributes/layout.js +1 -0
  22. package/dist/default-attributes/layout.test.d.ts +2 -0
  23. package/dist/default-attributes/layout.test.d.ts.map +1 -0
  24. package/dist/default-attributes/layout.test.js +11 -0
  25. package/dist/default-attributes/lock.d.ts +10 -0
  26. package/dist/default-attributes/lock.d.ts.map +1 -0
  27. package/dist/default-attributes/lock.js +1 -0
  28. package/dist/default-attributes/lock.test.d.ts +2 -0
  29. package/dist/default-attributes/lock.test.d.ts.map +1 -0
  30. package/dist/default-attributes/lock.test.js +12 -0
  31. package/dist/default-attributes/style.d.ts +67 -0
  32. package/dist/default-attributes/style.d.ts.map +1 -0
  33. package/dist/default-attributes/style.js +1 -0
  34. package/dist/default-attributes/style.test.d.ts +2 -0
  35. package/dist/default-attributes/style.test.d.ts.map +1 -0
  36. package/dist/default-attributes/style.test.js +59 -0
  37. package/dist/index.d.ts +148 -163
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/layout.d.ts +32 -0
  40. package/dist/layout.d.ts.map +1 -0
  41. package/dist/layout.js +1 -0
  42. package/package.json +7 -7
@@ -0,0 +1,71 @@
1
+ import type { AllPossibleLayouts } from "./layout";
2
+ export type BlockSupports = Record<string, any> & {
3
+ anchor?: boolean;
4
+ align?: boolean | ("wide" | "full" | "left" | "center" | "right")[];
5
+ alignWide?: boolean;
6
+ ariaLabel?: boolean;
7
+ background?: {
8
+ backgroundImage?: boolean;
9
+ backgroundSize?: boolean;
10
+ };
11
+ className?: boolean;
12
+ color?: {
13
+ background?: boolean;
14
+ button?: boolean;
15
+ enableContrastChecker?: boolean;
16
+ gradients?: boolean;
17
+ heading?: boolean;
18
+ link?: boolean;
19
+ text?: boolean;
20
+ /**
21
+ * @deprecated Use `filter.duotone` instead.
22
+ *
23
+ * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#filter-duotone
24
+ */
25
+ __experimentalDuotone?: boolean;
26
+ } | boolean;
27
+ customClassName?: boolean;
28
+ dimensions?: {
29
+ aspectRatio?: boolean;
30
+ minHeight?: boolean;
31
+ };
32
+ filter?: {
33
+ duotone?: boolean;
34
+ };
35
+ html?: boolean;
36
+ inserter?: boolean;
37
+ interactivity?: boolean | {
38
+ clientNavigation?: boolean;
39
+ interactive?: boolean;
40
+ };
41
+ layout?: boolean | {
42
+ default?: AllPossibleLayouts;
43
+ allowSwitching?: boolean;
44
+ allowEditing?: boolean;
45
+ allowInheriting?: boolean;
46
+ allowSizingOnChildren?: boolean;
47
+ allowVerticalAlignment?: boolean;
48
+ allowJustification?: boolean;
49
+ allowOrientation?: boolean;
50
+ allowCustomContentAndWideSize?: boolean;
51
+ };
52
+ lock?: boolean;
53
+ multiple?: boolean;
54
+ position?: {
55
+ sticky?: boolean;
56
+ };
57
+ renaming?: boolean;
58
+ reusable?: boolean;
59
+ shadow?: boolean;
60
+ spacing?: {
61
+ margin?: boolean | ("top" | "right" | "left" | "bottom")[] | ("vertical" | "horizontal")[];
62
+ padding?: boolean | ("top" | "right" | "left" | "bottom")[] | ("vertical" | "horizontal")[];
63
+ blockGap?: boolean | ("vertical" | "horizontal")[];
64
+ };
65
+ typography?: {
66
+ fontSize?: boolean;
67
+ lineHeight?: boolean;
68
+ textAlign?: boolean | ("left" | "center" | "right")[];
69
+ };
70
+ };
71
+ //# sourceMappingURL=block-supports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-supports.d.ts","sourceRoot":"","sources":["../src/block-supports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAGnD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IACjD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC,EAAE,CAAC;IACpE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;IACF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EACH;QACA,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,IAAI,CAAC,EAAE,OAAO,CAAC;QACf;;;;WAIG;QACH,qBAAq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U,GAAG,YAAY,CAAC,EAAE,CAAC;QACjC,OAAO,CAAC,EACL,OAAO,GACP,CAAC,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC,EAAE,GACvC,CAAC,UAAU,GAAG,YAAY,CAAC,EAAE,CAAC;QACjC,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,UAAU,GAAG,YAAY,CAAC,EAAE,CAAC;KACnD,CAAC;IACF,UAAU,CAAC,EAAE;QACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC,EAAE,CAAC;KACtD,CAAC;CACF,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import { BlockSupports } from "@atomicsmash/blocks-helpers";
2
+ type NormalAlignment = "left" | "center" | "right";
3
+ type WideAlignment = "wide" | "full";
4
+ type AllAlignValues = NormalAlignment | WideAlignment;
5
+ export type AlignAttribute<Supports extends BlockSupports> = {
6
+ align?: Supports extends {
7
+ align: true;
8
+ } ? Supports extends {
9
+ alignWide: false;
10
+ } ? NormalAlignment : AllAlignValues : Supports extends {
11
+ align: AllAlignValues[];
12
+ } ? Supports["align"][number] : never;
13
+ };
14
+ export {};
15
+ //# sourceMappingURL=align.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"align.d.ts","sourceRoot":"","sources":["../../src/default-attributes/align.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,KAAK,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AACnD,KAAK,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AACrC,KAAK,cAAc,GAAG,eAAe,GAAG,aAAa,CAAC;AAEtD,MAAM,MAAM,cAAc,CAAC,QAAQ,SAAS,aAAa,IAAI;IAC5D,KAAK,CAAC,EAAE,QAAQ,SAAS;QACxB,KAAK,EAAE,IAAI,CAAC;KACZ,GACE,QAAQ,SAAS;QAAE,SAAS,EAAE,KAAK,CAAA;KAAE,GACpC,eAAe,GACf,cAAc,GACf,QAAQ,SAAS;QAAE,KAAK,EAAE,cAAc,EAAE,CAAA;KAAE,GAC3C,QAAQ,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,GACzB,KAAK,CAAC;CACV,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=align.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"align.test.d.ts","sourceRoot":"","sources":["../../src/default-attributes/align.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,84 @@
1
+ let defaultAttributes;
2
+ defaultAttributes = {
3
+ // Align is only present in attributes if the value is explicitly set in the editor.
4
+ };
5
+ defaultAttributes = {
6
+ // @ts-expect-error Align should not be present when align is unsupported.
7
+ align: "left",
8
+ };
9
+ defaultAttributes = {
10
+ // @ts-expect-error Align should not be present when align is unsupported.
11
+ align: "left",
12
+ };
13
+ defaultAttributes = {
14
+ align: "left",
15
+ };
16
+ defaultAttributes = {
17
+ align: "center",
18
+ };
19
+ defaultAttributes = {
20
+ align: "right",
21
+ };
22
+ defaultAttributes = {
23
+ align: "wide",
24
+ };
25
+ defaultAttributes = {
26
+ align: "full",
27
+ };
28
+ defaultAttributes = {
29
+ align: "left",
30
+ };
31
+ defaultAttributes = {
32
+ align: "center",
33
+ };
34
+ defaultAttributes = {
35
+ align: "right",
36
+ };
37
+ defaultAttributes = {
38
+ // @ts-expect-error Wide should not be present when alignWide is unsupported.
39
+ align: "wide",
40
+ };
41
+ defaultAttributes = {
42
+ // @ts-expect-error Full should not be present when alignWide is unsupported.
43
+ align: "full",
44
+ };
45
+ defaultAttributes = {
46
+ align: "left",
47
+ };
48
+ defaultAttributes = {
49
+ align: "center",
50
+ };
51
+ defaultAttributes = {
52
+ align: "right",
53
+ };
54
+ defaultAttributes = {
55
+ align: "wide",
56
+ };
57
+ defaultAttributes = {
58
+ align: "full",
59
+ };
60
+ defaultAttributes = {
61
+ // @ts-expect-error Left should not be present when it's value is unsupported.
62
+ align: "left",
63
+ };
64
+ defaultAttributes = {
65
+ // @ts-expect-error Center should not be present when it's value is unsupported.
66
+ align: "center",
67
+ };
68
+ defaultAttributes = {
69
+ // @ts-expect-error Right should not be present when it's value is unsupported.
70
+ align: "right",
71
+ };
72
+ defaultAttributes = {
73
+ // @ts-expect-error Wide should not be present when it's value is unsupported.
74
+ align: "wide",
75
+ };
76
+ defaultAttributes = {
77
+ // @ts-expect-error Full should not be present when it's value is unsupported.
78
+ align: "full",
79
+ };
80
+ defaultAttributes = {
81
+ // Align takes precedence over alignWide, so this is fine.
82
+ align: "wide",
83
+ };
84
+ export {};
@@ -0,0 +1,7 @@
1
+ import { BlockSupports } from "@atomicsmash/blocks-helpers";
2
+ export type ClassNameAttribute<Supports extends BlockSupports> = {
3
+ className?: Supports extends {
4
+ customClassName: false;
5
+ } ? never : string;
6
+ };
7
+ //# sourceMappingURL=className.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"className.d.ts","sourceRoot":"","sources":["../../src/default-attributes/className.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,MAAM,kBAAkB,CAAC,QAAQ,SAAS,aAAa,IAAI;IAChE,SAAS,CAAC,EAAE,QAAQ,SAAS;QAAE,eAAe,EAAE,KAAK,CAAA;KAAE,GAAG,KAAK,GAAG,MAAM,CAAC;CACzE,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=className.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"className.test.d.ts","sourceRoot":"","sources":["../../src/default-attributes/className.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ let defaultAttributes;
2
+ defaultAttributes = {
3
+ // Class name is only present in attributes if the value is explicitly set.
4
+ };
5
+ defaultAttributes = {
6
+ className: "a_string",
7
+ };
8
+ defaultAttributes = {
9
+ // @ts-expect-error className should not be present when customClassName is unsupported.
10
+ className: "a_string",
11
+ };
12
+ export {};
@@ -0,0 +1,8 @@
1
+ import { BlockSupports } from "@atomicsmash/blocks-helpers";
2
+ import { AlignAttribute } from "./align";
3
+ import { ClassNameAttribute } from "./className";
4
+ import { LayoutAttribute } from "./layout";
5
+ import { LockAttribute } from "./lock";
6
+ import { StyleAttribute } from "./style";
7
+ export type DefaultAttributes<Supports extends BlockSupports> = AlignAttribute<Supports> & ClassNameAttribute<Supports> & LayoutAttribute<Supports> & LockAttribute<Supports> & StyleAttribute<Supports>;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/default-attributes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,iBAAiB,CAAC,QAAQ,SAAS,aAAa,IAC3D,cAAc,CAAC,QAAQ,CAAC,GACvB,kBAAkB,CAAC,QAAQ,CAAC,GAC5B,eAAe,CAAC,QAAQ,CAAC,GACzB,aAAa,CAAC,QAAQ,CAAC,GACvB,cAAc,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { AllPossibleLayouts } from "../layout";
2
+ import type { BlockSupports } from "@atomicsmash/blocks-helpers";
3
+ export type LayoutAttribute<Supports extends BlockSupports> = {
4
+ layout?: Supports extends {
5
+ layout?: false | undefined;
6
+ } ? never : AllPossibleLayouts;
7
+ };
8
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/default-attributes/layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,MAAM,eAAe,CAAC,QAAQ,SAAS,aAAa,IAAI;IAC7D,MAAM,CAAC,EAAE,QAAQ,SAAS;QAAE,MAAM,CAAC,EAAE,KAAK,GAAG,SAAS,CAAA;KAAE,GACrD,KAAK,GAMN,kBAAkB,CAAC;CACrB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=layout.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.test.d.ts","sourceRoot":"","sources":["../../src/default-attributes/layout.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ let defaultAttributes;
2
+ defaultAttributes = {};
3
+ defaultAttributes = {
4
+ // @ts-expect-error Layout should not be present when layout is unsupported.
5
+ layout: { type: "default" },
6
+ };
7
+ defaultAttributes = {
8
+ // @ts-expect-error Layout should not be present when layout is unsupported.
9
+ layout: { type: "default" },
10
+ };
11
+ export {};
@@ -0,0 +1,10 @@
1
+ import { BlockSupports } from "@atomicsmash/blocks-helpers";
2
+ export type LockAttribute<Supports extends BlockSupports> = {
3
+ lock?: Supports extends {
4
+ lock: false;
5
+ } ? never : {
6
+ move: boolean;
7
+ remove: boolean;
8
+ };
9
+ };
10
+ //# sourceMappingURL=lock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock.d.ts","sourceRoot":"","sources":["../../src/default-attributes/lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,MAAM,aAAa,CAAC,QAAQ,SAAS,aAAa,IAAI;IAC3D,IAAI,CAAC,EAAE,QAAQ,SAAS;QAAE,IAAI,EAAE,KAAK,CAAA;KAAE,GACpC,KAAK,GACL;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,CAAC;CACtC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=lock.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lock.test.d.ts","sourceRoot":"","sources":["../../src/default-attributes/lock.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ let defaultAttributes;
2
+ defaultAttributes = {
3
+ // Lock is only present in attributes if the value is explicitly set.
4
+ };
5
+ defaultAttributes = {
6
+ lock: { move: true, remove: true },
7
+ };
8
+ defaultAttributes = {
9
+ // @ts-expect-error lock should not be present when lock is unsupported.
10
+ lock: { move: true, remove: true },
11
+ };
12
+ export {};
@@ -0,0 +1,67 @@
1
+ import { BlockSupports } from "@atomicsmash/blocks-helpers";
2
+ export type StyleAttribute<Supports extends BlockSupports> = {
3
+ style?: BackgroundImageAttribute<Supports["background"]> & BackgroundSizeAttribute<Supports["background"]> & SpacingMarginAttribute<Supports["spacing"]> & SpacingPaddingAttribute<Supports["spacing"]> & SpacingBlockGapAttribute<Supports["spacing"]> extends never ? never : {
4
+ background?: BackgroundImageAttribute<Supports["background"]> & BackgroundSizeAttribute<Supports["background"]>;
5
+ spacing?: SpacingMarginAttribute<Supports["spacing"]> & SpacingPaddingAttribute<Supports["spacing"]> & SpacingBlockGapAttribute<Supports["spacing"]>;
6
+ };
7
+ };
8
+ type BackgroundImageAttribute<Spacing extends BlockSupports["background"]> = Spacing extends undefined ? never : Spacing extends {
9
+ backgroundImage: false;
10
+ } ? never : {
11
+ backgroundImage?: {
12
+ url: string;
13
+ id: number;
14
+ source: string;
15
+ title: string;
16
+ };
17
+ };
18
+ type BackgroundSizeAttribute<Spacing extends BlockSupports["background"]> = Spacing extends undefined ? never : Spacing extends {
19
+ backgroundSize: false;
20
+ } ? never : {
21
+ backgroundPosition?: string;
22
+ };
23
+ type SpacingMarginAttribute<Spacing extends BlockSupports["spacing"]> = Spacing extends undefined ? never : Spacing extends {
24
+ margin: false;
25
+ } ? never : Spacing extends {
26
+ margin: undefined;
27
+ } ? never : {
28
+ margin: {
29
+ bottom?: string;
30
+ left?: string;
31
+ right?: string;
32
+ top?: string;
33
+ };
34
+ };
35
+ type SpacingPaddingAttribute<Spacing extends BlockSupports["spacing"]> = Spacing extends undefined ? never : Spacing extends {
36
+ padding: false;
37
+ } ? never : Spacing extends {
38
+ padding: undefined;
39
+ } ? never : {
40
+ padding: {
41
+ bottom?: string;
42
+ left?: string;
43
+ right?: string;
44
+ top?: string;
45
+ };
46
+ };
47
+ type SpacingBlockGapAttribute<Spacing extends BlockSupports["spacing"]> = Spacing extends undefined ? never : Spacing extends {
48
+ blockGap: false;
49
+ } ? never : Spacing extends {
50
+ blockGap: undefined;
51
+ } ? never : Spacing extends {
52
+ blockGap: ["horizontal"];
53
+ } ? {
54
+ blockGap: {
55
+ left: string;
56
+ };
57
+ } : Spacing extends {
58
+ blockGap: ["vertical"];
59
+ } ? {
60
+ blockGap: {
61
+ top: string;
62
+ };
63
+ } : {
64
+ blockGap: string;
65
+ };
66
+ export {};
67
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../src/default-attributes/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,MAAM,MAAM,cAAc,CAAC,QAAQ,SAAS,aAAa,IAAI;IAC5D,KAAK,CAAC,EAAE,wBAAwB,CAAC,QAA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;KAAE,CAAC;CAC1B,GACA;IACA,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=style.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.test.d.ts","sourceRoot":"","sources":["../../src/default-attributes/style.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,59 @@
1
+ const validBackgroundValue = {
2
+ backgroundImage: {
3
+ url: "string",
4
+ id: 0,
5
+ source: "string",
6
+ title: "string",
7
+ },
8
+ backgroundPosition: "string",
9
+ };
10
+ const validSpacingValue = {
11
+ margin: {
12
+ bottom: "string",
13
+ left: "string",
14
+ right: "string",
15
+ top: "string",
16
+ },
17
+ padding: {
18
+ bottom: "string",
19
+ left: "string",
20
+ right: "string",
21
+ top: "string",
22
+ },
23
+ blockGap: "string",
24
+ };
25
+ let defaultAttributes;
26
+ defaultAttributes = {
27
+ // Style is only present in attributes if the value is explicitly set in the editor.
28
+ };
29
+ defaultAttributes = {
30
+ // @ts-expect-error Style should not be present when no style related properties are unsupported.
31
+ style: {},
32
+ };
33
+ /* Background */
34
+ defaultAttributes = {
35
+ // @ts-expect-error Background should not be present when background is unsupported.
36
+ style: {
37
+ background: {},
38
+ },
39
+ };
40
+ defaultAttributes = {
41
+ style: {
42
+ // Spacing possible when combined with other style attributes
43
+ background: validBackgroundValue,
44
+ },
45
+ };
46
+ /* Spacing */
47
+ defaultAttributes = {
48
+ // @ts-expect-error Spacing should not be present when spacing is unsupported.
49
+ style: {
50
+ spacing: {},
51
+ },
52
+ };
53
+ defaultAttributes = {
54
+ style: {
55
+ // Spacing possible when combined with other style attributes
56
+ spacing: validSpacingValue,
57
+ },
58
+ };
59
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,29 +1,76 @@
1
- /// <reference types="react" />
1
+ import type { BlockSupports } from "./block-supports";
2
+ import type { DefaultAttributes } from "./default-attributes";
2
3
  import type { Element } from "@wordpress/element";
4
+ import type { AllHTMLAttributes } from "react";
3
5
  import { createBlock } from "@wordpress/blocks";
4
- export type BlockCategory = "text" | "media" | "design" | "widgets" | "theme" | "embed";
6
+ export type { BlockSupports, DefaultAttributes };
7
+ export type BlockCategory = "text" | "media" | "design" | "widgets" | "theme" | "embed" | (string & NonNullable<unknown>);
5
8
  export type AttributeTypes = "null" | "boolean" | "object" | "array" | "string" | "integer" | "number";
6
- export type AttributesObject = {
7
- source?: "attribute" | "text" | "html" | "query" | "meta";
8
- selector?: string;
9
- attribute?: string;
10
- multiline?: string;
11
- query?: Record<string, AttributesObject>;
12
- meta?: string;
13
- default?: any;
14
- items?: {
15
- type: AttributeTypes;
16
- };
17
- } & ({
18
- type: AttributeTypes | AttributeTypes[];
9
+ type AllAttributes = AllHTMLAttributes<HTMLElement>;
10
+ type BooleanAttributeTypes = {
11
+ [Property in keyof AllAttributes]-?: Required<AllAttributes>[Property] extends boolean ? Property : never;
12
+ }[keyof AllAttributes];
13
+ type AttributeSourceBooleanAttribute = {
14
+ type: "boolean" | ["boolean"];
15
+ enum?: readonly boolean[];
16
+ source: "attribute";
17
+ selector: string;
18
+ attribute: BooleanAttributeTypes;
19
+ default?: boolean;
20
+ };
21
+ type AttributeSourceStringAttribute = {
22
+ type: "string" | ["string"];
23
+ enum?: readonly string[];
24
+ source: "attribute";
25
+ selector: string;
26
+ attribute: string;
27
+ default?: string;
28
+ };
29
+ type TextSourceAttribute = {
30
+ type: "string" | ["string"];
31
+ enum?: readonly string[];
32
+ source: "text";
33
+ selector: string;
34
+ default?: string;
35
+ };
36
+ type HTMLSourceAttribute = {
37
+ type: "string" | ["string"];
38
+ enum?: readonly string[];
39
+ source: "html";
40
+ selector: string;
41
+ default?: string;
42
+ };
43
+ type QuerySourceAttribute = {
44
+ type: "array" | ["array"];
45
+ source: "query";
46
+ selector: string;
47
+ query: Record<string, AttributesObject>;
48
+ default?: Record<string, unknown>[];
49
+ enum?: Record<string, unknown>[];
50
+ };
51
+ type MetaSourceAttribute = {
52
+ type: "string" | ["string"];
53
+ enum?: readonly string[];
54
+ /**
55
+ * @deprecated
56
+ */
57
+ source: "meta";
58
+ meta: string;
59
+ default?: string;
60
+ };
61
+ type NoSourceAttributeArrayType = {
62
+ type: "array" | ["array"];
63
+ source?: never;
64
+ enum?: unknown[];
65
+ default?: unknown[];
66
+ };
67
+ type NoSourceAttributeAnyType = {
68
+ type: Exclude<AttributeTypes, "array"> | Exclude<AttributeTypes, "array">[];
19
69
  enum?: readonly boolean[] | readonly number[] | readonly string[];
20
- } | {
21
- type?: AttributeTypes | AttributeTypes[];
22
- enum: readonly boolean[] | readonly number[] | readonly string[];
23
- });
24
- type ReadonlyRecursive<T> = {
25
- [k in keyof T]: T[k] extends Record<string, any> ? ReadonlyRecursive<T[k]> : T[k];
70
+ source?: never;
71
+ default?: any;
26
72
  };
73
+ export type AttributesObject = AttributeSourceBooleanAttribute | AttributeSourceStringAttribute | TextSourceAttribute | HTMLSourceAttribute | QuerySourceAttribute | MetaSourceAttribute | NoSourceAttributeArrayType | NoSourceAttributeAnyType;
27
74
  type InheritType<Type extends {
28
75
  type: string | string[];
29
76
  }> = Type extends {
@@ -43,64 +90,21 @@ type InheritType<Type extends {
43
90
  } ? number : Type extends {
44
91
  type: "number";
45
92
  } ? number : never;
46
- export type InterpretAttributes<Attributes extends BlockAttributes> = {
93
+ export type InterpretAttributesWithoutDefaults<Attributes extends BlockAttributes> = {
47
94
  [Property in keyof Attributes]: Attributes[Property] extends {
48
95
  enum: NonNullable<Attributes[Property]["enum"]>;
49
96
  } ? NonNullable<Attributes[Property]["enum"]>[number] : Attributes[Property] extends {
50
97
  type: "array";
51
- query: NonNullable<Attributes[Property]["query"]>;
52
- } ? InterpretAttributes<NonNullable<Attributes[Property]["query"]>>[] : Attributes[Property] extends {
98
+ query: Record<string, AttributesObject>;
99
+ } ? InterpretAttributesWithoutDefaults<NonNullable<Attributes[Property]["query"]>>[] : Attributes[Property] extends {
53
100
  type: string;
54
101
  } ? InheritType<Attributes[Property]> : never;
55
102
  };
56
- export type DefaultAttributes<Supports extends BlockSupports> = {
57
- className: Supports extends {
58
- customClassName: false;
59
- } ? never : {
60
- type: "string";
61
- };
62
- lock: Supports extends {
63
- lock: false;
64
- } ? never : {
65
- type: "object";
66
- };
67
- metadata: {
68
- type: "object";
69
- };
70
- };
103
+ export type InterpretAttributes<Supports extends BlockSupports, Attributes extends BlockAttributes> = InterpretAttributesWithoutDefaults<Attributes> & DefaultAttributes<Supports>;
71
104
  export type BlockAttributes = Readonly<Record<string, AttributesObject>>;
72
- export type BlockSupports = Record<string, any> & {
73
- anchor?: boolean;
74
- align?: boolean | ("wide" | "full" | "left" | "center" | "right")[];
75
- alignWide?: boolean;
76
- ariaLabel?: boolean;
77
- className?: boolean;
78
- color?: {
79
- background?: boolean;
80
- gradients?: boolean;
81
- link?: boolean;
82
- text?: boolean;
83
- enableContrastChecker?: boolean;
84
- };
85
- customClassName?: boolean;
86
- defaultStylePicker?: boolean;
87
- html?: boolean;
88
- inserter?: boolean;
89
- multiple?: boolean;
90
- reusable?: boolean;
91
- lock?: boolean;
92
- spacing?: {
93
- margin?: boolean | ("top" | "right" | "left" | "bottom")[] | ("vertical" | "horizontal")[];
94
- padding?: boolean | ("top" | "right" | "left" | "bottom")[] | ("vertical" | "horizontal")[];
95
- };
96
- typography?: {
97
- fontSize?: boolean;
98
- lineHeight?: boolean;
99
- };
100
- };
101
- export type BlockProvidesContext<Attributes extends BlockAttributes> = Record<string, keyof Attributes>;
102
- export type InterpretProvidesContext<UsedContextAttributes extends Record<string, ReadonlyRecursive<AttributesObject>>, Context extends BlockProvidesContext<UsedContextAttributes> = BlockProvidesContext<UsedContextAttributes>> = {
103
- [Property in keyof Context]: InterpretAttributes<UsedContextAttributes>[Context[Property]];
105
+ export type BlockProvidesContext<InterpretedAttributes extends Record<string, unknown>> = Record<string, keyof InterpretedAttributes>;
106
+ export type InterpretProvidesContext<UsedContextInterpretedAttributes extends Record<string, unknown>, Context extends BlockProvidesContext<UsedContextInterpretedAttributes> = BlockProvidesContext<UsedContextInterpretedAttributes>> = {
107
+ [Property in keyof Context]: UsedContextInterpretedAttributes[Context[Property]];
104
108
  };
105
109
  export type BlockUsesContext<InterpretedContext extends Record<string, any>> = (keyof InterpretedContext)[];
106
110
  export type InterpretUsedContext<UsesContext extends string[], InterpretedContext extends Record<UsesContext[number], any>> = {
@@ -112,9 +116,9 @@ export type InnerBlocks = {
112
116
  attributes: BlockInstance["attributes"];
113
117
  innerBlocks?: InnerBlocks[];
114
118
  };
115
- export type BlockExample<Attributes extends BlockAttributes> = {
119
+ export type BlockExample<InterpretedAttributes extends Record<string, unknown>> = {
116
120
  viewportWidth?: number;
117
- attributes?: InterpretAttributes<Attributes>;
121
+ attributes?: InterpretedAttributes;
118
122
  innerBlocks?: InnerBlocks[];
119
123
  };
120
124
  /**
@@ -132,40 +136,36 @@ export type WPDefinedPath = `file:${string}`;
132
136
  * @see {@link https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#wpdefinedasset}
133
137
  */
134
138
  export type WPDefinedAsset = WPDefinedPath | string;
135
- type RecursivePartial<T> = {
139
+ type RecursivePartial<T> = T extends Record<string, unknown> ? {
136
140
  [P in keyof T]?: RecursivePartial<T[P]>;
137
- };
138
- export type BlockVariations<Supports extends BlockSupports, Attributes extends BlockAttributes> = {
141
+ } : T extends Record<string, unknown>[] ? RecursivePartial<T[keyof T]>[] : T;
142
+ export type BlockVariations<InterpretedAttributes extends Record<string, unknown>> = {
139
143
  name: string;
140
144
  title: string;
141
145
  description?: string;
142
146
  category?: BlockCategory;
143
147
  icon?: string | JSX.Element;
144
148
  isDefault?: boolean;
145
- attributes?: RecursivePartial<InterpretAttributes<Attributes> & InterpretAttributes<DefaultAttributes<Supports>>>;
149
+ attributes?: RecursivePartial<InterpretedAttributes>;
146
150
  innerBlocks?: InnerBlocks[];
147
- example?: BlockExample<Attributes>;
151
+ example?: BlockExample<InterpretedAttributes>;
148
152
  scope?: ("inserter" | "block" | "transform")[];
149
153
  keywords?: string[];
150
- isActive?: string[] | ((blockAttributes: InterpretAttributes<Attributes> & InterpretAttributes<DefaultAttributes<Supports>>, variationAttributes: RecursivePartial<InterpretAttributes<Attributes> & InterpretAttributes<DefaultAttributes<Supports>>>) => boolean);
154
+ isActive?: string[] | ((blockAttributes: InterpretedAttributes, variationAttributes: RecursivePartial<InterpretedAttributes>) => boolean);
151
155
  }[];
152
- export type BlockMetaData<Supports extends BlockSupports, Attributes extends BlockAttributes> = {
156
+ export type BlockMetaData<Supports extends BlockSupports, Attributes extends BlockAttributes, InterpretedAttributes extends InterpretAttributes<Supports, Attributes> = InterpretAttributes<Supports, Attributes>> = {
153
157
  /**
154
158
  * The version of the Block API used by the block. The most recent version is 2 and it was introduced in WordPress 5.6.
155
159
  *
156
160
  * See the API versions documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/ for more details.
157
161
  */
158
- apiVersion?: 1 | 2;
162
+ apiVersion?: 1 | 2 | 3;
159
163
  /**
160
164
  * The name for a block is a unique string that identifies a block.
161
165
  * Names have to be structured as `namespace/block-name`, where namespace is the name of your plugin or theme.
162
166
  * Regex: ^[a-z][a-z0-9-]\*\/[a-z][a-z0-9-]\*$
163
167
  */
164
168
  name: string;
165
- /**
166
- * The name of the experiment this block is a part of, or boolean true if there is no specific experiment name.
167
- */
168
- __experimental?: boolean | string;
169
169
  /**
170
170
  * This is the display title for your block, which can be translated with our translation functions. The block inserter will show this name.
171
171
  */
@@ -189,11 +189,18 @@ export type BlockMetaData<Supports extends BlockSupports, Attributes extends Blo
189
189
  * That allows, for example, to place a ‘Comment Content’ block inside a ‘Column’ block, as long as ‘Column’ is somewhere within a ‘Comment Template’ block.
190
190
  */
191
191
  ancestor?: string[];
192
+ /**
193
+ * The allowedBlocks specifies which block types can be the direct children of the block.
194
+ * For example, a ‘List’ block can allow only ‘List Item’ blocks as children.
195
+ */
196
+ allowedBlocks?: string[];
192
197
  /**
193
198
  * An icon property should be specified to make it easier to identify a block.
194
199
  * These can be any of WordPress’ Dashicons (slug serving also as a fallback in non-js contexts).
200
+ *
201
+ * @deprecated define in client register to allow custom SVGs.
195
202
  */
196
- icon?: string | JSX.Element;
203
+ icon?: string;
197
204
  /**
198
205
  * This is a short description for your block, which can be translated with our translation functions. This will be shown in the block inspector.
199
206
  */
@@ -253,62 +260,66 @@ export type BlockMetaData<Supports extends BlockSupports, Attributes extends Blo
253
260
  * It provides structured example data for the block. This data is used to construct a preview for the block to be shown in the Inspector Help Panel when the user mouses over the block.
254
261
  * See the example documentation at https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/#example-optional for more details.
255
262
  */
256
- example?: BlockExample<Attributes>;
263
+ example?: BlockExample<InterpretedAttributes>;
257
264
  /**
258
- * Block type editor script definition. It will only be enqueued in the context of the editor.
265
+ * Block type editor scripts definition. They will only be enqueued in the context of the editor.
259
266
  */
260
267
  editorScript?: WPDefinedAsset | WPDefinedAsset[];
261
268
  /**
262
- * Block type frontend and editor script definition. It will be enqueued both in the editor and when viewing the content on the front of the site.
269
+ * Block type frontend and editor scripts definition. They will be enqueued both in the editor and when viewing the content on the front of the site.
263
270
  */
264
271
  script?: WPDefinedAsset | WPDefinedAsset[];
265
272
  /**
266
- * Block type frontend script definition. It will be enqueued only when viewing the content on the front of the site.
273
+ * Block type frontend scripts definition. They will be enqueued only when viewing the content on the front of the site.
267
274
  */
268
275
  viewScript?: WPDefinedAsset | WPDefinedAsset[];
269
276
  /**
270
- * Block type editor style definition. It will only be enqueued in the context of the editor.
277
+ * Block type editor styles definition. They will only be enqueued in the context of the editor.
271
278
  */
272
279
  editorStyle?: WPDefinedAsset | WPDefinedAsset[];
273
280
  /**
274
- * Block type frontend style definition. It will be enqueued both in the editor and when viewing the content on the front of the site.
281
+ * Block type frontend and editor styles definition. They will be enqueued both in the editor and when viewing the content on the front of the site.
275
282
  */
276
283
  style?: WPDefinedAsset | WPDefinedAsset[];
284
+ /**
285
+ * Block type frontend styles definition. They will be enqueued only when viewing the content on the front of the site.
286
+ */
287
+ viewStyle?: WPDefinedAsset | WPDefinedAsset[];
277
288
  /**
278
289
  * Block Variations is the API that allows a block to have similar versions of it, but all these versions share some common functionality.
279
290
  */
280
- variations?: BlockVariations<Supports, Attributes>;
291
+ variations?: Omit<BlockVariations<InterpretedAttributes>, "icon" | "isActive"> & {
292
+ icon?: string;
293
+ isActive?: string[];
294
+ };
281
295
  /**
282
296
  * Template file loaded on the server when rendering a block.
283
297
  */
284
298
  render?: WPDefinedPath;
285
299
  };
286
- export type BlockMigrateDeprecationFunction<OldSupports extends BlockSupports, Attributes extends BlockAttributes, NewSupports extends BlockSupports, NewAttributes extends BlockAttributes> = (attributes: InterpretAttributes<Attributes> & InterpretAttributes<DefaultAttributes<OldSupports>>, innerBlocks: InnerBlocks[]) => (InterpretAttributes<NewAttributes> & InterpretAttributes<DefaultAttributes<NewSupports>>) | [
287
- InterpretAttributes<NewAttributes> & InterpretAttributes<DefaultAttributes<NewSupports>>,
288
- InnerBlocks[]
289
- ];
290
- export type BlockIsDeprecationEligibleFunction<Supports extends BlockSupports, Attributes extends BlockAttributes> = (attributes: InterpretAttributes<Attributes> & InterpretAttributes<DefaultAttributes<Supports>>, innerBlocks: InnerBlocks[]) => boolean;
291
- export type BlockSaveProps<Supports extends BlockSupports, Attributes extends BlockAttributes> = {
292
- readonly attributes: InterpretAttributes<Attributes> & InterpretAttributes<DefaultAttributes<Supports>>;
293
- readonly innerBlocks: Readonly<InnerBlocks[]>;
300
+ export type BlockMigrateDeprecationFunction<OldInterpretedAttributes extends Record<string, unknown>, NewInterpretedAttributes extends Record<string, unknown>> = (attributes: OldInterpretedAttributes, innerBlocks: InnerBlocks[]) => NewInterpretedAttributes | [NewInterpretedAttributes, InnerBlocks[]];
301
+ export type BlockIsDeprecationEligibleFunction<InterpretedAttributes extends Record<string, unknown>> = (attributes: InterpretedAttributes, innerBlocks: InnerBlocks[]) => boolean;
302
+ export type CreateBlockSaveProps<InterpretedAttributes extends Record<string, unknown>> = {
303
+ readonly attributes: InterpretedAttributes;
304
+ readonly innerBlocks: readonly InnerBlocks[];
294
305
  };
295
- export type BlockEditProps<Supports extends BlockSupports, Attributes extends BlockAttributes, Context extends Record<string, any> = Record<string, never>> = {
306
+ export type CreateBlockEditProps<InterpretedAttributes extends Record<string, unknown>, Context extends Record<string, any> = Record<string, never>> = {
296
307
  readonly clientId: string;
297
- readonly attributes: InterpretAttributes<Attributes> & InterpretAttributes<DefaultAttributes<Supports>>;
308
+ readonly attributes: InterpretedAttributes;
298
309
  readonly context: Context;
299
310
  readonly insertBlocksAfter: BlockInstance[] | undefined;
300
311
  readonly isSelected: boolean;
301
312
  readonly mergeBlocks: BlockInstance[] | undefined;
302
313
  readonly onRemove: () => void | undefined;
303
314
  readonly onReplace: (clientIds: string | string[], blocks: BlockInstance | BlockInstance[], indexToSelect: number, initialPosition: 0 | -1 | null, meta: Record<string, unknown>) => BlockInstance[] | undefined;
304
- readonly setAttributes: (attributes: Partial<InterpretAttributes<Attributes>>) => void;
315
+ readonly setAttributes: (attributes: Partial<InterpretedAttributes>) => void;
305
316
  readonly toggleSelection: (isSelectionEnabled: boolean) => void;
306
317
  };
307
- export type BlockTypeTransform<Supports extends BlockSupports, Attributes extends BlockAttributes> = {
318
+ export type BlockTypeTransform<InterpretedAttributes extends Record<string, unknown>> = {
308
319
  type: "block";
309
320
  blocks: string[];
310
- transform: (attributes: InterpretAttributes<Attributes> & InterpretAttributes<DefaultAttributes<Supports>>, innerBlocks: InnerBlocks[]) => BlockInstance | BlockInstance[];
311
- isMatch?: (attributes: InterpretAttributes<Attributes> & InterpretAttributes<DefaultAttributes<Supports>>, block: BlockInstance) => boolean;
321
+ transform: (attributes: InterpretedAttributes, innerBlocks: InnerBlocks[]) => BlockInstance | BlockInstance[];
322
+ isMatch?: (attributes: InterpretedAttributes, block: BlockInstance) => boolean;
312
323
  isMultiBlock?: boolean;
313
324
  priority?: number;
314
325
  };
@@ -449,46 +460,21 @@ export type ShortCodeTypeTransform = {
449
460
  type: "shortcode";
450
461
  tag: string | string[];
451
462
  transform?: (shortcodeAttributes: WPShortCodeAttributes, shortcodeMatch: WPShortCodeMatch) => BlockInstance | BlockInstance[];
452
- attributes?: Readonly<Record<string, AttributesObject & {
463
+ attributes?: Readonly<Record<string, BlockAttributes & {
453
464
  shortcode: (shortcodeAttributes: WPShortCodeAttributes, shortcodeMatch: WPShortCodeMatch) => unknown;
454
465
  }>>;
455
466
  isMatch?: (shortcodeAttributes: WPShortCodeAttributes) => boolean;
456
467
  priority?: number;
457
468
  };
458
- export type BlockTransforms<Supports extends BlockSupports, Attributes extends BlockAttributes> = BlockTypeTransform<Supports, Attributes>[] | EnterTypeTransform[] | FilesTypeTransform[] | PrefixTypeTransform[] | RawTypeTransform[] | ShortCodeTypeTransform[];
459
- export type BlockSettings<Supports extends BlockSupports, Attributes extends BlockAttributes, InterpretedUsedContext extends Record<string, any> = Record<string, never>> = (CurrentStaticBlockDefinition<Supports, Attributes, InterpretedUsedContext> | CurrentDynamicBlockDefinition<Supports, Attributes, InterpretedUsedContext>) & {
460
- deprecated?: unknown[];
461
- };
462
- export type LoosenTypeOfObject<Type extends Record<string, any>> = {
463
- [Property in keyof Type]: Type[Property] extends string ? string : Type[Property] extends boolean ? boolean : Type[Property] extends number ? number : Type[Property];
464
- };
465
- type CurrentBlockDefinitionBase<Supports extends BlockSupports, Attributes extends BlockAttributes, InterpretedUsedContext extends Record<string, any> = Record<string, never>> = {
466
- /**
467
- * Attributes provide the structured data needs of a block. They can exist in different forms when they are serialized, but they are declared together under a common interface.
468
- * Property names must only contain letters Regex:[a-zA-Z]
469
- *
470
- * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/
471
- */
472
- attributes?: Attributes;
469
+ export type BlockTransforms<InterpretedAttributes extends Record<string, unknown>> = BlockTypeTransform<InterpretedAttributes>[] | EnterTypeTransform[] | FilesTypeTransform[] | PrefixTypeTransform[] | RawTypeTransform[] | ShortCodeTypeTransform[];
470
+ export type ClientOnlyRegisterOptions<InterpretedAttributes extends Record<string, unknown>, InterpretedUsedContext extends Record<string, any> = Record<string, never>> = {
473
471
  /**
474
- * It contains as set of options to control features used in the editor.
475
- *
476
- * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/
472
+ * An icon property should be specified to make it easier to identify a block..
477
473
  */
478
- supports?: Supports;
479
- edit: (props: BlockEditProps<Supports, Attributes, InterpretedUsedContext>) => Element;
480
- /**
481
- * Context provided for available access by descendants of blocks of this type, in the form of an object which maps a context name to one of the block’s own attribute.
482
- * Property names must only contain letters Regex:[a-zA-Z]
483
- *
484
- * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-context/
485
- */
486
- providesContext?: BlockProvidesContext<Attributes>;
487
- /**
488
- * Array of the names of context values to inherit from an ancestor provider.
489
- * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-context/
490
- */
491
- usesContext?: readonly (keyof InterpretedUsedContext)[];
474
+ icon?: string | JSX.Element;
475
+ edit: (props: CreateBlockEditProps<InterpretedAttributes, InterpretedUsedContext>) => Element;
476
+ save: (props: CreateBlockSaveProps<InterpretedAttributes>) => Element | null;
477
+ deprecated?: unknown[];
492
478
  /**
493
479
  * An API that allows a block to be transformed from and to other blocks, as well as from other entities.
494
480
  * Existing entities that work with this API include shortcodes, files, regular expressions, and raw DOM nodes.
@@ -496,31 +482,30 @@ type CurrentBlockDefinitionBase<Supports extends BlockSupports, Attributes exten
496
482
  * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-transforms/
497
483
  */
498
484
  transforms?: {
499
- from: BlockTransforms<Supports, Attributes>;
500
- to: BlockTransforms<Supports, Attributes>;
485
+ from: BlockTransforms<InterpretedAttributes>;
486
+ to: BlockTransforms<InterpretedAttributes>;
501
487
  };
502
- /**
503
- * Block Variations is the API that allows a block to have similar versions of it, but all these versions share some common functionality.
504
- */
505
- variations?: BlockVariations<Supports, Attributes>;
506
488
  };
507
- export type CurrentStaticBlockDefinition<Supports extends BlockSupports, Attributes extends BlockAttributes, InterpretedUsedContext extends Record<string, any> = Record<string, never>> = CurrentBlockDefinitionBase<Supports, Attributes, InterpretedUsedContext> & {
508
- save: (props: BlockSaveProps<Supports, Attributes>) => Element;
489
+ export type DeprecationAndFixture<OldSupports extends BlockSupports, OldAttributes extends BlockAttributes, NewInterpretedAttributes extends Record<string, unknown>, OldInterpretedAttributes extends InterpretAttributes<OldSupports, OldAttributes> = InterpretAttributes<OldSupports, OldAttributes>> = {
490
+ fixture: string[];
491
+ object: Deprecation<OldSupports, OldAttributes, NewInterpretedAttributes, OldInterpretedAttributes>;
509
492
  };
510
- export type CurrentDynamicBlockDefinition<Supports extends BlockSupports, Attributes extends BlockAttributes, InterpretedUsedContext extends Record<string, any> = Record<string, never>> = CurrentBlockDefinitionBase<Supports, Attributes, InterpretedUsedContext> & {
511
- /**
512
- * The file path to the PHP file for rendering the markup. Must be relative to block.json and start with `file:`.
513
- */
514
- render: WPDefinedPath;
515
- save?: (props: BlockSaveProps<Supports, Attributes>) => Element | null;
516
- };
517
- type DeprecatedBlockBase<OldSupports extends BlockSupports, OldAttributes extends BlockAttributes, NewSupports extends BlockSupports, NewAttributes extends BlockAttributes> = {
518
- migrate?: BlockMigrateDeprecationFunction<OldSupports, OldAttributes, NewSupports, NewAttributes>;
519
- isEligible?: BlockIsDeprecationEligibleFunction<OldSupports, OldAttributes>;
493
+ export type Deprecation<OldSupports extends BlockSupports, OldAttributes extends BlockAttributes, NewInterpretedAttributes extends Record<string, unknown>, OldInterpretedAttributes extends InterpretAttributes<OldSupports, OldAttributes> = InterpretAttributes<OldSupports, OldAttributes>> = {
494
+ attributes: OldAttributes;
495
+ supports: OldSupports;
496
+ isEligible: BlockIsDeprecationEligibleFunction<OldInterpretedAttributes>;
497
+ migrate: BlockMigrateDeprecationFunction<OldInterpretedAttributes, NewInterpretedAttributes>;
498
+ save: (props: CreateBlockSaveProps<OldInterpretedAttributes>) => Element | null;
520
499
  };
521
- export type DeprecatedStaticBlock<OldSupports extends BlockSupports, OldAttributes extends BlockAttributes, NewSupports extends BlockSupports, NewAttributes extends BlockAttributes> = Omit<CurrentStaticBlockDefinition<OldSupports, OldAttributes>, "edit"> & DeprecatedBlockBase<OldSupports, OldAttributes, NewSupports, NewAttributes>;
522
- export type DeprecatedDynamicBlock<OldSupports extends BlockSupports, OldAttributes extends BlockAttributes, NewSupports extends BlockSupports, NewAttributes extends BlockAttributes> = Omit<CurrentStaticBlockDefinition<OldSupports, OldAttributes>, "edit"> & DeprecatedBlockBase<OldSupports, OldAttributes, NewSupports, NewAttributes>;
523
- export type DeprecatedBlock<OldSupports extends BlockSupports, OldAttributes extends BlockAttributes, NewSupports extends BlockSupports, NewAttributes extends BlockAttributes> = DeprecatedStaticBlock<OldSupports, OldAttributes, NewSupports, NewAttributes> | DeprecatedDynamicBlock<OldSupports, OldAttributes, NewSupports, NewAttributes>;
524
- export declare function registerBlockType<Supports extends BlockSupports, Attributes extends BlockAttributes = Record<string, never>, UsedContext extends Record<string, any> = Record<string, never>>(name: string, settings: Partial<BlockMetaData<Supports, Attributes>> & BlockSettings<Supports, Attributes, UsedContext>): import("@wordpress/blocks").Block<Attributes> | undefined;
525
- export {};
500
+ export type AllDeprecations<NewInterpretedAttributes extends Record<string, unknown>> = {
501
+ attributes: any;
502
+ supports: any;
503
+ isEligible: (attributes: any, innerBlocks: InnerBlocks[]) => boolean;
504
+ migrate: (attributes: any, innerBlocks: InnerBlocks[]) => NewInterpretedAttributes | [NewInterpretedAttributes, InnerBlocks[]];
505
+ save: (props: {
506
+ readonly attributes: any;
507
+ readonly innerBlocks: readonly InnerBlocks[];
508
+ }) => Element | null;
509
+ }[];
510
+ export declare function registerBlockType<InterpretedAttributes extends Record<string, unknown>, InterpretedUsedContext extends Record<string, any> = Record<string, never>>(name: string, settings: ClientOnlyRegisterOptions<InterpretedAttributes, InterpretedUsedContext>): import("@wordpress/blocks").Block<Record<string, any>> | undefined;
526
511
  //# s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O,GAAG,IAAI,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,eAAe,CAC1B,wBAAwB,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACrD;IACH,UAAU,EAAE,GAAG,CAAC;IAChB,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,CAAC,UAAU,EAAE,GAAG,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,OAAO,CAAC;IACrE,OAAO,EAAE,CACR,UAAU,EAAE,GAAG,EACf,WAAW,EAAE,WAAW,EAAE,KACtB,wBAAwB,GAAG,CAAC,wBAAwB,EAAE,WAAW,EAAE,CAAC,CAAC;IAC1E,IAAI,EAAE,CAAC,KAAK,EAAE;QACb,QAAQ,CAAC,UAAU,EAAE,GAAG,CAAC;QACzB,QAAQ,CAAC,WAAW,EAAE,SAAS,WAAW,EAAE,CAAC;KAC7C,KAAK,OAAO,GAAG,IAAI,CAAC;CACrB,EAAE,CAAC;AAEJ,wBAAgB,iBAAiB,CAChC,qBAAqB,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrD,sBAAsB,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAE1E,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,yBAAyB,CAClC,qBAAqB,EACrB,sBAAsB,CACtB,sEAID"}
@@ -0,0 +1,32 @@
1
+ export type FlowLayout = {
2
+ type: "default";
3
+ };
4
+ export type ConstrainedLayout = {
5
+ type: "constrained";
6
+ justifyContent?: "left" | "center" | "right";
7
+ contentSize?: string;
8
+ wideSize?: string;
9
+ };
10
+ export type FlexLayout = {
11
+ type: "flex";
12
+ flexWrap?: "wrap" | "nowrap";
13
+ } & ({
14
+ orientation?: "horizontal";
15
+ justifyContent?: "left" | "center" | "right" | "space-between";
16
+ verticalAlignment?: "top" | "center" | "bottom" | "stretch";
17
+ } | {
18
+ orientation: "vertical";
19
+ justifyContent?: "left" | "center" | "right" | "stretch";
20
+ verticalAlignment?: "top" | "center" | "bottom" | "space-between";
21
+ });
22
+ export type GridLayout = {
23
+ type: "grid";
24
+ } & ({
25
+ minimumColumnWidth?: string;
26
+ columnCount?: never;
27
+ } | {
28
+ minimumColumnWidth?: never;
29
+ columnCount?: number;
30
+ });
31
+ export type AllPossibleLayouts = FlowLayout | FlexLayout | GridLayout | ConstrainedLayout;
32
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/layout.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAC7C,MAAM,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC7B,GAAG,CACD;IACA,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,eAAe,CAAC;IAC/D,iBAAiB,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;CAC3D,GACD;IACA,WAAW,EAAE,UAAU,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IACzD,iBAAiB,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,eAAe,CAAC;CACjE,CACH,CAAC;AACF,MAAM,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;CACb,GAAG,CACD;IACA,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC;CACnB,GACD;IACA,kBAAkB,CAAC,EAAE,KAAK,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;CACpB,CACH,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC3B,UAAU,GACV,UAAU,GACV,UAAU,GACV,iBAAiB,CAAC"}
package/dist/layout.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomicsmash/blocks-helpers",
3
- "version": "4.0.0-beta.9",
3
+ "version": "4.0.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://www.atomicsmash.co.uk/",
@@ -36,13 +36,13 @@
36
36
  "lint:types": "tsc"
37
37
  },
38
38
  "dependencies": {
39
- "@wordpress/blocks": "^12.29.0"
39
+ "@wordpress/blocks": "^13.5.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@types/wordpress__block-editor": "^11.5.13",
43
- "@types/wordpress__blocks": "^12.5.0",
44
- "@wordpress/block-editor": "^12.22.0",
45
- "@wordpress/components": "^27.2.0",
46
- "@wordpress/i18n": "^4.54.0"
42
+ "@types/wordpress__block-editor": "^11.5.15",
43
+ "@types/wordpress__blocks": "^12.5.14",
44
+ "@wordpress/block-editor": "^14.0.0",
45
+ "@wordpress/components": "^28.5.0",
46
+ "@wordpress/i18n": "^5.5.0"
47
47
  }
48
48
  }