@biggive/components 0.0.18 → 0.0.20

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.
@@ -3,7 +3,7 @@
3
3
  const index = require('./index-8692cc53.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.17.1 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.17.3 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  const patchBrowser = () => {
9
9
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('biggive.cjs.js', document.baseURI).href));
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-8692cc53.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.17.1 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.17.3 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -6,7 +6,7 @@
6
6
  ],
7
7
  "compiler": {
8
8
  "name": "@stencil/core",
9
- "version": "2.17.1",
9
+ "version": "2.17.3",
10
10
  "typescriptVersion": "4.5.4"
11
11
  },
12
12
  "collections": [],
@@ -1,8 +1,5 @@
1
1
  import { Component, Prop, h } from '@stencil/core';
2
2
  import { CampaignGroupsService } from '../../util/campaign-groups';
3
- /**
4
- * @todo Currency code for the campaign must be passed as a `@Prop`, not localised to the prospective donor.
5
- */
6
3
  export class BiggiveCampaignCard {
7
4
  constructor() {
8
5
  /**
@@ -1,7 +1,7 @@
1
1
  import { p as promiseResolve, b as bootstrapLazy } from './index-4c3bc0b8.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Browser v2.17.1 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Browser v2.17.3 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchBrowser = () => {
7
7
  const importMeta = import.meta.url;
@@ -1,7 +1,7 @@
1
1
  import { p as promiseResolve, b as bootstrapLazy } from './index-4c3bc0b8.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Esm v2.17.1 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Esm v2.17.3 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchEsm = () => {
7
7
  return promiseResolve();
@@ -1,6 +1,3 @@
1
- /**
2
- * @todo Currency code for the campaign must be passed as a `@Prop`, not localised to the prospective donor.
3
- */
4
1
  export declare class BiggiveCampaignCard {
5
2
  /**
6
3
  * Full URL of a banner image.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biggive/components",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "Big Give Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
package/readme.md CHANGED
@@ -45,6 +45,28 @@ Anything externally managed should be loaded with npm and no copies checked into
45
45
 
46
46
  Generated build outputs should similarly be `.gitignore`d.
47
47
 
48
+ Because Stencil components have *partly* generated readme docs, it is a good idea after changing any `@Prop`s or similar to `npm run build`
49
+ before committing your changes. The docs should be source controlled as they can include manual content. If you make a new one, it's a good
50
+ idea to add a one line description of its purpose to the readme before the generated section.
51
+
52
+ ### Output targets
53
+
54
+ Main targets are:
55
+
56
+ * `angularOutputTarget()` – used in [Donate frontend](https://github.com/thebiggive/donate-frontend).
57
+ * `dist-custom-elements` – the docs don't make this terribly clear but with our current configuration,
58
+ these are a dependency for the Angular project/target to build successfully. Angular needs to be told
59
+ that they live inside `dist/` (so are published in `dist/components`).
60
+ * `dist` for general web modules – used in [WordPress](https://github.com/thebiggive/wordpress).
61
+ * Storybook has its own build step using the component from source. Currently, this is also used in
62
+ Salesforce to embed components in iframes, the only feasible way we've been able to get Experiences
63
+ to dynamically pull in components.
64
+ * `docs-readme` for documentation.
65
+
66
+ Targets we have but just for local experiments:
67
+
68
+ * `www`
69
+
48
70
  ### Angular components
49
71
 
50
72
  As well as the core package `@biggive/components`, CI automatically publishes a version best tailored to
@@ -110,6 +132,11 @@ CI automatically publishes the Storybook preview:
110
132
  * to [its Production site](https://components-production.thebiggive.org.uk) on *tagged* pushes
111
133
  (typically also on `main`) – intended for tested, new versions which are also to be npm published.
112
134
 
135
+ For now, the local `npm run storybook` won't load static image assets or fonts. We've prioritised realistic
136
+ renders in the deployed environment, where these work due to:
137
+ * CI separately copying the main build's `assets` output to S3: see e.g. `deploy-staging-storybook` in [CI config](./.circleci/config.yml)
138
+ * Storybook having a custom [`preview-head.html`](./.storybook/preview-head.html).
139
+
113
140
  ## Publish to NPM
114
141
 
115
142
  ### Connect to NPM