@symbo.ls/create 2.11.276 → 2.11.279
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/cjs/bundle/index.js +13 -16
- package/dist/cjs/index.js +4 -4
- package/package.json +2 -2
- package/src/index.js +4 -4
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -12395,8 +12395,8 @@ var Block = {
|
|
|
12395
12395
|
return;
|
|
12396
12396
|
const [marginInlineStart, marginInlineEnd] = props4.marginInline.split(" ");
|
|
12397
12397
|
return {
|
|
12398
|
-
...deps.
|
|
12399
|
-
...deps.
|
|
12398
|
+
...deps.transformSize("marginInlineStart", marginInlineStart),
|
|
12399
|
+
...deps.transformSize("marginInlineEnd", marginInlineEnd || marginInlineStart)
|
|
12400
12400
|
};
|
|
12401
12401
|
},
|
|
12402
12402
|
marginBlock: ({ props: props4, deps }) => {
|
|
@@ -12404,8 +12404,8 @@ var Block = {
|
|
|
12404
12404
|
return;
|
|
12405
12405
|
const [marginBlockStart, marginBlockEnd] = props4.marginBlock.split(" ");
|
|
12406
12406
|
return {
|
|
12407
|
-
...deps.
|
|
12408
|
-
...deps.
|
|
12407
|
+
...deps.transformSize("marginBlockStart", marginBlockStart),
|
|
12408
|
+
...deps.transformSize("marginBlockEnd", marginBlockEnd || marginBlockStart)
|
|
12409
12409
|
};
|
|
12410
12410
|
},
|
|
12411
12411
|
marginInlineStart: ({ props: props4, deps }) => deps.transformSizeRatio("marginInlineStart", props4),
|
|
@@ -17091,13 +17091,11 @@ var UploadIcon = {
|
|
|
17091
17091
|
padding: "B B2"
|
|
17092
17092
|
},
|
|
17093
17093
|
Input: {
|
|
17094
|
-
|
|
17095
|
-
|
|
17096
|
-
|
|
17097
|
-
|
|
17098
|
-
|
|
17099
|
-
visibility: "hidden"
|
|
17100
|
-
}
|
|
17094
|
+
type: "file",
|
|
17095
|
+
position: "absolute",
|
|
17096
|
+
inset: "0 0 0 0",
|
|
17097
|
+
opacity: "0",
|
|
17098
|
+
visibility: "hidden"
|
|
17101
17099
|
},
|
|
17102
17100
|
Icon: {
|
|
17103
17101
|
props: {
|
|
@@ -21502,7 +21500,6 @@ var DevFocus = {
|
|
|
21502
21500
|
on: {
|
|
21503
21501
|
init: ({ context }) => {
|
|
21504
21502
|
const { components } = context;
|
|
21505
|
-
console.log(components);
|
|
21506
21503
|
if ((0, import_utils21.isObject)(components)) {
|
|
21507
21504
|
const { Content, ...rest } = components;
|
|
21508
21505
|
for (const key in rest) {
|
|
@@ -22406,10 +22403,10 @@ var createDomqlElement = (App, options) => {
|
|
|
22406
22403
|
|
|
22407
22404
|
// src/index.js
|
|
22408
22405
|
var SYMBOLS_KEY2 = process.env.SYMBOLS_KEY;
|
|
22409
|
-
var mergeWithLocalFile2 = (options, optionsExternalFile) =>
|
|
22410
|
-
|
|
22411
|
-
|
|
22412
|
-
|
|
22406
|
+
var mergeWithLocalFile2 = (options, optionsExternalFile) => (0, import_utils29.deepMerge)(
|
|
22407
|
+
options,
|
|
22408
|
+
(0, import_utils29.isObject)(optionsExternalFile) ? optionsExternalFile : dynamic_default || {}
|
|
22409
|
+
);
|
|
22413
22410
|
var create = (App, options = options_default, optionsExternalFile) => {
|
|
22414
22411
|
const redefinedOptions = { ...options_default, ...mergeWithLocalFile2(options, optionsExternalFile) };
|
|
22415
22412
|
const domqlApp = createDomqlElement(App, redefinedOptions);
|
package/dist/cjs/index.js
CHANGED
|
@@ -43,10 +43,10 @@ var import_options = __toESM(require("./options"), 1);
|
|
|
43
43
|
var import_dynamic = __toESM(require("@symbo.ls/init/dynamic.json"), 1);
|
|
44
44
|
var import_createDomql = require("./createDomql");
|
|
45
45
|
const SYMBOLS_KEY = process.env.SYMBOLS_KEY;
|
|
46
|
-
const mergeWithLocalFile = (options, optionsExternalFile) =>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
const mergeWithLocalFile = (options, optionsExternalFile) => (0, import_utils.deepMerge)(
|
|
47
|
+
options,
|
|
48
|
+
(0, import_utils.isObject)(optionsExternalFile) ? optionsExternalFile : import_dynamic.default || {}
|
|
49
|
+
);
|
|
50
50
|
const create = (App, options = import_options.default, optionsExternalFile) => {
|
|
51
51
|
const redefinedOptions = { ...import_options.default, ...mergeWithLocalFile(options, optionsExternalFile) };
|
|
52
52
|
const domqlApp = (0, import_createDomql.createDomqlElement)(App, redefinedOptions);
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -14,10 +14,10 @@ import { createDomqlElement } from './createDomql'
|
|
|
14
14
|
|
|
15
15
|
const SYMBOLS_KEY = process.env.SYMBOLS_KEY
|
|
16
16
|
|
|
17
|
-
const mergeWithLocalFile = (options, optionsExternalFile) =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
const mergeWithLocalFile = (options, optionsExternalFile) => deepMerge(
|
|
18
|
+
options,
|
|
19
|
+
isObject(optionsExternalFile) ? optionsExternalFile : DYNAMIC_JSON || {}
|
|
20
|
+
)
|
|
21
21
|
|
|
22
22
|
export const create = (App, options = DEFAULT_CREATE_OPTIONS, optionsExternalFile) => {
|
|
23
23
|
const redefinedOptions = { ...DEFAULT_CREATE_OPTIONS, ...mergeWithLocalFile(options, optionsExternalFile) }
|