eddev 0.2.43 → 0.2.44

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.
@@ -77,9 +77,11 @@ function installEDGutenbergHooks() {
77
77
  return blocksByChildTag[tag];
78
78
  };
79
79
  (0, hooks_1.addFilter)("blocks.registerBlockType", "ed", function (item, name) {
80
+ var _a;
80
81
  // Hook into ACF blocks, customising the edit mode.
81
82
  if (name.startsWith("acf/")) {
82
83
  var edit_1 = item.edit;
84
+ item.acf = __assign(__assign({}, ((_a = item.acf) !== null && _a !== void 0 ? _a : {})), { mode: item.mode });
83
85
  // Add an 'inline' object attribute, which will hold all inline contents
84
86
  item.attributes.inline = { type: "object" };
85
87
  item.supports.customClassName = false;
@@ -132,8 +134,8 @@ function installEDGutenbergHooks() {
132
134
  else if (!Array.isArray(item.childTags)) {
133
135
  item.childTags = [];
134
136
  }
135
- for (var _i = 0, _a = item.childTags; _i < _a.length; _i++) {
136
- var tag = _a[_i];
137
+ for (var _i = 0, _b = item.childTags; _i < _b.length; _i++) {
138
+ var tag = _b[_i];
137
139
  if (!blocksByChildTag[tag]) {
138
140
  blocksByChildTag[tag] = [];
139
141
  }
@@ -3,13 +3,28 @@ export declare const EDConfigSchema: z.ZodObject<{
3
3
  $schema: z.ZodOptional<z.ZodString>;
4
4
  tracking: z.ZodOptional<z.ZodObject<{
5
5
  tagManagerID: z.ZodOptional<z.ZodString>;
6
- analyticsID: z.ZodOptional<z.ZodString>;
6
+ ga: z.ZodOptional<z.ZodObject<{
7
+ trackingID: z.ZodOptional<z.ZodString>;
8
+ version: z.ZodEnum<["3", "4"]>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ trackingID?: string | undefined;
11
+ version: "3" | "4";
12
+ }, {
13
+ trackingID?: string | undefined;
14
+ version: "3" | "4";
15
+ }>>;
7
16
  }, "strip", z.ZodTypeAny, {
8
17
  tagManagerID?: string | undefined;
9
- analyticsID?: string | undefined;
18
+ ga?: {
19
+ trackingID?: string | undefined;
20
+ version: "3" | "4";
21
+ } | undefined;
10
22
  }, {
11
23
  tagManagerID?: string | undefined;
12
- analyticsID?: string | undefined;
24
+ ga?: {
25
+ trackingID?: string | undefined;
26
+ version: "3" | "4";
27
+ } | undefined;
13
28
  }>>;
14
29
  serverless: z.ZodOptional<z.ZodObject<{
15
30
  enabled: z.ZodBoolean;
@@ -57,7 +72,10 @@ export declare const EDConfigSchema: z.ZodObject<{
57
72
  $schema?: string | undefined;
58
73
  tracking?: {
59
74
  tagManagerID?: string | undefined;
60
- analyticsID?: string | undefined;
75
+ ga?: {
76
+ trackingID?: string | undefined;
77
+ version: "3" | "4";
78
+ } | undefined;
61
79
  } | undefined;
62
80
  serverless?: {
63
81
  themeAssets?: string[] | undefined;
@@ -79,7 +97,10 @@ export declare const EDConfigSchema: z.ZodObject<{
79
97
  $schema?: string | undefined;
80
98
  tracking?: {
81
99
  tagManagerID?: string | undefined;
82
- analyticsID?: string | undefined;
100
+ ga?: {
101
+ trackingID?: string | undefined;
102
+ version: "3" | "4";
103
+ } | undefined;
83
104
  } | undefined;
84
105
  serverless?: {
85
106
  themeAssets?: string[] | undefined;
@@ -7,7 +7,12 @@ exports.EDConfigSchema = zod_1.z.object({
7
7
  tracking: zod_1.z
8
8
  .object({
9
9
  tagManagerID: zod_1.z.string().optional(),
10
- analyticsID: zod_1.z.string().optional(),
10
+ ga: zod_1.z
11
+ .object({
12
+ trackingID: zod_1.z.string().optional(),
13
+ version: zod_1.z.enum(["3", "4"]),
14
+ })
15
+ .optional(),
11
16
  })
12
17
  .optional(),
13
18
  serverless: zod_1.z
@@ -2,7 +2,10 @@ export declare function getEDConfig(dir?: string): import("zod").SafeParseReturn
2
2
  $schema?: string | undefined;
3
3
  tracking?: {
4
4
  tagManagerID?: string | undefined;
5
- analyticsID?: string | undefined;
5
+ ga?: {
6
+ trackingID?: string | undefined;
7
+ version: "3" | "4";
8
+ } | undefined;
6
9
  } | undefined;
7
10
  serverless?: {
8
11
  themeAssets?: string[] | undefined;
@@ -24,7 +27,10 @@ export declare function getEDConfig(dir?: string): import("zod").SafeParseReturn
24
27
  $schema?: string | undefined;
25
28
  tracking?: {
26
29
  tagManagerID?: string | undefined;
27
- analyticsID?: string | undefined;
30
+ ga?: {
31
+ trackingID?: string | undefined;
32
+ version: "3" | "4";
33
+ } | undefined;
28
34
  } | undefined;
29
35
  serverless?: {
30
36
  themeAssets?: string[] | undefined;
@@ -47,7 +53,10 @@ export declare function getEDConfigUnwrapped(dir?: string): {
47
53
  $schema?: string | undefined;
48
54
  tracking?: {
49
55
  tagManagerID?: string | undefined;
50
- analyticsID?: string | undefined;
56
+ ga?: {
57
+ trackingID?: string | undefined;
58
+ version: "3" | "4";
59
+ } | undefined;
51
60
  } | undefined;
52
61
  serverless?: {
53
62
  themeAssets?: string[] | undefined;
@@ -2,7 +2,10 @@ export declare function parseConfig(config: any): import("zod").SafeParseReturnT
2
2
  $schema?: string | undefined;
3
3
  tracking?: {
4
4
  tagManagerID?: string | undefined;
5
- analyticsID?: string | undefined;
5
+ ga?: {
6
+ trackingID?: string | undefined;
7
+ version: "3" | "4";
8
+ } | undefined;
6
9
  } | undefined;
7
10
  serverless?: {
8
11
  themeAssets?: string[] | undefined;
@@ -24,7 +27,10 @@ export declare function parseConfig(config: any): import("zod").SafeParseReturnT
24
27
  $schema?: string | undefined;
25
28
  tracking?: {
26
29
  tagManagerID?: string | undefined;
27
- analyticsID?: string | undefined;
30
+ ga?: {
31
+ trackingID?: string | undefined;
32
+ version: "3" | "4";
33
+ } | undefined;
28
34
  } | undefined;
29
35
  serverless?: {
30
36
  themeAssets?: string[] | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "0.2.43",
3
+ "version": "0.2.44",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "bin": {