@symbo.ls/create 2.11.132 → 2.11.133

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.
@@ -24,6 +24,7 @@ module.exports = __toCommonJS(define_exports);
24
24
  var import_uikit = require("@symbo.ls/uikit");
25
25
  const defaultDefine = {
26
26
  routes: (param) => param,
27
+ deps: (param, el) => param || el.parent.deps,
27
28
  $router: (param, el) => {
28
29
  if (!param)
29
30
  return;
package/dist/cjs/index.js CHANGED
@@ -108,28 +108,32 @@ const createSync = (App, options = import_options.default, optionsExternalFile)
108
108
  const doc = options.parent || options.document || document;
109
109
  const [scratchSystem, emotion, registry] = (0, import_initEmotion.initEmotion)(key, options);
110
110
  const state = options.state || {};
111
+ const pages = options.pages || {};
111
112
  const components = options.components ? { ...uikit, ...options.components } : uikit;
112
113
  const designSystem = scratchSystem || {};
113
- const snippets = { ...utils, ...options.snippets || {} };
114
+ const snippets = { ...utils, ...utils.scratchUtils, ...options.snippets || {} };
114
115
  const define = options.define || import_define.defaultDefine;
115
116
  const extend = (0, import_syncExtend.applySyncDebug)([App], options);
116
117
  const domqlApp = import_domql.default.create({
117
118
  extend,
119
+ //routes: options.pages,
118
120
  state,
119
121
  context: {
120
122
  key,
121
123
  components,
122
124
  state,
125
+ pages,
123
126
  designSystem,
124
127
  snippets,
125
128
  utils: snippets,
126
129
  define,
127
130
  registry,
128
131
  emotion,
132
+ //routerOptions,
129
133
  document: doc
130
134
  }
131
135
  }, doc.body, key, {
132
- // extend: [uikit.Box],
136
+ //extend: [uikit.Box],
133
137
  verbose: options.verbose,
134
138
  ...options.domqlOptions
135
139
  });
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.11.132",
3
+ "version": "2.11.133",
4
4
  "license": "MIT",
5
- "gitHead": "13027443598f113dd2b79ddf7aaf1adbd46d97d7",
5
+ "gitHead": "8378c373c9854f76a8a1a5e9c2181402ec09d399",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
package/src/define.js CHANGED
@@ -4,6 +4,7 @@ import { Collection } from '@symbo.ls/uikit'
4
4
 
5
5
  export const defaultDefine = {
6
6
  routes: param => param,
7
+ deps: (param, el) => param || el.parent.deps,
7
8
 
8
9
  $router: (param, el) => {
9
10
  if (!param) return
package/src/index.js CHANGED
@@ -91,30 +91,35 @@ export const createSync = (App, options = DEFAULT_CREATE_OPTIONS, optionsExterna
91
91
  const [scratchSystem, emotion, registry] = initEmotion(key, options)
92
92
 
93
93
  const state = options.state || {}
94
+ const pages = options.pages || {}
94
95
  const components = options.components ? { ...uikit, ...options.components } : uikit
95
96
  const designSystem = scratchSystem || {}
96
- const snippets = { ...utils, ...(options.snippets || {}) }
97
+ const snippets = { ...utils, ...utils.scratchUtils, ...(options.snippets || {}) }
97
98
  const define = options.define || defaultDefine
98
99
 
100
+ //const routerOptions = initRouter(App, options) // eslint-disable-line
99
101
  const extend = applySyncDebug([App], options)
100
102
 
101
103
  const domqlApp = DOM.create({
102
104
  extend,
105
+ //routes: options.pages,
103
106
  state,
104
107
  context: {
105
108
  key,
106
109
  components,
107
110
  state,
111
+ pages,
108
112
  designSystem,
109
113
  snippets,
110
114
  utils: snippets,
111
115
  define,
112
116
  registry,
113
117
  emotion,
118
+ //routerOptions,
114
119
  document: doc
115
120
  }
116
121
  }, doc.body, key, {
117
- // extend: [uikit.Box],
122
+ //extend: [uikit.Box],
118
123
  verbose: options.verbose,
119
124
  ...options.domqlOptions
120
125
  })
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 symbo.ls
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.