@symbo.ls/create 2.11.99 → 2.11.100

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.
@@ -19236,11 +19236,11 @@ var AvatarChooser = {
19236
19236
  padding: "0 A 0 B1+X"
19237
19237
  },
19238
19238
  attr: { name: "avatar-chooser", id: "avatar-chooser" },
19239
- childExtend: { tag: "option", text: ({ state }) => state.text },
19240
- $setCollection: ({ parent }) => parent.props.options,
19239
+ childExtend: { tag: "option" },
19240
+ $setPropsCollection: ({ parent }) => parent.props.options,
19241
19241
  on: {
19242
19242
  change: (ev, { parent }) => {
19243
- parent.user.update({ key: ev.target.value });
19243
+ parent.Avatar.update({ key: ev.target.value });
19244
19244
  }
19245
19245
  }
19246
19246
  }
@@ -21088,7 +21088,6 @@ var popStateRouter = (element, options) => {
21088
21088
  import_globals.window.onpopstate = (e) => {
21089
21089
  const { pathname, hash: hash2 } = import_globals.window.location;
21090
21090
  const url2 = pathname + hash2;
21091
- console.log(url2);
21092
21091
  router2(url2, element, {}, { pushState: false, level: 0 });
21093
21092
  };
21094
21093
  };
@@ -70,7 +70,6 @@ const popStateRouter = (element, options) => {
70
70
  import_globals.window.onpopstate = (e) => {
71
71
  const { pathname, hash } = import_globals.window.location;
72
72
  const url = pathname + hash;
73
- console.log(url);
74
73
  router(url, element, {}, { pushState: false, level: 0 });
75
74
  };
76
75
  };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.11.99",
3
+ "version": "2.11.100",
4
4
  "license": "MIT",
5
- "gitHead": "ca2b0202aae2d8be7c5cba8b3d419fd1dc39c106",
5
+ "gitHead": "7e20a7bb3120260091d2365e9dcecf01189d949b",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
package/src/router.js CHANGED
@@ -47,12 +47,12 @@ export const popStateRouter = (element, options) => {
47
47
  popStateFired = true
48
48
  const routerOptions = options.router || DEFAULT_ROUTING_OPTIONS
49
49
  if (!routerOptions.popState) return
50
- const router = (options.snippets && options.snippets.router) ? options.snippets.router : defaultRouter
50
+ const router = (options.snippets && options.snippets.router)
51
+ ? options.snippets.router
52
+ : defaultRouter
51
53
  window.onpopstate = e => {
52
54
  const { pathname, hash } = window.location
53
55
  const url = pathname + hash
54
- console.log(url)
55
- // console.log(element)
56
56
  router(url, element, {}, { pushState: false, level: 0 })
57
57
  }
58
58
  }