neo.mjs 6.15.9 → 6.15.11

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.
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='6.15.9'
23
+ * @member {String} version='6.15.11'
24
24
  */
25
- version: '6.15.9'
25
+ version: '6.15.11'
26
26
  }
27
27
 
28
28
  /**
@@ -56,11 +56,11 @@ class Viewport extends Container {
56
56
 
57
57
  items: [{
58
58
  module: ContentBox,
59
- header: 'Quick Application Development',
59
+ header: 'Next-Generation Runtime',
60
60
  route : '#/learn/WhyNeo-Quick',
61
61
 
62
62
  content: [
63
- 'Property lifecycle hooks',
63
+ 'Multi-threaded',
64
64
  'Elegant state management',
65
65
  'Simple and powerful debugging'
66
66
  ]
@@ -74,16 +74,6 @@ class Viewport extends Container {
74
74
  'Over 40,000 delta updates per second',
75
75
  'Item 3'
76
76
  ]
77
- }, {
78
- module: ContentBox,
79
- header: 'Multi Window Apps',
80
- route : '#/learn/WhyNeo-Multi-Window',
81
-
82
- content: [
83
- 'Item 1',
84
- 'Item 2',
85
- 'Item 3'
86
- ]
87
77
  }]
88
78
  }]
89
79
  }
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='6.15.9'
23
+ * @member {String} version='6.15.11'
24
24
  */
25
- version: '6.15.9'
25
+ version: '6.15.11'
26
26
  }
27
27
 
28
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "6.15.9",
3
+ "version": "6.15.11",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -22,10 +22,10 @@ The `docs` directory holds the Neo.mjs API docs.
22
22
  ## The structure of a simple app
23
23
 
24
24
  In order to discuss the structure of an app, we'll create a simple starter
25
- app vis this script, run from the workspace. The script prompts for various
25
+ app via this script, run from the workspace. The script prompts for various
26
26
  application settings.
27
27
 
28
- `npm run create-app-empty`
28
+ `npm run create-app-minimal`
29
29
 
30
30
  At the first prompt, we'll name the app `Foo`, and accept the default for everything else.
31
31
  The script creates an application structured as follows.
@@ -41,7 +41,7 @@ In this lab, you'll generate a Neo.mjs workspace and run the starter app.
41
41
 
42
42
  <details>
43
43
  <summary>Wait!</summary>
44
- You may already have a workspace! If so, you can skip this lab. For example, if you followed the _Getting Started > Setup_ topic, above, you should already have a workspace.
44
+ You may already have a workspace! If so, you can skip this lab. For example, if you followed the <a href="#/learn/Setup">Getting Started > Setup</a> topic, above, you should already have a workspace.
45
45
 
46
46
  If you don't have a workspace, then continue on to the next step.
47
47
  </details>
@@ -125,7 +125,7 @@ Parallel processing &mdash; along wih the efficient way the vdom worker applies
125
125
  If you look in the `package.json` script block you'll see several scripts used for generating applications
126
126
  and classes, doing builds, and starting a server. We'll use several of them throughout the tutorials.
127
127
 
128
- - create-app &mdash; creates a simple demo app
128
+ - &mdash; creates a simple demo app
129
129
  - create-app-minimal &mdash; creates a application shell with no content
130
130
  - server-start &mdash; starts a server with webroot set to the workspace
131
131
  - build-all &mdash; builds minimized versions of your apps
@@ -146,7 +146,7 @@ In this lab you'll create a starter app and add a single component.
146
146
  Use a terminal window to navigate to the workspace and run the following script. Use "Earthquakes"
147
147
  as the app name, and defaults for everything else.
148
148
 
149
- npm run generate-app-minimal
149
+ npm run create-app-minimal
150
150
 
151
151
  After the script runs yous should see these files in the `app/earthquakes` directory.
152
152
 
@@ -22,4 +22,4 @@ Then run the following command, choosing the defaults for each prompt.
22
22
 
23
23
  When you're finished you should have a Neo.mjs workspace, as described in the _Workspaces and Applications_ topic, which follows.
24
24
 
25
-
25
+ It's probably a good idea to do an `npm install` in the workspace as soon as you've created it.
@@ -20,7 +20,7 @@ Click on Preview, then use your mouse or trackpad to pan and zoom &mdash; the he
20
20
  If you move quickly, you might reach 20,000 or 30,000 delta updates per second. We've seen some examples that go over 40,000 updates per
21
21
  second &mdash; but we've never actually hit the limit.
22
22
 
23
- <pre data-neo>
23
+ <pre data-neo data-read-only>
24
24
  import Base from '../../../../src/container/Base.mjs';
25
25
  import Helix from '../../../../src/component/Helix.mjs';
26
26
  class Foo extends Base {
@@ -41,7 +41,7 @@
41
41
  {"name": "Other JavaScript Class Features", "parentId": "JavaScriptClasses", "isLeaf": true, "id": "2023-10-08T20-20-37-336Z"},
42
42
  {"name": "Super", "parentId": "JavaScriptClasses", "isLeaf": true, "id": "2023-10-08T21-58-25-809Z"},
43
43
  {"name": "New Node", "parentId": "JavaScriptClasses", "isLeaf": true, "id": "2023-10-31T13-59-37-550Z"},
44
- {"name": "Appendix", "parentId": null, "id": "appendix", "collapsed": true},
44
+ {"name": "Appendix", "parentId": null, "id": "appendix", "hidden": true, "collapsed": true},
45
45
  {"name": "Stylesheet", "parentId": "appendix", "isLeaf": true, "id": "stylesheet"},
46
46
  {"name": "Test", "parentId": "appendix", "isLeaf": true, "id": "TestLivePreview"}
47
47
  ]}
@@ -260,12 +260,12 @@ const DefaultConfig = {
260
260
  useVdomWorker: true,
261
261
  /**
262
262
  * buildScripts/injectPackageVersion.mjs will update this value
263
- * @default '6.15.9'
263
+ * @default '6.15.11'
264
264
  * @memberOf! module:Neo
265
265
  * @name config.version
266
266
  * @type String
267
267
  */
268
- version: '6.15.9'
268
+ version: '6.15.11'
269
269
  };
270
270
 
271
271
  Object.assign(DefaultConfig, {
@@ -63,6 +63,9 @@ class RecordFactory extends Base {
63
63
  key = nsArray.pop();
64
64
  ns = Neo.ns(nsArray, true);
65
65
  cls = ns[key] = class Record {
66
+ // We do not want to minify the ctor class name in dist/production
67
+ static name = 'Record'
68
+
66
69
  constructor(config) {
67
70
  let me = this,
68
71
  properties;
@@ -651,16 +651,19 @@ class DomAccess extends Base {
651
651
  * @param {HTMLElement} [data.target]
652
652
  */
653
653
  monitorAutoGrowHandler(data) {
654
- const
655
- target = data.target || this.getElement(data.id),
656
- { style } = target,
657
- { style : inputStyle } = target.closest('.neo-textarea');
658
-
659
- // Measure the scrollHeight when forced to overflow, then set height to encompass the scrollHeight
660
- style.height = style.minHeight = 0;
661
- inputStyle.setProperty('--textfield-input-height', `${target.scrollHeight + 5}px`);
662
- inputStyle.setProperty('height', '');
663
- style.height = style.minHeight = ''
654
+ const target = data.target || this.getElement(data.id);
655
+
656
+ if (target) {
657
+ const
658
+ { style } = target,
659
+ { style : inputStyle } = target.closest('.neo-textarea');
660
+
661
+ // Measure the scrollHeight when forced to overflow, then set height to encompass the scrollHeight
662
+ style.height = style.minHeight = 0;
663
+ inputStyle.setProperty('--textfield-input-height', `${target.scrollHeight + 5}px`);
664
+ inputStyle.setProperty('height', '');
665
+ style.height = style.minHeight = ''
666
+ }
664
667
  }
665
668
 
666
669
  /**