@pacem/pacem-core 1.0.6-ricci → 2.0.0-abel

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.
Files changed (40) hide show
  1. package/dist/browser/pacem-core.js +289 -161
  2. package/dist/browser/pacem-core.js.map +1 -1
  3. package/dist/browser/pacem-core.min.js +2 -2
  4. package/dist/bundle/pacem-core.min.mjs +6 -6
  5. package/dist/bundle/pacem-core.mjs +276 -104
  6. package/dist/bundle/pacem-core.mjs.map +4 -4
  7. package/dist/docs/pacem-core.json +1 -1
  8. package/dist/esm/adapter.js +1 -1
  9. package/dist/esm/binding-parser.js +259 -0
  10. package/dist/esm/command.js +1 -1
  11. package/dist/esm/comparers.js +1 -1
  12. package/dist/esm/converters.js +1 -1
  13. package/dist/esm/decorators-next.js +1 -1
  14. package/dist/esm/decorators.js +1 -1
  15. package/dist/esm/defaults.js +1 -1
  16. package/dist/esm/events.js +1 -1
  17. package/dist/esm/eventtarget.js +1 -1
  18. package/dist/esm/expression.js +36 -161
  19. package/dist/esm/index-animations.js +1 -1
  20. package/dist/esm/index-behaviors.js +1 -1
  21. package/dist/esm/index-components.js +1 -1
  22. package/dist/esm/index-iife.js +1 -1
  23. package/dist/esm/index-logging.js +1 -1
  24. package/dist/esm/index-net.js +1 -1
  25. package/dist/esm/index-root.js +1 -1
  26. package/dist/esm/index-ui.js +1 -1
  27. package/dist/esm/index.js +1 -1
  28. package/dist/esm/logger.js +1 -1
  29. package/dist/esm/prefix.js +1 -1
  30. package/dist/esm/promise.js +1 -1
  31. package/dist/esm/regex.js +1 -1
  32. package/dist/esm/storage.js +1 -1
  33. package/dist/esm/template.js +1 -1
  34. package/dist/esm/transforms.js +1 -1
  35. package/dist/esm/types.js +1 -1
  36. package/dist/esm/utils-customelement.js +1 -1
  37. package/dist/esm/utils-customevent.js +1 -1
  38. package/dist/esm/utils.js +1 -1
  39. package/package.json +1 -1
  40. package/typings/index.d.ts +6 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v1.0.6-ricci (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-abel (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v1.0.6-ricci (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-abel (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/dist/esm/regex.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v1.0.6-ricci (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-abel (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v1.0.6-ricci (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-abel (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v1.0.6-ricci (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-abel (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v1.0.6-ricci (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-abel (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/dist/esm/types.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v1.0.6-ricci (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-abel (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v1.0.6-ricci (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-abel (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v1.0.6-ricci (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-abel (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/dist/esm/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @pacem/pacem-core v1.0.6-ricci (https://js.pacem.it)
2
+ * @pacem/pacem-core v2.0.0-abel (https://js.pacem.it)
3
3
  * Pacem (https://pacem.it)
4
4
  * Licensed under Apache-2.0
5
5
  */
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "types": "./typings/index.d.ts"
25
25
  }
26
26
  },
27
- "version": "1.0.6-ricci",
27
+ "version": "2.0.0-abel",
28
28
  "author": {
29
29
  "name": "Pacem",
30
30
  "url": "https://pacem.it"
@@ -942,12 +942,16 @@ export declare class Expression {
942
942
  * Parses a binding expression's source text (the bare content of a `{{ ... }}` attribute, without the
943
943
  * delimiters - see {@link CustomElementUtils.extractBindingAttributeExpression}) into an {@link Expression},
944
944
  * resolving its special tokens against `element`'s scope (see {@link CustomElementUtils.findScopeContext}).
945
- * Throws if the expression matches the unsafe-code guard (`new`, `window.`, `document.`, `eval(`).
945
+ * Tokenization and rewriting are delegated to {@link BindingParser} (cached per expression text).
946
+ * Throws if the expression uses an unsafe construct (`new`, members of `window`/`document`, `eval(`).
946
947
  * @param expression Bare expression source text.
947
948
  * @param element Element the expression is bound to; provides the scope special tokens (`:host.`, `#id`, `^item`, ...) resolve against.
948
- * @returns A constant expression if it has no dependencies; a shared pending placeholder if `element` isn't attached to a scope yet; otherwise a fully resolved expression.
949
+ * @returns A constant expression if it has no special tokens; a shared pending placeholder if `element` isn't attached to a scope yet; otherwise a fully resolved expression.
949
950
  */
950
951
  static parse(expression: string, element: HTMLElement): Expression;
952
+ /** The DOM surroundings of `element` the special tokens resolve against (lazily, except for the scope context). */
953
+ private static _scopeOf;
954
+ private static _fromParsed;
951
955
  }
952
956
 
953
957
  /** Describes an element capable of issuing an HTTP request and exposing its outcome (e.g. `PacemFetchElement`); dispatches {@link FetchResultEventName}/{@link FetchSuccessEventName}/{@link FetchErrorEventName} as appropriate and notifies property changes for `result`. */