@symbo.ls/create 2.34.25 → 2.34.27

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.
@@ -109,7 +109,8 @@ const prepareMethods = (context) => {
109
109
  return {
110
110
  ...context.methods || {},
111
111
  require: context.utils.require,
112
- requireOnDemand: context.utils.requireOnDemand
112
+ requireOnDemand: context.utils.requireOnDemand,
113
+ router: context.utils.router
113
114
  };
114
115
  };
115
116
  const cachedDeps = {};
@@ -230,6 +231,7 @@ const prepareState = (app, context) => {
230
231
  const state = {};
231
232
  if (context.state) utils.deepMerge(state, context.state);
232
233
  if (app && app.state) (0, import_utils.deepMerge)(state, app.state);
234
+ state.isRootState = true;
233
235
  return (0, import_utils.deepClone)(state);
234
236
  };
235
237
  const preparePages = (app, context) => {
@@ -246,8 +248,6 @@ const preparePages = (app, context) => {
246
248
  };
247
249
  const prepareSharedLibs = (context) => {
248
250
  const sharedLibraries = context.sharedLibraries;
249
- console.log(sharedLibraries);
250
- console.log(context.type);
251
251
  for (let i = 0; i < sharedLibraries.length; i++) {
252
252
  const sharedLib = sharedLibraries[i];
253
253
  if (context.type === "template") {
@@ -85,7 +85,8 @@ const prepareUtils = (context) => {
85
85
  const prepareMethods = (context) => {
86
86
  return __spreadProps(__spreadValues({}, context.methods || {}), {
87
87
  require: context.utils.require,
88
- requireOnDemand: context.utils.requireOnDemand
88
+ requireOnDemand: context.utils.requireOnDemand,
89
+ router: context.utils.router
89
90
  });
90
91
  };
91
92
  const cachedDeps = {};
@@ -206,6 +207,7 @@ const prepareState = (app, context) => {
206
207
  const state = {};
207
208
  if (context.state) utils.deepMerge(state, context.state);
208
209
  if (app && app.state) deepMerge(state, app.state);
210
+ state.isRootState = true;
209
211
  return deepClone(state);
210
212
  };
211
213
  const preparePages = (app, context) => {
@@ -222,8 +224,6 @@ const preparePages = (app, context) => {
222
224
  };
223
225
  const prepareSharedLibs = (context) => {
224
226
  const sharedLibraries = context.sharedLibraries;
225
- console.log(sharedLibraries);
226
- console.log(context.type);
227
227
  for (let i = 0; i < sharedLibraries.length; i++) {
228
228
  const sharedLib = sharedLibraries[i];
229
229
  if (context.type === "template") {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.34.25",
3
+ "version": "2.34.27",
4
4
  "license": "MIT",
5
- "gitHead": "d5d0fa6c595ec8b35ddb5520084a06b7689ecf42",
5
+ "gitHead": "1994ef5ac77cba0564a416c60e9d0a984543d9af",
6
6
  "type": "module",
7
7
  "module": "src/index.js",
8
8
  "main": "src/index.js",
@@ -29,17 +29,17 @@
29
29
  "prepublish": "npm run build; npm run copy:package:cjs"
30
30
  },
31
31
  "dependencies": {
32
- "@domql/emotion": "^2.34.25",
33
- "@domql/event": "^2.34.25",
34
- "@domql/report": "^2.34.25",
35
- "@domql/router": "^2.34.25",
36
- "@symbo.ls/fetch": "^2.34.25",
37
- "@symbo.ls/init": "^2.34.25",
38
- "@symbo.ls/scratch": "^2.34.25",
39
- "@symbo.ls/sync": "^2.34.25",
40
- "@symbo.ls/uikit": "^2.34.25",
41
- "@symbo.ls/utils": "^2.34.25",
42
- "domql": "^2.34.25"
32
+ "@domql/emotion": "^2.34.27",
33
+ "@domql/event": "^2.34.27",
34
+ "@domql/report": "^2.34.27",
35
+ "@domql/router": "^2.34.27",
36
+ "@symbo.ls/fetch": "^2.34.27",
37
+ "@symbo.ls/init": "^2.34.27",
38
+ "@symbo.ls/scratch": "^2.34.27",
39
+ "@symbo.ls/sync": "^2.34.27",
40
+ "@symbo.ls/uikit": "^2.34.27",
41
+ "@symbo.ls/utils": "^2.34.27",
42
+ "domql": "^2.34.27"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@babel/core": "^7.27.1"
package/src/prepare.js CHANGED
@@ -93,7 +93,8 @@ export const prepareMethods = (context) => {
93
93
  return {
94
94
  ...(context.methods || {}),
95
95
  require: context.utils.require,
96
- requireOnDemand: context.utils.requireOnDemand
96
+ requireOnDemand: context.utils.requireOnDemand,
97
+ router: context.utils.router
97
98
  }
98
99
  }
99
100
 
@@ -232,6 +233,7 @@ export const prepareState = (app, context) => {
232
233
  const state = {}
233
234
  if (context.state) utils.deepMerge(state, context.state)
234
235
  if (app && app.state) deepMerge(state, app.state)
236
+ state.isRootState = true
235
237
  return deepClone(state)
236
238
  }
237
239
 
@@ -252,8 +254,6 @@ export const preparePages = (app, context) => {
252
254
 
253
255
  export const prepareSharedLibs = (context) => {
254
256
  const sharedLibraries = context.sharedLibraries
255
- console.log(sharedLibraries)
256
- console.log(context.type)
257
257
  for (let i = 0; i < sharedLibraries.length; i++) {
258
258
  const sharedLib = sharedLibraries[i]
259
259
  if (context.type === 'template') {