@symbo.ls/create 2.11.460 → 2.11.462
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 +4052 -1347
- package/dist/cjs/initEmotion.js +2 -12
- package/dist/cjs/syncExtend.js +1 -1
- package/package.json +2 -2
- package/src/initEmotion.js +1 -1
- package/src/syncExtend.js +1 -1
package/dist/cjs/initEmotion.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
19
|
var initEmotion_exports = {};
|
|
30
20
|
__export(initEmotion_exports, {
|
|
@@ -36,7 +26,7 @@ var import_emotion2 = require("@symbo.ls/emotion");
|
|
|
36
26
|
var import_init = require("@symbo.ls/init");
|
|
37
27
|
var import_utils = require("@domql/utils");
|
|
38
28
|
var import_options = require("./options");
|
|
39
|
-
var import_default_config =
|
|
29
|
+
var import_default_config = require("@symbo.ls/default-config");
|
|
40
30
|
const initEmotion = (key, options = {}) => {
|
|
41
31
|
var _a;
|
|
42
32
|
const doc = options.parent || options.document || document;
|
|
@@ -45,7 +35,7 @@ const initEmotion = (key, options = {}) => {
|
|
|
45
35
|
if (!initOptions.emotion)
|
|
46
36
|
initOptions.emotion = import_emotion2.emotion;
|
|
47
37
|
const registry = options.registry || (0, import_emotion.transformDOMQLEmotion)(initOptions.emotion, options);
|
|
48
|
-
const designSystem = initOptions.useDefaultConfig || ((_a = options.designSystem) == null ? void 0 : _a.useDefaultConfig) ? (0, import_utils.deepMerge)(options.designSystem, (0, import_utils.deepClone)(import_default_config.
|
|
38
|
+
const designSystem = initOptions.useDefaultConfig || ((_a = options.designSystem) == null ? void 0 : _a.useDefaultConfig) ? (0, import_utils.deepMerge)(options.designSystem, (0, import_utils.deepClone)(import_default_config.DEFAULT_CONFIG)) : options.designSystem || (0, import_utils.deepClone)(import_default_config.DEFAULT_CONFIG);
|
|
49
39
|
const scratchSystem = (0, import_init.init)(designSystem, {
|
|
50
40
|
key,
|
|
51
41
|
emotion,
|
package/dist/cjs/syncExtend.js
CHANGED
|
@@ -27,7 +27,7 @@ module.exports = __toCommonJS(syncExtend_exports);
|
|
|
27
27
|
var import_utils = require("@domql/utils");
|
|
28
28
|
var import_sync = require("@symbo.ls/sync");
|
|
29
29
|
const initializeExtend = (app, ctx) => {
|
|
30
|
-
return (0, import_utils.isObjectLike)(app.extend) ? app.extend :
|
|
30
|
+
return (0, import_utils.isObjectLike)(app.extend) ? app.extend : [];
|
|
31
31
|
};
|
|
32
32
|
const initializeSync = (app, ctx) => {
|
|
33
33
|
const { editor } = ctx;
|
package/package.json
CHANGED
package/src/initEmotion.js
CHANGED
|
@@ -6,7 +6,7 @@ import { init } from '@symbo.ls/init'
|
|
|
6
6
|
import { deepClone, deepMerge } from '@domql/utils'
|
|
7
7
|
|
|
8
8
|
import { DESIGN_SYSTEM_OPTIONS } from './options'
|
|
9
|
-
import DEFAULT_CONFIG from '@symbo.ls/default-config'
|
|
9
|
+
import { DEFAULT_CONFIG } from '@symbo.ls/default-config'
|
|
10
10
|
|
|
11
11
|
export const initEmotion = (key, options = {}) => {
|
|
12
12
|
const doc = options.parent || options.document || document
|
package/src/syncExtend.js
CHANGED
|
@@ -4,7 +4,7 @@ import { isObjectLike, isUndefined, isDevelopment } from '@domql/utils'
|
|
|
4
4
|
import { SyncComponent, Inspect, Notifications } from '@symbo.ls/sync'
|
|
5
5
|
|
|
6
6
|
export const initializeExtend = (app, ctx) => {
|
|
7
|
-
return isObjectLike(app.extend) ? app.extend :
|
|
7
|
+
return isObjectLike(app.extend) ? app.extend : []
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export const initializeSync = (app, ctx) => {
|